Repository navigation
hr-code-review: generate the panel recommendations catalog from a board snapshot, a source spec and sanitized own results - #671
Merged
Conversation
…rd snapshot, a source spec and sanitized own results scripts/refresh-recommendations.mjs builds panel-recommendations.json. --fetch rewrites the committed board snapshot from the public Bug Hunt board; --from-file sanitizes a maintainer's own results (fixed plain fields, no paths, links, addresses or credentials, and a required deny file for names this repository must not carry) into the own file; --check fails offline when the catalog is not what the committed files generate. Arguments are strict, conflicting or repeated options are refused, and several outputs are written together or not at all. The one-time refresh moves the Opus, Sonnet and Muse entries to the board's current rows and adds GPT-6.2 Astra and Gemini 4 Neon. Entries gain a kind (board or own-evaluation). The generated JSON files are excluded from the formatter so the generator's output is canonical.
…ation-owned staging, byte-level check, refresh lock, input selection by mode, streamed fetch cap, spread-aware rationale
There was a problem hiding this comment.
Bompus AI Review (GPT-6.2 Astra, medium reasoning; Gemini 4 Neon, high reasoning): 9 finding(s).
Review 2: findings below high are posted only within 3 lines of a change since 4091336.
…d public model/harness vocabulary, one strict snapshot schema and canonical layout, measurement domains, per-string deny matching, race-safe refresh lock, backups outside the skill folder, canonicalizing plain run, controlled test fixtures
…acts kept only in the catalog (one-file import), tool-owned transaction reclaim, serialized stale-lock recovery, controlled test fixtures, doc paragraph under the ceiling
…ot and whole catalog, obsolete own file refused, own facts recovered by any marker, lock ownership read from content (Windows inode numbers are not reliable)
…e the skill folder (symlinks included), repeated JSON keys refused before any own fact is read, deny check covers the spec and Unicode names, script split under the line limit
…er validated before use, member names screened, full case folding, saved board location-checked, references folder inventory in the spec enforced by --check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the panel recommendations catalog generated, so it follows its evidence instead of being edited by hand.
skills/hr-code-review/scripts/refresh-recommendations.mjsbuildsreferences/panel-recommendations.jsonfrom three committed files: a source spec (panel-recommendations.sources.json: which board rows each entry uses, plus the route, limits and advice no board states), a snapshot of the public Bug Hunt board (panel-board-snapshot.json, current rows only) and optional own results (panel-recommendations.own.json).--fetchreads the board over https (no redirects, size cap) and rewrites the snapshot.--from-filesanitizes a maintainer's own results into plain fields (model, effort, found of total, false share, minutes, a short cohort line, provenance) and requires--deny-file, a list of names this repository must not carry, matched ignoring case and punctuation.--checkis offline, with no clock and no network, and fails when the catalog is not what the committed files generate.kind(boardorown-evaluation). The rationale line is computed from the rows: a saving is stated only when it is one, and a gap inside the board's run-to-run spread is said to be no difference.--from-fileand--checkround trip.Reviewed locally with the pinned read-only reviewer: one blocker (private names in a test, fixed before the first push) and several smaller points, fixed. Not covered: nothing checks the snapshot against the live board except
--fetchitself.bun run checkandbun test skills/hr-code-reviewpass.