Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
98548ce
πŸ› agent(claude): hive owns the shared Claude settings.json and verifi…
hivecommons-hive[bot] Nov 7, 2026
6fe79ae
✨ agents: drain CLI memory into draft knowledge entries before cleari…
clubanderson Nov 7, 2026
1c3e1e0
πŸ› dashboard: phone layout for merged banners and toasts; drop Overvie…
clubanderson Nov 7, 2026
5ef4cf5
πŸ› agent(bob): preflight probes the per-agent ~/.bob that bob actually…
hivecommons-hive[bot] Nov 7, 2026
3513920
πŸ› fix(dashboard): review fallback 'waiting for CI' no longer promises…
hivecommons-hive[bot] Nov 7, 2026
4f6cd05
πŸ› ci: native-queue contract test resolves the pin against release_lin…
clubanderson Nov 7, 2026
c9dc7c5
πŸ› fix(crux): move buffer/output getters out of agent/manager.go to st…
hivecommons-hive[bot] Nov 7, 2026
ec6ee5d
πŸ“– docs(dashboard): review fallback doc comment describes the reviewer…
hivecommons-hive[bot] Nov 7, 2026
1d6f973
πŸ› release: keep the push_line script free of workflow expressions (#1…
clubanderson Nov 7, 2026
da5eb67
πŸ› fix(pr-request): reject a 404 closing reference as a permanent clai…
hivecommons-hive[bot] Nov 7, 2026
f6c468d
πŸ”– release: v5.190.0
actions-user Nov 7, 2026
000f1d3
Merge pull request #17132 from hivecommons/release-gate/v5.190.0
clubanderson Nov 7, 2026
9628191
πŸ“ proposal: Nous β†’ Spek β€” the winning experiment as a spek-new source…
hivecommons-hive[bot] Nov 7, 2026
4d3cd45
πŸ”– release: v5.189.1
actions-user Nov 8, 2026
ba575f0
Merge pull request #17135 from hivecommons/release-gate/v5.189.1
clubanderson Nov 8, 2026
7bd7bfb
πŸ› docs: repoint move-hub-registered-cutover.md env-vars citation to d…
thatguywob Nov 8, 2026
b4c797c
πŸ› release: cap GitHub Release notes under the 125000-char body limit …
clubanderson Nov 8, 2026
65ab4e8
πŸ› fix(prclaims): parenthetical citations and "closed by #N" are not c…
hivecommons-hive[bot] Nov 8, 2026
e0587ae
πŸ”– release: v5.189.2
actions-user Nov 8, 2026
b56fb42
Merge pull request #17143 from hivecommons/release-gate/v5.189.2
clubanderson Nov 8, 2026
c6957b6
πŸ› fix(fleetreport): dampener suppressions are not unclassified runtim…
hivecommons-hive[bot] Nov 8, 2026
19e7a68
πŸ› fix(crux): move pane-analysis helpers out of agent/manager_kick.go …
hivecommons-hive[bot] Nov 8, 2026
ec80cca
✨ crux: contained runs execute in pinned checkouts (S1 ↔ S2 wiring) (…
clubanderson Nov 8, 2026
df1061a
πŸ› fix(ci): pr-verifier re-runs on label events so bot-pushed heads sa…
hivecommons-hive[bot] Nov 8, 2026
310f28e
✨ knowledge: seed hosted spokes with the primary repo's knowledge dir…
clubanderson Nov 8, 2026
62a8447
πŸ”– release: v5.189.3
actions-user Nov 8, 2026
8398867
Merge pull request #17168 from hivecommons/release-gate/v5.189.3
clubanderson Nov 8, 2026
d284880
✨ knowledge: review flow and never-prime for CLI auto-memory drafts, …
hivecommons-hive[bot] Nov 8, 2026
3193ce8
✨ dashboard: sticky compact filter bar for the Activity monitor on ph…
clubanderson Nov 8, 2026
d7ab458
πŸ”– release: v5.190.0
actions-user Nov 8, 2026
9cfb738
πŸ› fix(fleetreport): stage flap suppression is not an unclassified run…
Karibhou Nov 8, 2026
27e49a5
Merge pull request #17184 from hivecommons/release-gate/v5.190.0
clubanderson Nov 8, 2026
3d2a849
πŸ› fix(dashboard): hide preparation train header for a lone ticket (#1…
clubanderson Nov 8, 2026
fa453b5
πŸ› mobile-shots: phone-chrome probe accepts a tall first fixture row (…
clubanderson Nov 8, 2026
7ebbd28
πŸ”– release: v5.191.0
actions-user Nov 8, 2026
6fd3af3
Merge pull request #17192 from hivecommons/release-gate/v5.191.0
clubanderson Nov 8, 2026
169d480
✨ dashboard: progress pill replaces the chevron strip on phones (#17183)
clubanderson Nov 8, 2026
320551a
✨ dashboard: landscape-phone tier for the Activity monitor (#17191)
clubanderson Nov 8, 2026
f0c865d
✨ Activity monitor: 44px tap targets, row tools in the header, kebab …
clubanderson Nov 8, 2026
8112257
πŸ› fix(pr-title): proposals use the πŸ“– prefix the PR Type gate accepts …
hivecommons-hive[bot] Nov 8, 2026
3f1177a
✨ knowledge: advisor_llm config block with hard budget ceilings (#17167)
hivecommons-hive[bot] Nov 8, 2026
7eadd0f
πŸ”– release: v5.191.1
actions-user Nov 8, 2026
9311094
Merge pull request #17197 from hivecommons/release-gate/v5.191.1
clubanderson Nov 8, 2026
7b391e1
πŸ› mobile-shots: phone-ergonomics probe measures the progress pill's e…
clubanderson Nov 8, 2026
d4afc8a
✨ dashboard: Activity monitor merged and queue lists open as sheets o…
hivecommons-hive[bot] Nov 8, 2026
7f604c2
πŸ› mobile-shots: phone-ergonomics hit-rect only grows and uses layout …
clubanderson Nov 8, 2026
b006763
πŸ”– release: v5.192.0
actions-user Nov 8, 2026
09cbdaa
Merge pull request #17200 from hivecommons/release-gate/v5.192.0
clubanderson Nov 8, 2026
8e55232
✨ dashboard: card-per-row Activity monitor layout on phones (#17198)
clubanderson Nov 8, 2026
4e65421
✨ crux: asynchronous KnowledgeAdviser with scope Action and scrubbed …
hivecommons-hive[bot] Nov 8, 2026
6e21b0c
πŸ”– release: v5.193.0
actions-user Nov 8, 2026
953b0a1
Merge pull request #17201 from hivecommons/release-gate/v5.193.0
clubanderson Nov 8, 2026
1b87b10
πŸ”– release: v5.193.1
actions-user Nov 8, 2026
d703837
Merge pull request #17203 from hivecommons/release-gate/v5.193.1
clubanderson Nov 8, 2026
385d1a9
✨ dashboard: 12px text floor for the Activity monitor on phones (#17180)
hivecommons-hive[bot] Nov 8, 2026
224646e
✨ knowledge: finish CLI memory drain phase 1 β€” dedup tags, spool, dra…
Karibhou Nov 8, 2026
3598545
πŸ”– release: v5.193.2
actions-user Nov 8, 2026
7f07a11
Merge pull request #17204 from hivecommons/release-gate/v5.193.2
clubanderson Nov 8, 2026
7e19f30
✨ knowledge: LLM ranking decorator over the mid-task adviser β€” rank-o…
hivecommons-hive[bot] Nov 8, 2026
c9384dd
πŸ”– release: v5.194.0
actions-user Nov 8, 2026
60ef74d
Merge pull request #17205 from hivecommons/release-gate/v5.194.0
clubanderson Nov 8, 2026
24315ec
✨ crux serve: request spans and count/latency metrics keyed by route …
hivecommons-hive[bot] Nov 8, 2026
d8e643d
✨ dashboard: attention-first Activity monitor ordering and count line…
hivecommons-hive[bot] Nov 8, 2026
b70a746
✨ knowledge: hive-side on-demand Claude memory drain for agent hooks …
hivecommons-hive[bot] Nov 8, 2026
f7d0187
πŸ”– release: v5.195.0
actions-user Nov 8, 2026
3ffcc00
Merge pull request #17215 from hivecommons/release-gate/v5.195.0
clubanderson Nov 8, 2026
47d2d8d
✨ retro: record the knowledge-advisor arm per bead for the holdout co…
hivecommons-hive[bot] Nov 8, 2026
b0b336b
πŸ› fix(crux/runs): apply the checkout URL and allowlist rules to the a…
hivecommons-hive[bot] Nov 8, 2026
fc25ad8
πŸ”– release: v5.196.0
actions-user Nov 8, 2026
5448f17
Merge pull request #17217 from hivecommons/release-gate/v5.196.0
clubanderson Nov 8, 2026
aa85da5
✨ knowledge: hive memory-drain --cli claude subcommand and Claude hoo…
hivecommons-hive[bot] Nov 8, 2026
a130658
πŸ”– release: v5.197.0
actions-user Nov 8, 2026
b316ebb
Merge pull request #17219 from hivecommons/release-gate/v5.197.0
clubanderson Nov 8, 2026
139a5a4
✨ retro: persist knowledge-advisor decisions and wire the production …
hivecommons-hive[bot] Nov 8, 2026
06b3517
πŸ”– release: v5.198.0
actions-user Nov 8, 2026
37fa446
Merge pull request #17223 from hivecommons/release-gate/v5.198.0
clubanderson Nov 8, 2026
f97afb0
πŸ”– release: v5.199.0
actions-user Nov 8, 2026
58f593d
Merge pull request #17225 from hivecommons/release-gate/v5.199.0
clubanderson Nov 8, 2026
bf4b8e7
πŸ› fix: unclaimed proposal / kind/design issues derive stage/018-open-…
hivecommons-hive[bot] Nov 8, 2026
7538cc9
πŸ”– release: v5.199.1
actions-user Nov 8, 2026
247d300
Merge pull request #17238 from hivecommons/release-gate/v5.199.1
clubanderson Nov 8, 2026
63599a1
πŸ› fix(crux/pushbroker): scan binary-classified files in the pre-push …
hivecommons-hive[bot] Nov 8, 2026
96e5ba2
πŸ”– release: v5.199.2
actions-user Nov 8, 2026
1b31e98
Merge pull request #17239 from hivecommons/release-gate/v5.199.2
clubanderson Nov 8, 2026
e133faf
πŸ› fix(automerge): isolate repos GitHub refuses to search in contribut…
Karibhou Nov 8, 2026
bf355b4
✨ crux: human gate service (S3) (#17234)
hivecommons-hive[bot] Nov 8, 2026
199520f
✨ feat(dashboard): name the Overview sidebar pill board pressure (BP …
clubanderson Nov 8, 2026
e5c69f3
πŸ”– release: v5.199.3
actions-user Nov 8, 2026
ca3a64d
Merge pull request #17247 from hivecommons/release-gate/v5.199.3
clubanderson Nov 8, 2026
7e18fe4
🌱 test(crux/serve): pin request span naming and first-status-wins rec…
hivecommons-hive[bot] Nov 8, 2026
5034f7c
✨ crux: command log service (S4) (#17250)
clubanderson Nov 8, 2026
f1884e7
πŸ”– release: v5.200.0
actions-user Nov 8, 2026
a46b05b
Merge pull request #17254 from hivecommons/release-gate/v5.200.0
clubanderson Nov 8, 2026
7b2ec48
🌱 ci: read the crux file-size ratchet baseline from crux main instead…
hivecommons-hive[bot] Nov 8, 2026
8d586ac
πŸ”– release: v5.201.0
actions-user Nov 8, 2026
5cdd29f
Merge pull request #17258 from hivecommons/release-gate/v5.201.0
clubanderson Nov 8, 2026
6f7b83c
πŸ› fix(knowledge/climemory): open memory files through their store roo…
hivecommons-hive[bot] Nov 8, 2026
c7428f6
πŸ”– release: v5.201.1
actions-user Nov 8, 2026
aa0b2f8
Merge pull request #17261 from hivecommons/release-gate/v5.201.1
clubanderson Nov 8, 2026
1b63610
✨ crux: turn signals service (S5) (#17260)
hivecommons-hive[bot] Nov 8, 2026
87e475e
🌱 Forward-merge v5 into v6 (100 commits)
clubanderson Nov 8, 2026
5ad4573
🌱 top-up: reconcile v5 tests and ratchets with v6 after the forward-m…
clubanderson Nov 8, 2026
636b3a8
🌱 top-up: point caveman pin tests at manager_launch_caveman.go
clubanderson Nov 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/scripts/integration-governance.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const MAX_COMMITS = 1000;
const MAX_AUTHOR_BATCH = 50;
// This literal is inside the enrolled .github closure. A caller-supplied
// preparedBy.sourceSHA must never choose a new executable verifier tree.
const TRUSTED_SCRIPTS_TREE = '68d7a2c7c5c9491c228acc0ef8f61628f0432a44';
const TRUSTED_SCRIPTS_TREE = '925f525d22d99042bf0c41778d8de837a79ac3e9';
const SOURCE = 'https://github.com/kubernetes-sigs/kubebuilder-release-tools/tree/012269a88fa4c034a0acf1ba84c26b195c0dbab4';
const sha = value => crypto.createHash('sha256').update(value).digest('hex');
const git = (args, cwd = process.cwd()) =>
Expand Down
40 changes: 40 additions & 0 deletions .github/scripts/test-native-queue-workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,53 @@ def test_dependabot_runs_the_same_trusted_pr_verifier(self):
verifier = workflow("pr-verifier.yml")
events = verifier.get("on", verifier.get(True))
self.assertIn("opened", events["pull_request_target"]["types"])
# A github.token push fires no pull_request_target event; App/PAT label
# flips must re-run the required context on the current head (#17036).
for action in ("synchronize", "ready_for_review", "labeled", "unlabeled"):
self.assertIn(action, events["pull_request_target"]["types"])
job = verifier["jobs"]["verify"]
self.assertNotIn("if", job)
self.assertEqual(job["name"], "verify PR contents")
verify_step = next(step for step in job["steps"]
if step.get("name") == "Verifier action")
self.assertIn("docker run --rm", verify_step["run"])

def test_autofix_push_deterministically_redispatches_the_verifier(self):
# #16567: the autofix push landed after the last prow label and no
# label event followed for three days, so labeled/unlabeled alone has
# no producer. workflow_dispatch is one of the two events a
# github.token may trigger; the guard dispatches pr-verifier on the
# PR branch so the check lands on the pushed head (#17036).
verifier = workflow("pr-verifier.yml")
events = verifier.get("on", verifier.get(True))
self.assertIn("pr_number", events["workflow_dispatch"]["inputs"])
self.assertTrue(events["workflow_dispatch"]["inputs"]["pr_number"]["required"])
self.assertIn("inputs.pr_number", verifier["concurrency"]["group"])
steps = verifier["jobs"]["verify"]["steps"]
hydrate = next(s for s in steps if s.get("id") == "dispatch_event")
self.assertEqual(hydrate["if"], "github.event_name == 'workflow_dispatch'")
# Never verify a fork's PR or a commit that is no longer the PR head.
self.assertIn("only same-repo PRs may be dispatched", hydrate["run"])
self.assertIn('echo "stale=true"', hydrate["run"])
verify_step = next(s for s in steps if s.get("id") == "verifier")
self.assertIn("steps.dispatch_event.outputs.stale != 'true'", verify_step["if"])
self.assertIn("steps.dispatch_event.outputs.event_path", verify_step["env"]["VERIFIER_EVENT_PATH"])
self.assertIn('-v "$VERIFIER_EVENT_PATH:/github/event.json:ro"', verify_step["run"])

guard = workflow("changelog-fragment-guard.yml")
self.assertEqual(guard["permissions"]["actions"], "write")
gsteps = guard["jobs"]["changelog-fragment-guard"]["steps"]
autofix = next(s for s in gsteps if s.get("id") == "autofix")
dispatch = next(s for s in gsteps if "Dispatch pr-verifier" in s.get("name", ""))
self.assertLess(gsteps.index(autofix), gsteps.index(dispatch))
self.assertIn("steps.autofix.outputs.pushed == 'true'", dispatch["if"])
# A PAT push already fires pull_request_target: dispatch only on the
# github.token path, and dispatch the PR branch so the check lands on
# the pushed head.
self.assertEqual(dispatch["env"]["HAS_PUSH_TOKEN"], "${{ secrets.TOPUP_PUSH_TOKEN != '' }}")
self.assertIn('[ "$HAS_PUSH_TOKEN" = "true" ]', dispatch["run"])
self.assertIn('gh workflow run pr-verifier.yml --repo "$GITHUB_REPOSITORY" --ref "$HEAD_REF" -f "pr_number=${PR_NUMBER}"', dispatch["run"])

def test_gosec_concurrency_fits_the_runner_cpu_limit(self):
# gosec defaults -concurrency to runtime.NumCPU(), which inside a
# runner pod is the NODE's vCPU count, not the pod's cgroup limit.
Expand Down
54 changes: 49 additions & 5 deletions .github/workflows/changelog-fragment-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ permissions:
# same-repo PR branches; pull-requests: write posts the sticky guidance
# comment. Both are read-only on fork PRs and those steps are skipped there.
# No PR code is executed in this workflow β€” only git, grep and echo run.
# actions: write lets the autofix dispatch pr-verifier.yml on the head it
# pushed with github.token, the one event shape that token may fire
# (#17036).
contents: write
pull-requests: write
actions: write

# Only a new push may cancel a running guard: the superseded run is on the
# old head SHA, where nothing merges anyway. Label events must NOT cancel β€”
Expand Down Expand Up @@ -117,11 +121,16 @@ jobs:
# Full history so the merge base with the target branch exists
# locally and the three-dot diff below is computable.
fetch-depth: 0
# The autofix push uses TOPUP_PUSH_TOKEN when set (a push made with
# that PAT re-runs the PR checks, so the guard goes green on its
# own); with GITHUB_TOKEN the push lands but does not trigger new
# runs β€” the next push or a maintainer re-run picks it up. Same
# optional-PAT convention as cli-pin-bump.yml / v5-topup.yml.
# The autofix push uses TOPUP_PUSH_TOKEN when set: a push made with
# that PAT fires `pull_request` AND `pull_request_target` runs, so
# every check re-reports on the new head. With github.token the
# push lands and fires the `pull_request` runs, but NO
# `pull_request_target` run (observed on #16567's b9cd4bac: eleven
# pull_request runs with actor=github-actions[bot], no PR Verifier).
# Dependabot-triggered runs see no Actions secrets, so Dependabot PRs
# (#16567) always take the github.token path; the dispatch step
# after the push re-runs pr-verifier for them. Same optional-PAT
# convention as cli-pin-bump.yml / v5-topup.yml / notice-autofix.yml.
token: ${{ secrets.TOPUP_PUSH_TOKEN != '' && secrets.TOPUP_PUSH_TOKEN || github.token }}

- name: Code changes must carry a changelog.d fragment (or no-changelog)
Expand Down Expand Up @@ -240,13 +249,48 @@ jobs:
Signed-off-by: ${PR_AUTHOR_LOGIN} <${author_email}>"
# --force-with-lease against the SHA this run evaluated: never
# clobber a push the author made while this job ran.
# When this push was made with github.token it fires no
# `pull_request_target` run, so pr-verifier (a required context)
# would stay "expected"; the step below re-triggers it (#17036).
if git push --force-with-lease="refs/heads/${HEAD_REF}:${HEAD_SHA}" origin "HEAD:refs/heads/${HEAD_REF}"; then
echo "pushed=true" >> "$GITHUB_OUTPUT"
echo "fragment=$f" >> "$GITHUB_OUTPUT"
else
echo "::warning::could not push the generated fragment (branch moved or token lacks push); leaving guidance comment instead"
fi

# Deterministically re-run pr-verifier on the head just pushed (#17036).
# On #16567 the autofix push landed 47s after the last prow label and
# nothing relabelled the PR for three days, so pr-verifier's new
# labeled/unlabeled types alone had no producer. When the push used
# TOPUP_PUSH_TOKEN it already fired `pull_request_target` and nothing
# more is needed. When it used github.token, the only events that token
# may trigger are workflow_dispatch and repository_dispatch, so dispatch
# pr-verifier.yml on the PR branch: the run's check lands on the branch
# tip, which is the head just pushed. The autofix only pushes to
# same-repo branches, so this never dispatches a fork's workflow file.
- name: Dispatch pr-verifier on the autofix head (github.token push)
if: ${{ steps.autofix.outputs.pushed == 'true' }}
env:
GH_TOKEN: ${{ github.token }}
HAS_PUSH_TOKEN: ${{ secrets.TOPUP_PUSH_TOKEN != '' }}
PR_NUMBER: ${{ github.event.pull_request.number }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
set -euo pipefail
if [ "$HAS_PUSH_TOKEN" = "true" ]; then
echo "Pushed with TOPUP_PUSH_TOKEN β€” the push itself fired pull_request_target; nothing to dispatch."
exit 0
fi
if gh workflow run pr-verifier.yml --repo "$GITHUB_REPOSITORY" --ref "$HEAD_REF" -f "pr_number=${PR_NUMBER}"; then
echo "dispatched pr-verifier.yml on ${HEAD_REF} for #${PR_NUMBER}"
else
# Most likely the branch's pr-verifier.yml predates the
# workflow_dispatch trigger (HTTP 422): a rebase onto the base
# branch fixes it, and the rebase push fires everything anyway.
echo "::warning::could not dispatch pr-verifier.yml on ${HEAD_REF}; the required 'verify PR contents' context stays expected on the new head until a push, a non-github.token label flip, or a close/reopen (#17036). Rebasing onto the base branch resolves it."
fi

# Whatever the autofix did, tell the author once (one sticky comment,
# updated in place) and remove the comment when the check passes.
- name: Post or update guidance comment
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/crux-file-size-ratchet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ name: crux file-size ratchet
# src/crux is published to hivecommons/crux by the crux-sync workflow, and crux
# main enforces a Go file-size ratchet that hive CI never ran, so a PR growing a
# grandfathered src/crux file was green here and broke crux main on the next
# sync (#15331). Pin the script and baseline together to a reviewed crux commit;
# update the pin when adopting changes to the upstream ratchet.
# sync (#15331). The script and baseline are read from crux main at check time:
# crux lowers its baselines whenever a sync shrinks a file, so a pinned copy
# goes stale within days and lets growth through again (crux#124).
on:
pull_request:
paths:
Expand All @@ -30,11 +31,11 @@ jobs:
persist-credentials: false
sparse-checkout: src/crux

- name: Check out the ratchet script and baseline from a pinned crux commit
- name: Check out the ratchet script and baseline from crux main
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: hivecommons/crux
ref: 13372ca72d161cc05e9f795ae4a1b3b352e55a73 # crux main, 2026-10-29
ref: main
path: crux-ratchet
persist-credentials: false
fetch-depth: 1
Expand Down
74 changes: 69 additions & 5 deletions .github/workflows/pr-verifier.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
name: PR Verifier

# REQUIRED CONTEXT on v5: `verify PR contents` must report on the final head
# of every PR. On #16567 changelog-fragment-guard's autofix pushed b9cd4bac
# with github.token (a Dependabot-triggered `pull_request` run sees no Actions
# secrets, so TOPUP_PUSH_TOKEN was empty; every run on that head reports
# actor=github-actions[bot]). That push fired the `pull_request` workflows
# but NOT this `pull_request_target` one, no label event followed for three
# days, and the context stayed "expected" until a human closed and reopened
# the PR β€” BLOCKED the whole time (#16567, #17036). A PAT or App-token push
# fires both event kinds, so the gap is specific to github.token pushes.
# Two things close it:
# - `labeled`/`unlabeled` (and `ready_for_review`) are listed, mirroring
# native-queue-policy.yml, so any App- or PAT-made label flip re-runs the
# verifier on the current head (github.token label flips fire nothing).
# - `workflow_dispatch`: changelog-fragment-guard dispatches this workflow
# on the PR branch right after a github.token autofix push.
# workflow_dispatch is one of the two events a github.token may trigger,
# and the run's check lands on the branch tip, i.e. the pushed head. Only
# same-repo branches are ever dispatched (the autofix never pushes to
# forks); such a run uses the GitHub-hosted ARM runner like fork PRs do.
# The concurrency group below bounds the cost.
on:
pull_request_target:
types: [opened, edited, synchronize, reopened]
types: [opened, edited, synchronize, reopened, ready_for_review, labeled, unlabeled]
workflow_dispatch:
inputs:
pr_number:
description: Number of the same-repo PR whose branch tip this run verifies (#17036)
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || inputs.pr_number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}

permissions:
Expand All @@ -23,6 +49,39 @@ jobs:
env:
PR_VERIFIER_IMAGE: ghcr.io/hivecommons/pr-verifier@sha256:8c2b63817c4bfa7de510ab699b154637f27a42f87826c98083903daf2a539943
steps:
# A dispatched run has no pull_request payload. Rebuild one from the API
# for the verifier image, and bail out (green, nothing verified, said so)
# when the PR head is no longer this ref's tip: whoever moved it fired
# the normal events, and a verdict on a non-head commit is noise.
- name: Reconstruct the pull_request payload for a dispatched run
if: github.event_name == 'workflow_dispatch'
id: dispatch_event
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ inputs.pr_number }}
run: |
set -euo pipefail
if ! [[ "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
echo "::error::pr_number must be a PR number, got '$PR_NUMBER'"
exit 1
fi
pr="$(gh api "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}")"
head_repo="$(jq -r '.head.repo.full_name' <<<"$pr")"
head_sha="$(jq -r '.head.sha' <<<"$pr")"
if [ "$head_repo" != "$GITHUB_REPOSITORY" ]; then
echo "::error::#${PR_NUMBER} comes from ${head_repo}; only same-repo PRs may be dispatched"
exit 1
fi
if [ "$head_sha" != "$GITHUB_SHA" ]; then
echo "::notice::#${PR_NUMBER} head is ${head_sha}, not this run's ${GITHUB_SHA}; the push that moved it fired pr-verifier itself β€” nothing verified here (#17036)."
echo "stale=true" >> "$GITHUB_OUTPUT"
exit 0
fi
repo="$(gh api "repos/${GITHUB_REPOSITORY}")"
jq -n --argjson pr "$pr" --argjson repo "$repo" \
'{action: "synchronize", number: $pr.number, pull_request: $pr, repository: $repo}' \
> "${RUNNER_TEMP}/pr-verifier-event.json"
echo "event_path=${RUNNER_TEMP}/pr-verifier-event.json" >> "$GITHUB_OUTPUT"
# Login and pull are advisory for the same reason the verification below
# is: this check exists to report on PR CONTENTS, and a registry-side
# failure (org rename, package visibility change, GHCR outage β€” #6085
Expand Down Expand Up @@ -59,21 +118,26 @@ jobs:
run: |
echo "::warning::PR Verifier image $PR_VERIFIER_IMAGE was unavailable or incompatible β€” verification was SKIPPED, not passed. Inspect the pull/platform error; this is a runner/registry/image problem, not a PR problem (#6085)."
- name: Verifier action
if: steps.pull.outcome == 'success'
if: steps.pull.outcome == 'success' && steps.dispatch_event.outputs.stale != 'true'
id: verifier
continue-on-error: true
env:
# A dispatched run presents itself to the image as the
# pull_request_target run it stands in for (see dispatch_event).
VERIFIER_EVENT_NAME: ${{ github.event_name == 'workflow_dispatch' && 'pull_request_target' || github.event_name }}
VERIFIER_EVENT_PATH: ${{ steps.dispatch_event.outputs.event_path || github.event_path }}
run: |
docker run --rm \
-e INPUT_GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
-e GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
-e GITHUB_ACTIONS="true" \
-e GITHUB_EVENT_NAME="$GITHUB_EVENT_NAME" \
-e GITHUB_EVENT_NAME="$VERIFIER_EVENT_NAME" \
-e GITHUB_EVENT_PATH="/github/event.json" \
-e GITHUB_REPOSITORY="$GITHUB_REPOSITORY" \
-e GITHUB_SHA="$GITHUB_SHA" \
-e GITHUB_REF="$GITHUB_REF" \
-e GITHUB_WORKSPACE="/github/workspace" \
-v "$GITHUB_EVENT_PATH:/github/event.json:ro" \
-v "$VERIFIER_EVENT_PATH:/github/event.json:ro" \
-v "$GITHUB_WORKSPACE:/github/workspace:ro" \
"$PR_VERIFIER_IMAGE"
- name: Report verifier failure
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ src/docs/design/_out/
# smoke test's socket + work dir. Build products, never source.
src/crux/bin/
src/crux/.smoke/

# scratch Chrome profile from src/scripts/dashboard-mobile-shots.mjs
.chrome-dashboard-mobile-shots/
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ These rules apply to every AI agent (hive agents, Copilot CLI, Claude Code, Code
## Working style

- Keep changes surgical and PR-sized; one concern per PR.
- Sign commits (`git commit -s`); PR titles start with an emoji (`✨` feature, `πŸ›` fix, `πŸ“–` docs, `πŸ“` proposal, `🌱` chore, `⚠️` breaking); `πŸ“` is for proposals only.
- Sign commits (`git commit -s`); PR titles start with an emoji (`✨` feature, `πŸ›` fix, `πŸ“–` docs or proposal, `🌱` chore, `⚠️` breaking); `πŸ“` fails the PR Type gate.
- Every PR with a user-visible `src/` code change needs a `changelog.d/<category>-<slug>.md` fragment at the repository root whose body is a single `- ` bullet.
- Do not hand-edit `src/docs` file:line citations; when CI's citation guard reports drift, run `python3 src/scripts/check-docs-citations.py --fix`.

Expand Down
Loading
Loading