Repository navigation
refactor(fact-channels): check recorder and differential tables against the registry (Part of #3383) - #7337
Merged
Conversation
…the registry (Part of #3383) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
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.
Part of #3383 (slice 19). Continues #7334 (merged).
What changed
Finding: the audit/LLM recorder sections (
AUDIT_SECTIONS,FACT_LINES,FACT_SUMMARIES), the refraction differential (SET_CHANNELS) and the answer-key drafts (DRAFT_SECTIONS) were already table-driven by earlier slices, so the shared seams need no edit. What was missing is any tie from those tables to the registry. This PR adds it:FactChannel.differentialnames theSetChannelthat compares a channel (7 channels set it).test_fact_channels.py: every per-filepayload_keyhas anAuditSectionand aFactLine(two listed exemptions with reasons), recorder sections name registered keys, andSET_CHANNELSanddifferential=claim each other one-to-one.how_to_add_a_fact_channel.mdand theadd-fact-channelskill list the actual per-channel edits.No DB, golden or differential output changes (no parsing code touched).
Class / Sibling gaps
Class: shared seams a new fact channel must edit by hand (#3383's list). Members: galaxy_ir SCOPE + loader (checked by test), recipe table (checked), READMEs (checked), record_keeper insert / DDL and state_rehydrator restore (registry-driven), audit / llm sections (table + registry check, this PR), differential (SET_CHANNELS +
differential, this PR), answer-key reader (DRAFT_SECTIONS, table-driven).Sibling gaps: the recipe table, SCOPE comment and report sections are checked against the registry, not generated from it, so a new channel still adds one row in each table beside its registry line (#3383 acceptance "single registry line" is not fully met). call_site / transaction keep custom insert paths. Acceptance bullet 1 (existing channels migrated byte-identical) and bullet 3 (recipe and skill updated) are met.
Remaining slices
AuditSection/FactLinedeclarations ontoFactChannel(needs_when/_LINEhelpers extracted to a data-only module):fact_channels.py,audit_recorder.py,llm_recorder.py, a helpers module, tests.Gates
pr_gates --fast9/9 pass (via heavy-run);test_fact_channels.py30 passed; tree-wide guards run. Ratchets not run: no parsing, golden or ledger input changed.🤖 Generated with Claude Code