Demiton · Schema

tender_lesson contract v1

The Tender lesson register contract, version 1. JSON Schema (draft 2020-12); x-demiton-* keywords carry Demiton's own meaning and standard validators ignore them.

CompanyConstructionCivil EngineeringProject ManagementComplianceMCPArtificial IntelligenceOpen Contracting

Properties

Name Type Description
unit string the unit of `from_value` and `to_value`
cause string the largest positive cost effect, or `bought` for a price set below the margin floor at decision time
reason string why it was declined; required when `status` is `declined`
status string where the lesson stands
currency currency the currency of every amount on this record (`overrun_amount`), an ISO 4217 alpha-3 code. A record with no currency has no usable amount.
proposal string the change in one line, as the estimating manager reads it
to_value number the proposed value: the median achieved across the jobs counted
decided_at string when it was accepted or declined; required once `status` is not `proposed`
from_value number the input's value the jobs were priced on
input_kind string the kind of input the change touches
jobs_counted integer how many jobs priced on the input the median was taken over
input_version integer the `tender_input` version accepting it wrote
work_activity string the work activity whose input the lesson would change
overrun_amount number the overrun on the activity the lesson came from, in `currency`
at_stake_amount number the priced value of open work still on `from_value`, the money the change would move
weeks_in_breach integer consecutive weekly runs the input has been outside the band
at_stake_currency currency the currency of every amount on this record (`at_stake_amount`), an ISO 4217 alpha-3 code. A record with no currency has no usable amount. Present exactly when `at_stake_amount` is.
evidence_fact_ids array the verdict facts the lesson rests on
project_entity_id integer the project the lesson was raised from
decided_by_user_id integer who accepted or declined it; required once `status` is not `proposed`
View JSON Schema on GitHub

JSON Schema

demiton-io-tender_lesson-v1-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/tender_lesson/v1.json",
  "title": "tender_lesson contract v1",
  "type": "object",
  "required": [
    "cause",
    "currency",
    "evidence_fact_ids",
    "from_value",
    "input_kind",
    "jobs_counted",
    "overrun_amount",
    "project_entity_id",
    "proposal",
    "status",
    "to_value",
    "unit",
    "weeks_in_breach",
    "work_activity"
  ],
  "properties": {
    "unit": {
      "type": "string",
      "description": "the unit of `from_value` and `to_value`",
      "x-demiton-requiredness": "required"
    },
    "cause": {
      "type": "string",
      "description": "the largest positive cost effect, or `bought` for a price set below the margin floor at decision time",
      "enum": [
        "rate",
        "norm",
        "quantity",
        "preliminaries",
        "escalation",
        "bought"
      ],
      "x-demiton-requiredness": "required"
    },
    "reason": {
      "type": "string",
      "description": "why it was declined; required when `status` is `declined`",
      "x-demiton-requiredness": "optional"
    },
    "status": {
      "type": "string",
      "description": "where the lesson stands",
      "enum": [
        "proposed",
        "accepted",
        "declined",
        "proven"
      ],
      "x-demiton-requiredness": "required"
    },
    "currency": {
      "type": "currency",
      "description": "the currency of every amount on this record (`overrun_amount`), an ISO 4217 alpha-3 code. A record with no currency has no usable amount.",
      "x-demiton-requiredness": "required"
    },
    "proposal": {
      "type": "string",
      "description": "the change in one line, as the estimating manager reads it",
      "x-demiton-requiredness": "required"
    },
    "to_value": {
      "type": "number",
      "description": "the proposed value: the median achieved across the jobs counted",
      "x-demiton-requiredness": "required"
    },
    "decided_at": {
      "type": "string",
      "description": "when it was accepted or declined; required once `status` is not `proposed`",
      "x-demiton-requiredness": "optional",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "from_value": {
      "type": "number",
      "description": "the input's value the jobs were priced on",
      "x-demiton-requiredness": "required"
    },
    "input_kind": {
      "type": "string",
      "description": "the kind of input the change touches",
      "enum": [
        "rate",
        "norm",
        "allowance"
      ],
      "x-demiton-requiredness": "required"
    },
    "jobs_counted": {
      "type": "integer",
      "description": "how many jobs priced on the input the median was taken over",
      "x-demiton-requiredness": "required"
    },
    "input_version": {
      "type": "integer",
      "description": "the `tender_input` version accepting it wrote",
      "x-demiton-requiredness": "optional"
    },
    "work_activity": {
      "type": "string",
      "description": "the work activity whose input the lesson would change",
      "x-demiton-requiredness": "required"
    },
    "overrun_amount": {
      "type": "number",
      "description": "the overrun on the activity the lesson came from, in `currency`",
      "x-demiton-requiredness": "required"
    },
    "at_stake_amount": {
      "type": "number",
      "description": "the priced value of open work still on `from_value`, the money the change would move",
      "x-demiton-requiredness": "optional"
    },
    "weeks_in_breach": {
      "type": "integer",
      "description": "consecutive weekly runs the input has been outside the band",
      "x-demiton-requiredness": "required"
    },
    "at_stake_currency": {
      "type": "currency",
      "description": "the currency of every amount on this record (`at_stake_amount`), an ISO 4217 alpha-3 code. A record with no currency has no usable amount. Present exactly when `at_stake_amount` is.",
      "x-demiton-requiredness": "optional"
    },
    "evidence_fact_ids": {
      "type": "array",
      "description": "the verdict facts the lesson rests on",
      "x-demiton-requiredness": "required"
    },
    "project_entity_id": {
      "type": "integer",
      "description": "the project the lesson was raised from",
      "x-demiton-requiredness": "required"
    },
    "decided_by_user_id": {
      "type": "integer",
      "description": "who accepted or declined it; required once `status` is not `proposed`",
      "x-demiton-requiredness": "optional"
    }
  },
  "x-demiton-register-type": "tender_lesson",
  "x-demiton-contract-version": "1.0.0",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": []
  },
  "description": "The Tender lesson register contract, version 1. JSON Schema (draft 2020-12); x-demiton-* keywords carry Demiton's own meaning and standard validators ignore them.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/tender_lesson/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/demiton-io-tender_lesson-v1"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.