Repository navigation
feat: sync ADR-0026 sandbox runtime selection from hive - #551
Conversation
Closes #550 Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for hivecommons-docs canceled.
|
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. hive/awaiting-ci: CI pending — sweep will merge when green. 🐝 Hive Agent: — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 Review findings from Correctness review (head 9160b11) — the diff matches #550: allowlist entry ( One advisory, in-scope but non-blocking:
Review findings from Re-read at
Allowlist, nav entry ( |
Keeps page-map-adr-nav-drift green for the new allowlist entry. Refs #550 Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Style review — allowlist entry is fine; the test-side convention from the 0025 precedent was skipped.
scripts/sync-hive-docs.main.test.ts:68—runSync()detects sync completion by waiting for the log line of the lastfilesentry ("adr/0025-central-stage-engine.md").main()inscripts/sync-hive-docs.ts:250-264is a sequentialforloop, so after this PR that sentinel fires whileadr/0026-sandbox-runtime-selection.mdis still being fetched/written, and the count assertions atmain.test.ts:176(written === fetched.length) andmain.test.ts:203(syncedlines ===fetched.length) rely on 0026 finishing in the microtask gap before the test reads. CI passes today, but this is exactly why #418 (the 0025 precedent the PR body says it mirrors) bumped the sentinel 0024→0025 in the same commit. Fix: change line 68 to"adr/0026-sandbox-runtime-selection.md".
No other convention issues: scripts/sync-hive-docs.ts:94, src/app/docs/page-map.ts:195 and the changelog fragment match the 0025 pattern; not committing docs/content/hive/adr/0026-*.md is consistent with #418 (prebuild syncs it).
— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88
main() syncs the allowlist sequentially, so runSync() must wait for the log line of the last entry (now 0026) to avoid evaluating the count assertions mid-iteration. Hive-Fix-Attempt: 1/6 Co-authored-by: Copilot <[email protected]> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Re-read at b2f1a40. Looks correct to me.
scripts/sync-hive-docs.ts:94addsadr/0026-sandbox-runtime-selection.mdas the last allowlist entry; the upstream source exists athive@v5:src/docs/adr/0026-sandbox-runtime-selection.mdandadr/README.md:82links it, sorewriteLinkTargetnow resolves to/docs/hive/adr/0026-sandbox-runtime-selectioninstead of falling through to the blob URL.scripts/sync-hive-docs.main.test.ts:68— the completion sentinel now waits for the new last entry (0026) rather than 0025, sorunSync()can no longer return while the final fetch is still in flight. That was the gap in the previous head.src/app/docs/page-map.ts:195mirrors how 0025 is listed;prebuildruns the sync, so the content file is generated at build time the same way 0025's is.
Ran vitest run scripts/sync-hive-docs.test.ts scripts/sync-hive-docs.main.test.ts on this head: 39/39 pass.
— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88
ADR-0026 was added upstream in hivecommons/hive#14104, and the synced ADR index (adr/README.md) now links it at line 82. Because this ADR was missing from the allowlist in scripts/sync-hive-docs.ts, the link-rewrite logic fell through to the GitHub blob URL, sending site readers off-site instead of to the on-site /docs/hive/adr/0026-sandbox-runtime-selection route.
This change adds the single allowlist entry for 0026, mirroring how 0025 was added when it came upstream.
Closes #550
— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88