* test(#1995): regression test for agent-<id> branch namespace Add failing-first tests proving that normalizeCleanupManifestEntry and planWorktreeRecordAgent reject Claude Code's current agent-<id> isolation branches (only worktree-agent-<id> is accepted). Boundary tests cover both namespaces plus rejection cases. * fix(#1995): widen worktree branch regex to accept agent-<id> namespace Claude Code's isolation="worktree" branch naming changed from worktree-agent-<id> to agent-<id>. Widen the regex in all 7 locations from ^worktree-agent-[A-Za-z0-9._/-]+$ to ^(worktree-)?agent-[A-Za-z0-9._/-]+$ so both namespaces are accepted. Introduce a shared WORKTREE_AGENT_BRANCH_RE constant in src/worktree-safety.cts to prevent future drift. Closes #1995 * fix(#1995): update workflow guards, test assertions, and baselines Widen the branch-check regex in execute-phase.md and execute-plan.md. Update all test assertions that checked for ^worktree-agent- to expect the widened ^(worktree-)?agent- pattern. Regenerate golden-install-parity fixtures, agent-size-baseline, and workflow-size-baseline. Closes #1995 * fix(#1995): update extractCwdGuardBash sanity check for widened regex The e2e test's sanity check verified the extracted bash block contained 'worktree-agent-'. After widening to '(worktree-)?agent-', update the check to match the new pattern. * fix(#1995): widen missed workflow-guard branch check + changeset + lint fixes - hooks/gsd-workflow-guard.js: widen startsWith('worktree-agent-') to /^(worktree-)?agent-/ regex — same defect class, was missed in prior commit - tests/worktree.test.cjs: fix indentation regression from prior edit - Add .changeset/1995-worktree-agent-branch-namespace.md (pr:0 placeholder) Found by orthogonal code review (Step 4). * fix(#1995): regenerate golden + size baselines for workflow-guard change * docs(#1995): backfill changeset PR number (2548)
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"gsd-advisor-researcher.md": 4727,
|
|
"gsd-ai-researcher.md": 5943,
|
|
"gsd-assumptions-analyzer.md": 4646,
|
|
"gsd-code-fixer.md": 36640,
|
|
"gsd-code-reviewer.md": 16870,
|
|
"gsd-codebase-mapper.md": 21485,
|
|
"gsd-debug-session-manager.md": 17161,
|
|
"gsd-debugger.md": 57197,
|
|
"gsd-doc-classifier.md": 11717,
|
|
"gsd-doc-synthesizer.md": 13154,
|
|
"gsd-doc-verifier.md": 12403,
|
|
"gsd-doc-writer.md": 38924,
|
|
"gsd-domain-researcher.md": 7032,
|
|
"gsd-eval-auditor.md": 12496,
|
|
"gsd-eval-planner.md": 7008,
|
|
"gsd-executor.md": 47955,
|
|
"gsd-framework-selector.md": 6778,
|
|
"gsd-integration-checker.md": 15238,
|
|
"gsd-intel-updater.md": 18166,
|
|
"gsd-mempalace-curator.md": 4325,
|
|
"gsd-nyquist-auditor.md": 7345,
|
|
"gsd-pattern-mapper.md": 12487,
|
|
"gsd-phase-researcher.md": 40866,
|
|
"gsd-plan-checker.md": 44780,
|
|
"gsd-planner.md": 49327,
|
|
"gsd-project-researcher.md": 22242,
|
|
"gsd-research-synthesizer.md": 13847,
|
|
"gsd-roadmapper.md": 22273,
|
|
"gsd-security-auditor.md": 9431,
|
|
"gsd-ui-auditor.md": 17249,
|
|
"gsd-ui-checker.md": 14118,
|
|
"gsd-ui-researcher.md": 19557,
|
|
"gsd-user-profiler.md": 8516,
|
|
"gsd-verifier.md": 49140
|
|
}
|