{
  "class_version": "nt-crossing-class:v0",
  "id": "quantitysurveying.project-cost",
  "version": "0.1.0",
  "title": "Quantity surveying project valuation",
  "domain": "quantity surveying",
  "evidence_status": "proposed",
  "summary": "An agent proposes a project valuation or cost decision: a versioned drawing/takeoff and a contract/rate basis support a valuation, checked against a versioned rule set before a senior surveyor approves. The machine-checkable rules are that the valuation reconciles to its measured and priced components and that two rate sources agree. Synthetic specification; no surveyor or standards body has reviewed it, and the rule set is illustrative, not a real method of measurement or contract.",
  "state_fields": {
    "before": ["project_ref", "drawing_version"],
    "proposed": ["project_ref", "drawing_version", "valuation", "reconciliation", "rate_mappings"]
  },
  "action_types": ["record_valuation_decision"],
  "policy": {
    "id": "nt-policy:project-cost",
    "version": "0.1.0",
    "authored_by": "Neverthought (illustrative class policy; not a method of measurement or a contract)",
    "parameters": {
      "max_delegation_depth": 2,
      "evidence_max_age_days": 180
    },
    "note": "Parameter values are illustrative."
  },
  "invariants": [
    {
      "id": "valuation_reconciles",
      "label": "The valuation reconciles to its measured and priced components (the tie-out nets to zero)",
      "measure": "double_entry_balance",
      "params": { "field": "reconciliation" },
      "tolerance": 0,
      "register": "value"
    },
    {
      "id": "rates_agree",
      "label": "The bill-of-quantities rate and the contract rate map the same item to one value",
      "measure": "mappings_agree",
      "params": { "field": "rate_mappings" },
      "tolerance": 0,
      "register": "structure"
    }
  ],
  "evidence_requirements": [
    { "subject": "drawing_takeoff", "min_tier": "E2", "required_to_resolve": "Attach the versioned drawing and the quantity take-off the valuation is measured from." },
    { "subject": "contract_basis", "min_tier": "E3", "required_to_resolve": "Attach the corroborated contract or rate basis the valuation is priced against." }
  ],
  "authority_requirements": { "independent_trust_root": true, "segregation_of_duties": true },
  "archetypes": [
    "RA-IRREVERSIBLE-COMMITMENT", "RA-HIDDEN-COUPLING", "RA-ACCUMULATION", "RA-EXPIRED-EVIDENCE", "RA-AUTHORITY-DRIFT", "RA-UNWARRANTED-EXECUTION"
  ],
  "descriptors": {
    "stake": "material",
    "action": "compensable",
    "authority_kind": "explicit",
    "freshness": "bounded"
  },
  "profiles": {
    "recorder": "nt-receipt-chain:v0 (this site's chain; not a cost-management system)",
    "underwriting": "nt-underwritability-conditions:v0 (conditions document; not a real valuation standard)"
  },
  "consequence": {
    "bound": "bounded",
    "ceiling": "The absolute value of the valuation decision (direct over- or under-valuation only)",
    "rationale": "A single valuation decision mis-certifies the project by at most its own amount. Downstream dispute, claim and programme consequences are outside this bound and are not declared here."
  },
  "consequence_paths": [
    { "id": "overpayment", "description": "The certificate overpays against the true measured value." },
    { "id": "underpayment", "description": "The certificate underpays against the true measured value." },
    { "id": "dispute_or_claim", "description": "The valuation is contested as a dispute or contractual claim." },
    { "id": "variation_recost", "description": "A later variation or as-built re-costs the item." }
  ],
  "structural_tests": [],
  "failure_mode": {
    "mode": "fail-closed",
    "rationale": "The valuation is not certified as assured unless the gate returns EXECUTE."
  },
  "non_claims": [
    "Not a valuation, a certification, a method of measurement, or contractual or quantity-surveying advice.",
    "A rule pass shows only that the supplied data meets the stated rule (the tie-out reconciles and the rates agree), not that the measured quantities, the rates, or the valuation are correct.",
    "The valuation conclusion is a human judgment this gate does not compute; EXECUTE records that the declared rules passed on the declared evidence, not that the surveyor judged correctly.",
    "The rule set is a synthetic illustration; no surveyor, employer or standards body has reviewed it, and it is not a real method of measurement or form of contract."
  ]
}
