Skip to content

chore: migrate to the channel-aware agent policy workflow - #125

Merged
willgriffin merged 1 commit into
mainfrom
claude/channel-aware-124
Jul 25, 2026
Merged

chore: migrate to the channel-aware agent policy workflow#125
willgriffin merged 1 commit into
mainfrom
claude/channel-aware-124

Conversation

@willgriffin

Copy link
Copy Markdown
Contributor

Closes #124. Refs happyvertical/have-config#228 step 4.

This repository ran the generation-6 bridge shape of
.github/workflows/agent-policy.yml, which reads vars.AGENT_POLICY_ARTIFACT
directly. It could not follow the protected policy channel, so it had to be
repinned by hand every generation — and silently ran a stale artifact from
2026-07-21 until 2026-07-25, when a manual repin moved it to generation 10.

The channel-aware workflow resolves the artifact from the protected channel state
in happyvertical/.github at run time. The repository now follows stable
automatically and cannot go stale at the next generation.

Contents

Generated by hv-agent migrate-repo --profile happyvertical --apply:

  • .github/workflows/agent-policy.yml — channel-aware resolution
  • AGENTS.md — managed policy block refreshed for generation 10
  • .agents/project.yamljcode/kimi dispatch labels the profile now defines

Follow-up after merge

Delete the AGENT_POLICY_ARTIFACT repository variable. The new workflow never
reads it, so leaving it in place is dead configuration that will mislead the next
reader. I'll do this once this lands.

Why this was blocked until now

The migration preflight required the trusted policy lock to match the source
generation, and every required repository to have a current default-branch canary
proving the active channel. The lock sat at generation 7 while the control plane's
main moved on, so the preflight refused — happyvertical/have-config#238.
Generation 10 was promoted to stable on 2026-07-25 and fresh canaries were
dispatched across the required fleet, clearing both conditions.

Validation

hv-agent audit passes clean against generation 10.

{
  "schema": "hv-agent-run:v1",
  "runtime": "claude-code",
  "session": "hv-migrate-ocr-124",
  "issue": 124,
  "linked_issue": 124,
  "policy_revision": "1.0.0",
  "status": "complete",
  "validation": ["hv-agent audit: policy audit passed against generation 10", "hv-agent migrate-repo preflight cleared"]
}

@willgriffin willgriffin added the skip-changeset No package release required label Jul 25, 2026
The generation-6 bridge workflow reads vars.AGENT_POLICY_ARTIFACT directly, so
this repository could not follow the protected policy channel and had to be
repinned by hand every generation. It silently ran a stale artifact from
2026-07-21 until 2026-07-25, when a manual repin moved it to generation 10.

The channel-aware workflow resolves the artifact from the protected channel
state in happyvertical/.github at run time, so the repository follows stable
automatically and cannot go stale at the next generation.

Generated by hv-agent migrate-repo --profile happyvertical --apply. This also
refreshes the managed policy block for generation 10 and adds the jcode/kimi
dispatch labels the profile now defines.

Delete the AGENT_POLICY_ARTIFACT repository variable after merge: the new
workflow never reads it, so leaving it is dead configuration.

Closes #124. Refs happyvertical/have-config#228 step 4.
@willgriffin
willgriffin force-pushed the claude/channel-aware-124 branch from 68ba968 to 88a6d26 Compare July 25, 2026 20:43
@github-actions

Copy link
Copy Markdown
Contributor

Version Bump Preview

When this PR is merged, @happyvertical/ocr will receive a patch version bump based on your conventional commits.

What happens on merge?

  1. Tests run on main branch
  2. Package is built
  3. Version is bumped automatically
  4. Package is published to npm
  5. Git tag is created

No manual intervention needed!

@willgriffin willgriffin changed the title chore(agent-policy): migrate to the channel-aware workflow chore: migrate to the channel-aware agent policy workflow Jul 25, 2026
@willgriffin
willgriffin added this pull request to the merge queue Jul 25, 2026
Merged via the queue into main with commit 8936118 Jul 25, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changeset No package release required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(agent-policy): migrate to the channel-aware workflow so the repo follows the policy channel

1 participant