Repository navigation
feat(standards): func_start and class_start contracts -- 5 open cells are collective-entry cross-product mis-marks, not rule defects (#2856, roadmap Phase 3) - #2857
Merged
Conversation
… are collective-entry cross-product mis-marks, not rule defects (#2856, roadmap Phase 3) Both structure-declaration rows stated (docs/func_start_rule_contract.md, docs/class_start_rule_contract.md, sheet 8/68): - func_start: the syntax that opens an executable block of logic under its own name -- a function/method/procedure/subroutine declaration, or the instruction that begins an executable step where the language has no named-callable form (dockerfile RUN/CMD/..., a makefile recipe, a yaml step). - class_start: the declaration of a named type (class/struct/record/interface/ enum/object) or the file's compilation-unit container where that container is the language's only named-entity declaration. No rule regex changed: under the stated sentences the 43/39 existing rules already conform. The five open-defect cells (func_start dockerfile/html, class_start dockerfile/jcl/kotlin) each read extraction only because a collective ledger entry (batch4, batch5, kotlin-object) claims the cell through a signal x language cross-product -- the A.4 mis-mark corrected twice before. Their true causes are container morphology (scoring, #2795/#2796/#2798) and intended morphology (dockerfile instruction-blocks, html script tags, kotlin's plant-forced object). Three deliberate duals stated and kept (FROM class_start+import, HEALTHCHECK func_start+safety, object class_start+globals), pinned in tests/extraction/languages/test_structure_contract_2856.py. Golden masters untouched (0 diff, no rule change); rosetta_audit 46/46 against the companion corpus branch; extraction suite 6933 passed. Closes #2856 Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01VnsC1A6TUhGS5QcmM7fg8L
Contributor
squid-protocol
added a commit
to squid-protocol/keyword-rosetta
that referenced
this pull request
Sep 7, 2026
…ope-correction, no cell moved (#95) Companion to squid-protocol/gitgalaxy#2857 (roadmap Phase 3, epic gitgalaxy#2812). The pair's 5 open-defect cells were correct readings that collective ledger entries mis-categorised as extraction via a signal x language cross-product. No manifest value changes (the engine changed no rule regex): - batch4-dual-keyword-overlaps: func_start/class_start leave the signal union (dockerfile stays in languages_seen for FROM's import half and HEALTHCHECK's safety half). - batch5-tier2-morphology-shapes: func_start leaves the signal union. - container-construct-reads-as-class-start: dockerfile added (FROM stage container, class_start contract C2). - kotlin-object-dual-globals-classstart: keyword-overlap -> intended-morphology (plant-forced object, C3). - new func-start-dockerfile-instruction-blocks (intended-morphology). Regenerated at full precision: open-defect share 32 -> 27 of 2645; func_start and class_start each carry 0 open-defect cells; unexplained unchanged (no cell orphaned); na/decoy/ledger-orphan checks green. Claude-Session: https://claude.ai/code/session_01VnsC1A6TUhGS5QcmM7fg8L Co-authored-by: Claude Opus 4.8 <[email protected]>
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 the contract roadmap (
docs/contract_roadmap.md, epic #2812): the structure-declaration pairfunc_startandclass_start. Closes #2856.The contracts
Full sentences, corollaries, the audit tables and the ledger dispositions:
docs/func_start_rule_contract.md,docs/class_start_rule_contract.md. Both sheet rows →stated(8/68);signal_contract_audit.py --cigreen with a smaller baseline (61 findings); cross-language pins intests/extraction/languages/test_structure_contract_2856.py.No rule regex changed — and that is the finding
The pair carried 5 of the report's open-defect cells: func_start dockerfile/html, class_start dockerfile/jcl/kotlin. Computing each cell's verdict against corpus main showed every one is
extractiononly because a collective ledger entry's signal×language cross-product claims it — the exact A.4 mis-markbatch4was corrected for twice before. None is a rule matching the wrong construct; under the stated sentences the existing rules already conform.batch4names func_start (for dockerfile HEALTHCHECK)batch5names func_start (for css) + html (for an unrelated doc+ownership dual) — the cross-producthtml-func-start-counts-script-elements(C5)batch4names class_start (for FROM)container-construct-reads-as-class-startbatch4's redundant mark over the container entrycontainer-construct-reads-as-class-startkotlin-object-dual-globals-classstart(keyword-overlap)objectis a singleton class and the globals plant; plant-forced (#2796), re-dispositioned intended-morphology (C3)Three deliberate duals are stated and kept (one token, two genuine constructs — the fortran-COMMON shape, not the io/branch one-owner case): dockerfile
FROM(class_start+import), dockerfileHEALTHCHECK(func_start+safety), kotlinobject(class_start+globals). The pin module asserts both rules of each still fire.The container cells
class_start/{cobol,css,yaml}and everyclasses_foundcontainer cell were already correctly categorizedscoringand stay with the open structure-stratum work (#2795/#2796/#2798) — banding a per-language container constant against a zero median is a scoring-layer answer, out of scope for a rule contract.Proof
rule_probereads identically before and after — no regex edited, so the golden masters are untouched (0 diff) and there is nothing to re-bless.rosetta_audit.pyagainst the companion corpus branch: 46/46.test_structure_contract_2856.py). ruff/mypy/dead-key audits andaudit_check.py: no new findings.Cross-repo
Companion corpus PR: squid-protocol/keyword-rosetta#95 (
rebless/gitgalaxy-2856-structure) — ledger scope-corrections only (no manifest cell moves, the counts are all correct):func_start/class_startdrop frombatch4's signal union (dockerfile stays inlanguages_seenfor FROM's import half and HEALTHCHECK's safety half);func_startdrops frombatch5's union; dockerfile added tocontainer-construct-reads-as-class-start;kotlin-object-dual-globals-classstartre-dispositioned to intended-morphology; newfunc-start-dockerfile-instruction-blocksentry. After it,func_startandclass_starteach carry 0 open-defect cells. This PR merges first; the corpus PR's bias regen republishes the report.🤖 Generated with Claude Code
https://claude.ai/code/session_01VnsC1A6TUhGS5QcmM7fg8L