Skip to content

docs(sutta-studio): close 2026-05-16 audit P1 findings#65

Merged
anantham merged 2 commits into
mainfrom
feat/opus-audit-docfixes
May 17, 2026
Merged

docs(sutta-studio): close 2026-05-16 audit P1 findings#65
anantham merged 2 commits into
mainfrom
feat/opus-audit-docfixes

Conversation

@anantham
Copy link
Copy Markdown
Owner

Summary

Closes 5 P1 findings from the 2026-05-16 Sutta Studio doc audit (doc-audit skill, code hash 11e7bb2). The P0 finding (Phase 3 caller divergence) is closed by #63.

What changed

Doc Fix
`docs/sutta-studio/GROUNDING.md` Corrected filenames in §File layout (commentarialProvider → commentarialGlossProvider, translatorBankProvider → translatorBank, removed nonexistent urlMinter.ts, added types.ts)
`docs/sutta-studio/IR.md` Replaced soft staleness warning with strong SUPERSEDED banner directing readers to authoritative sources
`docs/sutta-studio/CONSOLIDATION.md` Added Grounding to pipeline pass-order in §What does NOT change
`docs/adr/SUTTA-007-pass-prompt-runner-layer.md` Added Amendment section per CONVENTIONS.md §9 — the "should not be merged" claim was reversed by CONSOLIDATION.md
`docs/features/SUTTA_STUDIO.md` Rewrote §Compiler Service + §Key Files Reference for post-decomposition tree

Why these matter

These were all silent-misinformation traps for any agent or contributor reading the docs without first reading the recent git history. The SUTTA-007 ADR in particular was actively contradicting the merged CONSOLIDATION.md plan, which would have nudged a future agent to "preserve the two-stack architecture per ADR" — the exact opposite of the intended direction.

Deferred to follow-ups

  • P2/P3 findings: `translatorBank.ts` naming, `postPasses/syllabify.ts` GAP coverage, archived-status headers on `assembly-line-roadmap.md` and `sutta-studio-case-studies.md`, component coverage gaps in FEATURES.md
  • These benefit from being bundled with the corresponding code work (e.g. rename touches a real file; component coverage waits for the component-doc rewrite Phase 4 implies)

Test plan

🤖 Generated with Claude Code

The doc-audit skill scan of the Sutta Studio subsystem (2026-05-16, code hash
11e7bb2) surfaced one P0 (Phase 3 caller divergence — closed by PR #63) and
9 P1 findings. This PR closes 5 of those P1s. The remaining 4 are either
already addressed inline by PR #63's CONSOLIDATION.md status rewrite or are
larger structural follow-ups not appropriate to bundle here.

Fixes in this PR:

- GROUNDING.md §"File layout": corrected filenames to match reality —
  commentarialProvider → commentarialGlossProvider, translatorBankProvider →
  translatorBank, removed nonexistent urlMinter.ts (URL minting is inlined in
  services/providers/citationHelpers.ts), added types.ts entry, noted that
  translator-bank wires in separately, not via buildDefaultProviders.

- IR.md: replaced soft "staleness warning" with stronger SUPERSEDED banner.
  The 2026-03-05 verification date is 2.5 months stale; in the interim
  SUTTA-008 ratified Sense.epistemicBasis / sourceCitationIds / Provenance /
  ParallelRef / CompoundType and the grounding pass landed. New banner
  directs readers to types/suttaStudio.ts, FEATURES.md, SUTTA-008, TEXT_GRAPH.md
  rather than relying on the MVP schema as documentation.

- CONSOLIDATION.md §"What does NOT change": added Grounding step to the pass
  order. Earlier formulation omitted it because Grounding was inserted into
  the live compiler in 2026-05-14 (task #47), after CONSOLIDATION.md was
  originally drafted.

- SUTTA-007 ADR: added an Amendment section per CONVENTIONS.md §9. The
  original "should not be merged" claim was reversed by CONSOLIDATION.md,
  which merged the two stacks because operational experience showed silent
  drift at schema-contract and prompt-content boundaries. ADR is immutable,
  so the original text is preserved and the amendment explains the reversal +
  current state (both files are now shims).

- FEATURES.md §"Compiler Service" + §"Key Files Reference": rewrote to
  reflect the post-decomposition tree. The old §Compiler Service named a
  1900-line file that's been a 3-line shim since March 2026; the §Key Files
  table omitted the entire services/sutta-studio/ canonical layer + the
  grounding providers + the CONSOLIDATION/GROUNDING/SUTTA-008 docs.

Deferred to follow-up PRs:

- Quote-corner integrations of the audit's P2/P3 findings (naming
  inconsistency in grounding/translatorBank.ts, postPasses/syllabify.ts
  GAP coverage, archived-status header on assembly-line-roadmap.md and
  sutta-studio-case-studies.md, P3 component coverage gaps).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexicon-forge Ready Ready Preview, Comment May 17, 2026 2:27am

…oritative FEATURES.md

Per review feedback on PR #65: this file's own §Key Files Reference table
declared docs/sutta-studio/FEATURES.md as the authoritative architecture
doc, leaving the file the audit was editing in self-contradiction. Added
a top-of-file banner directing readers to the canonical doc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@anantham anantham merged commit a0e8757 into main May 17, 2026
4 checks passed
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.

1 participant