Skip to content

Prevent generic OpenSpec task reuse#451

Merged
NagyVikt merged 1 commit into
mainfrom
agent/codex/fix-setup-openspec-reuse-output-2026-04-29-11-34
Apr 29, 2026
Merged

Prevent generic OpenSpec task reuse#451
NagyVikt merged 1 commit into
mainfrom
agent/codex/fix-setup-openspec-reuse-output-2026-04-29-11-34

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

The dirty-worktree continuation matcher treated the shared word OpenSpec as a meaningful task token. That made an openspec-disabled setup test reuse the dirty openspec-default sandbox and lose the expected plan/change slug output path. The matcher now ignores OpenSpec as a generic workflow word, while template parity keeps installed starters aligned.

The full test run also exposed stale assertions for the current managed AGENTS wording and a missing README package-summary anchor, so those test surfaces now match the shipped contract.

Constraint: Primary main had unrelated dirty files, so the fix was developed in a clean isolated agent worktree.

Rejected: Print slugs for reused worktrees only | would hide the false-positive reuse and still route distinct OpenSpec tasks into the wrong sandbox

Confidence: high

Scope-risk: narrow

Directive: Keep scripts/agent-branch-start.sh and templates/scripts/agent-branch-start.sh in parity when changing bootstrap matching logic.

Tested: bash -n scripts/agent-branch-start.sh

Tested: bash -n templates/scripts/agent-branch-start.sh

Tested: node --test --test-name-pattern "setup agent-branch-start supports optional OpenSpec auto-bootstrap toggles" test/setup.test.js

Tested: node --test test/setup.test.js test/branch.test.js

Tested: node --test --test-name-pattern "doctor refreshes existing managed AGENTS block by default|README keeps canonical About copy and problem-solution visuals aligned|setup agent-branch-start supports optional OpenSpec auto-bootstrap toggles" test/doctor.test.js test/metadata.test.js test/setup.test.js

Tested: npm test

Not-tested: GitHub Actions rerun
@NagyVikt NagyVikt merged commit 51de3e2 into main Apr 29, 2026
2 of 5 checks passed
@NagyVikt NagyVikt deleted the agent/codex/fix-setup-openspec-reuse-output-2026-04-29-11-34 branch April 29, 2026 09:47
@NagyVikt NagyVikt mentioned this pull request Apr 29, 2026
NagyVikt added a commit that referenced this pull request Apr 29, 2026
The npm registry is still at 7.0.41 while main contains the agent-session and cockpit work from PRs #451 through #473, so this assigns the next patch version and records release notes for that payload.

Constraint: Release work must keep package metadata and README release notes in sync.

Rejected: Retag or republish 7.0.41 | npm versions are immutable and the registry already reports 7.0.41.

Confidence: high

Scope-risk: narrow

Directive: Do not publish without confirming npm still lacks 7.0.42.

Tested: node --test test/metadata.test.js

Tested: node --check bin/multiagent-safety.js

Tested: npm pack --dry-run

Tested: openspec validate --specs

Tested: git diff --check

Not-tested: Full npm test; current baseline is known red outside this release metadata lane.

Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant