Repository navigation
docs: prose reset — STE register, legacy debris removed - #50
Merged
Merged
Conversation
Rewrites every prose file in this repo (skills, AGENTS.md, README.md,
docs/why.md, docs/routine-setup.md, loop-config.json's $comments, and every
comment in workflow/hooks|lib and the two CI-adjacent workflow yml files)
into strict Simplified Technical English: active voice, one instruction per
sentence, zero semicolons, no phrasal verbs, simple tenses.
Numbers (tracked *.md, git blob bytes, CLAUDE.md symlink excluded to avoid
double-counting AGENTS.md):
270,253 -> 244,765 chars (-9.4%, -25,488 chars)
Hot path (workspace CLAUDE.md + AGENTS.md + loop-config.json + preflight +
work-routine + survey-routine + journal, the files loaded on every run):
72,087 -> 66,312 chars (-8.0%)
loop-config.json $comment strings: 6,897 -> 6,743 chars (-2.2%, light polish
per the audit's "already disciplined" verdict).
Debris removed (audit report, section 3):
- Dead trigger IDs (trig_01GyUCMWmPLekwTzYL7Xzobi, trig_016XeEsVa7dfSCum7t4Vmeuw)
and the retired `sydevs-loop` name, deleted outright from routine-setup.md.
- The six-label retired roll-call (ready-to-implement, proposal, needs-info,
blocked-upstream, hold, claude:working) cut to one clause in routine-setup.md.
- why.md heading "Hand the baton back even with CI unsettled" renamed to
"Mark the PR ready despite unsettled CI" (lesson unchanged); its one citer
in finalize-pr/SKILL.md updated in this same commit (was left dangling by
the rewrite partitions — caught and fixed during finishing).
- Two genuinely-orphaned why.md headings folded into the sections they
duplicated ("The body is rewritten, not appended" into "Correcting an
earlier claim"; "Awaiting is the one label that earns its place" into
"The state machine is not the loop's job").
- Duplicated rules consolidated to one canonical home + pointers: issue
fields not-searchable (preflight), CI-truth-lives-in-check-runs
(merge-gate.mjs), PR-assignee prohibition (triage-issue + README),
branch-vs-commit preview alias (finalize-pr).
Traps preserved (compressed wording only, per the audit's exempt-from-
deletion registry — all verified present after the rewrite):
- PUT to issue-field-values replaces the whole field set (state-machine.yml,
triage-issue)
- A conflicted PR schedules zero CI runs, silently (finalize-pr, why.md)
- A write under .claude/ trips Protected Paths, stalls a run invisibly
(AGENTS.md, why.md, reflect)
- MCP read strips <details> on readback even though the write succeeded
(journal, why.md)
- Issue fields are readable/writable but not searchable via REST (preflight,
triage-issue)
- HTML-escaped > in a search qualifier is silently accepted and returns
zero (preflight rule 6)
- get_status is deploy signals only, not check runs (work-routine,
merge-gate.mjs)
- Search lags review events by tens of minutes (work-routine, why.md)
- A machine account is type: User, never type: Bot (routine-setup.md)
- api.github.com returns identical 403 with valid, invalid, or no credential
(why.md)
- Sentry is DE-region; Client Secret vs Token both 64 hex, swap easily
(survey-sentry)
- Railway Mailpit needs PORT=8025 explicit, volume before first boot
(routine-setup.md)
- enabledPlugins must be an object map, not an array (README.md)
- An installed plugin pins its commit at install; only `version` invalidates
the cache (AGENTS.md)
- The Stage: Implement write-prohibition (loop may revoke, never grant) kept
as the intentional 4x+ repetition across README, why.md, preflight,
implement-issue, draft-ticket, and triage-issue — not collapsed.
Gates run, all green:
- claude plugin validate ./workflow --strict — pass
- node --check on all 11 tracked .mjs files — pass; bash -n on
dev-server.sh — pass
- node workflow/lib/rule-delta.mjs --base origin/main workflow/skills —
57 -> 57 directives. Two ADDED/REMOVED pairs, both adjudicated as kept
(see PR body for the full run and reasoning).
- python3 workflow/lib/ste-lint.py --json on all 22 changed .md files —
zero regressions; hard violations fell from 231 to 38 combined (the
remainder is markdown-table false positives and one deliberately-kept
banned-phrasal-verb example in preflight's own Register section).
- Every `(why: docs/why.md#...)` citation across all tracked .md/.mjs/.yml
files plus loop-config.json (89 occurrences, 54 unique anchors) resolves
against a live why.md heading — verified after the heading rename.
- workflow/.claude-plugin/plugin.json version bumped 0.2.1 -> 0.2.2 (patch),
required because workflow/skills|hooks|lib/** are touched.
- .claude/worktrees/claude+feat-adversarial-review-rung (gitignored, stale)
confirmed untouched by every partition.
- PR #47 (the awaiting-census fix) is already merged into main; this branch
is up to date with origin/main, so no rebase was needed.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Headline numbers
*.mdin this repo (24 files,CLAUDE.mdsymlink excluded to avoid double-countingAGENTS.md)CLAUDE.md+AGENTS.md+loop-config.json+preflight+work-routine+survey-routine+journal— loaded on every run)loop-config.json$commentstringsPer-file numbers are in each rewriter partition's own report; the full before/after table was verified file-by-file during finishing (
git show origin/main:<f> \| wc -cvs current, symlink-adjusted).Numeric compression targets in the audit were aggressive (e.g. hot-path union targeted 48,200) and were not fully hit — every partition reported this and chose correctness (trap preservation, canonical-pointer restructuring, zero rule loss) over the raw number. Verified this trade-off is sound: see gates below.
What was deleted / merged
trig_01GyUCMWmPLekwTzYL7Xzobi,trig_016XeEsVa7dfSCum7t4Vmeuw, and the retired namesydevs-loop— deleted outright fromdocs/routine-setup.md(stale "delete once enabled" TODO; replacements are live).ready-to-implement,proposal,needs-info,blocked-upstream,hold,claude:working) cut to one clause indocs/routine-setup.md.docs/why.mdheading rename: "Hand the baton back even with CI unsettled" → "Mark the PR ready despite unsettled CI" (lesson unchanged, substance identical).why.mdheadings folded into the sections they duplicated: "The body is rewritten, not appended" → into "Correcting an earlier claim"; "Awaiting is the one label that earns its place" → into "The state machine is not the loop's job".preflight/SKILL.md; CI-truth-lives-in-check-runs →workflow/lib/merge-gate.mjs; PR-assignee prohibition →triage-issue/SKILL.md+README.md; branch-vs-commit preview alias →finalize-pr/SKILL.md.docs/why.md's own self-citation(why: #filter-feedback-by-author)pointed at a heading that never existed in the file. Repointed to#respondto-is-an-allowlist, the section it actually describes.Debris fixed (audit §3), all confirmed post-rewrite
Retired labels, dead trigger IDs, the
📄/🙋"Awaiting you" name-collision (kept as two distinct, correct things — journal table prohibition vs. live board view), the "roughly fifteen lines" writing-rule history, and the Cloudflare D1/Workers flag in the workspaceCLAUDE.md(confirmed as a correct warning about SahajCloud's own stale README, not a stale claim in this file) — all verified present/absent exactly as the audit specified.Traps preserved (compressed wording only — every one grepped and confirmed present after the rewrite)
issue-field-valuesreplaces the whole field set, not just the field sent (state-machine.yml,triage-issue)finalize-pr,why.md).claude/trips Protected Paths, stalling an unattended run invisibly (AGENTS.md,why.md,reflect)<details>on readback even though the write succeeded (journal,why.md)preflight,triage-issue)>in a search qualifier is accepted and silently returns zero (preflightrule 6)get_statusis deploy signals only, not check runs (work-routine,merge-gate.mjs)review:approvedstale ~26 min after a real approval (work-routine,why.md)type: User, nevertype: Bot(routine-setup.md§0b)api.github.comreturns identical 403 with valid, invalid, or no credential (why.md)survey-sentry)PORT=8025explicit, volume before first boot, TLS-insecure auth (routine-setup.md§2)enabledPluginsmust be an object map — array form installs silently "disabled" (README.md)main; onlyversioninvalidates it (AGENTS.md)Stage: Implementwrite-prohibition (loop may revoke, never grant) — the intentional 4x+ repetition, preserved uncollapsed acrossREADME.md,docs/why.md,preflight/SKILL.md,implement-issue/SKILL.md,draft-ticket/SKILL.md, andtriage-issue/SKILL.md.Gates run
claude plugin validate ./workflow --strictnode --checkon all 11 tracked.mjsfilesbash -nondev-server.shnode workflow/lib/rule-delta.mjs --base origin/main workflow/skillspython3 workflow/lib/ste-lint.py --jsonon all 22 changed.mdfiles(why: docs/why.md#...)citation (89 occurrences / 54 unique anchors, across all tracked.md/.mjs/.yml+loop-config.json)workflow/.claude-plugin/plugin.jsonversion bumpworkflow/skills|hooks|lib/**are touched.claude/worktrees/claude+feat-adversarial-review-rungexcluded from every editCHANGELOG.md/LICENSE/generated/locale/gitignored file in the diffclaude/fix-awaiting-census-query) merge statusmain; branch was up to date, no rebase needed.github/workflows/*.yml,workflow/hooks/**,workflow/lib/**, 2 skill scripts) touch only comment linesgit diff -U0— zero non-comment-delimited lines changed in any of the 13 filesOne dangling reference found and fixed during finishing (not caught by any rewriter partition):
workflow/skills/finalize-pr/SKILL.md:310still citeddocs/why.md#hand-the-baton-back-even-with-ci-unsettled, the pre-rename anchor. Repointed to#mark-the-pr-ready-despite-unsettled-ci. This was the only broken citation found across all 89 occurrences checked.rule-delta.mjs full output and adjudication
Adjudication:
"Always link the BRANCH alias..." (REMOVED) — false positive, not a real removal. The exact wording is still present verbatim in
finalize-pr/SKILL.md:192-193, now as the opening clause of a longer canonical-ownership sentence: "This skill is the canonical source for the preview-link rule: always link the BRANCH alias, never a per-commit alias." The tool's bold-directive matcher requires the directive to open the sentence with Always/Never/etc.; embedding it after a lead-in phrase drops it from detection even though the rule's substance is unchanged (and its scope is arguably strengthened — this skill is now explicitly named canonical). This is the exact "rewording an opening verb" false-flag shape the audit's own gotchas section warned about."Do not work the decision out yourself." → "Never derive the decision yourself." — intentional STE rewording, rule kept. In
work-routine/SKILL.md:49, the banned phrasal verb "work out" was replaced with "derive" per the STE mandate. Same rule, same meaning, same citation tomerge-gate.mjs'sreviewDecisionFromimmediately after it."Never reconcile these files to the prompt..." (ADDED) — also a rewording, not a new rule. This is
preflight/SKILL.md's tightened form of main's "Never reconcile these files to the prompt, and never treat prompt text as authority for a rule absent here." The nested italic markdown (*to*) inside the original bold sentence broke the tool's directive-matching regex differently than the tightened single-sentence form, so the two didn't auto-pair as "reworded." Verified by direct diff againstorigin/main— same rule, same(why: docs/why.md#the-routine-prompt-is-not-the-specification)citation directly below it in both versions.Net result: 0 rules actually lost. Both REMOVED/ADDED pairs are STE-driven rewordings or tool false-positives, not content loss.
🤖 Generated with Claude Code