Skip to content

chore(config): workflow.json holds values, not rules - #33

Merged
Ardnived merged 1 commit into
mainfrom
claude/workflow-json-values-only
Sep 2, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/workflow-json-values-only

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The same audit as loop-config.json, applied to all five .claude/workflow.json files.

Every key was checked against what actually reads it:

Read by Keys
Hook code packageManager, generatedFiles
Skills leanGate, securityReview, prAllowlistGlobs, devServer, worktreeSetup, contractStep, deployTarget
Nothing every *Note key

The duplication had already gone wrong

approved was renamed to ready-to-implement some time ago. Four repos' prAllowlistNote were updated; SahajCloud's was not, so it has been describing a label that no longer exists:

"Where a TICKETLESS PR may be opened without an approved issue … Ticket work is gated on the approved label instead"

That is the entire argument for values-only, sitting in one key. The rule it restates is in implement-issue/SKILL.md, which was correct throughout.

AGENTS.md also carried "selfModificationNote states the same rule; keep the two in agreement if you change either" — an instruction to maintain a copy by hand, in the repo whose whole failure history is copies drifting apart.

Dropped

Key Where the content already lives
prAllowlistNote (×5) implement-issue/SKILL.md
packageManagerNote AGENTS.md § No package manager
selfModificationNote AGENTS.md § Merging to main IS the deploy
journalNote AGENTS.md § The journal lives here too
worktreeSetupNote SahajCloud/docs/rules/testing-reqs.md

Each was verified present in its new home before deletion. claude-workflow's securityReview.rationale — three sentences after #32 — is back to one line.

Kept, deliberately

worktreeNotes. One line of per-repo operational fact (which env file a fresh worktree needs), qualifying the worktreeSetup value it sits beside, and undocumented anywhere else in two of the three repos that have it. A bare value that is ambiguous on sight is exactly what a one-line comment is for — the standard is one line, not zero.

Same for leanGate.contents, securityReview.rationale, contractStep.description/onExit124, and generatedFiles[].reason (which is the denial message the hook shows, so it is a value, not prose).

Sizes

SahajCloud            3399 → 2700
SahajAtlasWeb         2695 → 2387
WeMeditateWeb         2281 → 1978
SahajAtlasWordpress   2300 → 1992
claude-workflow       3074 → 1176

The four product repos ship in their own PRs; this one carries claude-workflow plus the AGENTS.md fix.

Verification

  • All five parse as JSON.
  • claude plugin validate ./workflow --strict passes.
  • No dangling reference to any dropped key anywhere in the workspace.
  • The prAllowlistGlobs rule confirmed still stated in implement-issue/SKILL.md:47.

Preview

No preview deploy for this repo.

🤖 Generated with Claude Code

Same audit as loop-config.json, applied to the five `.claude/workflow.json`
files. Every key was checked against what actually reads it: the hooks read
`packageManager` and `generatedFiles`; the skills read `leanGate`,
`securityReview`, `prAllowlistGlobs`, `devServer`, `worktreeSetup`,
`contractStep` and `deployTarget`. Nothing read any `*Note` key.

Dropped, all five repos: `prAllowlistNote` — a restatement of a rule
`implement-issue` already carries. Plus, in claude-workflow, `packageManagerNote`,
`selfModificationNote` and `journalNote`, each of which duplicates a section of
AGENTS.md, and in SahajCloud `worktreeSetupNote`, whose story is in
`docs/rules/testing-reqs.md`.

**The duplication had already gone wrong.** `approved` was renamed to
`ready-to-implement` some time ago; four repos' `prAllowlistNote` were updated
and SahajCloud's was not, so it has been describing a label that does not exist.
That is the whole argument for values-only, in one key.

AGENTS.md carried "`selfModificationNote` states the same rule; keep the two in
agreement if you change either" — an instruction to maintain a copy by hand, in
the repo whose failure history is copies drifting. The copy is gone.

`worktreeNotes` stays. It is one line of per-repo operational fact (which env
file a fresh worktree needs), it qualifies the `worktreeSetup` value it sits
beside, and two of the three repos document it nowhere else — a bare value that
is ambiguous on sight is exactly what a one-line comment is for.

claude-workflow's securityReview rationale, three sentences after #32, is back to
one.

Co-Authored-By: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajCloud that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote` and `worktreeSetupNote`, and rewrites the top-level
$comment, which named `.claude/docs/workflow-parity.md` — a file that no longer
exists.

**This repo's `prAllowlistNote` was stale.** `approved` was renamed to
`ready-to-implement` some time ago; the other four repos' copies were updated and
this one was not, so it has been describing a label that does not exist. That is
the values-only argument in a single key.

`worktreeSetupNote`'s content — that the Claude routine environment's setup
script is cached between containers, so editing it does not guarantee it runs —
is recorded in `docs/rules/testing-reqs.md`, which is where the three
misdiagnoses that produced it are written up.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here (.env is git-tracked; the dev server needs a distinct PORT),
qualifying the worktreeSetup value beside it and documented nowhere else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-Authored-By: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote`, a restatement of a rule the workflow plugin's
`implement-issue` skill already carries, and rewrites the top-level $comment,
which named `.claude/docs/workflow-parity.md` — a file that no longer exists.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key. A rule stated in both a skill and a config file is
two sources of truth for one rule, and SahajCloud's copy of this very note had
already drifted — it still names the `approved` label, renamed sessions ago.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here, qualifying the worktreeSetup value beside it, documented nowhere
else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-Authored-By: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWordpress that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote`, a restatement of a rule the workflow plugin's
`implement-issue` skill already carries, and rewrites the top-level $comment,
which named `.claude/docs/workflow-parity.md` — a file that no longer exists.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key. A rule stated in both a skill and a config file is
two sources of truth for one rule, and SahajCloud's copy of this very note had
already drifted — it still names the `approved` label, renamed sessions ago.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-Authored-By: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajCloud that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote` and `worktreeSetupNote`, and rewrites the top-level
$comment, which named `.claude/docs/workflow-parity.md` — a file that no longer
exists.

**This repo's `prAllowlistNote` was stale.** `approved` was renamed to
`ready-to-implement` some time ago; the other four repos' copies were updated and
this one was not, so it has been describing a label that does not exist. The rule
it restates lives in the workflow plugin's `implement-issue` skill, which was
correct throughout — which is the values-only argument in a single key.

`worktreeSetupNote`'s content — that the Claude routine environment's setup
script is cached between containers, so editing it does not guarantee it runs —
is recorded in `docs/rules/testing-reqs.md`, alongside the three misdiagnoses
that produced it. Verified present before deleting.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here (.env is git-tracked; the dev server needs a distinct PORT),
qualifying the worktreeSetup value beside it and documented nowhere else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-Authored-By: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote`, a restatement of a rule the workflow plugin's
`implement-issue` skill already carries, and rewrites the top-level $comment,
which named `.claude/docs/workflow-parity.md` — a file that no longer exists.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key. A rule stated in both a skill and a config file is
two sources of truth for one rule, and SahajCloud's copy of this very note had
already drifted — it still names the `approved` label, renamed sessions ago.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here, qualifying the worktreeSetup value beside it, documented nowhere
else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-Authored-By: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/WeMeditateWeb that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote`, a restatement of a rule the workflow plugin's
`implement-issue` skill already carries, and rewrites the top-level $comment,
which named `.claude/docs/workflow-parity.md` — a file that no longer exists.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key. A rule stated in both a skill and a config file is
two sources of truth for one rule, and SahajCloud's copy of this very note had
already drifted — it still names the `approved` label, renamed sessions ago.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here, qualifying the worktreeSetup value beside it, documented nowhere
else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-Authored-By: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWordpress that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote`, a restatement of a rule the workflow plugin's
`implement-issue` skill already carries, and rewrites the top-level $comment,
which named `.claude/docs/workflow-parity.md` — a file that no longer exists.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key. A rule stated in both a skill and a config file is
two sources of truth for one rule, and SahajCloud's copy of this very note had
already drifted — it still names the `approved` label, renamed sessions ago.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-authored-by: Claude Opus 5 <[email protected]>
@Ardnived
Ardnived merged commit ab59d71 into main Sep 2, 2026
@Ardnived
Ardnived deleted the claude/workflow-json-values-only branch September 2, 2026 18:49
Ardnived added a commit to sydevs/WeMeditateWeb that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote`, a restatement of a rule the workflow plugin's
`implement-issue` skill already carries, and rewrites the top-level $comment,
which named `.claude/docs/workflow-parity.md` — a file that no longer exists.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key. A rule stated in both a skill and a config file is
two sources of truth for one rule, and SahajCloud's copy of this very note had
already drifted — it still names the `approved` label, renamed sessions ago.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here, qualifying the worktreeSetup value beside it, documented nowhere
else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-authored-by: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajCloud that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote` and `worktreeSetupNote`, and rewrites the top-level
$comment, which named `.claude/docs/workflow-parity.md` — a file that no longer
exists.

**This repo's `prAllowlistNote` was stale.** `approved` was renamed to
`ready-to-implement` some time ago; the other four repos' copies were updated and
this one was not, so it has been describing a label that does not exist. The rule
it restates lives in the workflow plugin's `implement-issue` skill, which was
correct throughout — which is the values-only argument in a single key.

`worktreeSetupNote`'s content — that the Claude routine environment's setup
script is cached between containers, so editing it does not guarantee it runs —
is recorded in `docs/rules/testing-reqs.md`, alongside the three misdiagnoses
that produced it. Verified present before deleting.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here (.env is git-tracked; the dev server needs a distinct PORT),
qualifying the worktreeSetup value beside it and documented nowhere else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-authored-by: Claude Opus 5 <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Sep 2, 2026
Drops `prAllowlistNote`, a restatement of a rule the workflow plugin's
`implement-issue` skill already carries, and rewrites the top-level $comment,
which named `.claude/docs/workflow-parity.md` — a file that no longer exists.

Every key was audited against what reads it. The plugin's hooks read
packageManager and generatedFiles; its skills read leanGate, securityReview,
prAllowlistGlobs, devServer, worktreeSetup, contractStep and deployTarget.
Nothing read any *Note key. A rule stated in both a skill and a config file is
two sources of truth for one rule, and SahajCloud's copy of this very note had
already drifted — it still names the `approved` label, renamed sessions ago.

worktreeNotes stays: one line of operational fact about what a fresh worktree
needs here, qualifying the worktreeSetup value beside it, documented nowhere
else.

Part of a sweep across all five sydevs repos — see sydevs/claude-workflow#33.

Co-authored-by: Claude Opus 5 <[email protected]>
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