Skip to content

docs: plan optional native Kubernetes execution provider - #1579

Merged
JAORMX merged 20 commits into
mainfrom
plan/native-kubernetes-execution
Sep 25, 2026
Merged

JAORMX merged 20 commits into
mainfrom
plan/native-kubernetes-execution

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Stage: Plan / Interface amendment (draft, existing stack)

Implementation: #1614, still targeting this branch. The existing plan was enhanced in place; no additional PR or planning layer was created. Human API/schema/security approval and release-maturity decisions remain open. Nothing has been merged or declared shipped.

Contract

Seven scenarios / 32 acceptance criteria describe the proposed private gRPC and schema-v2 lifecycle, exact references and fencing, distinct creator-scoped administration, autonomous provisioning recovery, retained Helm security/history, migration replay, immutable rotation publication, remote source isolation, and operator-global permission preservation.

The Kubernetes draft is ADR 0351; it was renumbered from 0350 only to resolve a mainline collision with the retained purpose-attributed auxiliary-token ADR. It remains Draft. Verification names and source coverage are explicit; name resolution is not a substitute for human acceptance.

Historical native live evidence

Exact-head native production + OpenRouter qualification succeeded at pre-main-integration runtime commit 2020e59934369e8f771059d0c173fa4cbf964c7e:

  • Full deterministic production qualification passed first.
  • OpenRouter / anthropic/claude-haiku-4.5: 30,521 input / 713 output tokens.
  • Model called Write and Shell; exact go test ./... exited 0.
  • Independent typed-gRPC lookup/reattachment verified two generated artifacts and independently ran go test ./... with exit 0.
  • Mock restoration, UID-pinned provider Secret cleanup, private credential-file deletion, and owned-cluster deletion succeeded.

No credential bytes entered agent/tool context. This evidence qualifies that pre-main-integration image/runtime, not the current head.

Current integration status

Current plan head: 4ffb2c288796d515d3fd2a5ffc744382f1d45418. It integrates origin/main through ca993a6ea1b648e8e18a102b6810da5dea8c494f, retains mainline ADR 0350, and records the native draft as ADR 0351. Local plan verification passed the acceptance-checker fixtures, the native-plan checker, the affected model-listing tests, and task docs (including strict links and generated references).

Current-head GitHub checks are terminal: 23 successful and 11 skipped, with the separate Vercel status also successful. GitHub reports this PR mergeable with no conflicts. No new Kind or paid-LLM qualification was run after main integration.

Both PRs remain draft for human contract and implementation review. Successful historical qualification is recorded without claiming merge approval, full hostile-multitenancy isolation, or production shipment.

@JAORMX

JAORMX commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Plan-only handoff: native Kubernetes harness context

Amend the existing native Kubernetes plan in PR #1579 so independent admitted instructions and commands work with remote execution. This assignment changes the plan/owning draft ADR only; runtime integration belongs to #1614.

Dependencies and authority

Use the narrow shared contract in #1878 and implementation in #1875, including the default-child and binding-lifecycle fixes. Original plan #1814 is merged. Check current PR approval, merge, and CI states when starting; this brief deliberately contains no stale commit pins or CI snapshot.

Plan amendment work may proceed for human review. Keep #1579 draft and stop before runtime work. Native runtime integration needs the amended native plan and normal shared merge gates, or a separate explicit directing-human exception. The exception for #1875 does not extend to native integration. This comment grants no runtime, merge, force-push, paid/live-test, or destructive-state authority.

Read AGENTS.md, docs/development-process.md, docs/acceptance/native-kubernetes-execution.md, its owning draft ADR, and docs/acceptance/harness-context.md / ADR 0359 from the merged or explicitly authorized shared checkout. PR links identify the dependency; the revision actually checked belongs in verification evidence.

Contract to express

Independent deployment/operator/API sources can provide context without an execution workspace. Execution files such as repository AGENTS and slash commands are optional sources selected by operator policy, not an automatic consequence of remote execution.

UsesExecutionWorkspace declares an internal registration dependency. Only selected, admitted principal-scoped registrations receive authoritative SessionID/owner/profile and the selector-free AcquireExecutionWorkspace callback (ExecutionWorkspaceAcquirer, shared WithExecutionWorkspace methods). It borrows the exact authorized workspace read-only, releases only that borrow, and supplies neither runner nor execution read evidence. It is not a public selector, RPC field, new SessionLease, or trust grant.

The native first slice selects independent instruction/command sources and leaves PVC-backed context unselected. Do not make PVC source acquisition, five-kind parity, inventories, delegation, or schedules a new prerequisite.

Plan changes

Update the existing AC6.1/AC6.2, interface/traceability sections, and owning draft ADR where necessary:

  1. Replace blanket remote-execution project-context suppression and unconditional command withholding with explicit configured, admitted source selection.
  2. State that PVC context is unselected in this slice. Supporting it later requires separately authorized exact-backend integration and qualification; it is not permanently prohibited.
  3. Preserve exact placement, provider/controller/PVC/runner fencing, governance roots, project admission, Ask/Deny, and the native first-slice exclusions for unsupported delegation, schedules, background Shell, and worktree successors. Context content cannot grant those capabilities.
  4. Require positive independent context through production Build and the public service/discovery path, with no-FS and provider-unavailable controls. Poisoned unselected PVC files must remain inert.
  5. Specify current-policy/current-authorization rebinding across two Builds, unchanged execution read evidence, and explicit required-source failures without host/PVC/global fallback.
  6. Link the canonical shared contract rather than creating native-specific source APIs. Preserve its lifetime requirements: cancellation cannot publish a late binding, shutdown waits for pending creation and attempt cleanup, and release affects only owned resources.

Acceptance assertions to include

Write numbered, observable criteria and named proof targets for:

  • admitted deployment/API markers reaching actual model requests, command listing, and slash expansion;
  • conflicting PVC instructions/commands staying absent, with zero PVC/provider acquisition for independent sources;
  • independent discovery working despite provider failure;
  • no-FS retaining independent context while execution file tools and runner remain absent;
  • required independent-source failures being reported, not converted into empty success or fallback;
  • two-Build policy changes and revoked authorization taking effect;
  • source reads neither altering the execution ledger nor authorizing Edit;
  • existing placement/governance/fencing and native capability exclusions remaining effective.

Keep rules/skills/agent definitions limited to already approved support if mentioned. The shared contract remains 25 ACs across six scenarios; do not revive expanded proposals for inventory RPCs, recovery recipes, history transfer, SessionAccess, or persistent context identities. Material changes outside this native alignment require human contract review.

Verification and completion

Run the repository's acceptance-plan checker and fixture suite, then task docs. If the domain-model source changes, regenerate/check its projections; never hand-edit generated Markdown. Obtain focused contract/documentation review. Plan-only work does not need runtime test suites and cannot establish runtime or live Kubernetes qualification.

Deliver the amended existing plan/ADR with coherent ACs, source boundaries, proof targets, dependency approval state, and PASS/FAIL/NOT-RUN results tied to the revision checked. Record remaining decisions explicitly and stop for human review. Do not implement #1614 or merge either PR as part of this assignment.

@JAORMX
JAORMX force-pushed the plan/native-kubernetes-execution branch from 51dad6d to ec56214 Compare September 25, 2026 11:06
aponcedeleonch added a commit that referenced this pull request Sep 25, 2026
0351 was taken on main by the Studio ADR, and 0364 is claimed by the
open #1579, so this decision record moves to the next free number.
The planned proof names follow it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@JAORMX
JAORMX marked this pull request as ready for review September 25, 2026 11:52
JAORMX and others added 17 commits September 25, 2026 18:01
Record the separate optional provider boundary, acceptance scenarios, and unresolved technical contracts. Keep implementation as a draft stack above the plan branch.

Co-Authored-By: Mecatl <[email protected]>
Main now owns ADR 0349 for SDK decoding. Renumber the native Kubernetes draft and its references to 0350 without changing the authored contract.

Co-Authored-By: OpenAI <[email protected]>
Amend the unmerged native plan and ADR to consume shared source authority while leaving PVC context unselected. Renumber the draft after upstream ADR collisions.

Co-Authored-By: OpenAI <[email protected]>
Bound model and slash invocation to healthy execution while preserving independent discovery, and record the unresolved production source choice.

Co-Authored-By: OpenAI <[email protected]>
Define the blank-workspace coding journey, same-deployment user isolation, and shared HarnessContext compatibility without requiring new standalone source provisioning.

Co-Authored-By: OpenAI <[email protected]>
@JAORMX
JAORMX force-pushed the plan/native-kubernetes-execution branch from a7c1aad to 14605fa Compare September 25, 2026 20:54
@JAORMX
JAORMX merged commit 17700f1 into main Sep 25, 2026
31 checks passed
@JAORMX
JAORMX deleted the plan/native-kubernetes-execution branch September 25, 2026 21:00
jbeda added a commit that referenced this pull request Sep 25, 2026
…mit-coauthor-guidance

* origin/main: (32 commits)
  docs: plan optional native Kubernetes execution provider (#1579)
  feat(mecatui): restore session status metrics (#1891)
  docs(plan): bound agent inventory viewport (#1946)
  docs: include user-docs in matlatl and use local documentation links (#1934)
  feat(mecatui): bound sessions inventory (#1944)
  feat(studio): show session delegation activity (#1907)
  docs(plan): define Studio session activity (#1885)
  Release TypeScript SDK v0.4.0 (#1940)
  Release v0.0.41 (#1941)
  docs(mecatui): plan bounded sessions inventory (#1906)
  feat(studio): add exact plan control and authorization review prerequisite (#1909)
  test(app): eliminate real ToolHive probe deadline wait (#1937)
  docs(plan): define Studio chat approvals and exact plan control (#1888)
  test(sdk): enforce SDK/TUI high-level parity (#1471) (#1917)
  docs(plan): propose SDK high-level parity coverage (#1471) (#1916)
  docs: improve gRPC schema table readability (#1842)
  test(app): eliminate real waits in durable learning tests (#1933)
  feat(studio): align chat transcript and composer (#1886)
  docs(plan): define Studio chat transcript and composer (#1880)
  feat: correlate provider requests with the root session (#1883)
  ...
This was referenced Sep 29, 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