Repository navigation
feat(acp): discover sessions and broker remote interactions - #10
KooshaPari wants to merge 27 commits into
Conversation
Preserve buffered handshake events and keep a single continuous reader per attached daemon session. Add cursor pagination and isolated installed capability evidence. Cargo validation pending remote host availability. tx-agent: codex tx-validated: manual
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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 |
Add explicit pre-tool Ask outcome, one-shot owner-only IPC, ACP request correlation and form validation. Existing live session attachment remains passive unless explicitly claimed. Added negative controls; Cargo and daemon runtime validation pending remote compute. tx-agent: codex tx-validated: manual
Run focused production build and ACP/broker/hook tests on standard public-repository Ubuntu and macOS runners. Keep release and full-feature qualification separate. tx-agent: codex tx-validated: manual
…ptly Propagate rejected broker claims before attachment registration, report ownership in lifecycle results, and reject Ask without a controller. Add negative controls and fix focused workflow YAML command quoting. tx-agent: codex tx-validated: manual
Fix E0596 found by actual Ubuntu and macOS production compilation in hosted run 36388245312. tx-agent: codex tx-validated: manual
tx-agent: codex tx-validated: cargo-check tx-scope: acp
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
…elivery tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual tx-task: #11
tx-agent: codex tx-validated: manual
Recovered completed qualification receiptRun 36629745679 already passed on both platforms. No rerun was needed.
The earlier Ubuntu job Stack dependency: this PR targets |
tx-agent: codex tx-validated: manual
tx-agent: codex tx-validated: manual
tx-agent: codex tx-validated: manual
tx-agent: codex tx-validated: manual
Current candidate and pending qualificationPR8 head: The first hosted attempt exposed two stale Previous candidate Final free hosted gates are queued:
Separate existing CI defects: |
tx-agent: codex tx-validated: manual
Independent follow-up correctionsPR8
Current free hosted runs: review correction https://github.com/KooshaPari/KCode/actions/runs/36923378828 ; ACP https://github.com/KooshaPari/KCode/actions/runs/36923398925 ; full CI https://github.com/KooshaPari/KCode/actions/runs/36923378980 . These are pending/queued, not green. The superseded four focused jobs were still unassigned before this grouped update. Workflow-loading failures are absent on the new heads. No local builds/tests, paid runner requests, dirty-normal-checkout edits, PR merge, target change or history rewrite. |
tx-agent: codex tx-validated: manual
Final macOS qualification receiptPR8 head PR10 head Artifact Ubuntu review job110582763479 and ACP job110583063592 remain queued with no assigned runner. No Ubuntu pass claim. Both workflows cap jobs at60minutes. GitHub timing API reports0 billable milliseconds for these runs; that field is not an invoice statement. Broad duplicate CI was cancelled; no larger runners or local builds were used. PR targets/history and dirty normal checkout are preserved. No PR was merged. |
Ubuntu qualification completedThe previously queued jobs completed successfully on standard runners using Ubuntu 24.04.5, image ubuntu-24.04 (workflow label ubuntu-latest). No duplicate rerun or source change was needed.
The History emitted-Working regression passed on Ubuntu. Runner identities:1001118117 and1001118171; each job retained its60-minute timeout. Checkouts are the same as the verified macOS receipts: PR8 bb64c0f (only dependabot configuration differs from source head), PR10 db819d1 (identical source tree). Ubuntu ACP artifact11198220705, 54764212 bytes, ZIP SHA256 Both requested macOS and Ubuntu focused gates are now green. The timing API reports0 billable milliseconds; this does not assert an invoice amount. No larger runners, local builds, new source changes, PR merges or target changes were performed. |
|
Stale rebase needed — this PR has been CONFLICTING against Please rebase onto the current herdr branch tip and re-run the hosted validation cited in the description. The contract correction in |
…xamined PRs Corrections to pass-2 claims: #107 conflict count (357 files/1149 hunks, not 1658), desk-linux runner exists (desk-kcode-1 online), #124 retains hosted Windows CI (macOS only removed), #124 real stat +514/-352 66 files, B-7b cohort measurements voided and re-run, cold-target ring/aws-lc retracted as environment flake, #132 attribution reconfirmed on true isolation trees. New finding: 5 open PRs were never examined at all (#123 #119 #121 #8 #10). #8 and #10 are non-mergeable; #121 conflicts with #124 so landing order matters. #123/#119/#121 validated locally with no CI on head. Baseline tui failure count is run-dependent (27/28/31 across runs) - flagged as flaky. tx-agent: jcode tx-validated: manual tx-intent: correct the landing brief with third-pass evidence and expanded PR scope
Re-derived the cheap parts of the items pass 5 left out of scope. RETRACTION: "PRs #123/#119/#121 have no CI on their head at all (gh pr checks empty), so they were never validated by anything until now." That is false. All three have CI, and it ran at 03:17-03:22Z — before pass 3 wrote the sentence — and failed Build & Test on macos, ubuntu AND windows for all three. The failures are pre-existing, not PR-caused, established with a control rather than assumed: every push-event CI run on master fails too, including current master b988614 (failed 06:53Z today). A uniform 3-platform failure for #121 (5 files in jcode-setup-hints) cannot be PR-caused. Conclusion unchanged: these PRs do not make CI worse, because CI was already red. Consequence recorded: a red check on this repo currently tells you nothing about a PR. Metadata re-verified identical: #123 +327/-4 5 files, #119 +211/-16 9 files, #121 +16/-13 5 files; all OPEN, non-draft, MERGEABLE, base master. #121's linux_env.rs is confirmed in its file list (content-level collision with #124 not re-read this pass; said so explicitly). #8/#10 divergence re-derived exactly: #8 119 ahead/249 behind, #10 58 ahead/249 behind. New detail: #10 is 27 ahead of and 88 BEHIND #8's current head, because its base branch feature/herdr-plugin-manifest now points at #8's head and #10 was branched from an older state. #10 is blocked twice over and is still a draft. Original wrong sentence struck through in place with a pointer to the correction, so a reader who stops at pass 3 is not misled. tx-agent: jcode tx-validated: manual tx-scope: docs/sessions/2026-10-18-resume-reland tx-intent: Close remaining unverified claims and retract the no-CI claim tx-task: KCode open-PR landing audit
|
Closing under the host-ops closure audit (2026-11-11): conflicts with master and has been unmergeable for 45 days; the change is not landable as-is. The branch |
Contract correction in
5ad1daf749c87f51682834c211fa2b62a3810664: existing-session attachments without an explicit control grant now reject prompt, cancel, and configuration mutations before daemon dispatch, as required by HarnessDesk CLIENT-CONTRACT sections 2.2/3. Newly created sessions retain their interactive default. Earlier artifacts below do not qualify this corrected read-only boundary. Focused hosted run 36618817807 passed on macOS: ACP 32, routing 4, broker 8, hooks 10 (54 total), including the new passive negatives and explicit-acquisition positive fixture. Ubuntu remains queued as of this receipt; its result is not claimed.Corrected macOS artifact: ID
11057792506, nameacp-development-macos-latest-ca9fa111fed0ee4a6e9163cd967e460a20610357, archive SHA-256d7725a04c0bb7ce1c9fcdbb76605981eba78f8d162f1f7c3e4911584381acfa7, size 66,719,528 bytes. Actual checkoutca9fa111fed0ee4a6e9163cd967e460a20610357and source head5ad1daf749c87f51682834c211fa2b62a3810664share tree42106374e1ce3e878c6c79ae4d1a793cca9d9824. HarnessDesk received this artifact and isolated launch/fixture recipe.Merge readiness: still draft. This is author self-review plus hosted tests, not independent review. Current Ubuntu result, the HarnessDesk end-to-end witness, and independent review remain pending. PR #10 targets
feature/herdr-plugin-manifest(42cfcfde4), whose PR #8 tomasterremains open; no target or merge was changed.ACP clients can discover saved sessions, observe attached live events, and resolve session-bound held permissions and forms. Existing-session load/resume stays passive unless the client explicitly claims interaction control; a successful claim returns a confirmed ownership marker.
The bridge preserves buffered handshake events, routes prompt/cancel to the selected session, and keeps passive close from cancelling another client's turn. Terminal request IDs go only to their originating connection; observers receive autonomous-turn ID 0. Controller lease loss emits an explicit session update, clears pending responses, stops interaction forwarding, and rejects further claimed-control mutations until explicit reload/reacquisition. Expired leases cannot silently renew, answer, or cancel.
A configured pre_tool hook can return exit 3 to hold the exact operation. Deny/cancel/timeout prevents execution; form answers must match the declared schema. No global hook policy or installed launcher is changed.
Previous-revision validation: free standard GitHub-hosted run 36588135401 passed on Ubuntu and macOS for
d2f2b1dfaa6d267cef38dc1f15c86c34cdebbd66. Actual PR checkout4f26971d6488a42a838b356c5a38336a3f7e4603has the identical source tree. Both built the minimal production binary and passed ACP 31, concurrent routing 4, and broker 8 tests; hook tests passed 11 on Ubuntu (54 total) and 10 on macOS (53 total). Broker qualification uses an isolated subprocess and production Unix IPC, including held-side-effect allow/deny/cancel/timeout, wrong-session/duplicate/invalid answers, ownership conflicts/expiry, and typed elicitation. Socket tests cover passive close, same-session prompt/cancel, unrelated-session silence, and ownership-loss rejection.Previous qualified artifacts: macOS ID
11043885264, archive SHA-2566917520337bd301bbf7e5a797ea497dd184f491bbebe7b87836a048b6c1e76a6; Ubuntu ID11043071194, archive SHA-256d2111dc1a11f05f080f0b520c210095eb2e11ac81f4c305624c33084907a7734. Artifact names end in the PR checkout SHA above. Earlier semantic qualification and artifact receipts remain committed inhosted-qualification.json; this current-head receipt is recorded here to avoid another documentation-only synchronize cycle.These are development artifacts and focused synthetic qualification, not full-feature/workspace, installed release, real-provider, or live TUI/ACP qualification. User sessions and global harness settings were untouched. This continuation used normal hooks and no local heavy Cargo builds; earlier source-checkpoint limitations are retained in the session evidence.
Receipts:
docs/sessions/acp-native-20260927/hosted-qualification.json,WORKLOG.md, and01_RESEARCH.md. Remaining integration witness: HarnessDesk against an isolated exact-build artifact, then any separately authorized installed/runtime qualification. Tracks #11.