Skip to content

ci(openspec): Skip the archive check on non-tip stacked PRs#31

Merged
thecodedrift merged 1 commit into
feat/local-rule-routingfrom
chore/openspec-archive-skip-non-tip
Jun 12, 2026
Merged

ci(openspec): Skip the archive check on non-tip stacked PRs#31
thecodedrift merged 1 commit into
feat/local-rule-routingfrom
chore/openspec-archive-skip-non-tip

Conversation

@thecodedrift

Copy link
Copy Markdown
Member

Make the OpenSpec archive check stack-aware so it reflects "changes in flight vs all changes landed."

A change is archived exactly once, when all its work has landed. In a stack, only the tip carries the archived change; the PRs below it still carry the in-flight change directory by design — so failing the archive check on them is noise.

This splits the workflow into a stack-position detector and the archive check. The detector marks a PR as the tip when no other open PR targets its head branch as a base; the archive job is gated on that, so non-tip PRs show the archive check as skipped and only the tip (or a standalone PR) runs it. The trigger is broadened from base=main to all PRs so the (skipped) check is visible across the whole stack.

Targeted at feat/local-rule-routing (#23, the bottom of the stack) so a sync propagates it to every stacked PR at once.

A change is archived exactly once, when all of its work has landed. In a
stack of PRs, only the tip carries the archived change; the PRs below it
still carry the in-flight change directory by design — so failing the
archive check on them is noise.

Split the workflow into a stack-position detector and the archive check.
The detector marks a PR as the tip when no other OPEN PR targets its head
branch as a base; the archive job is gated on that, so non-tip PRs show
the check as SKIPPED and only the tip (or a standalone PR) runs it. Also
broaden the trigger from base=main to all PRs so the (skipped) check is
visible across the whole stack, mirroring how we think about changes in
flight vs all changes landed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@thecodedrift thecodedrift merged commit 7bc4b6a into feat/local-rule-routing Jun 12, 2026
1 of 2 checks passed
@thecodedrift thecodedrift deleted the chore/openspec-archive-skip-non-tip branch June 12, 2026 11:16
thecodedrift added a commit that referenced this pull request Jun 12, 2026
…at/local-rule-routing

* origin/feat/local-rule-routing:
  ci(openspec): Skip the archive check on non-tip stacked PRs (#31)
  docs(openspec): Clarify detect output schema is internal, not published
  docs(openspec): Address review feedback on local-rule-routing contract
  docs(openspec): Propose local-rule-routing change
thecodedrift added a commit that referenced this pull request Jun 12, 2026
* feat/local-rule-routing:
  ci(openspec): Skip the archive check on non-tip stacked PRs (#31)
  docs(openspec): Clarify detect output schema is internal, not published
  docs(openspec): Address review feedback on local-rule-routing contract
  docs(openspec): Propose local-rule-routing change
  chore(skill): Refine the stacked-PR archive-check guidance
  chore(skill): Scope iterate-pr archive check to the stack tip
  chore(config): Allow git-town in project settings
thecodedrift added a commit that referenced this pull request Jun 12, 2026
* feat/local-rule-detect:
  ci(openspec): Skip the archive check on non-tip stacked PRs (#31)
  docs(openspec): Clarify detect output schema is internal, not published
  docs(openspec): Address review feedback on local-rule-routing contract
  docs(openspec): Propose local-rule-routing change
  chore(skill): Refine the stacked-PR archive-check guidance
  chore(skill): Scope iterate-pr archive check to the stack tip
  chore(config): Allow git-town in project settings
thecodedrift added a commit that referenced this pull request Jun 12, 2026
* feat/local-rule-recipes:
  ci(openspec): Skip the archive check on non-tip stacked PRs (#31)
  docs(openspec): Clarify detect output schema is internal, not published
  docs(openspec): Address review feedback on local-rule-routing contract
  docs(openspec): Propose local-rule-routing change
  chore(skill): Refine the stacked-PR archive-check guidance
  chore(skill): Scope iterate-pr archive check to the stack tip
  chore(config): Allow git-town in project settings
thecodedrift added a commit that referenced this pull request Jun 12, 2026
* feat/local-rule-help:
  ci(openspec): Skip the archive check on non-tip stacked PRs (#31)
  docs(openspec): Clarify detect output schema is internal, not published
  docs(openspec): Address review feedback on local-rule-routing contract
  docs(openspec): Propose local-rule-routing change
  chore(skill): Refine the stacked-PR archive-check guidance
  chore(skill): Scope iterate-pr archive check to the stack tip
  chore(config): Allow git-town in project settings
thecodedrift added a commit that referenced this pull request Jun 12, 2026
* feat/local-rule-skill:
  ci(openspec): Skip the archive check on non-tip stacked PRs (#31)
  docs(openspec): Clarify detect output schema is internal, not published
  docs(openspec): Address review feedback on local-rule-routing contract
  docs(openspec): Propose local-rule-routing change
  chore(skill): Refine the stacked-PR archive-check guidance
  chore(skill): Scope iterate-pr archive check to the stack tip
  chore(config): Allow git-town in project settings
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