@tekyzinc/gsd-t 4.20.11 → 5.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +2 -1
- package/commands/gsd-t-architect.md +135 -0
- package/commands/gsd-t-help.md +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to GSD-T are documented here. Updated with each release.
|
|
4
4
|
|
|
5
|
+
## [5.0.10] - 2026-07-12
|
|
6
|
+
|
|
7
|
+
### Added — `/gsd-t-architect`: run the Architect's Oversight pass on demand
|
|
8
|
+
|
|
9
|
+
A standalone command that runs the M101 Six-Stage Pass (Objective → Conflict → Reuse → Simplicity → Reuse-forecast → Risk) on **existing** work — an already-frozen plan, a messy subsystem, or a pasted tangle of problems — and produces the simplest correct solution as plain-English pseudocode, plus the traps each stage surfaces and what's already reusable. Major bump: this is the on-demand front door to design-first, reuse-first development, not an incremental command. Where the plan/milestone workflow runs the pass *while generating* a plan, this runs it as a standalone audit over work that already exists.
|
|
10
|
+
|
|
11
|
+
- `commands/gsd-t-architect.md`: prose-driven command — spawns one opus analysis subagent, reasons from the code graph (reuse/duplication) and real code, not memory. Default = plan-only then offers to build; `--build` auto-builds the simplest fix; `--chat-only` skips writing a file. Always prints a findings + plan summary to the session, even in auto-build. Reuses the existing prose-command + Task-subagent pattern (`/gsd-t-status`, `/gsd-t-impact`) — no new workflow file (the doctrine obeying its own Stage 3/4).
|
|
12
|
+
- `README.md` + `commands/gsd-t-help.md`: command documented.
|
|
13
|
+
- `test/filesystem.test.js`: command counts 54→55 / 48→49.
|
|
14
|
+
|
|
5
15
|
## [4.20.11] - 2026-07-12
|
|
6
16
|
|
|
7
17
|
### Added — M101: Architect's Oversight Doctrine
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GSD-T: Contract-Driven Development for Claude Code
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**v5.0.10** - A methodology for reliable, parallelizable development using Claude Code with optional Agent Teams support.
|
|
4
4
|
|
|
5
5
|
**Eliminates context rot** — task-level fresh dispatch (one subagent per task, ~10-20% context each) means compaction never triggers.
|
|
6
6
|
**Compaction-proof debug loops** — `gsd-t headless --debug-loop` runs test-fix-retest cycles as separate `claude -p` sessions. A JSONL debug ledger persists all hypothesis/fix/learning history across fresh sessions. Anti-repetition preamble injection prevents retrying failed hypotheses. Escalation tiers (sonnet → opus → human) and a hard iteration ceiling enforced externally.
|
|
@@ -200,6 +200,7 @@ This will replace changed command files, back up your CLAUDE.md if customized, a
|
|
|
200
200
|
| `/gsd-t-partition` | Decompose into domains + contracts | In wave |
|
|
201
201
|
| `/gsd-t-plan` | Create atomic task lists per domain (tasks auto-split to fit one context window) | In wave |
|
|
202
202
|
| `/gsd-t-impact` | Analyze downstream effects | In wave |
|
|
203
|
+
| `/gsd-t-architect` | Run the Architect's Oversight Six-Stage Pass on existing work — finds the simplest solution + reuse + traps, as plain-English pseudocode (plan-only; `--build` to auto-build) | Manual |
|
|
203
204
|
| `/gsd-t-execute` | Run tasks — task-level fresh dispatch, worktree isolation, adaptive replanning | In wave |
|
|
204
205
|
| `/gsd-t-test-sync` | Sync tests with code changes | In wave |
|
|
205
206
|
| `/gsd-t-qa` | QA agent — test generation, execution, gap reporting | Auto-spawned |
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# GSD-T: Architect — Run the Architect's Oversight Six-Stage Pass on Existing Work
|
|
2
|
+
|
|
3
|
+
You are the **architect**. You assess a plan, a subsystem, or a tangle of problems the user
|
|
4
|
+
points you at, and you find the **simplest correct solution** — reusing what already exists,
|
|
5
|
+
surfacing the traps, and writing the answer in plain-English pseudocode the user can approve
|
|
6
|
+
BEFORE any code is written.
|
|
7
|
+
|
|
8
|
+
This is a standalone, on-demand run of the **Architect's Oversight Doctrine** (see the project
|
|
9
|
+
`CLAUDE.md` / `~/.claude/CLAUDE.md` § Architect's Oversight, and
|
|
10
|
+
`.gsd-t/contracts/architects-oversight-contract.md`). Use it when a plan already exists (or is
|
|
11
|
+
half-formed) and you want it interrogated for simplicity + reuse before building.
|
|
12
|
+
|
|
13
|
+
Unlike the plan/milestone workflow (which runs the Six-Stage Pass *while generating* a plan),
|
|
14
|
+
this command runs it as a **standalone pass over existing work** — an already-frozen plan, a
|
|
15
|
+
messy subsystem, or a pasted description of problems.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Argument Parsing
|
|
20
|
+
|
|
21
|
+
Parse `$ARGUMENTS`:
|
|
22
|
+
- **First positional** = `$TARGET` — what to assess. Either a plain-English description
|
|
23
|
+
("the feed scanning stalls — image watcher, completeness, comment finder"), a file/dir path,
|
|
24
|
+
or "the current plan" (→ read `.gsd-t/domains/*/tasks.md` + `.gsd-t/progress.md` Current Milestone).
|
|
25
|
+
- **`--build`** — after producing the plan, AUTO-BUILD the simplest solution in the same run
|
|
26
|
+
(do not stop to ask). Default (no flag): produce the plan, then OFFER to build.
|
|
27
|
+
- **`--chat-only`** — report in the session only; do NOT write a pseudocode file to disk.
|
|
28
|
+
Default: write the pseudocode artifact to `.gsd-t/pseudocode/`.
|
|
29
|
+
|
|
30
|
+
If `$TARGET` is empty, ask the user what to assess. Do not guess.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Behavior contract (what the user asked for)
|
|
35
|
+
|
|
36
|
+
1. **Default = plan, then offer to build.** Produce the assessment + plan, then end by asking
|
|
37
|
+
"Build the simplest solution now?" — unless `--build` was passed, in which case auto-build.
|
|
38
|
+
2. **`--build` = auto-build after planning.** Assess → plan → implement the simplest solution,
|
|
39
|
+
without pausing — BUT still print the findings + plan summary to the session first.
|
|
40
|
+
3. **ALWAYS print a session summary** — even in auto-build mode. The user scans the conversation
|
|
41
|
+
for anything that catches their eye while it keeps moving. Never silently proceed.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Step 1: Launch the architect via a Task subagent
|
|
46
|
+
|
|
47
|
+
Give the assessment a fresh context window. Spawn ONE Task subagent (`model: opus`) — this is
|
|
48
|
+
high-stakes design judgment, top tier. Pass it the target and this protocol.
|
|
49
|
+
|
|
50
|
+
**Before spawning**, gather evidence sources so the subagent reasons from facts, not memory:
|
|
51
|
+
- If a code graph exists (`.gsd-t/graph.db`), the subagent uses `gsd-t graph` for reuse/caller
|
|
52
|
+
queries (Stage 3 + Stage 5 duplication check). If absent, it greps/reads and says so LOUDLY
|
|
53
|
+
(reuse-detection is reduced — never a silent "nothing found").
|
|
54
|
+
- Read the relevant code the target names (or the plan files).
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Step 2: The subagent runs the Six-Stage Pass (with EVIDENCE, never conviction)
|
|
59
|
+
|
|
60
|
+
The subagent works through the six stages IN ORDER. Each can kill or reshape the plan. Every
|
|
61
|
+
"am I sure?" is answered by looking (grep / Read / graph), not by asserting.
|
|
62
|
+
|
|
63
|
+
1. **OBJECTIVE** — What is the core objective, in one plain sentence? Why is it the objective?
|
|
64
|
+
(Often the traps shrink once this is pinned down.)
|
|
65
|
+
2. **CONFLICT** — Does solving this conflict with another objective? Must a previously-built
|
|
66
|
+
piece be re-examined/re-planned?
|
|
67
|
+
3. **REUSE** — Have I already accomplished any piece of this? Can I reuse the **process**, or
|
|
68
|
+
the **output** (a value already computed/stored)? *Query the graph, not memory.* This is the
|
|
69
|
+
stage that kills redundant work (e.g. re-deriving a value already stored locally).
|
|
70
|
+
**Also — is this the SAME pattern repeated elsewhere?** If the target is one instance of a
|
|
71
|
+
bug, search for the other instances (one fix for a class beats N fixes for N instances).
|
|
72
|
+
4. **SIMPLICITY** — What is the simplest, most efficient solution? Prove it's simplest.
|
|
73
|
+
5. **REUSE FORECAST & DUPLICATION** — For anything new: HIGH reuse likelihood (core entity /
|
|
74
|
+
recurs / pure transform) → build clean + extractable; LOW → simplest inline. If a similar
|
|
75
|
+
thing exists: same JOB → extract a shared core (do NOT mutate the working original); if
|
|
76
|
+
stability forbids touching it → build new BUT register the duplication (a "reuse-candidate"
|
|
77
|
+
note) so it's visible, never a silent rogue twin.
|
|
78
|
+
6. **RISK** — Does the proposed fix create security or stability/scalability risk? **And prove
|
|
79
|
+
the simpler fix actually works** — if the plan says "handled elsewhere / picked up later,"
|
|
80
|
+
VERIFY that's true; do not assert self-healing you haven't checked. (This is the trap that
|
|
81
|
+
hides inside a simplification.)
|
|
82
|
+
|
|
83
|
+
A stage the subagent cannot answer with evidence is a HALT — surface it as an open question for
|
|
84
|
+
the user, do not paper over it with a guess.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Step 3: The subagent produces the output
|
|
89
|
+
|
|
90
|
+
**A — Plain-English pseudocode** (the artifact), in the house style — title + one-line purpose,
|
|
91
|
+
`CURRENT` (what it does today) and `PROPOSED` (the simplest fix) blocks, `# plain comment` inline,
|
|
92
|
+
a summary table, near-zero preamble. For each CURRENT block, say **why it does what it does now**
|
|
93
|
+
— and flag explicitly if it's a "got complicated over time" accretion (mechanisms stacked by
|
|
94
|
+
successive fixes). Unless `--chat-only`, write it to `.gsd-t/pseudocode/PseudoCode-<Target>.md`.
|
|
95
|
+
|
|
96
|
+
**B — Session summary** (always printed, even under `--build`):
|
|
97
|
+
- **Core objective** (one line)
|
|
98
|
+
- **Is this a "complicated over time" issue?** (yes/no + the accretion history if yes)
|
|
99
|
+
- **What's reusable** (process or a stored output already available)
|
|
100
|
+
- **Same pattern elsewhere?** (other instances of the bug/design found)
|
|
101
|
+
- **Simplest solution** (one paragraph)
|
|
102
|
+
- **Traps surfaced** (each stage's kill/risk finding — especially the Stage-6 "does the fix
|
|
103
|
+
really self-heal?" check)
|
|
104
|
+
- **Open questions** (any HALT stages needing the user)
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Step 4: Build decision
|
|
109
|
+
|
|
110
|
+
- **No `--build` flag (default):** end with the plain-English summary and ask:
|
|
111
|
+
*"Build the simplest solution now?"* — offer it, do not proceed.
|
|
112
|
+
- **`--build` flag:** proceed to implement the simplest solution immediately (still after
|
|
113
|
+
printing the summary). Follow the normal build discipline — smallest change that hits the
|
|
114
|
+
crux, Pre-Commit Gate, run affected tests. Report what was built.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Document Ripple
|
|
119
|
+
|
|
120
|
+
The underlying assessment updates (when it writes / when a build follows):
|
|
121
|
+
- `.gsd-t/pseudocode/PseudoCode-<Target>.md` — the plain-English design (unless `--chat-only`).
|
|
122
|
+
- `.gsd-t/progress.md` Decision Log — one line recording the architect run + verdict.
|
|
123
|
+
- If `--build` produced code: the standard Pre-Commit Gate ripple (contracts, docs, tests) for
|
|
124
|
+
whatever the build touched.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Notes
|
|
129
|
+
|
|
130
|
+
- **This command plans; it does not force a build.** The default keeps the architect a pure
|
|
131
|
+
"think before build" gate. `--build` is the explicit opt-in to act on its own conclusion.
|
|
132
|
+
- **Reuse over rebuild** (the doctrine obeying itself): this command is prose-driven and spawns
|
|
133
|
+
a single analysis subagent — it does NOT add a new workflow file. It reuses the existing
|
|
134
|
+
prose-command + Task-subagent pattern (like `/gsd-t-status`, `/gsd-t-impact`).
|
|
135
|
+
- Standalone command — no successor in the Next-Up map.
|
package/commands/gsd-t-help.md
CHANGED
|
@@ -241,6 +241,13 @@ Use these when user asks for help on a specific command:
|
|
|
241
241
|
- **Creates**: `.gsd-t/impact-report.md`
|
|
242
242
|
- **Use when**: Before making changes, to understand what might break
|
|
243
243
|
|
|
244
|
+
### architect
|
|
245
|
+
- **Summary**: Run the Architect's Oversight Six-Stage Pass (Objective → Conflict → Reuse → Simplicity → Reuse-forecast → Risk) on existing work — an already-frozen plan, a messy subsystem, or a pasted tangle of problems. Finds the simplest correct solution, what's already reusable (process or a stored value), and the traps each stage surfaces — written as plain-English pseudocode you can approve before any code.
|
|
246
|
+
- **Auto-invoked**: No (standalone, on-demand)
|
|
247
|
+
- **Args**: `/gsd-t-architect "<what to assess>"` — plus `--build` (auto-build the simplest fix after planning) and `--chat-only` (report in session, don't write a pseudocode file).
|
|
248
|
+
- **Creates**: `.gsd-t/pseudocode/PseudoCode-<Target>.md` (unless `--chat-only`)
|
|
249
|
+
- **Use when**: A plan already exists (or is half-formed) and you want it interrogated for simplicity + reuse before building; or a subsystem "got complicated over time" and you want the simplest version. Default is plan-only, then it offers to build.
|
|
250
|
+
|
|
244
251
|
### execute
|
|
245
252
|
- **Summary**: Run tasks from plan, solo or with agent teams
|
|
246
253
|
- **Auto-invoked**: Yes (in wave, after impact)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekyzinc/gsd-t",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "GSD-T: Contract-Driven Development for Claude Code — 54 slash commands with headless-by-default workflow spawning, unattended supervisor relay with event stream, graph-powered code analysis, real-time agent dashboard, task telemetry, doc-ripple enforcement, backlog management, impact analysis, test sync, milestone archival, and PRD generation",
|
|
5
5
|
"author": "Tekyz, Inc.",
|
|
6
6
|
"license": "MIT",
|