Repository navigation
feat(sdk): add run-ID-addressed controls - #1642
Conversation
36e5900 to
d50c0d4
Compare
d50c0d4 to
7274802
Compare
Panel review — PR #1642 (impl/sdk-run-controls)Fixed point: Spec — does this implement what was asked?Source: issue #1630, ADR 0346, No blocker/important findings. Matches spec closely, including the hard parts (proto field numbers, atomic
Standards — does this follow project conventions?Sources: AGENTS.md,
Test adequacy — do the tests independently prove the contract?AC3.1 atomicity is genuinely proven (32-goroutine race over the real mutex). But:
Domain — what do the specialist reviewers say?Panel: secure-code-reviewer, software-architect, code-duplication-reviewer, library-reuse-reviewer Cross-confirmed (1)
Mechanical fixes (1)
Polish (3)
Gaps
Summary
No ship-blockers. The two most load-bearing findings, both
Fully or partially written by an AI agent. |
7274802 to
0834ecb
Compare
|
Addressed all six important panel findings in the latest stack update:
The feature-related race-shard failure is also fixed by deterministically holding the resumed run at its second model request before asserting the duplicate ask resolution. The unrelated Focused verification on head
Fresh CI is now running on the rewritten stack. Fully or partially written by an AI agent. |
Pull Request is not mergeable
21f949d to
0773020
Compare
Relates to #1630 Co-authored-by: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]> Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
0773020 to
b098d7c
Compare
Summary
Session.controls(runId)andRunControlsfrom the TypeScript SDK, with typed acknowledgements, feature gating, request options, media support, and malformed-response validation.Development stage
Contract linkage
docs/acceptance/sdk-run-controls.md180d18f9df776e20abe4c2540294dbf09fa6a831172b55fb52927f5fed286592d98696c03f19930cInterface conformance
Matches the approved contract. No material deviations.
Issue relationship
Closes #1630
Type of change
Test plan
task linton the implementation candidate; focused Go/SDK lint after repairs)task test) — deferred to PR CI at the directing user's request; focused changed-package and race suites passgo run ./cmd/mecademo) — deferred to PR CI/workflow follow-uptask docs)task site:build)task api:check)task api:updateplusengine/CHANGELOG.md)-raceruns for stale retraction sentinelsChanges
Session.controls(runId),RunControls, typed acknowledgements, feature/request/media handlingUser-facing change
Applications that retain a session ID and run ID can now resolve an ordinary permission ask, cancel, steer with text or media, or retract a pending steer without retaining the original live event stream. Controls remain exact-run and fail stale rather than targeting a successor.
Special notes for reviewers
plan/sdk-run-controls; do not retarget it tomainwhile PR plan: run-ID-addressed SDK controls #1635 is open.