Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
131ca77
🐛 meetings: log every failed meetings call and keep a failed approval…
clubanderson Nov 17, 2026
2dace82
✨ Remote items: follow up on issues and PRs the hive opened as its Ap…
clubanderson Nov 17, 2026
d940f76
🐛 fix(ioscan): do not fleet-report an injection-withheld kick as a cl…
Karibhou Nov 17, 2026
5649daf
🌱 ci: fetch only the histories the squash-attribution check reads (#1…
clubanderson Nov 17, 2026
c48ca21
✨ Hand workflow-model states to their agent profiles (claim first, di…
clubanderson Nov 17, 2026
d937e8d
🐛 Betty closes the loop on deep dives; research agents survive config…
clubanderson Nov 17, 2026
4e8e58d
✨ Review follow-ups, trust-only 090 and issue pr-link notes become st…
clubanderson Nov 17, 2026
69ca296
🌱 ci: no mutation comment on error verdicts; no reopen hint for bot o…
clubanderson Nov 17, 2026
4cde921
🐛 Meetings: keep nothing from before the consent notice is delivered …
clubanderson Nov 17, 2026
ae19087
🐛 fix: stop open-PR guard label retry storms and classify the failure…
clubanderson Nov 17, 2026
54a8fa6
🌱 ci: blobless history fetch for the squash-attribution check (#18634)
clubanderson Nov 17, 2026
8bd2fd2
🐛 Deflake TestSessionCreateWithSeedWaitsForRunning (#18632)
clubanderson Nov 17, 2026
48cb46e
🔖 release: v5.293.0
actions-user Nov 17, 2026
1511437
Merge pull request #18640 from hivecommons/release-gate/v5.293.0
clubanderson Nov 17, 2026
6b9d861
✨ Owner-only Send to <profile> on model-owned stage-tracker rows (#18…
clubanderson Nov 17, 2026
81ef063
📖 docs: Betty on Zoom without a Zoom app, options and recommendation …
Karibhou Nov 17, 2026
cafedf4
🐛 hub: converge cluster host_aliases on every hosted spoke, push-repo…
clubanderson Nov 17, 2026
fbd59c4
✨ meetings: desktop companion meetings (/api/companion/*) (#18611)
clubanderson Nov 17, 2026
52a883d
🌱 deps: quorum v0.3.0 (desktop companion platform) (#18622)
clubanderson Nov 17, 2026
030a93c
✨ Betty: parallel answers with attribution, sources and timings, voic…
clubanderson Nov 17, 2026
7650ff2
✨ Sessions: per-session git worktrees with a locked shared git config…
clubanderson Nov 17, 2026
02d2850
🐛 fix: wait for seed queue before test cleanup (#18641)
hivecommons-hive[bot] Nov 17, 2026
6b1f578
✨ meetings: per-user desktop companion tokens and hub passthrough (#1…
clubanderson Nov 17, 2026
a688281
🔖 release: v5.294.0
actions-user Nov 17, 2026
c69304f
Merge pull request #18649 from hivecommons/release-gate/v5.294.0
clubanderson Nov 17, 2026
f444b4f
🌱 images: bump omp 18.20.0 -> 18.22.0 (#18647)
clubanderson Nov 17, 2026
3d8d438
🌱 images: bump claude 2.1.325 -> 2.1.326 (#18648)
clubanderson Nov 17, 2026
dfbc34d
🌱 ci: size overlayfs-exec-guard timeout for the cold whisper-cache pa…
clubanderson Nov 17, 2026
0b8ad82
🐛 Isolate restart kick test tmux sessions (#18650)
hivecommons-hive[bot] Nov 17, 2026
18df5b7
🔖 release: v5.295.0
actions-user Nov 17, 2026
b2a075b
Merge pull request #18652 from hivecommons/release-gate/v5.295.0
clubanderson Nov 17, 2026
a41f160
✨ feat: range attribution core for post-merge runs (#18653)
hivecommons-hive[bot] Nov 17, 2026
4ecf300
🔖 release: v5.296.0
actions-user Nov 17, 2026
72cb451
Merge pull request #18658 from hivecommons/release-gate/v5.296.0
clubanderson Nov 17, 2026
e36ea10
✨ feat: Tekton PipelineRun post-merge observer (#18655)
hivecommons-hive[bot] Nov 17, 2026
fd32290
✨ feat: GitHub Actions post-merge run observer for pipeline.status (#…
hivecommons-hive[bot] Nov 17, 2026
f38f2d9
[scanner] fix: wire post-merge observers into pipeline.status facts (…
hivecommons-hive[bot] Nov 17, 2026
81266fe
🔖 release: v5.297.0
actions-user Nov 17, 2026
1e196da
Merge pull request #18663 from hivecommons/release-gate/v5.297.0
clubanderson Nov 17, 2026
a703402
🔖 release: v5.298.0
actions-user Nov 17, 2026
4e5fc31
Merge pull request #18664 from hivecommons/release-gate/v5.298.0
clubanderson Nov 17, 2026
ed4f260
[scanner] fix: stop retrying closing-issue link on GitHub manual refe…
hivecommons-hive[bot] Nov 17, 2026
01acdce
🔖 release: v5.298.1
actions-user Nov 17, 2026
c51ab51
Merge pull request #18672 from hivecommons/release-gate/v5.298.1
clubanderson Nov 17, 2026
cf4f3b3
🌱 ci: move whisper-builder cache to GHCR registry, stop wasted gha ex…
clubanderson Nov 17, 2026
ff268e2
🐛 Keep Copilot config.json linked to the shared login after the CLI's…
clubanderson Nov 17, 2026
c7aea83
🐛 ci: materialize warmed tmux/whisper stages so the main image build …
clubanderson Nov 17, 2026
5440aa2
📖 Document kick refusals and link the docs from the dashboard (#18695)
clubanderson Nov 17, 2026
6712b20
🔖 release: v5.298.2
actions-user Nov 17, 2026
ff89890
Merge pull request #18698 from hivecommons/release-gate/v5.298.2
clubanderson Nov 17, 2026
d02faff
🐛 Workflow dispatch: start on a standard hive and show a profile no a…
clubanderson Nov 17, 2026
2a56dc5
🌱 ci: let the DCO app honour an author's own remediation commit (#18703)
clubanderson Nov 17, 2026
01ffc0d
✨ Inbox: show the email-in address, delete any item, tidy the auto-ro…
clubanderson Nov 17, 2026
7c81eb1
🔖 release: v5.299.0
actions-user Nov 17, 2026
247deaf
Merge pull request #18712 from hivecommons/release-gate/v5.299.0
clubanderson Nov 17, 2026
2e786e0
✨ Sessions: answer the CLI's startup screens so the initial request s…
clubanderson Nov 17, 2026
8881a15
✨ Meeting attendee: play a persona preset's introduction when its car…
clubanderson Nov 17, 2026
f7bed45
🐛 Betty: live Discord/Teams test fixes + inbox auto-transcribe (#18679)
clubanderson Nov 17, 2026
bbd77ab
✨ dashboard: make the merge queue panel readable and consistent with …
clubanderson Nov 17, 2026
2c40b6b
🔖 release: v5.300.0
actions-user Nov 17, 2026
8cfae66
Merge pull request #18727 from hivecommons/release-gate/v5.300.0
clubanderson Nov 17, 2026
c96c13e
🐛 scanner: not-agent-work verdict parks the issue and is not repeated…
clubanderson Nov 17, 2026
f5ec7f3
🐛 Mail-in: accept office documents, let large deliveries reach the hi…
clubanderson Nov 17, 2026
c5875dc
🎨 Dashboard: render export/auth URLs as a read-only line, not a texta…
clubanderson Nov 17, 2026
14cc0ea
🔖 release: v5.301.0
actions-user Nov 17, 2026
4055518
Merge pull request #18741 from hivecommons/release-gate/v5.301.0
clubanderson Nov 17, 2026
a8e2dd5
📖 Customers: design doc for the people store, customer graph, goals a…
clubanderson Nov 17, 2026
7ca94dd
🐛 Sessions: keep one refreshable Claude login (a session can no longe…
clubanderson Nov 17, 2026
7ee0899
✨ Customers: people store, identity resolution, tags, goals and satis…
clubanderson Nov 17, 2026
bdcacaa
✨ Mail-in: a refused or held mail says how to try again and where to …
clubanderson Nov 17, 2026
93c6be6
✨ feat: acme-dns RFC 2136 manifests for hub wildcard cert (#18665)
hivecommons-hive[bot] Nov 17, 2026
f7d3881
🔖 release: v5.301.1
actions-user Nov 17, 2026
59d05bb
Merge pull request #18757 from hivecommons/release-gate/v5.301.1
clubanderson Nov 17, 2026
4b1e320
✨ Inbox: Quick note, larger hit targets and an honest list of input m…
clubanderson Nov 17, 2026
29853cc
✨ Customers: REST API, wiring, "me" for every role, forget (#18756)
clubanderson Nov 17, 2026
e4b5698
fix: Governor PRs-by-model honesty (no 0% for unmeasured runs, covera…
hivecommons-hive[bot] Nov 17, 2026
ef8a7fc
🐛 Cross-repo decomposition children and cross-repo PR issue links (#1…
clubanderson Nov 17, 2026
0b4fc95
✨ Inbox UX cleanup: icon Play/Share buttons, one-row toolbar, clean t…
clubanderson Nov 17, 2026
96704d8
🐛 claude: hive refreshes the shared OAuth grant itself ahead of expir…
clubanderson Nov 17, 2026
5030d8c
🐛 Workflow dispatch: pick an agent that may do the profile's work, an…
clubanderson Nov 17, 2026
79715fe
✨ Agents section starts minimized at L6; sidebar Agents group tidy (n…
clubanderson Nov 17, 2026
1f5e842
🔖 release: v5.302.0
actions-user Nov 17, 2026
1902b21
Merge pull request #18766 from hivecommons/release-gate/v5.302.0
clubanderson Nov 17, 2026
8c3ccff
🐛 Dashboard: a paused hand-created agent keeps its card (#18765)
hivecommons-hive[bot] Nov 17, 2026
2561f70
✨ Customers: the dashboard section, profile editing, and the Settings…
clubanderson Nov 17, 2026
f10c1e5
🐛 Betty round 2: her lines in the record, delivery fallback, reply ti…
clubanderson Nov 17, 2026
0780a6f
✨ Customers: discovery sweep (hive users, local stores, the last GitH…
clubanderson Nov 17, 2026
f9fef71
🐛 agent: verify a Claude login prompt against the provider before res…
clubanderson Nov 17, 2026
ce80096
🔖 release: v5.303.0
actions-user Nov 17, 2026
63b1587
Merge pull request #18774 from hivecommons/release-gate/v5.303.0
clubanderson Nov 17, 2026
bec8e37
🐛 Sessions: delete runs as a background job, shows progress, and neve…
clubanderson Nov 17, 2026
cf9dd76
🐛 meetings: bundle Quorum v0.5.1 (leave stays next to the name in the…
clubanderson Nov 17, 2026
b6693c9
✨ Customers: a read-only GraphQL endpoint over the customer graph (#1…
clubanderson Nov 17, 2026
ad330e4
🐛 Activity monitor: one rule for the human-gate pill and its verbs; n…
clubanderson Nov 17, 2026
e53ccc2
✨ Customers: audit activity (step D) and "Same person?" hints (#18791)
clubanderson Nov 17, 2026
cdfa5ae
🔖 release: v5.304.0
actions-user Nov 17, 2026
e4f2137
Merge pull request #18801 from hivecommons/release-gate/v5.304.0
clubanderson Nov 17, 2026
1534a43
✨ Customers: agent context block and a people retriever for the meeti…
clubanderson Nov 17, 2026
d3fe765
🔒 Betty round 2: voice-consent truth, pre-consent fence, no cross-mee…
clubanderson Nov 17, 2026
eed08d8
🐛 claude: keep the rotated shared-login grant until it is durably wri…
clubanderson Nov 17, 2026
af77f74
✨ Customers: goal and satisfaction suggestions with the meetings mode…
clubanderson Nov 17, 2026
129856d
✨ Customers: graph view, merge and split, and export (#18802)
clubanderson Nov 17, 2026
8832c58
🔖 release: v5.305.0
actions-user Nov 17, 2026
9651558
Merge pull request #18812 from hivecommons/release-gate/v5.305.0
clubanderson Nov 17, 2026
39822c1
✨ Calendar: Inbox-style layout, clearer date line, approval reason (#…
clubanderson Nov 17, 2026
3ea317f
✨ Dashboard/API: set review.perspectives_source and agent sandbox ima…
clubanderson Nov 17, 2026
18c98a3
🐛 Workflow hand-off prompt: name hive-open-pr and git as shell comman…
clubanderson Nov 17, 2026
52444e3
🐛 fleetreport: classify proxy upstream dial failures as proxy_connect…
Danathar Nov 17, 2026
d1f3b21
🐛 modelfamily: derive Family from the provider-stripped id (#18803)
Danathar Nov 17, 2026
db15677
🔖 release: v5.306.0
actions-user Nov 17, 2026
b98359a
Merge pull request #18818 from hivecommons/release-gate/v5.306.0
clubanderson Nov 17, 2026
ad6bb90
🐛 Dashboard: paused agent always shows resume or why not, repaint on …
clubanderson Nov 17, 2026
74ea349
🐛 Sandbox Jobs keep their service account's imagePullSecrets (#18820)
clubanderson Nov 17, 2026
738a65c
🔖 release: v5.307.0
actions-user Nov 17, 2026
c9c20e5
Merge pull request #18821 from hivecommons/release-gate/v5.307.0
clubanderson Nov 17, 2026
2141f0f
✨ Contributor run stats by model: why runs failed (#18784)
Danathar Nov 17, 2026
17c9ede
🔖 release: v5.307.1
actions-user Nov 17, 2026
06bdf4e
Merge pull request #18822 from hivecommons/release-gate/v5.307.1
clubanderson Nov 17, 2026
8808d2c
✨ Governor PRs by model: rework per backend and a per-effort breakdow…
Danathar Nov 17, 2026
08b5186
🐛 Customers: Inbox-style layout, less noise, no non-people suggested,…
clubanderson Nov 17, 2026
7ee2dd5
🐛 Claude model dropdown and price table: add Fable 5.2, Fable 5.1, Ha…
Danathar Nov 17, 2026
9ea223b
🐛 Selfreport seen sightings as one upserted comment (#18748)
hivecommons-hive[bot] Nov 17, 2026
51ae3ef
🔖 release: v5.308.0
actions-user Nov 17, 2026
39acb67
Merge pull request #18823 from hivecommons/release-gate/v5.308.0
clubanderson Nov 17, 2026
5da6f72
🐛 PR Verifier (v5): record PR Type and PR Issue with one completed cr…
Danathar Nov 17, 2026
dad9f6e
🐛 Keep GHCR token timeouts out of fleet self-reports (#18825)
hivecommons-hive[bot] Nov 17, 2026
95276f8
✨ Governor PRs by model: per-repository breakdown and weekly trend (#…
Danathar Nov 17, 2026
e54c1c5
🔖 release: v5.309.0
actions-user Nov 17, 2026
0f0ad7a
Merge pull request #18828 from hivecommons/release-gate/v5.309.0
clubanderson Nov 17, 2026
bb85cd0
✨ PRs by model: list one model's pull requests (#18785)
Danathar Nov 17, 2026
74f40b3
✨ Spend and contributor run stats by model: add the canonical model n…
Danathar Nov 17, 2026
0b10ab4
test: one extractFunction in governor-pr-models-ui.test.js (#18831)
Danathar Nov 17, 2026
08a8174
🔖 release: v5.310.0
actions-user Nov 17, 2026
51265dd
Merge pull request #18835 from hivecommons/release-gate/v5.310.0
clubanderson Nov 17, 2026
d6b548e
fix: restart of a sandboxed agent must not start a tmux session (#18845)
hivecommons-hive[bot] Nov 17, 2026
e198726
✨ Evidence summary: change failures (reverts, reopened issues) per mo…
Danathar Nov 17, 2026
8c292e0
🔖 release: v5.311.0
actions-user Nov 17, 2026
9cecce8
Merge pull request #18850 from hivecommons/release-gate/v5.311.0
clubanderson Nov 17, 2026
1ff57d9
✨ dashboard: merge banner shows when it merged; Time format option (#…
Danathar Nov 17, 2026
80ec755
🐛 Sessions: adopt a Codex or OpenCode login refreshed in a session ba…
Danathar Nov 17, 2026
9a515ca
🔖 release: v5.312.0
actions-user Nov 17, 2026
77975e4
Merge pull request #18852 from hivecommons/release-gate/v5.312.0
clubanderson Nov 17, 2026
74fe463
✨ Weekly PR adds new Claude models to the lists and price table once …
Danathar Nov 17, 2026
13819f0
🐛 config: adopt review and agent_sandbox from the dashboard overlay o…
clubanderson Nov 17, 2026
362504f
✨ PRs by model: split closed-unmerged PRs by close reason (#18782)
Danathar Nov 18, 2026
1bceeef
🔖 release: v5.313.0
actions-user Nov 18, 2026
98e7857
Merge pull request #18854 from hivecommons/release-gate/v5.313.0
clubanderson Nov 18, 2026
92923a9
✨ Governor PRs by model: what each model's PRs cost the hive to revie…
Danathar Nov 18, 2026
3f1c3f3
🔖 release: v5.314.0
actions-user Nov 18, 2026
43190c4
Merge pull request #18856 from hivecommons/release-gate/v5.314.0
clubanderson Nov 18, 2026
eb01d97
🔖 release: v5.315.0
actions-user Nov 18, 2026
61a8be4
Merge pull request #18859 from hivecommons/release-gate/v5.315.0
clubanderson Nov 18, 2026
5f1ef08
✨ feature: support node affinity for sandbox jobs (#18861)
hivecommons-hive[bot] Nov 18, 2026
d5a584b
🔖 release: v5.316.0
actions-user Nov 18, 2026
3103c13
Merge pull request #18864 from hivecommons/release-gate/v5.316.0
clubanderson Nov 18, 2026
8c7c84a
✨ Hold unacknowledged agent proposals before admission (#18858)
Karibhou Nov 18, 2026
6b79bed
🐛 images: align image-bump commit author with sign-off (#18738)
hivecommons-hive[bot] Nov 18, 2026
8ce72d8
🐛 Never auto-close epics or parents a person reopened (#18869) (#18871)
clubanderson Nov 18, 2026
09dce5b
🔖 release: v5.317.0
actions-user Nov 18, 2026
028f8ca
Merge pull request #18877 from hivecommons/release-gate/v5.317.0
clubanderson Nov 18, 2026
ed1d6eb
🐛 proxy: operator-action classes for unidentified writers and transie…
clubanderson Nov 18, 2026
2df260a
fix(customers): style tag chips as pills (#18883)
clubanderson Nov 18, 2026
9d2b999
🐛 Withhold the contributor nudge for a head the hive adopts anyway (#…
clubanderson Nov 18, 2026
b7028dc
🐛 Remember per repo that Prow refuses the App's /ok-to-test (#18608) …
clubanderson Nov 18, 2026
b0426ee
🔖 release: v5.317.1
actions-user Nov 18, 2026
41029a4
🐛 Batch benchmark pushes by bytes, halve on 413, surface hub response…
clubanderson Nov 18, 2026
095dde4
✨ hub: v1 registration discovery and configurable repo cap (#18892)
clubanderson Nov 18, 2026
9b60dfd
Merge pull request #18894 from hivecommons/release-gate/v5.317.1
clubanderson Nov 18, 2026
04d4d03
✨ Customers list: GitHub avatars, tag pills and one-line rows (#18888)
clubanderson Nov 18, 2026
d5dfc48
✨ feature: sandbox node preflight and fail-fast on an unschedulable J…
clubanderson Nov 18, 2026
7b534d0
✨ hub: v1 registration resources, per-repo proofs and revision (2/3) …
clubanderson Nov 18, 2026
e3823a7
📝 Sessions: document and test the single-owner Codex/OpenCode login (…
clubanderson Nov 18, 2026
accb8f9
✨ Customers step E: budgeted GitHub mention search on suggestion acce…
clubanderson Nov 18, 2026
01ff151
🐛 Key the workflow-dispatch ledger by the qualified repo on every pat…
clubanderson Nov 18, 2026
f1aa132
🐛 Betty: count warm-session cache reads at a tenth toward the meeting…
clubanderson Nov 18, 2026
15be4bf
🔖 release: v5.318.0
actions-user Nov 18, 2026
db67bf9
✨ Sandbox Jobs: authenticated GitHub reads via a read-only hive relay…
clubanderson Nov 18, 2026
772aec1
Merge pull request #18919 from hivecommons/release-gate/v5.318.0
clubanderson Nov 18, 2026
5fcb84e
✨ Expose the knowledge advisor rank-versus-holdout summary through a …
clubanderson Nov 18, 2026
0337b5e
🌱 Restore v5 ancestry through 2a56dc578 (carried by squash-merged #18…
clubanderson Nov 18, 2026
c57fc02
🐛 Reject non-branch PR heads (detached HEAD) once instead of retrying…
clubanderson Nov 18, 2026
21447c7
🌱 chore: top up v6 from v5 (2026-11-18)
clubanderson Nov 18, 2026
6b0936a
🌱 chore: top up v6 from v5 (2026-11-18, second pass)
clubanderson Nov 18, 2026
7a1cfd1
DCO Remediation Commit for Andy Anderson <andy@clubanderson.com>
clubanderson Nov 18, 2026
1f7bee6
🌱 top-up: port v5's sandbox Job config, read-relay setter row and OnS…
clubanderson Nov 18, 2026
3fbc0bd
DCO Remediation Commit for Andy Anderson <andy@clubanderson.com>
clubanderson Nov 18, 2026
575cca0
🌱 top-up: fix duplicate claudeProjectsKey, ChildRef ledger helper, ad…
clubanderson Nov 18, 2026
9d7b757
🌱 top-up: re-pin TRUSTED_SCRIPTS_TREE to HEAD:src/scripts and adapt v…
clubanderson Nov 18, 2026
7585721
🌱 top-up: reconcile the first-run notice label, the sidebar Nous summ…
clubanderson Nov 18, 2026
62f1fb6
🌱 top-up: first-run notice footer must be the last line, as for the s…
clubanderson Nov 18, 2026
1ee570d
🌱 top-up: cover ValidateSandboxJobAffinity inside crux/config
clubanderson Nov 18, 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
  •  
  •  
  •  
339 changes: 314 additions & 25 deletions .github/scripts/check-static-model-freshness.py

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions .github/scripts/claude-model-freshness.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#!/usr/bin/env bash
# Builds the weekly Claude model freshness change in the working tree (#18754).
# Run by .github/workflows/claude-model-freshness.yml; see its header.
#
# 1. fetches OpenRouter's public model catalogue once (both steps below read
# the same snapshot);
# 2. installs the Claude Code version pinned in src/Dockerfile exactly the
# way the image does (npm --ignore-scripts, then the vendor's install.cjs)
# so the candidates can be probed against it, unauthenticated;
# 3. check-static-model-freshness.py --apply claude: candidates, the probe
# gate, and the edits to claudePinnedCLIModels, claudeStaticModels,
# CLAUDE_CLI_MODELS and cli-model-requirements.txt;
# 4. for the accepted ids: `pricetable --add` (new modelPrices rows, only
# through its plausibility rules) and `make dashboard-gen`.
#
# Usage: claude-model-freshness.sh <out dir>
# Env: DRY_RUN=1 prints every edit and writes nothing.
# SOURCE_URL overrides the catalogue URL.
# Out: <out>/report.md (the PR body), <out>/accepted.txt (one id per line;
# empty when nothing is added), <out>/pin.txt.
set -euo pipefail

out="${1:?usage: claude-model-freshness.sh <out dir>}"
mkdir -p "$out"
out="$(cd "$out" && pwd)"
cd "$(git rev-parse --show-toplevel)"

source_url="${SOURCE_URL:-https://openrouter.ai/api/v1/models}"
catalog="$out/openrouter.json"
curl -fsSL --retry 3 --max-time 60 -H 'Accept: application/json' -A hive-claude-model-freshness \
"$source_url" -o "$catalog"

pin="$(sed -n 's/^ARG CLAUDE_CODE_VERSION=\([^ ]*\).*/\1/p' src/Dockerfile | head -1)"
[ -n "$pin" ] || { echo "no ARG CLAUDE_CODE_VERSION in src/Dockerfile" >&2; exit 1; }
printf '%s\n' "$pin" > "$out/pin.txt"

# Without the binary nothing is added: every candidate is reported under
# "needs a check" instead (check-static-model-freshness.py gate_candidates).
claude_bin=""
prefix="$out/claude-code"
if npm install --prefix "$prefix" --ignore-scripts --no-fund --no-audit \
"@anthropic-ai/claude-code@${pin}" >&2 \
&& node "$prefix/node_modules/@anthropic-ai/claude-code/install.cjs" >&2 \
&& "$prefix/node_modules/.bin/claude" --version >&2; then
claude_bin="$prefix/node_modules/.bin/claude"
else
echo "::warning::Could not install Claude Code ${pin} to probe; no model will be added this run."
fi

dry=()
[ "${DRY_RUN:-}" = "1" ] && dry=(--dry-run)
probe=()
[ -n "$claude_bin" ] && probe=(--claude-bin "$claude_bin")

python3 -I .github/scripts/check-static-model-freshness.py --apply claude \
--catalog "$catalog" --accepted-out "$out/accepted.txt" "${probe[@]}" "${dry[@]}" > "$out/lists.md"
cp "$out/lists.md" "$out/report.md"

if [ ! -s "$out/accepted.txt" ]; then
echo "no Claude model to add"
exit 0
fi

ids="$(paste -sd, "$out/accepted.txt")"
(cd src && go run ./internal/tools/pricetable --source "$catalog" --add "$ids" \
--report "$out/prices.md" "${dry[@]}")
{ echo; cat "$out/prices.md"; } >> "$out/report.md"

if [ "${DRY_RUN:-}" != "1" ]; then
make dashboard-gen
make dashboard-gen-check
test -z "$(gofmt -l src/pkg/tokens/pricing.go src/pkg/dashboard/cli_models.go)" \
|| { echo "::error::generated Go files are not gofmt-clean" >&2; exit 1; }
{
echo
echo "### Model lists against the CLI pins"
echo
echo '```'
HIVE_MODEL_CHECK_STRICT=0 bash src/scripts/check-cli-model-lists.sh 2>&1 || true
echo '```'
} >> "$out/report.md"
fi
echo "Claude models to add: $ids"
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 = 'bf12ae550a3a4d306821d0ae56cc22850f035e3c';
const TRUSTED_SCRIPTS_TREE = '337c51a3c0d26870b823801711580d5445982171';
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
55 changes: 39 additions & 16 deletions .github/scripts/native-queue-tracker.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ test('real queue position, state and provider age never invent pipeline progress
const before = JSON.stringify([q, row]);
const html = render(q);
assert.match(html, /value="3"/);
assert.match(html, /AWAITING_CHECKS/);
assert.match(html, /queued 10m/);
// GitHub's own state, in words; the wait is the entry's enqueue age.
assert.match(html, /front #7 awaiting checks, in queue 10m/);
assert.match(html, /on this page/);
assert.match(html, /Enqueue is not testing or merge completion/);
assert.match(html, /checked 1m ago/);
// Queued is not testing and not merged: nothing on the line says so (the
// help mark may mention the words only to say what they are not).
const line = html.match(/<span class="ham-native-line">(.*?)<\/span><span class="ham-merged-meta">/)[1];
assert.doesNotMatch(line, /testing:|merged|data-ham-key|[0-9]+%|ETA [0-9]/);
assert.doesNotMatch(html, /data-ham-key|[0-9]+%|ETA [0-9]/);
assert.equal(JSON.stringify([q, row]), before);
});
Expand All @@ -42,21 +46,36 @@ test('unknown, stale, unavailable and partial snapshots cannot claim empty curre
q.stale = true;
q.state = 'unavailable';
const html = render(q);
assert.match(html, /STALE/);
assert.match(html, /coverage incomplete/);
assert.match(html, /does not prove an empty queue/);
assert.match(render({ ...queue(), observed_at: '2026-10-30T10:00:00Z' }), /STALE/);
// A failed refresh stands out and never reads as an empty queue.
assert.match(html, /ham-native-badge-problem">refresh failed/);
assert.match(html, /queue unknown; last refresh failed/);
assert.doesNotMatch(html, /nothing queued/);
// The caveat lives once, in the help mark.
assert.equal((html.match(/does not prove the queue is empty now/g) || []).length, 2, 'aria-label and tooltip text only');
// Evidence far older than the rotation explains is a problem; a normal
// rotation delay is an age, not an alarm.
assert.match(render({ ...queue(), observed_at: '2026-10-30T10:00:00Z' }), /ham-native-badge-problem">not checked for 130m/);
const delayed = render({ ...queue(), entries: [], observed_at: '2026-10-30T12:01:00Z', stale: true });
assert.match(delayed, /nothing queued at last check/);
assert.match(delayed, /checked 9m ago/);
assert.doesNotMatch(delayed, /STALE|ham-native-badge-problem/);
});

test('unknown member mapping never trusts a FIFO member list or PR-head green', () => {
const q = queue();
q.entries = [];
q.candidates = [{ sha: 'synthetic-only', membership: 'unknown', members: [{ pr: 999, head: 'unproved' }], ci: 'unknown', checks: [] }];
const html = render(q);
assert.match(html, /Member mapping unknown/);
assert.match(html, /members not proven/);
assert.match(html, /synthetic-only/);
assert.doesNotMatch(html, /#999|unproved/);
assert.match(html, /never copied from PR heads/);
assert.match(html, /required checks unknown \(policy unreadable\)/);
assert.doesNotMatch(html, /checks passed/);
assert.match(html, /never the PR.s; missing, pending, skipped or unreadable checks are never shown as passing/);
// A group whose synthetic ref is gone is history, not a live candidate.
const finished = render({ ...queue(), entries: [], candidates: [{ ...q.candidates[0], expired: true, reason: 'Synthetic ref unavailable or changed; lifecycle outcome unknown.' }] });
assert.match(finished, /1 finished group \(outcome not observed\)/);
assert.doesNotMatch(finished, /Test group|synthetic-only|testing:/);
});

test('parallel candidate cards retain exact members and exact candidate CI drilldown', () => {
Expand All @@ -67,12 +86,15 @@ test('parallel candidate cards retain exact members and exact candidate CI drill
checks: [{ name: 'test-' + i, status: i ? 'completed' : 'in_progress', conclusion: i ? 'failure' : '', url: 'https://github.com/o/r/actions/runs/' + i }],
}));
const html = render(q, [row], []);
assert.equal((html.match(/<article class="nq-candidate">/g) || []).length, 2);
assert.match(html, /Candidate required CI: pending/);
assert.match(html, /Candidate required CI: failed/);
assert.match(html, /outside current page\/filters/);
assert.equal((html.match(/<div class="ham-native-group">/g) || []).length, 2);
assert.match(html, /2 groups testing: checks running, checks failed/);
assert.match(html, /ham-native-badge-problem">checks failed/);
// The SHA is shortened to 12 characters; the full value stays in the title.
assert.match(html, /Test group <code title="candidate-one">candidate-on<\/code> · checks running/);
assert.match(html, /Test group <code title="candidate-two">candidate-tw<\/code> · checks failed/);
assert.match(html, /on another page/);
assert.match(html, /https:\/\/github.com\/o\/r\/actions\/runs\/1/);
assert.match(render(q, [{ ...row, head: 'new-head' }]), /outside tracker snapshot or head changed/);
assert.match(render(q, [{ ...row, head: 'new-head' }]), /outside snapshot or head changed/);
});

test('repo filters, unknown age, bounded outcomes and safe links remain explicit', () => {
Expand All @@ -86,8 +108,9 @@ test('repo filters, unknown age, bounded outcomes and safe links remain explicit
const html = render(q);
assert.match(html, /entry-removed/);
assert.match(html, /actual-merge/);
assert.match(html, /Removal\/destroyed is not proof/);
assert.match(html, /gaps after restart/);
assert.match(html, /2 receipts/);
// Receipts are behind the click; only a merged receipt means merged.
assert.match(html, /only a merged receipt means merged/);
assert.equal(context.stageTrackerNativeLink('javascript:invalid', 'check'), 'check');
});

Expand Down
Loading
Loading