Skip to content

feat(orchestrator): mirror the gentle-ai sdd-orchestrator canon into the Pi prompt surface - #313

Merged
Alan-TheGentleman merged 1 commit into
mainfrom
feat/312-orchestrator-canon-calco
Aug 14, 2026
Merged

Alan-TheGentleman merged 1 commit into
mainfrom
feat/312-orchestrator-canon-calco

Conversation

@Alan-TheGentleman

Copy link
Copy Markdown
Collaborator

Closes #312. Umbrellas: #311, #256.

Pi's orchestrator prompt surface becomes a carbon copy of the gentle-ai sdd-orchestrator canon (rc.8 + the #3249 pi runtime registration), byte-faithful where the contract is shared (<!-- canon:start/end --> markers), Pi overlays only where the runtime genuinely differs.

  • Canon sections mirrored byte-faithful: Lossless Blocking Prompts (with the #3070 symmetric ordinal-alias domain), Gentle AI Provider Defect Handoff (evidence-channel routing), SDD Edit-Authority Consent Relay, Language Domain Contract, Delegation Rules + Mandatory Delegation Triggers, Native Checking Contract, the full review-ledger contract (route, forecast, all 18 stop-reason continuations, consent/v3, capture rules, read-only git recipe, correction, Authority-First Terminal Procedure, Delivery), Cost and Context Balance.
  • Pi bindings where the runtime differs: ask_user_question as the classified native question UI, agent: pi on STATUS routes, and the new pi-binding paragraph — registered host-mediated identity (gentle-ai#3249), GENTLE_PI_REVIEW_RELAY_CONTRACT=gentle-pi.review-relay/v1 declared by the launcher (admission fails closed without it), collect inputs without --agent, fresh locked-down print-mode pi subprocess per capture, raw bytes via --result-artifact-file.
  • Pi overlays preserved verbatim: identity/persona header, LB1–LB5, Work Routing Ladder, compact controller lane, trigger runtime bindings, all {{GENTLE_PI_*_PATH}} injection points.
  • PR feat(sdd): adopt native attempt authority #303's Native Runtime Attempt Authority sections untouched; always-on injection stays under the 10,240 B rendered budget.

Verification: full suite 1021 pass / 0 fail / 1 pre-existing skip; orchestrator-budget 39/39; native-sdd-attempt-authority 17/17; check:transaction-runner and verify-package-files green.

…the Pi prompt surface (#312)

Replace the canon-shaped orchestrator contract sections with byte-mirrored
copies of gentle-ai's rc.8 canon (sdd-orchestrator.md + the shared
review-ledger contract): Lossless Blocking Prompts with the #3070 symmetric
ordinal-alias answer domain, the Gentle AI Provider Defect Handoff with
evidence-channel routing, the SDD Edit-Authority Consent Relay, the Language
Domain Contract, canon Delegation Rules and Mandatory Delegation Triggers,
the Native Checking Contract, the full Review Execution Contract including
the stop-reason continuation table, the Authority-First Terminal Procedure,
Delivery, and Cost and Context Balance.

Pi bindings deviate only where the runtime genuinely differs and are marked
pi-binding: ask_user_question as the classified native question UI,
--agent pi on negotiated STATUS routes, and the host relay paragraph — Pi is
a registered host-mediated runtime identity (gentle-ai#3249), the gentle-pi
launcher declares GENTLE_PI_REVIEW_RELAY_CONTRACT=gentle-pi.review-relay/v1
on every relayed invocation (admission fails closed without it), collect
inputs render without --agent, and the host satisfies each capture operation
with a fresh locked-down print-mode pi subprocess returning untouched raw
bytes via --result-artifact-file.

Pi overlays survive apart from the canon block: the identity/harness header,
{{GENTLE_PI_*}} injection points, the Work Routing Ladder, subagent runtime
trigger bindings, the compact gentle_review controller lane, and the lens
selection tables. The pre-canon delegation table ranges in the lazy-diet
disposition map move to obsolete.
@Alan-TheGentleman Alan-TheGentleman added the type:feature New feature label Aug 14, 2026
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Alan-TheGentleman, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 48 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 24c5f392-ed3e-4dad-a28d-f403a85a6851

📥 Commits

Reviewing files that changed from the base of the PR and between 6546a5c and 2f8552c.

📒 Files selected for processing (3)
  • assets/orchestrator-delegation.md
  • assets/orchestrator.md
  • tests/orchestrator-budget.test.ts

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.

@Alan-TheGentleman
Alan-TheGentleman merged commit 1d254e1 into main Aug 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(orchestrator): replace the Pi prompt surface with the gentle-ai sdd-orchestrator canon

1 participant