Skip to content

domain sensors: declare the 41 unplanted, ungated sheet rows in one batch (Phase 3 of #2812) #2897

Closed

Description

@squid-protocol

Phase 3 of #2812, the last bucket in its sheet table: the 41 unplanted domain sensors (structural_boundaries, the architecture / subsystems / resources rows, the four hybrid sensors, the AI/ML, appsec and literate packs). The roadmap's line for them: "batch a transcribed sentence + kind/unit + contract-level absence; no 46-language audit (no corpus cell to move)". This issue is that batch, with one correction to the roadmap's premise and one carve-out.

What "stated" cannot honestly mean here

signal_contracts.py defines stated as audited against every corpus language, with a docs/<signal>_rule_contract.md giving the per-language verdicts, and every one of the 15 stated rows earned it by editing the rules that disagreed with the sentence in the same PR. None of these 41 rows can get that in a batch: 21 of them are defined by 44–45 languages, and a one-pass incidence read of all 41 on the crucible (Prism code stream, the measurement rule_probe.py makes) shows the same defect shapes the stated contracts spent a session each removing — perl decorators matches :: package separators (2760 hits, 21/21 files), zig panics_and_aborts matches return (7538), dart closures matches if (...) { and every parameter list (3282), python vectorized_math matches the decorator @ (892), php bitwise_ops matches & inside HTML-entity strings (12316 of 15137), fortran serialization_parsing matches READ (/WRITE(/OPEN( (io's), lua panics_and_aborts matches assert (safety's).

So the batch gets a third lifecycle state rather than a false stated:

  • declared — the sentence, kind and unit are fixed and language-independent, the schema comment contains the sentence (the audit's containment check holds), incidence was measured on both corpora, and every rule the measurement shows contradicting the sentence is filed, not fixed. The rules have not been brought into line. A declared row becomes stated the day it gains a plant or a gated consumer and gets the family audit.
  • draft keeps its meaning; stated keeps its meaning. The epic's close criterion ("no draft row") is unchanged and honest: a declared row says exactly how far it was taken.

Carve-out: encapsulation stays draft

It is in this bucket by the sheet's flags (unplanted) but it governs _calc_api_exposure and is the derivation edge behind def_encapsulation; #2766 already documents that rust counts pub (the complement) and agc_assembly matches every column-0 token. It needs the family audit, not a sentence. Left draft, issue=2766.

Deliverable (one engine PR, one layer: the sheet)

  • gitgalaxy/standards/signal_contracts.py: 40 rows rewritten to one language-independent sentence each, kind corrected where the transcribed one was wrong, status="declared", doc="docs/domain_sensor_contracts.md"; the declared state in the lifecycle docstring; STREAM_CONTRACT corollary 2 gains the four lit_* rules (markdown's Prose Bypass routes the whole file to comment_stream; detector.comment_analysis runs them there — my first probe read 0 for all four on the code stream).
  • how_to_add_a_language.md: the 40 schema comment lines carry the sentence + Includes/EXCLUDES; the extension-pack bullets aligned.
  • tests/signal_contract_audit.py: declared is not a finding; the render says draft/declared/stated; baseline regenerated (53 → 13 draft entries).
  • docs/domain_sensor_contracts.md: per-row table — registry coverage, None count, crucible/rosetta hits, top matched token, verdict, filed issue.
  • docs/contract_roadmap.md: the Phase 3 bucket line and "done when" updated for declared.
  • Defects filed by shape, not per cell (the STRUCTURE COUNTS lesson): one issue per shape, each with its measured table.

No corpus PR: no manifest cell moves, no ledger entry is touched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-enginemetrics

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions