Skip to content

R3: the weekly report shows the RFC clock - #2278

Merged
neuromechanist merged 6 commits into
feature/rfc-programfrom
feature/rfc-R3-weekly-rfc-line
Nov 21, 2026
Merged

neuromechanist merged 6 commits into
feature/rfc-programfrom
feature/rfc-R3-weekly-rfc-line

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2278

Version: 0.10.37-PR2278.9c12a66
Commit: 9c12a66


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 14d49c8 into feature/rfc-program Nov 21, 2026
1 check passed
@neuromechanist
neuromechanist deleted the feature/rfc-R3-weekly-rfc-line branch November 21, 2026 01:57

This branch was previously deployed

1 inactive deployment
npm — 9c12a664 Deployed Nov 21, 2026 by neuromechanist via publish #4678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant