Skip to content

docs(research): land 4 Amara design notes from 2026-05-21 sandbox bundle (ANTLR survey v2 + ZetaParse + incremental compiler host + trust-gradient policy)#4550

Merged
AceHack merged 2 commits into
mainfrom
docs/research-amara-2026-05-21-design-notes-bundle-5-files-aaron-forwarded
May 21, 2026
Merged

docs(research): land 4 Amara design notes from 2026-05-21 sandbox bundle (ANTLR survey v2 + ZetaParse + incremental compiler host + trust-gradient policy)#4550
AceHack merged 2 commits into
mainfrom
docs/research-amara-2026-05-21-design-notes-bundle-5-files-aaron-forwarded

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 21, 2026

Summary

Lands the 4 canonical Amara design notes from the 2026-05-21 sandbox bundle (drop/amara-design-notes-2026-05-21-bundle.zip per Aaron 2026-05-21). Closes the dangling-reference chain from PRs #4545 + #4546 + #4547 + #4549.

What lands

File Content
docs/research/antlr-grammar-survey-2026-05-21.md v2 canonical F# compiler-fork version (16 KB); v1 superseded so skipped per Amara explicit guidance
docs/research/zetaparse-lr-glr-fsharp-compiler-fork-design-2026-05-21.md ZetaParse architecture spec (10 KB); composes with B-0687
docs/research/zeta-incremental-compiler-host-dbsp-zsets-rx-meta-ast-tags-2026-05-21.md Incremental compiler host v2 seeded-deterministic (14 KB); composes with B-0688
docs/research/trust-gradient-coordination-policy-2026-05-21.md Trust-gradient coordination policy (9 KB); composes with PR #4549 archive

V1 ANTLR skipped (substrate-honest)

Amara's earlier guidance was explicit: v2 is canonical; v1 was the F#-as-gap framing that was superseded by the v2 F#-as-compiler-owned-substrate reframe. Landing v1 alongside v2 would create the same dangling-reference / which-version-is-authoritative confusion the persona archives explicitly call out. Per .claude/rules/skill-router-as-substrate-inventory.md — extend existing substrate rather than duplicate. The v2 IS the substrate; v1 is preserved in Amara's sandbox bundle as history.

Source bundle

drop/amara-design-notes-2026-05-21-bundle.zip (extracted to /tmp/amara-bundle/; 5 files; 4 landed here; 1 skipped per supersession). The drop/ directory is gitignored per the repo's drop-folder convention (Aaron's transit-only forwarding surface; not committed).

Composes with rules

  • .claude/rules/substrate-or-it-didnt-happen.md — landing the design notes makes the cross-referenced substrate verifiable for in-repo readers
  • .claude/rules/skill-router-as-substrate-inventory.md — extend existing substrate rather than duplicate (v2 canonical; v1 superseded)
  • .claude/rules/m-acc-multi-oracle-end-user-moral-invariants.md — trust-gradient coordination policy IS the architectural pattern that prevents single-consensus-truth imposition
  • .claude/rules/dv2-data-split-discipline-activated.md — incremental compiler host IS DV2.0 hub-satellite at compile-time scope; trust-gradient policy IS partition-by-authority-rate

Composes with substrate

Test plan

  • All 4 canonical files extracted from drop/amara-design-notes-2026-05-21-bundle.zip
  • v1 ANTLR survey skipped per supersession (Amara explicit guidance + persona archive table)
  • Each file at its target path per the persona archive's "5 sandbox docs ready" table
  • Trust-gradient file renamed from trust-gradient-consensus-decision-table-2026-05-21.md to trust-gradient-coordination-policy-2026-05-21.md per Amara's final reframe ("not consensus hierarchy, coordination policy")
  • Branch landed off latest main (69481098 base)

…dle — ANTLR grammar survey (v2 canonical F# compiler-fork) + ZetaParse LR/GLR design + Zeta incremental compiler host seeded-deterministic + trust-gradient coordination policy; v1 ANTLR superseded so skipped; closes dangling refs from PR #4545+#4546+#4547+#4549
Copilot AI review requested due to automatic review settings May 21, 2026 16:13
@AceHack AceHack enabled auto-merge (squash) May 21, 2026 16:13
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b61f2aee20

ℹ️ 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".

Comment thread docs/research/trust-gradient-coordination-policy-2026-05-21.md Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Lands four new canonical research/design notes under docs/research/ (ANTLR survey v2 framing, ZetaParse design, incremental compiler host design, and trust-gradient coordination policy) to make previously-referenced sandbox substrate verifiable in-repo and close a dangling-reference chain from earlier PRs.

Changes:

  • Added ANTLR grammar ecosystem survey + Phase 2 PoC recommendation for B-0685.
  • Added ZetaParse LR/GLR grammar-substrate design note.
  • Added incremental compiler host (DBSP/Z-sets + Rx meta-tags + seeded determinism) design note and trust-gradient coordination policy note.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
docs/research/antlr-grammar-survey-2026-05-21.md Phase 1 ANTLR grammar survey + depend/adapt/author recommendations + Phase 2 PoC guidance
docs/research/zetaparse-lr-glr-fsharp-compiler-fork-design-2026-05-21.md ZetaParse architecture/design note for an F#-native LR/GLR grammar substrate with ANTLR-compatible import
docs/research/zeta-incremental-compiler-host-dbsp-zsets-rx-meta-ast-tags-2026-05-21.md Incremental compiler host design note (compiler DB as Z-sets, Rx meta-tags, seeded determinism, retraction-aware generators)
docs/research/trust-gradient-coordination-policy-2026-05-21.md Trust-gradient coordination/consensus escalation model and decision table
Comments suppressed due to low confidence (2)

docs/research/zeta-incremental-compiler-host-dbsp-zsets-rx-meta-ast-tags-2026-05-21.md:497

  • This section labels the incremental compiler host backlog row as B-0687 and depends on “proposed B-0686”. In the repo backlog, B-0687 is ZetaParse and the incremental compiler host is B-0688, with ZetaParse already assigned to B-0687. Please update the IDs/dependencies here to match the canonical backlog rows so cross-references stay consistent.
Proposed backlog row:

**B-0687 — Zeta Incremental Compiler Host: DBSP/Z-set incremental recompiles with Rx meta-AST tags**

Depends on:

- B-0685 — ANTLR grammar survey
- proposed B-0686 — ZetaParse LR/GLR grammar substrate
- B-0668 — compositional DBSP frame architecture

docs/research/zeta-incremental-compiler-host-dbsp-zsets-rx-meta-ast-tags-2026-05-21.md:509

  • In “Initial repo targets”, the doc path is listed as docs/research/zeta-incremental-compiler-host-2026-05-21.md, but this PR adds docs/research/zeta-incremental-compiler-host-dbsp-zsets-rx-meta-ast-tags-2026-05-21.md. Please update the referenced doc path here so it doesn’t become a dangling/non-existent file reference.
```text
src/Zeta.CompilerDb/
src/Zeta.Parse/
src/Zeta.CompilerHost/
tools/codegen/zetaparse/
tests/Zeta.CompilerDb.Tests/
docs/research/zeta-incremental-compiler-host-2026-05-21.md
</details>

Comment thread docs/research/zetaparse-lr-glr-fsharp-compiler-fork-design-2026-05-21.md Outdated
Comment thread docs/research/trust-gradient-coordination-policy-2026-05-21.md Outdated
…list blank-line) + MD012 (double-blank-lines) + thread fixes (H1 'Trust-Gradient Coordination Policy' matches filename; B-0686 references corrected to B-0687/B-0688) per CI fails + Codex+Copilot threads
@AceHack AceHack merged commit d7ff088 into main May 21, 2026
26 checks passed
@AceHack AceHack deleted the docs/research-amara-2026-05-21-design-notes-bundle-5-files-aaron-forwarded branch May 21, 2026 16:41
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 16aed7bfa5

ℹ️ 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".


Proposed backlog row:

**B-0687 — Zeta Incremental Compiler Host: DBSP/Z-set incremental recompiles with Rx meta-AST tags**
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the correct backlog ID for incremental compiler host

This line labels the incremental compiler host proposal as B-0687, but the authoritative backlog assigns that work to B-0688 while B-0687 is ZetaParse (docs/BACKLOG.md lines 655-656). Keeping the wrong ID here will mis-route cross-references and dependency tracking for follow-up work, especially where tooling or reviewers key off backlog IDs.

Useful? React with 👍 / 👎.

src/Zeta.CompilerHost/
tools/codegen/zetaparse/
tests/Zeta.CompilerDb.Tests/
docs/research/zeta-incremental-compiler-host-2026-05-21.md
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reference the actual landed research filename

The repo-target list points to docs/research/zeta-incremental-compiler-host-2026-05-21.md, but that file is not present in this commit; the landed artifact includes the -dbsp-zsets-rx-meta-ast-tags- segment in its filename. This broken path undermines the document’s own “where this lives” traceability and sends readers/automation to a non-existent artifact.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants