Repository navigation
R3: the weekly report shows the RFC clock - #2278
Merged
neuromechanist merged 6 commits intoNov 21, 2026
Merged
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2278Version: 🤖 Updated on each push. |
10 tasks done
This branch was previously deployed
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.
Card R3 of the RFC program, referencing #2245. The weekly import report gains an RFC clock section that lists every RFC that is open or closed awaiting a decision with its close instant (and decision due date), and says when rfc-clock last ran and whether GitHub still has the workflow enabled, so a clock that GitHub switched off after 60 days without repository activity (risk K1) shows within a week. No new cron, switch, mail or environment variable: it is gathered beside the other facts on the existing daily tick behind the once-per-week gate.
Three reads of the public repository nemarOrg/rfcs (the generated README index, the rfc-clock workflow state, and its newest run), each in its own try with an optional installation token that is retried anonymously on 401, 403 or 404. A failed read, a README without both markers or a table the parser cannot read is unknown, lists a failed part with stage rfcs, and needs attention; it is never zero. Attention reasons (in the one shared rule, also used by nemar admin import-weekly): unreadable parts, a workflow not active, a newest run older than 48 hours or absent, a failed newest run, and an RFC past its decision due date.
Beyond the card's Scope list (src/commands/admin.ts is in scope, card line 40): src/lib/api/admin.ts (the hand-mirrored response type needs the new optional field), test/import-weekly-cli.test.ts (its healthy fixture and four new CLI tests), and a Bun.serve stand-in in backend/test/import-weekly-summary-sweep.test.ts so the existing sweep tests do not reach api.github.com. The RFC fact types live in shared/contract/weekly-attention.ts so the Worker and the CLI share them.
Tests run: backend/test/import-weekly-rfc-section.test.ts (28 pass), the four existing weekly test files (256 pass), cron-sweep-wiring, upstream-repull-weekly-d1 and weekly-cron-firing (233 pass), test/import-weekly-cli.test.ts and import-coverage-cli.test.ts (65 pass), root and backend typecheck, and biome on the touched files. The full bun test was not run.
Round 1 fix: [x] a newest run whose conclusion is anything other than success, skipped or still running (timed_out, startup_failure, cancelled, action_required, neutral, stale, an unreadable word) now needs attention, with tests for each; [x] RFC titles are printed inside a code span after stripping backticks, pipes and angle brackets, so emphasis, entities, autolinks, escapes and a leading ! stay literal, with a test using all of them; [x] the run link must match https://github.com/nemarOrg/rfcs/actions/runs/N or it is not printed; [x] a 403 or 429 with x-ratelimit-remaining 0 says rate limited in the failed-part text; [x] import-weekly-repull-section.test.ts pins that its GitHub stand-in is the API base and import-weekly-route.test.ts points it at a closed local port, so neither depends on another file to stay offline.