Repository navigation
fix(#1315): PlatformProvider has no error contract — postPRComment is still unchecked and the ready gate's report-post catch is empty (#1312 follow-up) - #1320
Merged
admarble merged 6 commits intoOct 5, 2026
Conversation
…rt-post failures; document the PlatformProvider error contract Entire-Checkpoint: c6c6af3cb14e
Entire-Checkpoint: 623f32f80bff
…forms-platformprovider-has-no-error-contra
…heckAuth's false as the one exception QA finding on PR #1320: the new PlatformProvider doc said every async method rejects on failure, but getIssueComments resolved [] and checkAuth resolved false. getIssueComments has no production caller, so it now goes through runGhOrThrow (which returns stdout); checkAuth is a yes/no question and is documented as the exception. Claude-Session: https://claude.ai/code/session_01B4TQvM2Ps5mc4jFgHB99bw Entire-Checkpoint: bee408ba3dea
…forms-platformprovider-has-no-error-contra
…main Claude-Session: https://claude.ai/code/session_01B4TQvM2Ps5mc4jFgHB99bw Entire-Checkpoint: 5d7bb0379b84
admarble
deleted the
feature/1315-fix-platforms-platformprovider-has-no-error-contra
branch
October 5, 2026 14:17
This was referenced Oct 5, 2026
7 tasks
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.
Summary
The branch
feature/1315-fix-platforms-platformprovider-has-no-error-contrais pushed. Under the orchestrator the PR is left to the orchestrator. Build, lint and the full suite all pass: 371 files, 9001 tests passed, 1 expected fail, 3 skipped.Ready-gate route for AC-3: I added an optional
log?: (message: string) => voidtoRunReadyGateOptions, defaulting toconsole.warn. The gate stays non-fatal.batch-executor.tspasses its ownlog. I did not editcommands/ready.ts; it uses theconsole.warndefault.platform-provider.ts: thePlatformProviderdoc comment states every async method rejects on failure and never resolves on failure.github.ts:postPRCommentnow callsrunGhOrThrowand rejects on non-zero exit, timeout or spawn failure, with gh's stderr. Tests:github-gh-failure.test.ts.ready-gate.ts: the empty catch now logsFailed to post ready-gate report for #N: <error>. Test:ready-gate.test.ts, "logs a warning with the error when postReport rejects (#1315)".spawnSyncloop ingithub-gh-failure.test.tsnow coverspostComment,addLabel,removeLabelandpostPRComment.CHANGELOG has a new entry under
[Unreleased].Mutation results:
postPRCommentreverted to a barespawnSync, 4postPRCommentcases failed (non-zero exit, timeout, spawn failure, stderr). Restored.tscbuild, so I switched to a mutation that type-checks.parseMutationMarkerson the markers above.Pre-PR confidence check
console.warnon thesequant readypath. The TUI may interleave it with the live zone.github.tsandready-gate.tsare covered by the new tests.batch-executor.tsonly gained alogpass-through and has no dedicated test for it.Other checks: no option interfaces changed beyond the gate's
log, so there are no CLI flags to wire. There are no shell scripts and nopre-tool.shchanges. Quality Plan Alignment is N/A, as there is no quality plan in the issue.Runner note
This body was written by the runner from exec's final
## Summary(run5c20ddf7). The run's own body was the placeholder, because of the #1311 cause; that is the fourth time in four runs. The body has nosequant runtrailer, so the post-QA update leaves it alone.QA (run
fb82f2cc) and runner fixAC_MET_BUT_NOT_A_PLUS, 4/4 ACs met. QA's fix-now finding: the new contract said every async method rejects on failure, butgetIssueCommentsresolved[]andcheckAuthresolvedfalse. Fixed in94268711:getIssueCommentsnow goes throughrunGhOrThrow, which returns stdout, and rejects on failure. It has no production caller.checkAuthas the one exception: a yes/no question that answersfalse.getIssueCommentsjoined the failing-spawnSyncloop. The old "returns empty array on failure" test now asserts rejection.QA's second finding (
createPRtimeout and spawn-error paths are not in the loop) is dropped.createPRalready threw before this PR (createPRCliSyncchecksexitCode). This PR doesn't change it, and AC-4 covers the write methods #1312 left unchecked.Mutation-verified: AC-1 — made getIssueComments swallow the gh failure and resolve an empty list; github-gh-failure.test.ts getIssueComments cases failed (4) plus github.test.ts rejects-on-failure; restored.
Fixes #1315
🤖 Generated with Claude Code