Repository navigation
domain sensors: declare the 40 unplanted, ungated sheet rows in one batch (#2897) - #2900
Merged
Merged
Conversation
…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]>
Closed
13 of 24 tasks
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 3 of #2812, the sheet's last bucket: the 40 unplanted, ungated domain sensors go from
draftto a newdeclaredstate in one PR. Closes #2897.What
declaredmeans (and why it is notstated)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 measurementrule_probe.pymakes, done for every rule per file split) shows them disagreeing with any honest sentence as hard as #2766'srust pub:panics_and_abortsreturndecorators::package separatorsclosuresif (...) {and every parameter listvectorized_math@(lookbehind crosses the newline)bitwise_ops&inside HTML-entity stringsserialization_parsingREAD (/WRITE(/OPEN(-- io'sSo 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:The defects are filed by shape: #2898 (the densest match is a different construct -- 24 rows incl. the
memory_allocmanaged-newdecision, which java/kotlin/scala/dart already answered the other way) and #2899 (bare words and string content -- 13 rows). The epic's close criterion (nodraftrow) is unchanged.Carve-out:
encapsulationstaysdraft. It governs_calc_api_exposureand isdef_encapsulation's edge; #2766 keeps its family audit.Two findings recorded on the way
lit_*rules read 0 on every file: markdown's whole file iscomment_streamunder the Prose Bypass anddetector.comment_analysisruns them there (Prose-bypass languages (markdown, plus yaml/json/csv/plaintext) never get their structural signatures counted, regardless of regex correctness #691). Stream contract corollary 2 now says so; measured again withrule_probe.py lit_* markdown --stream both(16/3/10/1 on the rosetta files).llm_orchestrator,llm_vector_store,ml_traditional,dl_frameworks,hardware_bridge,cryptographyare_IMPORT_WRAPPERregexes -- they fire on the import statement and never on a use. Their kind isdeclaration(the import contract's unit,importhas no stated contract: dockerfile countsFROM scratch, embedded_python's cell is the classifier's own discriminator, and apex/scala/shell/livecode count references, blocks and path arguments #2875), which is what Phase 4's commensurability audit will read.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--declaredis not a finding (a declared row without a doc, or an unknown status, is); render and summary count three states. Baseline regenerated: 53 -> 13draftentries (+ the pre-existingschema-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;encapsulationstays 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_boundariesis the only tally; no audit finding outside the baseline.docs/domain_sensor_contracts.md(new) -- the evidence table (coverage /Nonecount / 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 checkon the touched Python files clean.🤖 Generated with Claude Code