Skip to content

feat(acp): discover sessions and broker remote interactions - #10

Closed
KooshaPari wants to merge 27 commits into
feature/herdr-plugin-manifestfrom
codex/acp-native-remote
Closed

KooshaPari wants to merge 27 commits into
feature/herdr-plugin-manifestfrom
codex/acp-native-remote

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

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, name acp-development-macos-latest-ca9fa111fed0ee4a6e9163cd967e460a20610357, archive SHA-256 d7725a04c0bb7ce1c9fcdbb76605981eba78f8d162f1f7c3e4911584381acfa7, size 66,719,528 bytes. Actual checkout ca9fa111fed0ee4a6e9163cd967e460a20610357 and source head 5ad1daf749c87f51682834c211fa2b62a3810664 share tree 42106374e1ce3e878c6c79ae4d1a793cca9d9824. 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 to master remains 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 checkout 4f26971d6488a42a838b356c5a38336a3f7e4603 has 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-256 6917520337bd301bbf7e5a797ea497dd184f491bbebe7b87836a048b6c1e76a6; Ubuntu ID 11043071194, archive SHA-256 d2111dc1a11f05f080f0b520c210095eb2e11ac81f4c305624c33084907a7734. Artifact names end in the PR checkout SHA above. Earlier semantic qualification and artifact receipts remain committed in hosted-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, and 01_RESEARCH.md. Remaining integration witness: HarnessDesk against an isolated exact-build artifact, then any separately authorized installed/runtime qualification. Tracks #11.

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
@coderabbitai

coderabbitai Bot commented Sep 27, 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
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

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
@KooshaPari KooshaPari changed the title feat(acp): discover sessions and stream passive attachments feat(acp): discover sessions and broker remote interactions Sep 27, 2026
KooshaPari added 19 commits September 28, 2026 03:01
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
…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
@KooshaPari

Copy link
Copy Markdown
Owner Author

Recovered completed qualification receipt

Run 36629745679 already passed on both platforms. No rerun was needed.

  • Source head: 33645070907c00ad11721196731d646da3666395; only WORKLOG and receipt JSON differ from 6afaaff2aaee77775d7e925f6579a04941d68d92. Executable/workflow source is unchanged.
  • Actual checkout: 12ac20f1d462904affc80703d9b55de50fe354b2; fetched and verified zero tree diff from source head.
  • Ubuntu job 109615655228: ACP34, routing4, broker8, hooks11 = 57 passed; all eight real-daemon lifetime checks passed.
  • macOS job 109615655528: ACP34, routing4, broker8, hooks10 = 56 passed; all eight real-daemon lifetime checks passed.
  • Ubuntu artifact 11063463606, archive SHA256 d6f357809bc15c66c1c2139f0c43272656e44add443534040f410e94712c28ab.
  • macOS artifact 11062294747, archive SHA256 6d5d8655ac47a23001bde1f515d33a05885b13375a8a4ae560b928bca0e319e6.

The earlier Ubuntu job 109610350230 was cancelled because a higher-priority waiting request for concurrency group acp-bridge-10 existed. Its replacement above completed successfully. These are minimal development artifacts; no full-workspace, release, or installed-runtime claim.

Stack dependency: this PR targets feature/herdr-plugin-manifest (open PR #8), which targets master. Neither target nor merge state was changed.

KooshaPari added 4 commits October 1, 2026 22:00
tx-agent: codex
tx-validated: manual
tx-agent: codex
tx-validated: manual
tx-agent: codex
tx-validated: manual
tx-agent: codex
tx-validated: manual
@KooshaPari

Copy link
Copy Markdown
Owner Author

Current candidate and pending qualification

PR8 head: 08d34f68770f7513f1d8135b183f965a9f618fbf.
PR10 forward-merge head: 7c7a6a4affdd7769650d4bacc304bf2f75a83293.

The first hosted attempt exposed two stale _model references in Responses API timeout diagnostics; both were fixed forward. A subsequent source review changed capture setup to preserve existing directory permissions: new directories are private, existing shared directories are rejected without chmod, and a negative control covers this behavior.

Previous candidate 738f94b23 passed 25 HERDR tests, 43 OpenRouter tests, and 8 diagnostic capture tests on macOS. It also produced a successful minimal PR10 binary compile. These are prior-candidate receipts, not final-candidate qualification.

Final free hosted gates are queued:

Separate existing CI defects: windows-smoke.yml and ios-testflight.yml have duplicate top-level env mappings; full CI invokes ssh-agent with an empty DEPLOY_KEY even though the Cargo git dependencies use public HTTPS and no .gitmodules exists. Focused gates avoid that secret dependency. No paid runners, local builds, PR merges, target changes, or dirty-worktree edits were performed.

@KooshaPari

Copy link
Copy Markdown
Owner Author

Independent follow-up corrections

PR8 5c4d560fb6514cc8f73034b1409032521187b054; forward-merged into PR10 65e38665355b5ef7d7a4895c7adef5f5d7de9039.

  • History now emits HERDR Working/Idle after adopting session activity. The active-resume regression asserts the actual requested Working state using thread-local test-only observation; the focused hosted TUI filter includes that test.
  • Documentation now states that the ACP handler is not invoked, without claiming code is unloaded.
  • Consolidated duplicate top-level env mappings in iOS TestFlight and Windows Smoke.
  • Removed unused CI deployment-key/ssh-agent setup after checking no .gitmodules exists and all Cargo git dependencies use public HTTPS.

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.

@KooshaPari

Copy link
Copy Markdown
Owner Author

Final macOS qualification receipt

PR8 head 681e99edcd95fa75b7813b0c800f6e8fde14d277: job110582763638 succeeded. HERDR25 + OpenRouter43 + capture9 + TUI3 = 80 passed, including the emitted-Working History regression and isolated launcher test. Minimal CLI compilation passed. Standard macos-latest, runner1001116360, 21:02:31-21:15:24UTC on2026-10-01: 12m53s. Actual checkout bb64c0fe674335ac4baa1e2a0e5467798e283957; compared with PR8 head, only .github/dependabot.yml differs, so executable/test source is identical.

PR10 head 09680ac232218b222ab6334f6128ffd88a4ccbdc: job110583063544 succeeded. ACP34 + routing4 + broker8 + hooks10 = 56 passed, plus all 8 real-daemon lifetime checks. Standard macos-latest, runner1001116367, 21:02:49-21:13:38UTC: 10m49s. Checkout db819d1ffd0f7ea43d588a18d39ff7aefcdec5ca and source head have identical tree 89cd99651eed507dc639d148b4f705ae23331cc5.

Artifact 11194547124: acp-development-macos-latest-db819d1ffd0f7ea43d588a18d39ff7aefcdec5ca, 63965085 bytes, ZIP SHA256 10ed974db025f387229af0cdc4591163eead63a5c05ffca2fff4c8ccdb6b2222.

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.

@KooshaPari

Copy link
Copy Markdown
Owner Author

Ubuntu qualification completed

The 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.

Gate Source head Result Actual runner duration
PR8 review job110582763479 681e99edcd95fa75b7813b0c800f6e8fde14d277 HERDR25 + OpenRouter43 + capture9 + TUI3 = 80 passed, plus CLI check 7m34s, 2026-10-01 22:14:49-22:22:23 UTC
PR10 ACP job110583063592 09680ac232218b222ab6334f6128ffd88a4ccbdc ACP34 + routing4 + broker8 + hooks11 = 57 passed, plus 8 real-daemon checks 10m34s, 2026-10-01 22:16:43-22:27:17 UTC

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 b0925bef50b6f20810be217cf9360973a9580fe39c10f6cb2f44f7dbadbbfe17.

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.

@KooshaPari

Copy link
Copy Markdown
Owner Author

Stale rebase needed — this PR has been CONFLICTING against feature/herdr-plugin-manifest for 19 days. CI itself is green (ACP source + tests passing on macOS and Ubuntu, 80+ tests including real-daemon lifetime checks).

Please rebase onto the current herdr branch tip and re-run the hosted validation cited in the description. The contract correction in 5ad1daf74… is still relevant per the CLIENT-CONTRACT 2.2/3 specification, but the branch needs to track current herdr state to be reviewable.

KooshaPari added a commit that referenced this pull request Oct 19, 2026
…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
KooshaPari added a commit that referenced this pull request Oct 19, 2026
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
@KooshaPari

Copy link
Copy Markdown
Owner Author

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 codex/acp-native-remote is preserved on the remote, so the work is recoverable with git fetch origin codex/acp-native-remote or by reopening this PR. Nothing was deleted.

@KooshaPari KooshaPari closed this Nov 11, 2026
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