Repository navigation
feat(sdd): adopt native attempt authority - #303
Alan-TheGentleman merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds provider-managed attempt acquisition and settlement rules for runtime-bearing SDD operations. It updates workflow and status contracts and adds tests for routing, evidence, request IDs, reset restrictions, reruns, compatibility, and schema preservation. ChangesNative runtime attempt authority
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant SDDOrchestrator
participant ProviderCLI
participant RuntimeLaunch
SDDOrchestrator->>ProviderCLI: acquire attempt authorization
ProviderCLI-->>SDDOrchestrator: return proceed, blocked, or complete
SDDOrchestrator->>RuntimeLaunch: launch runtime when route is proceed
RuntimeLaunch-->>SDDOrchestrator: return run evidence
SDDOrchestrator->>ProviderCLI: settle attempt with evidence and disposition
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/native-sdd-attempt-authority.test.ts`:
- Around line 60-67: Strengthen the acquire and settle contract assertions in
tests/native-sdd-attempt-authority.test.ts at lines 60-67 and 92-108. For
acquire, assert --cwd, --change, --request-id, --work-unit, --evidence-goal,
--max-attempts, and --max-changed-lines; for settle, assert --cwd, --change,
--token, and --request-id. Also constrain settle to the exact allowed outcome
values and require an evidence revision other than none, using the existing
workflow section assertions.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: e91e65a3-73b3-4831-9e72-99b46dfc90dd
📒 Files selected for processing (3)
assets/sdd-orchestrator-workflow.mdassets/support/sdd-status-contract.mdtests/native-sdd-attempt-authority.test.ts
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/native-sdd-attempt-authority.test.ts`:
- Around line 50-62: Update extractCommandLine to collect every command line
matching commandPrefix and assert that exactly one match exists before returning
it, so duplicate acquire or settle commands are rejected rather than silently
validating only the first. Preserve the existing command-prefix matching and
failure message context.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 29569489-fd79-44b4-a345-f4ca426ac904
📒 Files selected for processing (1)
tests/native-sdd-attempt-authority.test.ts
66e90ea
into
Gentleman-Programming:main
Summary
sdd-attemptledger the sole attempt and changed-line budget authority for OpenSpec and Engram flows.acquirebefore runtime-bearingsdd-apply,sdd-verify, or remediation work, andsettleafter the external run.Advances #256 (track 3 of 10). Does not close #256.
Review path
assets/sdd-orchestrator-workflow.mdfor the exact acquire/settle routing and gatekeeper reconciliation.assets/support/sdd-status-contract.mdfor artifact-store-agnostic authority and schema separation.tests/native-sdd-attempt-authority.test.tsfor the negative controls.Verification
git diff --check: passedScope
This PR covers only issue #256 track 3. Stable provider repinning and the other parity tracks remain out of scope.
Summary by CodeRabbit
New Features
Documentation
Tests