Repository navigation
feat(SG-2c cluster): parse_primary prefix + atom family - #665
Conversation
|
This is directionally fine, but it is not converged as the briefed SG-2c cluster lane yet. What I see right now:
What I do not see yet:
So this is currently authority prep, not the full SG-2c cluster receipt. Direction:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2960bf7a82
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| type PrimaryAtomRow { | ||
| token_variant: String | ||
| } |
There was a problem hiding this comment.
Connect PrimaryAtomRow rows to generated parser logic
These new PrimaryAtomRow facts are currently inert: regen_parse_tables_emit.rs only collects/emits PrimaryPrefixRow data, and parse_primary still hard-codes the atomic token match (IntLit/KwTrue/KwFalse/StringLit/Pipe/Ident) instead of using a generated PrimaryAtomClass. That means this commit introduces a second, non-enforced source of truth: editing primary_atom_* rows will not change runtime parsing and can silently drift from actual behavior.
Useful? React with 👍 / 👎.
|
Heads-up: the automated Codex review run at 21:20Z was against @codex review |
|
Review metadata
Looking at the diff: it's a narrowly-scoped cluster extension — adds I checked the principles against the diff:
Exploratory observations (non-blocking)
VerdictAPPROVE — diff is narrowly scoped, structurally consistent with the SG-2c-6 precedent, fail-closed end-to-end, single-authority preserved via regen, ratchet and tests updated atomically. No blocking findings. |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
4ad1eed to
4e2b4c9
Compare
|
Ingest: Codex inline on
Rows are load-bearing: changing |
|
Ingest (dashboard relay): Brian’s 21:36Z note is correct: early Codex ran on |
|
Review metadata
Verdict: APPROVE Diff is small and narrowly scoped, and I did not find any concrete violations of I did not complete a local |
|
Review metadata
The diff is a clean extension of the existing SG-2c parse_tables scaffold — adds a Things I checked:
Exploratory observations (non-blocking):
Verdict: APPROVE — small, narrowly scoped, matches the existing prefix-family pattern end to end, same-PR consumer wired, ratchet counts bumped in both ROADMAP.md and the thesis doc, tests added. No modeling-discipline violations observed. |
|
Review metadata
Verdict: APPROVE. Diff is narrowly scoped and looks clean: the new |
455ebc7 to
eeb8f47
Compare
briansrls
left a comment
There was a problem hiding this comment.
Review metadata
- Provider / model:
codex/gpt-5.4 - Commit:
005ca00a· Trigger:schedule - Thinking:
366s wall
Non-blocking — Strengths
src/v3/compiler/parse_tables.dagI found no blocking issue here;PrimaryAtomRowfollows the existingparse_tablesscaffold discipline with one authored fact, a named SG-2c-proper trigger, and a same-PR consumer inparse_primary.src/v3/compiler/tests/integration/sg2c1_parse_tables_authority_test.rsThe new atom-family tests pin both token-kind validity and exact post-prefix coverage, so this extraction fails closed instead of silently drifting.
ROADMAP — Verified
- parse_tables exemption count:
ROADMAP.md,docs/thesis/compiler-std-consolidation.md, andscripts/check-compiler-std-ratchet.shall agree on the new 7-typeparse_tables.dagexemption in the same PR.
✅ This looks clean: the new parse_primary atom-family extraction preserves single authority in parse_tables.dag, keeps failure paths diagnostic, and updates the ratchet/docs consistently.
|
Review metadata
ReviewI read the pinned context docs (INVARIANTS, modeling-discipline, CODING, TESTING) and the full diff. This PR is a clean extension of the established SG-2c table-authority pattern:
The SG-2c cluster framing (6+7 in one VerdictAPPROVE — narrow-scoped extension of an established, well-disciplined pattern; single authority, fail-closed, explicit scaffold with named dissolution, good test coverage. No violations observed. Exploratory observations (non-blocking)
|
|
Review metadata
Verdict: APPROVE. The diff is narrowly scoped and consistent with the pinned rubric: Targeted |
briansrls
left a comment
There was a problem hiding this comment.
Review metadata
- Provider / model:
codex/gpt-5.4 - Commit:
eeb8f47d· Trigger:schedule - Thinking:
353s wall
✅ No concerns in the + lines from these commits; the new parse_primary atom-family extraction stays table-owned, fail-closed, and consistent with the updated ratchet/docs.
Complete same-PR extraction for PrimaryAtomRow (SG-2c-7) alongside SG-2c-6: - regen_parse_tables_emit: collect rows, emit primary_atom_class/PrimaryAtomClass - checked-in parse_tables_generated.rs + regen_parse parse_generated.rs - parse_parser_body: table-owned dispatch; remove open match on atomic TokenKinds - sg2c1 authority tests: row join + exact post-prefix token set - ROADMAP + compiler-std-consolidation: 7 exempted types, cluster note Cluster name: parse_primary prefix + atom family. Made-with: Cursor
SG-2c-7 atomic tail uses TokenKind::Pipe (|), not PipeArrow (|>). Made-with: Cursor
The Pipe vs PipeArrow doc fix changed source spans; fnv1a64 for the parse surface snapshot moved (items/byte len unchanged). Unblocks v3 CI handwritten_parse_snapshot_matches_manifest. Made-with: Cursor
SG-2c-7 added `type PrimaryAtomRow` to parse_tables.dag; the #642 script must list it next to PrimaryPrefixRow and the other parse_tables row shapes. Unblocks: Compiler-std consolidation ratchet (v3 workflow). Made-with: Cursor
eeb8f47 to
f3a40aa
Compare
|
Review metadata
Verdict: APPROVE. The diff stays within the existing |
SG-2c cluster —
parse_primaryprefix + atom familyStructural lane: one parser region, two table-owned surfaces (SG-2c-6 + SG-2c-7).
Same-PR receipt
PrimaryPrefixRow(existing) +PrimaryAtomRowinparse_tables.dagregen_parse_tables_emit.rsextends forPrimaryAtomRow; runregen_parse_tablesparse_tables_generated.rschecked in (primary_atom_class/PrimaryAtomClass)parse_parser_body.txtparse_primaryusesprimary_prefix_dispatch+primary_atom_class;regen_parse→parse_generated.rssg2c1_parse_tables_authority_test.rs(token join + exact atomic set)matchon post-bump atomicTokenKinds removed; closed set is table-only (payload match remains forIntLit/StringLit/Identdata)Notes
parse_tables.dagexemption count: 7 types (ROADMAP + thesis)Closes the gap called out in review: authority prep only → full cluster pattern.