Skip to content

Add dormant service-origin admission to Babysitter CI repair - #661

Draft
miyaontherelay wants to merge 2 commits into
mainfrom
codex/4778-service-origin-b6eefa
Draft

miyaontherelay wants to merge 2 commits into
mainfrom
codex/4778-service-origin-b6eefa

Conversation

@miyaontherelay

@miyaontherelay miyaontherelay commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Cloud #4778 cannot launch a service-owned promotion repair through the pinned Babysitter fixer: task admission requires a Claude/Codex session origin. This adds a distinct, dormant merge_train_service input for fix_ci tasks. It binds the syntax to the repository, PR, head, tree and failure digest; rejects extra or malformed fields; gives the agent a fixed narrow task; and starts a fresh checkout/session so it cannot inherit a cached human session. Human-origin runs retain their existing behavior.

This parser is not authorization. Cloud must verify and consume a persisted service grant and origin, prove the live GitHub CI failure, claim the run, and recheck authority before publishing. This PR does not change Cloud's pinned source hash, launch refusal, publication path, grant provisioning or production behavior. The generated fixer source and manifest are committed together. The shared parser also changes the generated diagnose artifact hash; Cloud remains pinned to its prior source until a separate reviewed change.

Verification from the isolated worktree:

$ node --experimental-strip-types --test --test-name-pattern='service-origin CI task' tests/task.test.ts
✔ a service-origin CI task uses a bounded service scope without inventing a human session
ℹ tests 1
ℹ pass 1
ℹ fail 0

$ TMPDIR='/Volumes/Paris Drive/DeveloperStorage/khaliqgant/tmp' node --experimental-strip-types --test tests/*.test.ts
ℹ tests 181
ℹ pass 174
ℹ fail 0
ℹ todo 7

$ npm run typecheck
> tsc -p tsconfig.json

$ npm run check:standalone
Checked sha256:636c45dd642c740b7a053f5f6358b40f667826555696663be8777807e2fd453b (babysitter-standalone)
Checked sha256:4ce57f770b1acfb615ee3557358397d5b401bb789461c79fb5d6e8b0462e2d1d (babysitter-fixer)

The new focused test failed before implementation with needs_human instead of success; it passes with the service admission path. The test also verifies that mismatched scope, malformed identifiers, extra prompt text and non-CI service tasks stop before a live read or agent launch. The full suite needs TMPDIR on this host because /Users/khaliqgant/.agent-tmp aliases /Volumes/Paris Drive/DeveloperStorage/khaliqgant/tmp; without it, an unrelated cache-path identity assertion fails.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Agent Relay sessions

  • codex session 01a1284f · opened via gh pr create · last active 2026-10-13

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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