You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(repo-config): size-gate the fetcher, harden pr-check, trim workflow-types
Three review findings on the repo-config surface.
`fetcher.ts` had no size gate before the base64 decode, unlike its sibling
`pr-check.ts`. Adds the gate, sharing `MAX_CONFIG_BYTES` from `schema.ts` so
the two read paths cannot drift. The empty-`content` case is folded in on
purpose: over 1 MB the Contents API returns `content: ""` with
`encoding: "none"`, which decoded to "", parsed to null, and surfaced as a
root-level schema error blaming the owner's document for a size limit.
`touchesConfigFile` was the one GitHub call in `pr-check.ts` that could
reject, so `runPrConfigCheck` was not the total function its siblings are. A
secondary rate limit or a revoked `pull_requests: read` now no-ops the check
instead of throwing into the caller.
`workflow-types.ts` carried workflow-runner scaffolding with no consumer on
this branch, including a second `HandlerResultSchema` whose shape already
disagreed with the registry's. Trimmed 20 export statements to the 9 that
have callers; the rest land with the isolated runner.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KUPpJPtxAaHWrBsjytRGyM
0 commit comments