Skip to content

[bench] comments: trim change-narration, dedupe rationale, add graphify docs - #28

Merged
dburks-svg merged 2 commits into
mainfrom
bench/comment-trim
Aug 7, 2026
Merged

[bench] comments: trim change-narration, dedupe rationale, add graphify docs#28
dburks-svg merged 2 commits into
mainfrom
bench/comment-trim

Conversation

@dburks-svg

@dburks-svg dburks-svg commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

Two commits:

  1. CLAUDE.md: new Code Navigation section documenting the graphify graph-first workflow (query before grep, refresh with --update, do not use the ungoverned graphify claude install write path).
  2. Comment trim across ledger/chain.py, utils/api.py, pipeline/runner.py, pipeline/constitution.py: removes reviewer-addressed change-narration, deduplicates rationale told in multiple places down to one authoritative telling plus pointers, and drops restatements of CLAUDE.md. Net 46 comment lines removed; every hazard-documenting comment kept.

Why

Prepping the repo for public readers: change-narration ("behavior is unchanged", tombstones for deleted functions) only means something to someone who saw the original diff, and duplicated rationale is a drift risk in files that are fed to the pipeline as evidence. The audit proved the risk is real: append_entry's docstring still claimed it updates ledger-meta.json, which stopped being true when the legacy segment froze. Fixed here.

Verification

  • All four trimmed files are AST-identical to the previous commit with docstrings stripped (zero logic change, verified mechanically).
  • 187 passed, 2 skipped across the 11 test files covering the touched modules.
  • python -m cli verify: chain intact, meta anchor verified.
  • Every edit adjudicated by the pipeline (all PASS); receipts included, among them one VETO on a scratchpad helper script that was rewritten and re-adjudicated.

dburks-svg and others added 2 commits August 6, 2026 23:29
Records the graph-first workflow for structural questions: query the
graphify-out/ knowledge graph via query/path/explain before exploratory
grep, read cited files before editing, refresh with --update after
commits. Forbids `graphify claude install` here since it writes
CLAUDE.md directly, bypassing governance. Includes the governance
receipts for the edit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzAGxRQq2ts2MGciKc8btC
A comment audit found three removable categories concentrated in
chain.py, api.py, runner.py, and constitution.py: narration addressed
to a past reviewer ("behavior is unchanged", "NOT a rename", a
tombstone for a deleted function), the same rationale told in several
places (the frozen-array story four times in chain.py, the soft-
dependency story twice in api.py), and restatements of CLAUDE.md or
other modules. Each rationale now has one authoritative telling with
pointers elsewhere; every hazard-documenting comment stays.

Logic is provably untouched: all four files are AST-identical to the
previous commit with docstrings stripped. The pass also corrected a
stale claim in append_entry's docstring, which still said the function
updates ledger-meta.json; that stopped being true when the legacy
segment was frozen.

Includes the governance receipts for these edits, among them one VETO
on a scratchpad audit script whose except block swallowed errors,
rewritten and re-adjudicated as PASS.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzAGxRQq2ts2MGciKc8btC
@dburks-svg
dburks-svg merged commit 86507ea into main Aug 7, 2026
6 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