Commit graph

1416 commits

Author SHA1 Message Date
deseltrus
e9aa351be9 feat(validate): inject verification classes into milestone validation prompt (#2621)
Verification class fields (contract, integration, operational, UAT) are
captured during milestone planning and stored in the DB, but the
validate-milestone prompt never reads them back. This means milestones
can pass validation even when planned operational verification items
(migrations, deployments, runtime checks) were never addressed.

This change:
- Queries getMilestone() in buildValidateMilestonePrompt() to retrieve
  verification_* fields and injects them as structured context
- Adds a verification class compliance step to validate-milestone.md
  that requires the validator to check evidence for each non-empty class
- Adds a Verification Class Compliance table to the validation template

Backwards compatible: empty verification_* fields (existing milestones)
produce no additional prompt content.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 09:31:41 -06:00
mastertyko
b8fe8a6f2d fix: honor explicit model config when model is not in known tier map (#2643)
When a user configures a phase-specific model that is not in
MODEL_CAPABILITY_TIER (e.g. gpt-5.4, custom-provider/my-model),
getModelTier() defaults to "heavy". This causes resolveModelForComplexity
to downgrade every standard/light unit to tier_models, silently ignoring
the user's explicit configuration.

Add an isKnownModel() check before the downgrade logic. If the configured
primary model is not in the known tier map, skip downgrading entirely and
honor the user's choice. Known models continue to be routed normally.

Closes #2192
2026-03-26 09:31:10 -06:00
mastertyko
9f071fc1b0 fix: exclude lastReasoning from retry diagnostic to prevent hallucination loops (#2663)
formatTraceSummary() is used by getDeepDiagnostic() which feeds into retry
prompts in phases.ts. Including the prior assistant's free-text reasoning
caused hallucination loops when the previous turn was truncated or malformed
— the model would recycle its own interrupted reasoning as if it were
diagnostic truth.

The fix removes the lastReasoning field from formatTraceSummary() output.
The crash recovery path (formatCrashRecoveryBriefing) has its own safe
handling of lastReasoning with explicit framing and is not affected.

Closes #2195
2026-03-26 09:30:49 -06:00
mastertyko
e9a41c0df1 fix: persist rewrite-docs attempt counter to disk for session restart survival (#2671)
The rewrite-docs circuit breaker counter (MAX_REWRITE_ATTEMPTS=3) was
stored on the in-memory session object, resetting to 0 on every session
restart (crash recovery, pause/resume, step-mode). This allowed the
rewrite-docs dispatch rule to fire indefinitely without ever tripping
the circuit breaker.

The fix persists the counter to .gsd/runtime/rewrite-count.json using
the established runtime directory pattern. The dispatch rule reads from
disk instead of the session object, and the post-unit completion handler
resets both disk and in-memory counters.

Closes #2203
2026-03-26 09:30:26 -06:00
TÂCHES
3e4612c67e refine: extract findMissingSummaries helper in auto-dispatch (#2672)
Deduplicate the missing-slice-summary validation logic used by both
the validating-milestone and completing-milestone dispatch rules into
a single findMissingSummaries() helper function.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 09:26:13 -06:00
Tom Boucher
4a10fc4fe7 test: add cross-platform filesystem safety static analysis guard (#2541)
* test: add cross-platform filesystem safety static analysis guard

Scan all production .ts files for patterns that break on Windows,
Linux, or macOS:

1. Hardcoded /tmp paths (FAIL) — use os.tmpdir()
2. String concatenation path separators (WARN) — use path.join()
3. rmSync without force: true (FAIL) — Windows read-only files
4. Shell command path interpolation (FAIL) — injection/spaces risk
5. existsSync + delete TOCTOU races (WARN) — informational
6. Recursive rmSync without containment check (WARN) — safety audit

Includes allowlists for known-safe patterns (e.g. cmux Unix socket,
npm package name constants). Reports violations with file path and
line number context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: normalize path separators in allowlist matching for Windows CI

The isAllowlisted function compared relative paths using forward slashes,
but path.relative() produces backslashes on Windows, causing allowlist
entries to never match on the Windows CI runner.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 09:24:45 -06:00
Yang Yang
665e2aa1cb fix(notifications): prefer terminal-notifier over osascript on macOS (#2633)
osascript display notification is silently swallowed by macOS when the
calling terminal app (Ghostty, iTerm2, etc.) lacks notification
permissions in System Settings. The command exits 0 with no error,
making the failure invisible.

terminal-notifier registers as its own Notification Center app, so
macOS prompts the user for permission on first use — the expected UX.

Changes:
- Add findExecutable() helper to locate terminal-notifier on PATH
- buildDesktopNotificationCommand() prefers terminal-notifier when
  available, falls back to osascript (preserving existing behavior)
- Update tests to handle both terminal-notifier and osascript paths
- Add macOS delivery note to docs/configuration.md notifications section
- Add troubleshooting entry for notifications not appearing on macOS

Fixes #2632

Co-authored-by: Yang Yang(NYC) <Yang.Yang2@bcg.com>
2026-03-26 09:24:32 -06:00
mastertyko
bbd9468c78 fix: classify stream-truncation JSON parse errors as transient (#2636)
When the API stream is truncated mid-chunk, pi reassembles the partial
tool-call JSON and gets a SyntaxError (e.g. "Expected double-quoted
property name", "Unexpected end of JSON input"). classifyProviderError()
did not match these patterns and fell through to the "unknown = permanent"
default, pausing auto-mode indefinitely instead of retrying.

These JSON parse errors are the downstream symptom of a connection drop —
same root cause as ECONNRESET, one layer up. Add an isMalformedStream
guard that matches common JSON SyntaxError patterns and classifies them
as transient with the same 15s backoff as connection errors.

Closes #2572
2026-03-26 09:20:41 -06:00
mastertyko
8358f262e9 fix: call ensureDbOpen() before slice queries in /gsd discuss (#2640)
showDiscuss() is a command handler, not a tool handler, so it lacks the
automatic ensureDbOpen() call that tool handlers get. On cold-start
sessions where no GSD tool has been called yet, isDbAvailable() returns
false, normSlices falls to [], and the function exits with a misleading
"All slices are complete — nothing to discuss." notification.

Add ensureDbOpen() before both isDbAvailable() call sites in
guided-flow.ts:
1. showDiscuss() — the primary bug (false "all complete" exit)
2. buildDiscussSlicePrompt() — secondary (incomplete context when
   inlining completed-slice summaries)

Closes #2560
2026-03-26 09:15:55 -06:00
mastertyko
4117e299e7 fix(prompts): use --body-file for forensics issue creation (#2641)
The forensics prompt instructed the agent to create GitHub issues using
an inline heredoc with --body "$(cat <<'EOF' ... EOF)". This caused
two bugs:

1. Escaping: backticks and double-quotes in the body were passed with
   leading backslashes, breaking fenced code blocks and inline code in
   the rendered issue.

2. Truncation: the heredoc delimiter EOF could match a bare "EOF" line
   in the body content, silently dropping everything after it.

Switch to writing the body to a temp file and passing it via --body-file,
which bypasses shell quoting entirely. Also change the heredoc delimiter
from EOF to GSD_ISSUE_BODY to avoid accidental termination.

Closes #2465
2026-03-26 09:15:42 -06:00
mastertyko
14e5264d52 fix: isLockProcessAlive should return true for own PID (#2642)
The self-PID guard in isLockProcessAlive returned false for
process.pid, treating the current process as dead. This caused the
doctor to delete auto.lock and .gsd.lock/ during live auto-mode
sessions (via postUnitPreVerification), breaking the session lock
and silently stopping auto-mode.

The guard was originally added for startAuto() where a matching PID
could mean a recycled PID from a prior crash. But startAuto already
has its own `crashLock.pid !== process.pid` check before calling
isLockProcessAlive, so the function-level guard was redundant there
and harmful everywhere else.

Change `pid === process.pid` to return true (alive) instead of false.

Closes #2470
2026-03-26 09:15:21 -06:00
mastertyko
6f3275ff59 fix: check ASSESSMENT file for UAT verdict in checkNeedsRunUat (#2646)
The run-uat prompt instructs the agent to write the UAT verdict to the
ASSESSMENT file (via gsd_summary_save artifact_type:"ASSESSMENT"), but
checkNeedsRunUat only checked the UAT spec file for a verdict. Since the
spec file never receives a verdict, hasVerdict() always returned false and
the run-uat unit was re-dispatched indefinitely — triggering the stuck-loop
detector after 3 identical dispatches.

Add ASSESSMENT file checks on both the DB-primary and file-based fallback
paths in checkNeedsRunUat. If either the UAT spec or the ASSESSMENT file
contains a verdict, UAT has been run and dispatch is skipped.

Closes #2644
2026-03-26 09:15:03 -06:00
mastertyko
c9da003151 fix: use pauseAuto instead of stopAuto for warning-level dispatch stops (#2666)
When the uat-verdict-gate returns a non-PASS verdict, it returns
action: "stop" with level: "warning". This was routed to
closeoutAndStop() → stopAuto(), which destroys the session — the user
must cold-restart `/gsd auto` from scratch.

A non-PASS UAT verdict is a recoverable human checkpoint, not an
infrastructure failure. The fix routes warning-level stops to
pauseAuto() instead, making the session resumable with `/gsd auto`.
Error and info-level stops continue to use closeoutAndStop() for
infrastructure failures and terminal conditions respectively.

Closes #2474
2026-03-26 09:13:28 -06:00
mastertyko
43b1de6d59 fix: signal malformed tool arguments in toolcall_end event (#2647)
When the API stream is truncated mid-tool-call, PartialMessageBuilder
emits a toolcall_end event with { _raw: "<broken json>" } in the
arguments — but the event looks identical to a healthy tool completion.
Downstream consumers (error classifiers, tool handlers, activity log)
have no way to distinguish a truncated call from a completed one.

Add a malformedArguments: boolean flag to the toolcall_end event variant
in AssistantMessageEvent. The flag is set to true only in the JSON parse
catch path, so existing consumers (which do not check for it) are
unaffected. New consumers like classifyProviderError can use it to
handle truncated tool calls appropriately.

Closes #2574
2026-03-26 08:15:16 -06:00
mastertyko
badcaa3152 fix: prevent double mergeAndExit on milestone completion (#2648)
When a milestone completes, phases.ts calls mergeAndExit to merge the
worktree branch back to main. It then calls closeoutAndStop → stopAuto,
which unconditionally calls mergeAndExit again. The second call fails
because the branch was already deleted by the first merge, producing a
misleading 'not something we can merge' warning even though the merge
succeeded.

Add a milestoneMergedInPhases session flag that phases.ts sets after a
successful merge. stopAuto checks this flag and skips its own merge
when it is already set. The flag is cleared in AutoSession.reset() so
it does not leak across sessions.

Closes #2645
2026-03-26 08:14:54 -06:00
mastertyko
b03694fb4f fix: respect queue-order.json in DB-backed state derivation (#2649)
getActiveMilestoneId and deriveStateFromDb sorted milestones by ID
(localeCompare / milestoneIdSort) while the dispatch guard in
dispatch-guard.ts sorted by queue-order.json via findMilestoneIds.
When a user reordered milestones via /gsd queue to prioritize a
later-numbered milestone, the state machine ignored the reordering
and dispatched to the earlier-numbered one. The dispatch guard then
blocked completion because the queue-ordered-first milestone was
incomplete — producing a deadlock.

Replace the lexicographic sort with sortByQueueOrder(loadQueueOrder())
in both the getActiveMilestoneId DB path and the deriveStateFromDb
milestone sort. This aligns all three subsystems (state derivation,
dispatch, and dispatch guard) on the same ordering.

Closes #2556
2026-03-26 08:14:23 -06:00
mastertyko
f0e727d369 fix: update DB task status in writeBlockerPlaceholder for execute-task (#2657)
writeBlockerPlaceholder writes a placeholder SUMMARY file when idle
recovery exhausts all retries, but never updated the DB task status.
verifyExpectedArtifact checks the DB as the authoritative source for
execute-task units — with status still "pending", verification failed,
deriveState re-derived the same task, and the dispatch loop repeated
indefinitely (observed as 8-9 "Advancing pipeline" messages).

After writing the file, call updateTaskStatus to mark the task as
"complete" in the DB. This lets verifyExpectedArtifact pass and
breaks the infinite re-dispatch loop.

Closes #2531
2026-03-26 08:13:36 -06:00
TÂCHES
c2aaf6ace8 refactor: extract runSafely helper for try-catch-debug-continue pattern (#2611)
* refactor: extract runSafely helper for try-catch-debug-continue pattern

Reduces boilerplate in auto-post-unit.ts by extracting the repeated
try { op() } catch (e) { debugLog(ctx, { phase, error }) } pattern
into a reusable runSafely() helper in auto-utils.ts. Replaces 6
sequential blocks (github-sync, prune-bg-shell, browser-teardown,
worktree-sync, rewrite-docs-resolve, reactive-state-cleanup).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* ci: trigger rebuild after null-safety fix

* chore: trigger CI rebuild

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 08:11:01 -06:00
TÂCHES
dc378242bd Merge pull request #2624 from gsd-build/feat/ecosystem-skills-directory-merge
feat(skills): use ~/.agents/skills/ as primary skills directory with curated catalog
2026-03-26 00:01:11 -06:00
Lex Christopherson
959a0e1a19 fix: normalize path separators in matchesProjectFileMarker for Windows
On Windows, scanProjectFiles returns backslash paths (e.g.
"apps\mobile\app\build.gradle") but PROJECT_FILES markers use forward
slashes ("app/build.gradle"). Normalize scanned paths to forward
slashes before matching.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:55:09 -06:00
Lex Christopherson
dc74072765 fix(tests): remove obsolete doctor filesystem test
The doctor-task-done-missing-summary-slice-loop test was written for
the old filesystem-based task_done_missing_summary check, which was
refactored to db_done_task_no_summary (SQLite-based). The test creates
filesystem structures but the current check queries the database,
making it fundamentally incompatible.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:46:51 -06:00
TÂCHES
bef46e9b5b Merge pull request #2617 from ahwlsqja/fix/filesystem-task-reconcile-2514
fix: reconcile stale task status in filesystem-based state derivation
2026-03-25 23:26:01 -06:00
ahwlsqja
43de82912e fix: reconcile stale task status in filesystem-based state derivation (#2514)
`_deriveStateImpl` (used when no gsd.db exists) lacked the SUMMARY-based
reconciliation added to `deriveStateFromDb` in 0e7a01f4. Heading-style
tasks (`### T01:`) are always parsed as `done=false` by `parsePlan`
because the heading syntax has no checkbox. When the agent writes a
SUMMARY file but the plan heading has no checkbox, the task appears
incomplete forever, causing infinite re-dispatch.

Now checks each non-done task for a SUMMARY file on disk after
`parsePlan()`, mirroring the DB reconciliation logic.

Root cause: `parsePlan()` recognizes two task formats:
1. `- [x] **T01: Title**` → done from checkbox state
2. `### T01: Title` → always done=false (no checkbox to read)

The DB path (deriveStateFromDb) was already fixed in 0e7a01f4 to
reconcile via SUMMARY files. This commit applies the same fix to
the filesystem path used by projects without gsd.db.
2026-03-26 14:14:34 +09:00
TÂCHES
491820ce9b Merge pull request #2614 from gsd-build/refine/adopt-parseUnitId-everywhere
refactor: adopt parseUnitId utility across all auto-* modules
2026-03-25 23:13:12 -06:00
TÂCHES
07375e4948 Merge pull request #2609 from gsd-build/refine/extract-planning-state-checks
refactor: extract planning-state validation helpers in detectRogueFileWrites
2026-03-25 23:13:02 -06:00
TÂCHES
cc6eee4d56 Merge pull request #2613 from gsd-build/refine/flatten-sync-milestone-dir
refactor: flatten syncMilestoneDir nesting with shared helper
2026-03-25 23:12:48 -06:00
TÂCHES
d3c9319869 Merge pull request #2607 from gsd-build/refine/consolidate-verdict-parsing
refine: consolidate verdict parsing and schema validation
2026-03-25 23:12:33 -06:00
TÂCHES
4d4350b91d Merge pull request #2612 from igouss/feat/structured-error-propagation
feat(gsd): wire structured error propagation through UnitResult
2026-03-25 23:10:43 -06:00
Lex Christopherson
f7eac09d51 fix: merge duplicate extractUatType imports in auto-dispatch
Consolidate two separate imports from files.js into one to resolve
TS2300 duplicate identifier error.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:08:41 -06:00
Lex Christopherson
cc47fb58b3 fix: use Record<string, any> for hasNonEmptyFields to accept typed DB rows
MilestoneRow and SliceRow interfaces don't have index signatures,
so they can't be assigned to Record<string, unknown>. Using
Record<string, any> allows the helper to accept any typed row object.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:08:05 -06:00
Lex Christopherson
15030ce97d refactor: adopt parseUnitId utility across all auto-* modules
Replace manual unitId.split("/") calls with the canonical parseUnitId()
utility from unit-id.ts. This eliminates ad-hoc array indexing patterns
(parts[0]!, parts[1], parts[2]) in favor of named destructuring
({ milestone, slice, task }), improving readability and consistency.

Files modified:
- auto-post-unit.ts (5 occurrences)
- auto-artifact-paths.ts (2 occurrences)
- auto-dashboard.ts (1 occurrence)
- auto-verification.ts (1 occurrence)
- auto-start.ts (1 occurrence)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:07:55 -06:00
Lex Christopherson
5d14ac446b refactor: flatten syncMilestoneDir nesting with shared helper
Extract syncDirFiles() helper to eliminate duplicated iterate/filter/copy/catch
logic across three directory levels (milestone root, slices, tasks). Reduces
maximum nesting depth from 4 to 2.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:07:31 -06:00
TÂCHES
91e7bb7d92 Merge branch 'main' into refine/consolidate-verdict-parsing 2026-03-25 23:02:14 -06:00
Iouri Goussev
dc723b2519 feat(gsd): wire structured error propagation through UnitResult
Add ErrorContext interface to UnitResult so error information (provider
errors, timeouts, idle watchdog kills) is no longer discarded at the
resolve boundary. The four call sites that previously threw away context
now attach typed error metadata with category, message, and transience.

Downstream consumers (stuck detection in phases.ts, journal unit-end
events) use the structured errorContext field directly instead of
fragile regex heuristics on message content.
2026-03-26 01:01:15 -04:00
Lex Christopherson
bf8ebc0346 fix(tests): update doctor issue code to db_done_task_no_summary
The test referenced task_done_missing_summary which was renamed to
db_done_task_no_summary in the DoctorIssueCode type.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:01:07 -06:00
TÂCHES
53a3388d89 Merge pull request #2610 from gsd-build/refine/dedup-merge-cleanup
refactor: extract merge-state cleanup helper in reconcileMergeState
2026-03-25 23:00:46 -06:00
TÂCHES
363910b184 Merge pull request #2608 from gsd-build/refine/split-doctor-checks
refactor: split doctor-checks into focused modules
2026-03-25 22:58:08 -06:00
TÂCHES
704ec8f29c Merge pull request #2585 from 0xLeathery/feat/quality-gates-v2
feat: embed 8-question quality gates with parallel evaluation across GSD lifecycle
2026-03-25 22:57:42 -06:00
TÂCHES
0929fd3c36 Merge pull request #2606 from gsd-build/refine/merge-worktree-sync-into-auto-worktree
refactor: merge auto-worktree-sync into auto-worktree
2026-03-25 22:57:30 -06:00
Lex Christopherson
0aa7490bc6 refactor: extract merge-state cleanup helper in reconcileMergeState
The same ~20-line cleanup sequence (merge abort / squash msg unlink /
hard reset) appeared twice in reconcileMergeState(). Extract into a
private abortAndResetMerge() helper to eliminate the duplication.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 22:55:44 -06:00
Lex Christopherson
96c86c5a78 refactor: extract planning-state validation helpers in detectRogueFileWrites
Deduplicate near-identical "has any non-empty field" checks for milestone
and slice planning state into a shared hasNonEmptyFields() helper with
field-name arrays, reducing 8 repeated String(row.field||"").trim() calls
to 2 declarative one-liners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 22:52:26 -06:00
Ethan Hurst
f70a912d59 feat: add parallel quality gate evaluation with evaluating-gates phase
Introduce infrastructure to spawn parallel sub-agents for independent
quality gate questions (Q3: Threat Surface, Q4: Requirement Impact)
during slice planning, reducing wall-clock time per milestone.

- quality_gates DB table (schema v12) with CRUD functions
- evaluating-gates phase in state machine between planning and executing
- gate-evaluate dispatch rule (opt-in via gate_evaluation preference)
- gsd_save_gate_result tool for sub-agents to persist findings
- Gate seeding inside plan-slice transaction (atomic with plan + tasks)
- Markdown renderer injects gate findings into plan.md and task-plan.md
- Recovery, rogue detection, dashboard, and scope-badge wired for new phase
- 15 new tests (9 storage + 6 dispatch/state)

  plan-slice tool
    └─ transaction: upsertSlicePlanning + insertTask(s) + insertGateRow(s)
    └─ renderPlanFromDb

  deriveState() → phase: "evaluating-gates"  (pending slice gates)

  auto-dispatch: "evaluating-gates → gate-evaluate"
    ├─ if !prefs.gate_evaluation.enabled → markAllGatesOmitted → skip
    └─ dispatch gate-evaluate unit
         └─ parent agent spawns sub-agents in parallel:
              ├─ Q3 agent → gsd_save_gate_result(verdict, findings)
              └─ Q4 agent → gsd_save_gate_result(verdict, findings)

  deriveState() → phase: "executing"  (no pending slice gates)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 14:51:38 +10:00
Lex Christopherson
b559651531 refactor: split doctor-checks into focused modules
Each health check function (git, runtime, global, engine) moves to its
own file with only the imports it needs. doctor-checks.ts becomes a
re-export barrel for backward compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 22:50:25 -06:00
Ethan Hurst
10e18e6a4b feat: add 8-question quality gates to planning and completion templates
Embed 6 new quality questions (Q3-Q8) into the GSD lifecycle so
consumer projects get adversarial, failure, load, and operational
coverage by default. All sections are opt-out ("OMIT ENTIRELY") for
simple slices.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 14:50:03 +10:00
TÂCHES
1961fd7651 Merge pull request #2602 from gsd-build/refine/decouple-session-forensics-from-worktree
refactor: decouple session-forensics from auto-worktree
2026-03-25 22:49:36 -06:00
TÂCHES
277edae27e Merge pull request #2605 from gsd-build/refine/dedupe-artifact-path-functions
refactor: deduplicate artifact path functions into single module
2026-03-25 22:49:22 -06:00
TÂCHES
03d47fd51a Merge pull request #2604 from gsd-build/refine/remove-dead-selfHeal
refactor: remove dead selfHealRuntimeRecords function
2026-03-25 22:48:32 -06:00
Lex Christopherson
26aa82f02e refine: consolidate verdict parsing and schema validation
Extract verdict extraction, normalization, and schema validation into a
single verdict-parser.ts module. This fixes inconsistent normalization
where `passed` was normalized to `pass` in state.ts but not in
auto-dispatch.ts or auto-prompts.ts, and centralizes scattered verdict
schema definitions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 22:48:10 -06:00
TÂCHES
00e948ed8e Merge pull request #2603 from gsd-build/refine/remove-unused-gate-params
refine: remove unused basePath/unitId from verification gate
2026-03-25 22:47:56 -06:00
TÂCHES
eb9d2dd8c6 Merge pull request #2601 from gsd-build/refine/remove-dead-worktree-code
chore: remove dead worktree code and unused methods
2026-03-25 22:47:23 -06:00