Skip to content

Sync setup-openspeckit's whole fallback protocol with the live protocol - #131

Merged
brettheap merged 2 commits into
mainfrom
fix/openspeckit-fallback-protocol-sync
Oct 5, 2026
Merged

brettheap merged 2 commits into
mainfrom
fix/openspeckit-fallback-protocol-sync

Conversation

@brettheap

@brettheap brettheap commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Lane: codeXfactory-5

Why

Brett Heap, verbatim: "fix the rest of the fallback protocol lag too". The previous PR synced only the model-role bullet. setup-openspeckit writes a fallback copy of ~/.agents/protocols/openspec-speckit-workflow.md when the live file is missing, and that copy still lagged the live protocol in five hunks (154 diff lines).

What changed

Inside the f-string returned by openspec_speckit_protocol in devBenches/base-image/files/openspeckit/setup-openspeckit (nothing else in the script changes), the restored text is:

  • the "Triad Feature Amendments" section with its five subsections (Two layers and existing authority; Current instructions and durable amendment records; One final reconciliation and project landing; Single repository to triad migration; Manual adoption and automation limits);
  • the "Parking and resuming a feature" subsection;
  • the two placement-table rows (full openspec/ and optional feature amendment records) and the "Run full proposal operations" paragraph that replaced the older openspec CLI wording.

The one literal {spec,code} the live text brings in is doubled for the f-string. The live file has no backslashes and no run of three double quotes. The two project-agent-bootstrap.md paths stay rendered from agent_root as before.

devBenches/devcontainer.test/test-openspeckit-bootstrap.sh gains seven assert_contains lines in the WORKFLOW_PROTOCOL block, one per restored heading.

Verification

  1. Rendering openspec_speckit_protocol(Path('/home/brett/.agents')) and comparing with the live protocol: diff exit 0 and cmp identical, 23802 bytes each, no residual difference. Rendered with a different agent root, exactly two lines change (the two bootstrap paths), so the parametrization is intact.
  2. One literal stays: ~/.agents/workspace.yaml in the "Parking and resuming a feature" text. It is tilde-form, not a machine-specific path, and rendering it from agent_root would break the exact match.
  3. bash devBenches/devcontainer.test/test-openspeckit-bootstrap.sh: exit 0, 789 PASS, 0 FAIL, GREEN (782 before the seven new assertions). Run against the previous script, the suite gives 782 PASS and 7 FAIL, exactly the seven new assertions, so they bite.
  4. python3 devBenches/base-image/update-upstream.py check: exit 0, 21 vendored copies match the pin.

The match is against the live protocol as it stands today (md5 2cde86c1838d36f1858e6c7bc2099643); the fallback will lag again whenever that file is amended.

Status

HELD for Brett Heap's merge word. Not to be merged until he gives it.

🤖 Generated with Claude Code

Summary by Sourcery

Bring the setup-openspeckit fallback protocol back in sync with the live workflow protocol and verify the restored guidance.

Bug Fixes:

  • Synchronize the setup-openspeckit fallback workflow protocol with the current live protocol, including triad amendments, feature parking, repository placement, and proposal-operation guidance.

Enhancements:

  • Preserve agent-root path parametrization while keeping the generated fallback byte-for-byte aligned with the live protocol.

Tests:

  • Extend bootstrap validation to assert the restored workflow protocol sections, placement guidance, and registered-store instructions.

The fallback is written only when the live protocol is missing, and it lagged
the live file by five hunks: the Triad Feature Amendments section, the parking
and resuming subsection, and the OpenSpec placement and CLI wording. It now
renders byte-identical to the live file, still taking the bootstrap path from
agent_root. The bootstrap suite pins each restored section heading.

Lane: codeXfactory-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 15:23
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The protocol contains inaccurate staging guidance, unavailable references, and incomplete regression coverage.

Review effort: Balanced
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Synchronizes the generated fallback workflow protocol with the live OpenSpec/Speckit protocol.

Changes:

  • Adds triad amendment and feature parking guidance.
  • Updates OpenSpec placement/store-selection guidance.
  • Adds bootstrap regression assertions.
File Description
setup-openspeckit Expands the fallback protocol.
test-openspeckit-bootstrap.sh Checks restored protocol headings.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sourcery-ai

sourcery-ai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The fallback protocol emitted by setup-openspeckit is brought into exact parity with the current live openspec-speckit workflow, including the remaining five content hunks, and bootstrap coverage is expanded with seven targeted presence checks.

File-Level Changes

Change Details Files
Synchronize the generated fallback workflow protocol with the current live protocol while preserving agent-root path parameterization.
  • Restore the Triad Feature Amendments section and all five subsections.
  • Restore feature parking/resumption guidance and the updated placement and proposal-operation wording.
  • Escape the literal f-string braces and retain the intentional tilde-form workspace path.
  • Keep the change confined to the protocol f-string in the setup script.
devBenches/base-image/files/openspeckit/setup-openspeckit
Expand bootstrap tests to verify each restored protocol section is present.
  • Add assertions for the Triad Feature Amendments heading and its five subsections.
  • Add an assertion for the Parking and resuming a feature subsection.
devBenches/devcontainer.test/test-openspeckit-bootstrap.sh

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. The change adds a substantial workflow protocol that can cause users or agents to create and push WIP commits, reconstruct worktrees, alter branch history, and gate feature landing on reconciliation. Reverting the protocol stops future use, but commits or other repository-state changes already made would remain and require manual cleanup or rerunning the workflow.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Copilot AI balanced review requested due to automatic review settings October 5, 2026 15:29
The suite pinned only the restored section headings, so the two placement-table
rows and the full-proposal-operations paragraph could disappear unnoticed. Assert
each row, the paragraph's first line and its registered-store sentence.

Lane: codeXfactory-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The canonical synchronization target is external to the repository, and the PR remains explicitly held pending authorization.

Review effort: Balanced
Findings: None

Resolved since last review (3)

@brettheap
brettheap merged commit 4b348cc into main Oct 5, 2026
12 checks passed
@brettheap
brettheap deleted the fix/openspeckit-fallback-protocol-sync branch October 5, 2026 15:32
brettheap added a commit that referenced this pull request Oct 6, 2026
ab2dac2 stays the byte-identical restore of the adopted change. This
follow-up corrects three statements, and nothing else:

- docs/triad-feature-amendments.md, Distribution: since #131 the
  workflow-protocol fallback template in setup-openspeckit gives new
  installations the Triad Feature Amendments section, and
  test-openspeckit-bootstrap.sh asserts it. Existing installations keep
  their files (write_text_if_missing); the global-entrypoint and
  bootstrap-contract templates and the managed command/skill guidance
  remain pending. (Copilot thread 4194811455.)
- design.md, risk row: the same correction to the risk and mitigation;
  the remaining items go to task 2.1's Speckit feature. (Thread
  4194811497.)
- proposal.md, Decision and delivery state: records Brett Heap's
  2026-10-06T10:20:12Z direction verbatim as a deferred follow-up
  governed by openxFactory's proposed change prefer-triad-project-shape;
  this change neither adopts nor rules on it. (Thread 4194811387.)

No workflow rule text changes; verification.md is untouched dated
evidence.

Lane: codeXfactory-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants