You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "me2seeks (via GitHub)" <gi...@apache.org> on 2026/08/29 15:59:50 UTC
[PR] feat(runtime-host): bind capability providers to Client owners [maka]
me2seeks opened a new pull request, #4187:
URL: https://github.com/apache/maka/pull/4187
## Summary
Add the Runtime Host association contract needed for a remote TUI to use a separate Client Capability provider without exposing that provider to unrelated Clients.
- Let a local owner issue a capability-provider credential against one active, Client-bound remote-owner credential. The caller supplies only the owner credential id; the Host resolves and persists the authenticated `{ principalId, clientInstanceId }`.
- Carry that identity through authentication and Client Capability attachment, then select the initiating Client's direct provider or exactly one matching companion. A remote Client no longer inherits an unrelated provider merely because it is the only candidate.
- Preserve existing Session-frozen bindings, provider reconnect behavior, and provider-independent local/recovery flows. Multiple companions for one owner fail closed.
- Publish compatibility epoch 68 and access-file schema 2. Current Hosts still read schema 1; once the association is written, older Hosts reject the file instead of silently dropping the security boundary.
Refs #3838
## Review focus
This keeps one authority for the association. The access authority derives the Client identity from an existing bound credential; the capability coordinator only consumes that derived fact. There is no caller-supplied identity tuple, name-based matching, association registry, or second lifecycle manager.
Client-bound credential rotation preserves the binding requirement so a rotated owner can remain the trusted source for companion credentials.
This slice intentionally does not launch or supervise a TUI companion process and does not add TUI credential storage or UI. Those lifecycle and end-to-end changes remain in the follow-up PR stacked on this contract.
## Verification
- `npm run build:test`
- `npm run typecheck`
- `npm run lint` — 2,939 files checked
- `npm run format:check` — 1,764 files checked
- `npm --workspace @maka/runtime-host run test:dist` — 1,374 passed, 9 skipped
- `npm --workspace maka-agent run test:dist` — 625 passed
- `npm run check:asf-headers`
- `git diff --check origin/main...HEAD`
## AI use
Select exactly one:
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: Codex traced the existing access, Client identity, Session binding, and provider lifecycle boundaries; implemented the credential association and exact provider selection; added the downgrade fence and regression coverage; and performed architecture and simplification reviews. Both commits carry a `Generated-by: Codex` trailer.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] Yes — described under Summary above
- [ ] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] feat(runtime-host): bind capability providers to Client owners [maka]
Posted by "me2seeks (via GitHub)" <gi...@apache.org>.
me2seeks commented on PR #4187:
URL: https://github.com/apache/maka/pull/4187#issuecomment-5467050104
Thanks — addressed on `84cf0fcbd` after rebasing the stack onto current `main`.
- Companion matching now requires the initiating Client ID to be credential-bound. An unbound same-principal WebSocket credential that claims an active bound Client ID is rejected during the authenticated handshake, and a hello-only identity cannot select the companion.
- Ordinary access files stay on schema 3. Schema 4 is written only after an association commits; failed association and downgrade behavior are covered.
- Removed the unused `ResolvedRuntimeHostAccessIssue.capabilityOwner` field.
The final-stack focused Runtime Host/CLI suites pass 144/144; the full Runtime Host run passed 1,411 with 9 skips and no failures before the final non-overlapping main rebase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] feat(runtime-host): bind capability providers to Client owners [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #4187:
URL: https://github.com/apache/maka/pull/4187
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org