You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.planning/ is prose where it needs to be structure — two gaps that let an agent quietly corrupt planning state
#3759
GSD recommends a high-quality issue-management discipline, but nothing requires an LLM to
follow it when writing to .planning/. For a developer that is recoverable. For the
non-developer GSD is explicitly built for, it is invisible and compounding — and I think it is
the single biggest gap between what GSD promises and what it can enforce.
Two faces of one root cause. Sharing both here rather than as enhancement issues, because the
right fix is a design conversation, not a patch.
Gap 1 — artifacts carry no provenance, so fabrication is undetectable
.planning/ is an ordinary directory. Every GSD verb writes to it; nothing requires a write to come from a verb. Any agent with file-write access can create ROADMAP.md by hand, invent a
phase directory, or rewrite STATE.md prose — and every existing health rule stays green,
provided the result is self-consistent.
No artifact records who wrote it. Grepping gsd-core/templates/ for originSessionId|written_by|generated_by|provenance returns nothing; STATE.md frontmatter
carries gsd_state_version, status, and progress only.
Field report (today). In a workspace whose STATE.md recorded the decision "this repository
intentionally does not use a GSD phase funnel," an LLM assistant working with me:
hand-wrote a ROADMAP.md with an invented phase,
created phases/<id>-<slug>/PLAN.md,
added current_phase to STATE.md's frontmatter, and
rewrote the recorded decision sentence so it no longer contradicted the new roadmap.
Step 4 is the one that matters. validate health already ships a rule for exactly this class of
problem:
W011 | warning | STATE.md current-phase status disagrees with ROADMAP.md checkbox
But step 4 left the tree internally consistent, so W011 and its siblings report healthy. A
consistency check cannot catch fabrication that is consistent. The contradiction was resolved by
editing the record rather than surfacing it, and GSD could not distinguish that from legitimate
work.
I caught it because I read diffs. Someone who doesn't inherits a planning tree that has quietly
become fiction — and the next session reads that fiction as authority.
The pattern already exists in this repo. GSD solved this for its compiled runtime: gen-emitted-baseline.cjs records what the emit should be, and lint-emitted-drift-ack.cjs
(#2789) refuses to merge an unacknowledged deviation. .planning/ — the surface GSD's whole
value rests on — has no equivalent.
Sketch, not a spec: stamp written_by / gsd_version / body_sha256 when a verb writes an
artifact; add health rules for missing stamp and hash mismatch; report, don't block — keep
hand-editing legal, just make it visible, with an ack path mirroring the emitted-drift flow.
Gap 2 — a phase can't say what kind of work item it is
GSD already carries typed per-phase metadata. Mode: is parsed at src/roadmap.cts:195 and
resolved through the centralized phase.mvp-mode verb with a documented precedence chain
(CLI flag → ROADMAP **Mode:** mvp → config → false), all-or-nothing per phase.
What a phase cannot declare is what kind of work item it is. Every phase is implicitly local
work whose terminal state is "code written and verified on this machine."
That assumption breaks for contribution workflows, where the terminal state is "the issue is
closed." Landing the PRs sits off the end of the workflow rather than inside the plan. So no
field records the issue the work answers to or the PRs that land it — grepping templates/roadmap.md and templates/phase-prompt.md for issue.?(number|link|ref)|pr.?(number|link)
returns nothing — and /gsd-ship opens a PR with no idea which issue it closes.
This repo's own CI contradicts that assumption.require-issue-link.yml rejects any PR that
doesn't link an issue, and CONTRIBUTING says an enhancement PR "will be closed without review if
the linked issue does not carry the approved-enhancement label." gsd-core requires a
phase → issue → PR mapping from every contributor, and GSD provides nowhere to put it.
So it ends up as prose in STATE.md:
- **PR-2 / issue #2761:** `feat/2761-bracket-read-tolerance` in `…/pr612-0`,
head `ebc01612e`. Upstream PR #2867 is open with changes requested after round 11.
Because it's prose, nothing validates it and it drifts. A sibling HANDOFF.md line in that same
workspace asserted which branch the primary checkout sat on — and was simply wrong, naming a
branch that hadn't been checked out in two days. Structured fields make that a checkable claim.
Sketch: a Type: field beside the existing Mode:, same parser, same verb pattern.
Cardinality fans out one-to-many downward — an epic holds many issues; an issue lands via many PRs. The inverse, several issues bundled into one PR, is an anti-pattern: wider review
surface, coarser rollback, ambiguous closing keywords. This repo's own live work is the proof:
One issue, two PRs, one stacked on the other. A schema with a single PR: field can't represent it.
Under Type: issue: /gsd-plan-phase emits a landing task per PR slice with a verification gate; /gsd-ship fills the closing keyword from Issue: and appends to PRs:; health warns when a
phase is complete while its issue is open or any PR unmerged. Type: local is the default and is
exactly today's behavior, so nothing existing changes.
Why one post
Both are the same root: .planning/ is unverifiable prose where it needs to be checkable
structure. Gap 1 is "we can't tell who wrote this." Gap 2 is "we can't tell what it's for or
when it's actually done."
Feels adjacent to #2541 (no recovery path for a destructive planning write) and #2542 (no
concurrency model) — both instances of .planning/ being an ordinary directory that everything
writes to and nothing guards. Also related to #2616 on conceptual boundaries.
Not proposing to code any of this yet — I'd rather hear whether the framing is right, and whether
detection-not-prevention is the correct first move.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
GSD recommends a high-quality issue-management discipline, but nothing requires an LLM to
follow it when writing to
.planning/. For a developer that is recoverable. For thenon-developer GSD is explicitly built for, it is invisible and compounding — and I think it is
the single biggest gap between what GSD promises and what it can enforce.
Two faces of one root cause. Sharing both here rather than as enhancement issues, because the
right fix is a design conversation, not a patch.
Gap 1 — artifacts carry no provenance, so fabrication is undetectable
.planning/is an ordinary directory. Every GSD verb writes to it; nothing requires a write tocome from a verb. Any agent with file-write access can create
ROADMAP.mdby hand, invent aphase directory, or rewrite
STATE.mdprose — and every existing health rule stays green,provided the result is self-consistent.
No artifact records who wrote it. Grepping
gsd-core/templates/fororiginSessionId|written_by|generated_by|provenancereturns nothing;STATE.mdfrontmattercarries
gsd_state_version,status, andprogressonly.Field report (today). In a workspace whose
STATE.mdrecorded the decision "this repositoryintentionally does not use a GSD phase funnel," an LLM assistant working with me:
ROADMAP.mdwith an invented phase,phases/<id>-<slug>/PLAN.md,current_phasetoSTATE.md's frontmatter, andStep 4 is the one that matters.
validate healthalready ships a rule for exactly this class ofproblem:
But step 4 left the tree internally consistent, so W011 and its siblings report healthy. A
consistency check cannot catch fabrication that is consistent. The contradiction was resolved by
editing the record rather than surfacing it, and GSD could not distinguish that from legitimate
work.
I caught it because I read diffs. Someone who doesn't inherits a planning tree that has quietly
become fiction — and the next session reads that fiction as authority.
The pattern already exists in this repo. GSD solved this for its compiled runtime:
gen-emitted-baseline.cjsrecords what the emit should be, andlint-emitted-drift-ack.cjs(#2789) refuses to merge an unacknowledged deviation.
.planning/— the surface GSD's wholevalue rests on — has no equivalent.
Sketch, not a spec: stamp
written_by/gsd_version/body_sha256when a verb writes anartifact; add health rules for missing stamp and hash mismatch; report, don't block — keep
hand-editing legal, just make it visible, with an ack path mirroring the emitted-drift flow.
Gap 2 — a phase can't say what kind of work item it is
GSD already carries typed per-phase metadata.
Mode:is parsed atsrc/roadmap.cts:195andresolved through the centralized
phase.mvp-modeverb with a documented precedence chain(CLI flag → ROADMAP
**Mode:** mvp→ config → false), all-or-nothing per phase.What a phase cannot declare is what kind of work item it is. Every phase is implicitly local
work whose terminal state is "code written and verified on this machine."
That assumption breaks for contribution workflows, where the terminal state is "the issue is
closed." Landing the PRs sits off the end of the workflow rather than inside the plan. So no
field records the issue the work answers to or the PRs that land it — grepping
templates/roadmap.mdandtemplates/phase-prompt.mdforissue.?(number|link|ref)|pr.?(number|link)returns nothing — and
/gsd-shipopens a PR with no idea which issue it closes.This repo's own CI contradicts that assumption.
require-issue-link.ymlrejects any PR thatdoesn't link an issue, and CONTRIBUTING says an enhancement PR "will be closed without review if
the linked issue does not carry the
approved-enhancementlabel." gsd-core requires aphase → issue → PR mapping from every contributor, and GSD provides nowhere to put it.
So it ends up as prose in
STATE.md:Because it's prose, nothing validates it and it drifts. A sibling
HANDOFF.mdline in that sameworkspace asserted which branch the primary checkout sat on — and was simply wrong, naming a
branch that hadn't been checked out in two days. Structured fields make that a checkable claim.
Sketch: a
Type:field beside the existingMode:, same parser, same verb pattern.Cardinality fans out one-to-many downward — an epic holds many issues; an issue lands via
many PRs. The inverse, several issues bundled into one PR, is an anti-pattern: wider review
surface, coarser rollback, ambiguous closing keywords. This repo's own live work is the proof:
One issue, two PRs, one stacked on the other. A schema with a single
PR:field can't represent it.Under
Type: issue:/gsd-plan-phaseemits a landing task per PR slice with a verification gate;/gsd-shipfills the closing keyword fromIssue:and appends toPRs:; health warns when aphase is complete while its issue is open or any PR unmerged.
Type: localis the default and isexactly today's behavior, so nothing existing changes.
Why one post
Both are the same root:
.planning/is unverifiable prose where it needs to be checkablestructure. Gap 1 is "we can't tell who wrote this." Gap 2 is "we can't tell what it's for or
when it's actually done."
Feels adjacent to #2541 (no recovery path for a destructive planning write) and #2542 (no
concurrency model) — both instances of
.planning/being an ordinary directory that everythingwrites to and nothing guards. Also related to #2616 on conceptual boundaries.
Not proposing to code any of this yet — I'd rather hear whether the framing is right, and whether
detection-not-prevention is the correct first move.
All reactions