Skip to content

domain sensors: declare the 40 unplanted, ungated sheet rows in one batch (#2897) - #2900

Merged
squid-protocol merged 1 commit into
mainfrom
fix/domain-sensor-contracts
Sep 8, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/domain-sensor-contracts

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Phase 3 of #2812, the sheet's last bucket: the 40 unplanted, ungated domain sensors go from draft to a new declared state in one PR. Closes #2897.

What declared means (and why it is not stated)

stated = audited per language, per-language verdicts in a contract doc, and the rules edited to agree in the same PR. Every one of the 15 stated rows earned it that way because it had a corpus plant -- a cell to hold equal across 46 languages. None of these 40 has one, and none feeds a gated formula, so a family audit has nothing to hold equal; the roadmap scheduled them as a batch of sentences for that reason.

But a one-pass incidence read of all 41 rules on the crucible (docs/domain_sensor_contracts.md, the measurement rule_probe.py makes, done for every rule per file split) shows them disagreeing with any honest sentence as hard as #2766's rust pub:

rule crucible what it matches
zig panics_and_aborts 7538 (35/36 files) return
perl decorators 2760 (21/21) :: package separators
dart closures 3282 (7/7) if (...) { and every parameter list
python vectorized_math 892 (209/261) the decorator @ (lookbehind crosses the newline)
php bitwise_ops 15137, 12316 one shape & inside HTML-entity strings
fortran serialization_parsing 294 (6/6) READ (/WRITE(/OPEN( -- io's

So the batch does what the roadmap asked -- a language-independent sentence, kind/unit, contract-level absences (None) named in the sentence -- and records the state honestly:

declared -- sentence, kind and unit fixed; the schema comment contains the sentence (the audit's containment check holds); incidence measured on both corpora; every rule the measurement shows contradicting the sentence is filed, not fixed. A declared row becomes stated the day it gains a plant or a gated consumer.

The defects are filed by shape: #2898 (the densest match is a different construct -- 24 rows incl. the memory_alloc managed-new decision, which java/kotlin/scala/dart already answered the other way) and #2899 (bare words and string content -- 13 rows). The epic's close criterion (no draft row) is unchanged.

Carve-out: encapsulation stays draft. It governs _calc_api_exposure and is def_encapsulation's edge; #2766 keeps its family audit.

Two findings recorded on the way

Changes (one layer: the sheet)

  • gitgalaxy/standards/signal_contracts.py -- 40 rows rewritten (status="declared", doc, issue=2897), the three-state lifecycle in the docstring, corollary 2.
  • gitgalaxy/standards/how_to_add_a_language.md -- the 40 # key: lines and the extension-pack bullets carry the sentence + Includes/EXCLUDES.
  • tests/signal_contract_audit.py -- declared is not a finding (a declared row without a doc, or an unknown status, is); render and summary count three states. Baseline regenerated: 53 -> 13 draft entries (+ the pre-existing schema-drift:func_start).
  • tests/test_signal_contract_sheet.py (new) -- the lifecycle invariants: three states only; every non-draft row's doc exists and names its issue; declared rows are unplanted; encapsulation stays draft on encapsulation has no stated contract: rust counts pub (the public modifier) and agc_assembly's rule matches every column-0 token #2766; declared sentences are contained in their schema comment; the import-anchored pack rows are declarations; structural_boundaries is the only tally; no audit finding outside the baseline.
  • docs/domain_sensor_contracts.md (new) -- the evidence table (coverage / None count / crucible and rosetta hits / densest token / verdict per row), the three batch-wide decisions, what the batch does not do, how to reproduce the measurement.
  • docs/contract_roadmap.md -- D3's status list, the Phase 3 bucket line, the Phase 3 and Phase 5 done-when wording.

No rule, formula, recorder or corpus file changes. No rosetta:rebless-owed: nothing moves a cell.

Verified

  • tests/signal_contract_audit.py --ci -> no new findings (68 entries, 15 stated, 40 declared, 13 draft).
  • pytest tests/test_signal_contract_sheet.py -> 10 passed.
  • ruff format / ruff check on the touched Python files clean.

🤖 Generated with Claude Code

…atch (#2897)

Phase 3 of #2812, the sheet's last bucket. The 40 domain sensors (structure
tally, architecture / subsystems / resources rows, the four hybrid sensors, the
AI/ML, appsec and literate packs) go from `draft` to a new `declared` state:
the sentence, kind and unit are fixed and language-independent, the schema
comment in how_to_add_a_language.md contains the sentence, incidence was
measured on both corpora in one pass, and every rule the measurement shows
contradicting the sentence is filed by shape (#2898 wrong construct, #2899
bare words and string content), not fixed. No rule is edited; no corpus cell
moves; no ledger entry is written.

Why not `stated`: that state means audited per language with the rules edited
to agree in the same PR, and the first measurement shows these rules
disagreeing as hard as #2766's `rust pub` (zig panics_and_aborts counts
`return`, perl decorators counts `::`, dart closures counts `if (...) {`,
python vectorized_math counts the decorator `@`, php bitwise_ops counts `&`
inside HTML-entity strings). `encapsulation` is carved out and stays draft: it
governs _calc_api_exposure and keeps its family audit (#2766).

Also recorded: the literate pack reads the comment stream (stream contract
corollary 2 -- markdown's whole file is comment_stream under the Prose Bypass);
the six import-anchored AI/ML pack rules are `declaration` kind, not `site`.

- gitgalaxy/standards/signal_contracts.py: 40 rows, the three-state lifecycle,
  corollary 2
- gitgalaxy/standards/how_to_add_a_language.md: 40 schema comment lines and
  the pack bullets carry the sentences
- tests/signal_contract_audit.py: `declared` is not a finding; render and
  summary count three states; baseline 53 -> 13 draft entries
- tests/test_signal_contract_sheet.py: the lifecycle invariants (states, docs,
  unplanted-only, encapsulation carve-out, containment, kinds, no new findings)
- docs/domain_sensor_contracts.md: the batch's evidence table and decisions
- docs/contract_roadmap.md: Phase 3 bucket line and the done-when wording

Closes #2897

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@squid-protocol squid-protocol added metrics Heuristics, risk exposures, and topological math updates core-engine Modifications to the central physics and parsing engine labels Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 1a60f47 into main Sep 8, 2026
67 of 68 checks passed
@squid-protocol
squid-protocol deleted the fix/domain-sensor-contracts branch September 8, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-engine Modifications to the central physics and parsing engine metrics Heuristics, risk exposures, and topological math updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant