* chore(#604): rename get-shit-done/ runtime directory to gsd-core/ Renames the installed runtime directory `get-shit-done/` to `gsd-core/` so the on-disk name matches the package (`@opengsd/gsd-core`), repo, and binary (`gsd-tools`). The npm package name and binary are unchanged; npx/npm consumers are unaffected. Mechanical (bulk, ~90% of the diff): - `git mv get-shit-done gsd-core` - Swept path/identifier references across the repo via `perl -pe 's/get-shit-done(?!-\w)/gsd-core/g'`. The negative lookahead preserves the five legitimate slug variants that are NOT the directory: get-shit-done-{OLD,cc,classic,cli,redux} (old package/repo names). - Build/manifest wiring: package.json (bin, files, coverage globs), tsconfig.build.json (outDir), ~86 .gitignore build-output entries, stryker.config.mjs, scan-ignore files, install.js path strings. - Frozen (not rewritten): CHANGELOG.md history; translated docs (README.<locale>.md and docs/{ja-JP,ko-KR,pt-BR,zh-CN}/). New logic (review here): - src/installer-migrations/003-rename-get-shit-done-to-gsd-core.cts: a proper ADR-0008 installer migration. On upgrade it walks the legacy `~/.claude/get-shit-done/` tree, classifies each file via the prior install manifest, and emits remove-managed / backup-and-remove for managed files while PRESERVING unknown user-added files. Symlink-safe (skips a symlinked root and symlinked entries; bounds-checks every path under configDir). The framework rolls back on install failure. Emptied dirs may remain (framework has no recursive dir-removal primitive) — documented. - scripts/lint-legacy-dir-name.cjs: CI regression guard forbidding the bare `get-shit-done` directory token (split token to avoid self-match; case- insensitive; `(?!-\w)` lookahead allows the slug variants; allowlists CHANGELOG, translated docs, and `gsd-allow-legacy-name` marker lines). Wired into the lint-tests CI job. - Restored scripts/lint-package-identity-drift.cjs detection regexes (the mechanical sweep had wrongly rewritten the old-name patterns it exists to detect) and marked them as intentional legacy references. - TDD tests for the migration and the guard; do.md slash-command guard regex tightened so a `/gsd-core/bin` path segment is not mistaken for a command; changeset + docs/installer-migrations.md row added. Breaking: the installed runtime path moves `~/.claude/get-shit-done/` -> `~/.claude/gsd-core/`. Migration 003 removes the stale legacy dir's managed files (preserving user files) on upgrade. Users with custom hooks/configs hardcoding the old path must update them. Closes #604 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): unsweep pending changesets + allowlist injection-example docs CI fixes for the rename PR: - Do not sweep pending .changeset/*.md (ephemeral release-note fragments, like CHANGELOG); reverted those body edits so 5 pre-existing malformed fragments (missing type/pr) no longer enter the PR diff and trip docs-lint. Allowlisted .changeset/ in the legacy-name guard accordingly. - Allowlisted TEST-EXAMPLES.md and docs/explanation/security-model.md in prompt-injection-scan.sh: they contain intentional injection examples / security-model prose; the path-reference rewrites are kept. CodeQL alerts on this PR are pre-existing (alert lines unchanged by this PR; none in the new migration/guard) and are out of scope for the rename. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): resolve CodeQL alerts surfaced on this PR The rename diff touched files carrying pre-existing CodeQL findings; per the no-pre-existing-dismissal rule, fixing every surfaced alert rather than waving them off. All behavior-preserving: - scripts/ci-test-scope.cjs: build the config-path match from string .includes() instead of a RegExp over an arg-derived value (js/regex-injection). - src/profile-output.cts: escape backslashes before pipe-escaping desc/safeName so the table-cell escape is complete (js/incomplete-sanitization). - tests/{bug-2643,bug-2808,docs-parity-live-registry}: two-pass HTML-comment strip so a bare/unclosed `<!--` cannot survive (js/incomplete-multi-character-sanitization). - tests/inline-plan-threshold: drop the no-op `\s`->`\s` identity replace, keep the meaningful POSIX-class conversion (js/identity-replacement). Verified: build:lib green; the touched test files + ci-test-scope + profile-output suites pass; lint:legacy-name clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): correctly resolve remaining CodeQL alerts (regex-injection + sanitization) The prior commit's fixes for two alerts were ineffective: - ci-test-scope.cjs js/regex-injection: the alert is the CLI-arg-derived `file` reaching static regex `.test(file)` calls (not the config rule). Removed ALL regex over file/t — startsWith/includes/=== string checks + an isWindowsHint helper — so there is no regex sink for the tainted value. - js/incomplete-multi-character-sanitization (3 test files): a single `.replace(/<!--...-->/g,'')` can let `<!--` re-form. Replaced with a fixpoint loop (replace until stable) plus a final bare-opener strip. Verified: no regex over file/t remains; ci-test-scope + the 3 test suites pass; lint:legacy-name clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): make ci-test-scope + comment-strippers regex-free to clear CodeQL CodeQL flags the regex PATTERNS syntactically (regex-injection on the --files arg split; incomplete-multi-character-sanitization on the <!--...--> replace), so loop fixes do not satisfy it. Made these paths regex-free: - ci-test-scope.cjs splitFiles: char-by-char separator tokenizer (no /[,\\s]+/). - 3 test files: indexOf/slice HTML-comment stripper (no .replace(/<!--/)). Behavior preserved; ci-test-scope + the 3 suites pass; guard clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): unblock security base64 scan on the large rename diff The security job hit its 10m timeout: base64-scan.sh choked on the binary test fixture tests/feat-3594-parser-property-style.test.cjs (embedded NUL/ non-UTF8 bytes -> thousands of bogus blobs + "ignored null byte" warnings), and the ~800-file rename diff is slow to scan regardless. - scripts/base64-scan.sh: skip binary-by-content files (grep -Iq .) — they can't carry base64-obfuscated *text* and feeding NUL bytes through the per-line scanner is pathologically slow. collect_files already filtered binary *extensions*; this catches binary *content* in text extensions. - .github/workflows/security-scan.yml: raise the security job timeout 10m->30m to accommodate very large diffs (the scan itself is unchanged). Verified locally: scan skips the fixture, 0 "ignored null byte" warnings, 0 findings, exit 0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): sweep get-shit-done refs introduced by merging next The branch was updated with next (#614/#384/#618 etc.), which reference the get-shit-done/ dir (still named that on next). Swept the stale references in the merged files to gsd-core so the rename stays consistent and lint:legacy-name passes: - commands/gsd/discuss-phase.md (runtime-launcher shim paths) - src/core.cts (getAgentsDir layout comments) - tests/bug-384-agents-runtime-aware.test.cjs (require path to runtime lib) Verified: guard 0 violations; build green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): exclude gsd-core/ path segments from bug-3683 command cross-ref invariant The #614 runtime-launcher shim added to discuss-phase.md references `${_GSD_RUNTIME_ROOT}/gsd-core/bin/...`. bug-3683's REF_PATTERN excluded path-y refs only via lookbehind, but `}` precedes `/gsd-core/` in the shim, so it mis-read the directory path as a dangling `/gsd-core` command ref (same class as the #604 bug-2954 fix). Added a trailing `(?![\w-]*\/)` so `/gsd-<x>/...` path segments are not treated as slash-command references. Verified locally on BOTH platforms before pushing: - mac (node 26) full suite: 0 failures - gsd-test-runner (linux, node22 image) full suite: 0 failures - bug-3683 + bug-2954 pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): lazily resolve findProjectRoot in gsd-tools (harden flaky CI) CI intermittently failed state.test's gsd-tools subprocess with "findProjectRoot is not a function" (flip-flopping across legs; not reproducible on mac full suite, gsd-test linux full suite, test:unit, or state.test x8). findProjectRoot is a re-export from core.cjs (sourced from project-root.cjs); binding it via destructure at module-load can be undefined under a load-ordering edge. Resolve it lazily at call time via a small wrapper so the lookup happens after core.cjs is fully initialized. Verified green on BOTH platforms before pushing: - mac (node 26) full suite: 0 failures - gsd-test-runner (linux, node22) full suite: 0 failures - state.test.cjs: 106/106; gsd-tools loads cleanly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(#604): allowlist verification-patterns.md placeholder examples in secret scan The rename git-mv'd references/verification-patterns.md into gsd-core/, pulling it into the secret-scan diff. It documents stub/placeholder RED-FLAG env-var examples (illustrative Stripe test-key / database-URL / API-key placeholders) — not real credentials. Added it to .secretscanignore with the strict annotation, mirroring the existing gsd-core/workflows/plan-phase.md exception. Verified locally: secret-scan-lint --strict OK; secret-scan --diff origin/next exits 0 with 0 findings. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
308 lines
14 KiB
Markdown
308 lines
14 KiB
Markdown
# Phase Spec Template
|
|
|
|
Template for `.planning/phases/XX-name/{phase_num}-SPEC.md` — locks requirements before discuss-phase.
|
|
|
|
**Purpose:** Capture WHAT a phase delivers and WHY, with enough precision that requirements are falsifiable. discuss-phase reads this file and focuses on HOW to implement (skipping "what/why" questions already answered here).
|
|
|
|
**Key principle:** Every requirement must be falsifiable — you can write a test or check that proves it was met or not. Vague requirements like "improve performance" are not allowed.
|
|
|
|
**Downstream consumers:**
|
|
- `discuss-phase` — reads SPEC.md at startup; treats Requirements, Boundaries, and Acceptance Criteria as locked; skips "what/why" questions
|
|
- `gsd-planner` — reads locked requirements to constrain plan scope
|
|
- `gsd-verifier` — uses acceptance criteria as explicit pass/fail checks
|
|
|
|
---
|
|
|
|
## File Template
|
|
|
|
```markdown
|
|
# Phase [X]: [Name] — Specification
|
|
|
|
**Created:** [date]
|
|
**Ambiguity score:** [score] (gate: ≤ 0.20)
|
|
**Requirements:** [N] locked
|
|
|
|
## Goal
|
|
|
|
[One precise sentence — specific and measurable. NOT "improve X" — instead "X changes from A to B".]
|
|
|
|
## Background
|
|
|
|
[Current state from codebase — what exists today, what's broken or missing, what triggers this work. Grounded in code reality, not abstract description.]
|
|
|
|
## Requirements
|
|
|
|
1. **[Short label]**: [Specific, testable statement.]
|
|
- Current: [what exists or does NOT exist today]
|
|
- Target: [what it should become after this phase]
|
|
- Acceptance: [concrete pass/fail check — how a verifier confirms this was met]
|
|
|
|
2. **[Short label]**: [Specific, testable statement.]
|
|
- Current: [what exists or does NOT exist today]
|
|
- Target: [what it should become after this phase]
|
|
- Acceptance: [concrete pass/fail check]
|
|
|
|
[Continue for all requirements. Each must have Current/Target/Acceptance.]
|
|
|
|
## Boundaries
|
|
|
|
**In scope:**
|
|
- [Explicit list of what this phase produces]
|
|
- [Each item is a concrete deliverable or behavior]
|
|
|
|
**Out of scope:**
|
|
- [Explicit list of what this phase does NOT do] — [brief reason why it's excluded]
|
|
- [Adjacent problems excluded from this phase] — [brief reason]
|
|
|
|
## Constraints
|
|
|
|
[Performance, compatibility, data volume, dependency, or platform constraints.
|
|
If none: "No additional constraints beyond standard project conventions."]
|
|
|
|
## Acceptance Criteria
|
|
|
|
- [ ] [Pass/fail criterion — unambiguous, verifiable]
|
|
- [ ] [Pass/fail criterion]
|
|
- [ ] [Pass/fail criterion]
|
|
|
|
[Every acceptance criterion must be a checkbox that resolves to PASS or FAIL.
|
|
No "should feel good", "looks reasonable", or "generally works" — those are not checkboxes.]
|
|
|
|
## Ambiguity Report
|
|
|
|
| Dimension | Score | Min | Status | Notes |
|
|
|--------------------|-------|------|--------|------------------------------------|
|
|
| Goal Clarity | | 0.75 | | |
|
|
| Boundary Clarity | | 0.70 | | |
|
|
| Constraint Clarity | | 0.65 | | |
|
|
| Acceptance Criteria| | 0.70 | | |
|
|
| **Ambiguity** | | ≤0.20| | |
|
|
|
|
Status: ✓ = met minimum, ⚠ = below minimum (planner treats as assumption)
|
|
|
|
## Interview Log
|
|
|
|
[Key decisions made during the Socratic interview. Format: round → question → answer → decision locked.]
|
|
|
|
| Round | Perspective | Question summary | Decision locked |
|
|
|-------|----------------|-------------------------|------------------------------------|
|
|
| 1 | Researcher | [what was asked] | [what was decided] |
|
|
| 2 | Simplifier | [what was asked] | [what was decided] |
|
|
| 3 | Boundary Keeper| [what was asked] | [what was decided] |
|
|
|
|
[If --auto mode: note "auto-selected" decisions with the reasoning Claude used.]
|
|
|
|
---
|
|
|
|
*Phase: [XX-name]*
|
|
*Spec created: [date]*
|
|
*Next step: /gsd:discuss-phase [X] — implementation decisions (how to build what's specified above)*
|
|
```
|
|
|
|
<good_examples>
|
|
|
|
**Example 1: Feature addition (Post Feed)**
|
|
|
|
```markdown
|
|
# Phase 3: Post Feed — Specification
|
|
|
|
**Created:** 2025-01-20
|
|
**Ambiguity score:** 0.12
|
|
**Requirements:** 4 locked
|
|
|
|
## Goal
|
|
|
|
Users can scroll through posts from accounts they follow, with new posts available after pull-to-refresh.
|
|
|
|
## Background
|
|
|
|
The database has a `posts` table and `follows` table. No feed query or feed UI exists today. The home screen shows a placeholder "Your feed will appear here." This phase builds the feed query, API endpoint, and the feed list component.
|
|
|
|
## Requirements
|
|
|
|
1. **Feed query**: Returns posts from followed accounts ordered by creation time, descending.
|
|
- Current: No feed query exists — `posts` table is queried directly only from profile pages
|
|
- Target: `GET /api/feed` returns paginated posts from followed accounts, newest first, max 20 per page
|
|
- Acceptance: Query returns correct posts for a user who follows 3 accounts with known post counts; cursor-based pagination advances correctly
|
|
|
|
2. **Feed display**: Posts display in a scrollable card list.
|
|
- Current: Home screen shows static placeholder text
|
|
- Target: Home screen renders feed cards with author, timestamp, post content, and reaction count
|
|
- Acceptance: Feed renders without error for 0 posts (empty state shown), 1 post, and 20+ posts
|
|
|
|
3. **Pull-to-refresh**: User can refresh the feed manually.
|
|
- Current: No refresh mechanism exists
|
|
- Target: Pull-down gesture triggers refetch; new posts appear at top of list
|
|
- Acceptance: After a new post is created in test, pull-to-refresh shows the new post without full app restart
|
|
|
|
4. **New posts indicator**: When new posts arrive, a banner appears instead of auto-scrolling.
|
|
- Current: No such mechanism
|
|
- Target: "3 new posts" banner appears when refetch returns posts newer than the oldest visible post; tapping banner scrolls to top and shows new posts
|
|
- Acceptance: Banner appears for ≥1 new post, does not appear when no new posts, tap navigates to top
|
|
|
|
## Boundaries
|
|
|
|
**In scope:**
|
|
- Feed query (backend) — posts from followed accounts, paginated
|
|
- Feed list UI (frontend) — post cards with author, timestamp, content, reaction counts
|
|
- Pull-to-refresh gesture
|
|
- New posts indicator banner
|
|
- Empty state when user follows no one or no posts exist
|
|
|
|
**Out of scope:**
|
|
- Creating posts — that is Phase 4
|
|
- Reacting to posts — that is Phase 5
|
|
- Following/unfollowing accounts — that is Phase 2 (already done)
|
|
- Push notifications for new posts — separate backlog item
|
|
|
|
## Constraints
|
|
|
|
- Feed query must use cursor-based pagination (not offset) — the database has 500K+ posts and offset pagination is unacceptably slow beyond page 3
|
|
- The feed card component must reuse the existing `<AvatarImage>` component from Phase 2
|
|
|
|
## Acceptance Criteria
|
|
|
|
- [ ] `GET /api/feed` returns posts only from followed accounts (not all posts)
|
|
- [ ] `GET /api/feed` supports `cursor` parameter for pagination
|
|
- [ ] Feed renders correctly at 0, 1, and 20+ posts
|
|
- [ ] Pull-to-refresh triggers refetch
|
|
- [ ] New posts indicator appears when posts newer than current view exist
|
|
- [ ] Empty state renders when user follows no one
|
|
|
|
## Ambiguity Report
|
|
|
|
| Dimension | Score | Min | Status | Notes |
|
|
|--------------------|-------|------|--------|----------------------------------|
|
|
| Goal Clarity | 0.92 | 0.75 | ✓ | |
|
|
| Boundary Clarity | 0.95 | 0.70 | ✓ | Explicit out-of-scope list |
|
|
| Constraint Clarity | 0.80 | 0.65 | ✓ | Cursor pagination required |
|
|
| Acceptance Criteria| 0.85 | 0.70 | ✓ | 6 pass/fail criteria |
|
|
| **Ambiguity** | 0.12 | ≤0.20| ✓ | |
|
|
|
|
## Interview Log
|
|
|
|
| Round | Perspective | Question summary | Decision locked |
|
|
|-------|-----------------|------------------------------|-----------------------------------------|
|
|
| 1 | Researcher | What exists in posts today? | posts + follows tables exist, no feed |
|
|
| 2 | Simplifier | Minimum viable feed? | Cards + pull-refresh, no auto-scroll |
|
|
| 3 | Boundary Keeper | What's NOT this phase? | Creating posts, reactions out of scope |
|
|
| 3 | Boundary Keeper | What does done look like? | Scrollable feed with 4 card fields |
|
|
|
|
---
|
|
|
|
*Phase: 03-post-feed*
|
|
*Spec created: 2025-01-20*
|
|
*Next step: /gsd:discuss-phase 3 — implementation decisions (card layout, loading skeleton, etc.)*
|
|
```
|
|
|
|
**Example 2: CLI tool (Database backup)**
|
|
|
|
```markdown
|
|
# Phase 2: Backup Command — Specification
|
|
|
|
**Created:** 2025-01-20
|
|
**Ambiguity score:** 0.15
|
|
**Requirements:** 3 locked
|
|
|
|
## Goal
|
|
|
|
A `gsd backup` CLI command creates a reproducible database snapshot that can be restored by `gsd restore` (a separate phase).
|
|
|
|
## Background
|
|
|
|
No backup tooling exists. The project uses PostgreSQL. Developers currently use `pg_dump` manually — there is no standardized process, no output naming convention, and no CI integration. Three incidents in the last quarter involved restoring from wrong or corrupt dumps.
|
|
|
|
## Requirements
|
|
|
|
1. **Backup creation**: CLI command executes a full database backup.
|
|
- Current: No `backup` subcommand exists in the CLI
|
|
- Target: `gsd backup` connects to the database (via `DATABASE_URL` env or `--db` flag), runs pg_dump, writes output to `./backups/YYYY-MM-DD_HH-MM-SS.dump`
|
|
- Acceptance: Running `gsd backup` on a test database creates a `.dump` file; running `pg_restore` on that file recreates the database without error
|
|
|
|
2. **Network retry**: Transient network failures are retried automatically.
|
|
- Current: pg_dump fails immediately on network error
|
|
- Target: Backup retries up to 3 times with 5-second delay; 4th failure exits with code 1 and a message to stderr
|
|
- Acceptance: Simulating 2 sequential network failures causes 2 retries then success; simulating 4 failures causes exit code 1 and stderr message
|
|
|
|
3. **Partial cleanup**: Failed backups do not leave corrupt files.
|
|
- Current: Manual pg_dump leaves partial files on failure
|
|
- Target: If backup fails after starting, the partial `.dump` file is deleted before exit
|
|
- Acceptance: After a simulated failure mid-dump, no `.dump` file exists in `./backups/`
|
|
|
|
## Boundaries
|
|
|
|
**In scope:**
|
|
- `gsd backup` subcommand (full dump only)
|
|
- Output to `./backups/` directory (created if missing)
|
|
- Network retry (3 attempts)
|
|
- Partial file cleanup on failure
|
|
|
|
**Out of scope:**
|
|
- `gsd restore` — that is Phase 3
|
|
- Incremental backups — separate backlog item (full dump only for now)
|
|
- S3 or remote storage — separate backlog item
|
|
- Encryption — separate backlog item
|
|
- Scheduled/cron backups — separate backlog item
|
|
|
|
## Constraints
|
|
|
|
- Must use `pg_dump` (not a custom query) — ensures compatibility with standard `pg_restore`
|
|
- `--no-retry` flag must be available for CI use (fail fast, no retries)
|
|
|
|
## Acceptance Criteria
|
|
|
|
- [ ] `gsd backup` creates a `.dump` file in `./backups/YYYY-MM-DD_HH-MM-SS.dump` format
|
|
- [ ] `gsd backup` uses `DATABASE_URL` env var or `--db` flag for connection
|
|
- [ ] 3 retries on network failure, then exit code 1 with stderr message
|
|
- [ ] `--no-retry` flag skips retries and fails immediately on first error
|
|
- [ ] No partial `.dump` file left after a failed backup
|
|
|
|
## Ambiguity Report
|
|
|
|
| Dimension | Score | Min | Status | Notes |
|
|
|--------------------|-------|------|--------|--------------------------------|
|
|
| Goal Clarity | 0.90 | 0.75 | ✓ | |
|
|
| Boundary Clarity | 0.95 | 0.70 | ✓ | Explicit out-of-scope list |
|
|
| Constraint Clarity | 0.75 | 0.65 | ✓ | pg_dump required |
|
|
| Acceptance Criteria| 0.80 | 0.70 | ✓ | 5 pass/fail criteria |
|
|
| **Ambiguity** | 0.15 | ≤0.20| ✓ | |
|
|
|
|
## Interview Log
|
|
|
|
| Round | Perspective | Question summary | Decision locked |
|
|
|-------|-----------------|------------------------------|-----------------------------------------|
|
|
| 1 | Researcher | What backup tooling exists? | None — pg_dump manual only |
|
|
| 2 | Simplifier | Minimum viable backup? | Full dump only, local only |
|
|
| 3 | Boundary Keeper | What's NOT this phase? | Restore, S3, encryption excluded |
|
|
| 4 | Failure Analyst | What goes wrong on failure? | Partial files, CI fail-fast needed |
|
|
|
|
---
|
|
|
|
*Phase: 02-backup-command*
|
|
*Spec created: 2025-01-20*
|
|
*Next step: /gsd:discuss-phase 2 — implementation decisions (progress reporting, flag design, etc.)*
|
|
```
|
|
|
|
</good_examples>
|
|
|
|
<guidelines>
|
|
**Every requirement needs all three fields:**
|
|
- Current: grounds the requirement in reality — what exists today?
|
|
- Target: the concrete change — not "improve X" but "X becomes Y"
|
|
- Acceptance: the falsifiable check — how does a verifier confirm this?
|
|
|
|
**Ambiguity Report must reflect the actual interview.** If a dimension is below minimum, mark it ⚠ — the planner knows to treat it as an assumption rather than a locked requirement.
|
|
|
|
**Interview Log is evidence of rigor.** Don't skip it. It shows that requirements came from discovery, not assumption.
|
|
|
|
**Boundaries protect the phase from scope creep.** The out-of-scope list with reasoning is as important as the in-scope list. Future phases that touch adjacent areas can point to this SPEC.md to understand what was intentionally excluded.
|
|
|
|
**SPEC.md is a one-way door for requirements.** discuss-phase will treat these as locked. If requirements change after SPEC.md is written, the user should update SPEC.md first, then re-run discuss-phase.
|
|
|
|
**SPEC.md does NOT replace CONTEXT.md.** They serve different purposes:
|
|
- SPEC.md: what the phase delivers (requirements, boundaries, acceptance criteria)
|
|
- CONTEXT.md: how the phase will be implemented (decisions, patterns, tradeoffs)
|
|
|
|
discuss-phase generates CONTEXT.md after reading SPEC.md.
|
|
</guidelines>
|