Skip to content

fix(artifact-signer): sign the previous policy through a deploy - #485

Merged
harlan-zw merged 1 commit into
mainfrom
fix/signer-deploy-window
Oct 6, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/signer-deploy-window

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to #481

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

#481 noted that the Artifact signer updates before the site, so a build the old site checked in that window cannot be signed. The signer refused any statement under another ARTIFACT_POLICY_VERSION with POLICY_OUTDATED. The staged statement never changes, so each queue retry was refused again until the Resolution failed as SERVICE_UNAVAILABLE. A failed smoke makes this worse: it rolls the site back alone, and the signer then refuses every build until the next deploy.

The signer now signs the current policy and the one before it. SIGNABLE_ARTIFACT_POLICIES in checks.ts lists both with the checks each one requires, so a previous policy statement is judged by its own checks. The site still reuses only builds under the current policy. A policy bump replaces the previous entry, or leaves it out when the bump closes a safety gap.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

The deploy updates the signer before the site, and a failed smoke rolls
the site back alone. In both windows the running site stages statements
under the policy before the signer's, and the signer refused them, so
every run in the window failed after the queue retries ran out. The
signer now signs the previous policy too, judged by that policy's checks.
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 6, 2026
@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. harlan-agent-running An Agent holds a Task on this issue or pull request right now. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 6, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-06 15:50 UTC.

GitHub merged this pull request.

  • Logged (55/100): A future policy bump that skips the documented SIGNABLE_ARTIFACT_POLICIES edit silently reintroduces the deploy-window signing outage. View code
    • Ask an agent to verify and fix this finding

cd27231a-9391-4cc5-bf88-6ba6eb9ec064

Selected findings run after merge and open separate pull requests.

@harlan-zw harlan-zw added the harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. label Oct 6, 2026
@harlan-github-agent harlan-github-agent Bot added harlan-agent-pending The automated Review is waiting on a gate for this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 6, 2026

@harlan-github-agent harlan-github-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Harlan Agent Kit posted this automated review. AI open source policy.

Automated Review: PENDING.

Read the Review results

@harlan-zw
harlan-zw merged commit 6740e29 into main Oct 6, 2026
7 checks passed
harlan-zw added a commit that referenced this pull request Oct 6, 2026
#485 merged first. The signer's previous policy entry moves from
2026-08-20.1 to 2026-10-07.1, the policy this branch bumps from. The
bump only loosens checks, so the signer keeps signing .1 through a
deploy.
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-pending The automated Review is waiting on a gate for this head commit. label Oct 6, 2026
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