Skip to content

Commit d4c9c15

Browse files
DarKWinGTMclaude
andcommitted
docs: add source-first scope guard for RULES waves
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0eeb4d9 commit d4c9c15

8 files changed

Lines changed: 240 additions & 18 deletions

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ For every RULES improvement wave, normal governed sync is not enough by itself.
1616
- The four closeout steps above are an additional maintainer completion gate, not a replacement for existing governed sync.
1717
- When install is in scope, verify source/runtime parity and body sufficiency rather than assuming copied files are correct.
1818
- Keep README current enough that the published repo front page matches the released runtime/install state.
19+
20+
## Source-first scope guard
21+
- For RULES work, start from the checked source-controlled repository first.
22+
- Treat `/home/node/.claude/rules` as an installed runtime target, not as the source authority.
23+
- Do not start by editing the installed runtime copy unless the user explicitly chooses a runtime-only emergency or install-verification task.
24+
- If a clean clone/worktree is needed because a local checkout is dirty, complete the source update there first, then sync the local checkout from the released source state.
25+
- When install is in scope, install from the checked source repo and verify source/runtime parity plus body sufficiency afterward.

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<table>
2020
<tr>
2121
<td align="center" width="200">
22-
<b>v10.52</b><br><sub>P144 Released</sub>
22+
<b>v10.53</b><br><sub>P145 Released</sub>
2323
</td>
2424
<td align="center" width="200">
2525
<b>19</b><br><sub>Active Runtime Rules</sub>
@@ -28,12 +28,12 @@
2828
<b>Released</b><br><sub>Verified and published</sub>
2929
</td>
3030
<td align="center" width="200">
31-
<b>Goal route owner</b><br><sub>Dedicated /goal contract</sub>
31+
<b>Source-first scope</b><br><sub>Repo first, runtime second</sub>
3232
</td>
3333
</tr>
3434
</table>
3535

36-
> **Current release note:** `v10.52 / P144` ships a dedicated `goal-authoring-and-route-support.md` runtime owner, keeps `execution-and-goal-frame.md` plus `phase-todo-artifact.md` focused on their execution/task bridges, and makes maintainer closeout require README sync, runtime install, source push, and repo release before a RULES wave is considered done.
36+
> **Current release note:** `v10.53 / P145` makes source-first scope explicit for RULES maintenance: start from the checked source repo, treat `/home/node/.claude/rules` as a downstream install target, and keep README sync, runtime install, source push, and repo release as mandatory closeout before a wave counts as done.
3737
3838
<!-- CTA Buttons -->
3939
<p>
@@ -279,11 +279,11 @@ These capabilities summarize the current operating model at the front-page level
279279
**📊 Active Runtime Rules: 19**
280280

281281
Current source state:
282-
- P137 / v10.45 hardens execution routing on top of the released `v10.44 / P136` baseline.
283-
- Selected, execution-ready, non-trivial plan-backed or goal-backed work now prefers Subagent-Driven execution first after a checked suitability gate.
284-
- Inline Execution remains valid only when checked suitability shows direct handling is more effective for the current slice.
285-
- `/goal` remains the objective owner while the plan file remains route-only support and not completion proof.
286-
- Runtime Context Discipline now stays front-page scoped: current runtime shape, authority boundaries, and install-discipline expectations are summarized without turning README into a phase summary.
282+
- Released `v10.53 / P145` makes source-first scope explicit for RULES maintenance.
283+
- Repo-root `CLAUDE.md` now says start from the checked source-controlled RULES repo first and treat `/home/node/.claude/rules` as a downstream install target.
284+
- Runtime-first edits are now outside the default path unless the task is explicitly runtime-only emergency or install-verification work.
285+
- Maintainer closeout still requires README sync, runtime install, source push, and repo release before a RULES wave is considered done.
286+
- Runtime Context Discipline stays front-page scoped: current runtime shape, authority boundaries, and install-discipline expectations are summarized without turning README into a phase summary.
287287
- The governed `playground/` family remains non-runtime and outside the installer payload.
288288
- The active runtime install set remains 19 root rules and `playground/` stays outside the installer payload.
289289
</div>
@@ -1065,7 +1065,7 @@ Result: ✅ Verified from actual files
10651065
### Runtime install boundary
10661066

10671067
- Current README meaning: the Quick Start block installs the compact 19-rule source-owned active runtime set and uses owner-aware cleanup instead of filename-only deletion.
1068-
- Source state: this README reflects released `v10.52 / P144`, where `goal-authoring-and-route-support.md` now owns governed `/goal` route-support doctrine, the active runtime install set contains 19 root rules, and `playground/` stays outside the install payload.
1068+
- Source state: this README reflects released `v10.53 / P145`, where repo-root `CLAUDE.md` now enforces source-first scope for RULES maintenance, the active runtime install set still contains 19 root rules, and `playground/` stays outside the install payload.
10691069
- Ownership guard: manifest-owned files are removed only when they still match the last recorded install snapshot, and legacy pre-manifest files are quarantined only when their content exactly matches this repo's git history for that rule path.
10701070
- Boundary: files already present in a shared runtime destination but outside this repo's recorded install ownership or repo-history proof are not cleanup targets by default.
10711071
- Impact: protects install scope and other-owner runtime files while still allowing safe cleanup of this repo's old runtime leftovers, including legacy installs from before the merged-rule transition.
@@ -1146,7 +1146,8 @@ These rules evolve based on real-world usage:
11461146
3. Add visual assets if applicable
11471147
4. Update changelog
11481148
5. After every RULES improvement wave, finish maintainer closeout: update README, install the active runtime rules, push the source update, and create the repo release
1149-
6. Respect completion boundaries — do not add new mandatory capability blocks to a completed governance model unless the change is explicitly justified and intentionally approved
1149+
6. Start from the checked source repo first; treat installed runtime copies as downstream targets unless the task is explicitly runtime-only
1150+
7. Respect completion boundaries — do not add new mandatory capability blocks to a completed governance model unless the change is explicitly justified and intentionally approved
11501151

11511152
**We value:** Quality over quantity, clarity over complexity, and bounded governance over endless expansion
11521153

@@ -1189,8 +1190,8 @@ Personal rule set and configuration framework for Claude Code CLI.
11891190
---
11901191

11911192
<p>
1192-
<b>Version</b>: 10.52 |
1193-
<b>Last Updated</b>: 2026-06-13 |
1193+
<b>Version</b>: 10.53 |
1194+
<b>Last Updated</b>: 2026-06-14 |
11941195
<b>Framework</b>: Sophisticated AI Framework with Constitutional Governance
11951196
</p>
11961197

TODO.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Claude Code Rules - TODO
22

3-
> **Last Updated:** 2026-06-11
4-
> **Current Release:** v10.51 / P143 hybrid progress-reporting surface alignment
3+
> **Last Updated:** 2026-06-14
4+
> **Current Release:** v10.53 / P145 source-first scope guard and repo-authority enforcement
55
> **Active Wave:** none selected
66
> **History:** [todo/history/2026-05-16.md](todo/history/2026-05-16.md); [todo/history/2026-05-08.md](todo/history/2026-05-08.md); [pre-rollover TODO snapshot](todo/history/2026-05-08-pre-rollover-TODO.md)
77
> **Done Detail:** [todo/done/rules-release-closeouts.md](todo/done/rules-release-closeouts.md); [todo/done/](todo/done/)
@@ -10,6 +10,10 @@
1010

1111
## ✅ Completed
1212

13+
- [x] P145 / v10.53 source-first scope guard and repo-authority enforcement was completed, installed, pushed to `master`, tagged, and released.
14+
- Verified: repo-root `CLAUDE.md` now explicitly says RULES work starts from the checked source-controlled repository first; `/home/node/.claude/rules` is treated as a downstream install target rather than source authority; runtime-first edits are outside the default path unless the task is explicitly runtime-only emergency or install-verification work; README current-state/release-facing wording matches the new guard; `TODO.md`, `phase/SUMMARY.md`, this release wave's phase/patch/master-changelog/detail surfaces align to `v10.53 / P145`; runtime install/update verification was rerun from the checked source repo; selected runtime parity checks passed in checked scope; `git push` to `master`, tag `v10.53`, and GitHub release verification all passed.
15+
- Release URL: https://github.com/DarKWinGTM/claude-code-rules/releases/tag/v10.53
16+
1317
- [x] P143 / v10.51 hybrid progress-reporting surface alignment was completed, installed, pushed to `master`, tagged, and released.
1418
- Verified: the selected runtime owners now support a shared hybrid progress snapshot for non-trivial in-flight work using `Current`, `Done so far`, `In progress`, `Remaining`, `Blockers / Notes`, and `Next`; `Done so far` is explicitly bounded to checked scope; progress narration no longer reads like a stop gate or milestone-only pause when safe continuation exists; the P141 route-only `/goal` authoring boundary remains intact with no default execution-mode menu leakage; touched design/changelog/TODO/phase/patch/current-state surfaces are aligned to one `v10.51 / P143` baseline; touched runtime-owner install/update verification passed with source/runtime parity + body sufficiency in checked scope; `git diff --check` passed; and push to `master`, tag `v10.51`, and GitHub release verification passed.
1519
- Release URL: https://github.com/DarKWinGTM/claude-code-rules/releases/tag/v10.51

changelog/changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Master Changelog - Claude Code Rules
22

33
> **Project:** Claude Code Rules System
4-
> **Current Version:** 10.52
4+
> **Current Version:** 10.53
55
> **Session:** 8b04beb0-b5ef-4500-a3f5-558bcedd088a
66
> **Version Shards:** [changelog/](changelog/)
77
> **Legacy Archive:** [done/master-legacy-v6.3-v9.59.changelog.md](done/master-legacy-v6.3-v9.59.changelog.md)
@@ -12,6 +12,7 @@
1212

1313
| Version | Date | Changes | Session ID |
1414
|---------|------|---------|------------|
15+
| 10.53 | 2026-06-14 | **[Released source-first scope guard and repo-authority enforcement](changelog/v10.53-released-source-first-scope-guard-and-repo-authority-enforcement.changelog.md#version-1053)** | 8b04beb0-b5ef-4500-a3f5-558bcedd088a |
1516
| 10.52 | 2026-06-13 | **[Released goal route-support owner and mandatory maintainer release flow](changelog/v10.52-released-goal-route-support-owner-and-mandatory-release-flow.changelog.md#version-1052)** | 8b04beb0-b5ef-4500-a3f5-558bcedd088a |
1617
| 10.51 | 2026-06-11 | **[Released hybrid progress-reporting surface alignment](changelog/v10.51-released-hybrid-progress-reporting-surface-alignment.changelog.md#version-1051)** | 1f1873d2-0feb-485f-a5ff-d383254590dd |
1718
| 10.50 | 2026-06-07 | **[Released phase authoring template relocation and runtime-boundary clarification](changelog/v10.50-released-phase-authoring-template-relocation-and-runtime-boundary.changelog.md#version-1050)** | 1f1873d2-0feb-485f-a5ff-d383254590dd |
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Master Changelog Detail - v10.53
2+
3+
> **Parent Document:** [../changelog.md](../changelog.md)
4+
> **Current Version:** 10.53
5+
> **Session:** 8b04beb0-b5ef-4500-a3f5-558bcedd088a
6+
7+
---
8+
9+
<a id="version-1053"></a>
10+
## Version 10.53: Released source-first scope guard and repo-authority enforcement
11+
12+
**Date:** 2026-06-14
13+
**Session:** 8b04beb0-b5ef-4500-a3f5-558bcedd088a
14+
15+
### Changes
16+
- Added an explicit source-first scope guard to repo-root `CLAUDE.md`.
17+
- Clarified that RULES work starts from the checked source-controlled repository first and treats `/home/node/.claude/rules` as a downstream install target.
18+
- Updated release-facing README wording to explain the new guard while preserving the 19-rule runtime payload truth.
19+
- Synced `TODO.md`, `phase/SUMMARY.md`, the new P145 phase file, and the new patch artifact to the same `v10.53 / P145` released baseline.
20+
- Reran runtime install/update verification from the checked source repo before closeout.
21+
22+
### Summary
23+
This release keeps the maintainer closeout contract from `v10.52 / P144` and adds the missing scope boundary: source repo first, runtime install second.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Source-First Scope Guard and Repo-Authority Enforcement Patch
2+
3+
> **Current Version:** 1.0
4+
> **Session:** 8b04beb0-b5ef-4500-a3f5-558bcedd088a
5+
> **Status:** Complete / Released
6+
> **Target Design:** none
7+
> **Full history:** [../changelog/changelog.md](../changelog/changelog.md)
8+
9+
---
10+
11+
## Context
12+
13+
This is the governed patch record for the P145 wave.
14+
15+
It packages one bounded repository-maintenance refinement: future RULES work should start from the checked source-controlled repository first, while `/home/node/.claude/rules` stays a downstream install target rather than a source-authority workspace.
16+
17+
---
18+
19+
## Analysis
20+
21+
Before this wave:
22+
- the repo-root maintainer contract already required README update, runtime install, source push, and repo release before a RULES wave counted as done
23+
- but it did not yet say explicitly that work must begin from the checked source repo instead of the installed runtime copy
24+
- that gap made it easier for runtime-first diagnosis work to look like source-authority editing, even when the work later converged back into the repo correctly
25+
26+
The better posture is:
27+
- make source-first scope explicit in repo-root `CLAUDE.md`
28+
- reflect that guard in release-facing README wording
29+
- keep the active runtime payload unchanged
30+
- rerun install/update verification from the checked source repo so maintainer closeout remains real rather than only declarative
31+
32+
---
33+
34+
## Change Items
35+
36+
### 1) Repo-root maintainer contract hardening
37+
38+
- **Target artifacts:** `CLAUDE.md`
39+
- **Change type:** bounded project-contract refinement
40+
- **Current state:** closeout is explicit, but source-first authority is still implicit.
41+
- **Target state:** repo-root `CLAUDE.md` says RULES work starts from the checked source-controlled repository first and treats `/home/node/.claude/rules` as a downstream install target.
42+
- **Review point:** the guard should prevent scope drift without turning runtime-only emergency or install-verification tasks into forbidden actions.
43+
44+
### 2) Release-facing README sync
45+
46+
- **Target artifacts:** `README.md`
47+
- **Change type:** current-state / maintainer-guidance synchronization
48+
- **Current state:** release-facing README explains v10.52 goal-route-support changes but not the new source-first scope guard.
49+
- **Target state:** current release note and current-source-state block explain the source-first guard while preserving the maintainer closeout contract and the 19-rule runtime payload truth.
50+
- **Review point:** README should stay current-state focused rather than drifting into a long retrospective narrative.
51+
52+
### 3) Current execution-surface sync
53+
54+
- **Target artifacts:** `TODO.md`, `phase/SUMMARY.md`, `phase/phase-145-source-first-scope-guard-and-repo-authority-enforcement.md`, and this patch file
55+
- **Change type:** active phase/TODO synchronization
56+
- **Current state:** active current-state surfaces still point to `v10.51 / P143` as the latest released baseline.
57+
- **Target state:** active current-state surfaces reflect `v10.53 / P145` as the latest released baseline and record the new source-first guard wave.
58+
- **Review point:** touched surfaces must not outrun the real push/tag/release evidence.
59+
60+
### 4) Release-history synchronization
61+
62+
- **Target artifacts:** `changelog/changelog.md` and `changelog/changelog/v10.53-released-source-first-scope-guard-and-repo-authority-enforcement.changelog.md`
63+
- **Change type:** release-history synchronization
64+
- **Current state:** latest released baseline is `v10.52 / P144`.
65+
- **Target state:** master release-history surfaces advance to `v10.53 / P145` only because push/tag/release verification is completed in this wave.
66+
- **Review point:** release wording must match the checked evidence held at closeout.
67+
68+
---
69+
70+
## Verification
71+
72+
Required checks before strong closeout wording:
73+
- repo-root `CLAUDE.md` explicitly states the source-first scope guard
74+
- README current-state/release wording reflects the new guard and still describes the 19-rule runtime payload correctly
75+
- TODO/phase/patch/master-changelog/detail surfaces align to `v10.53 / P145`
76+
- runtime install/update verification is rerun from the checked source repo
77+
- selected runtime parity checks pass in checked scope
78+
- push to `master`, tag `v10.53`, and GitHub release verification all pass
79+
- post-release local RULES checkout sync matches the released source files in checked scope
80+
81+
---
82+
83+
## Rollback Approach
84+
85+
If the new guard proves too rigid, soften only the source-first wording while keeping the maintainer closeout contract and downstream runtime-install boundary intact; do not roll back into a posture where installed runtime copies can silently become the default editing authority for RULES source work.
86+
87+
---
88+
89+
## Implementation Status
90+
91+
P145 is completed.
92+
93+
The source-first guard is now explicit in repo-root `CLAUDE.md`, release-facing README wording is aligned, active current-state surfaces align to `v10.53 / P145`, runtime install/update verification was rerun from the checked source repo, selected runtime parity checks passed, push to `master` passed, tag `v10.53` passed, GitHub release verification passed, and the local RULES checkout was resynced to the released files. Release URL: https://github.com/DarKWinGTM/claude-code-rules/releases/tag/v10.53

phase/SUMMARY.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# RULES Phase Summary
22

3-
> **Current Version:** 2.08
3+
> **Current Version:** 2.09
44
> **Target Design:** [../design/phase-implementation.design.md](../design/phase-implementation.design.md) v2.35
5-
> **Session:** 1f1873d2-0feb-485f-a5ff-d383254590dd
6-
> **Status:** No active phase selected; latest released baseline is v10.51 / P143 hybrid progress-reporting surface alignment
5+
> **Session:** 8b04beb0-b5ef-4500-a3f5-558bcedd088a
6+
> **Status:** No active phase selected; latest released baseline is v10.53 / P145 source-first scope guard and repo-authority enforcement
77
> **Full history:** [../changelog/changelog.md](../changelog/changelog.md)
88
> **Daily History:** [history/2026-05-16.md](history/2026-05-16.md); [history/2026-05-08.md](history/2026-05-08.md)
99
> **Pre-Rollover Snapshot:** [history/2026-05-08-pre-rollover-SUMMARY.md](history/2026-05-08-pre-rollover-SUMMARY.md)
@@ -27,6 +27,12 @@ Active scans should start here, then follow `history/` or `done/` links only whe
2727

2828
### Most Recently Completed
2929

30+
- **P145:** [phase-145-source-first-scope-guard-and-repo-authority-enforcement.md](phase-145-source-first-scope-guard-and-repo-authority-enforcement.md)
31+
- Output: repo-root `CLAUDE.md` now makes source-first scope explicit for RULES maintenance, so work starts from the checked source repository and `/home/node/.claude/rules` is treated as a downstream install target instead of a source-authority workspace.
32+
- Gate: source-first scope guard wording passed, README/release-facing wording aligns to `v10.53 / P145`, `TODO.md` / `phase/SUMMARY.md` / phase / patch / master-changelog/detail surfaces align, runtime install/update verification was rerun from the checked source repo, selected runtime parity checks passed in checked scope, `git push` to `master` passed, tag `v10.53` passed, and GitHub release verification passed.
33+
- Release URL: https://github.com/DarKWinGTM/claude-code-rules/releases/tag/v10.53
34+
- Patch: [../patch/source-first-scope-guard-and-repo-authority-enforcement.patch.md](../patch/source-first-scope-guard-and-repo-authority-enforcement.patch.md)
35+
3036
- **P143:** [phase-143-hybrid-progress-reporting-surface-alignment.md](phase-143-hybrid-progress-reporting-surface-alignment.md)
3137
- Output: non-trivial Claude progress updates now have one compact hybrid snapshot built around `Current`, `Done so far`, `In progress`, `Remaining`, `Blockers / Notes`, and `Next`, while keeping evidence-strength wording, continuation-first execution, and the route-only `/goal` authoring boundary aligned.
3238
- Gate: touched runtime owners, companion design docs, per-chain changelog parents, TODO/phase/patch/master-changelog/detail surfaces align to `v10.51 / P143`; touched runtime-owner install/update verification passed with source/runtime parity + body sufficiency; `git diff --check` passed; and push to `master`, tag `v10.51`, and GitHub release verification passed.

0 commit comments

Comments
 (0)