Repository navigation
docs(specs): credential-plane re-examination — Z1–Z3 specs + milestone registry - #8
Merged
Merged
Conversation
added 8 commits
June 26, 2026 15:33
…roxy) Re-examines the harness on its own terms: its egress is fixed-destination, so M13's forward-proxy/CA/placeholder-swap apparatus is unjustified here. The real risk is local execution (fail-open redirect gate + un-overridden Pi local-exec paths). Defends by making local exec boring: fail-closed redirection, secret-free container, default-deny egress NetworkPolicy, distroless image, least-privilege RBAC. Sets up the M8 injector (next spec). Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
The M8 piece the harness lock-down depends on. A small, shared, trusted gateway that holds LLM provider keys so the harness doesn't, and is the only component with public internet egress (making the harness default-deny NetworkPolicy enforceable). v1 = pure injector: multi-provider static table, per-request x-sh-provider header routing, strip-then-set credential handling, mTLS-gated ingress (Istio ambient + SPIRE), streaming SSE passthrough, audit metadata only. No budget enforcement, no body parse, no CA/placeholder-swap. Static Secret at rest now; SPIRE-bound fetch and per-session hard cap recorded as upgrades. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
… (Z1-Z7) Resolves the M-number collisions: M7 meant both cluster-experiments (built) and egress-spine (design); M10 meant both the parent's MCP gateway and the spec that superseded it; M13 was provisional; the June-26 harness specs were unnumbered. Freezes built work as Phase 1 (M1-M7), gives the zero-trust credential plane its own Z-prefix (Z1-Z7) with status, spec links, aliases, and dependencies. No spec files renamed. Supersedes the parent research doc's M7-M12 table. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
The identity plane the credential track stands on. Per-session SPIFFE id with the user in the attested path (namespace is NOT the isolation boundary); a trusted orchestrator as the sole minter of identity (harness has no pods/create); authoritative session->user binding integrity-protected and separate from the harness-writable log (refines parent 4.1); reconstruct identity from the durable binding on scale-to-zero wake, nothing per-session persists while idle. Portable CredentialInjector interface + kagenti binding (SPIRE + Istio ambient/waypoint + AuthBridge). Reframes parent M7: harness gets identity but no egress waypoint. Registry Z1 row updated. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
Tests the harness design against three independent agentic-pipeline archetypes (parallel fan-out, sequential role loop, scheduled ingestion). Finding: all three use a deterministic non-LLM orchestrator dispatching parameterized agent LEAF sessions; NONE uses recursive subagents. So the harness's core role is a leaf-session backend invoked by an external orchestrator -- it must not impose an orchestrator, an artifact store, or subagents. Reprioritizes Phase 2: defers Z6 (subagents) and Z1 (per-user identity) as no-observed-demand; Z3/Z5 keep-light; promotes a leaf-session invocation contract + workspace isolation as the MVP core. Registry links the charter as the roadmap anchor. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
…type A) The first buildable milestone from the charter. Proves an external deterministic orchestrator can dispatch N parallel, parameterized, run-to-completion leaf sessions to the harness; each runs in a sandbox with a read-only workspace and per-call model, emits a schema-validated verdict via submit_verdict, delivered through a shared-volume envelope (result_ref); orchestrator collects, retries, and audits coverage; service scales to zero. New: /run-leaf contract, job-mode completion loop, submit_verdict tool + validation, minimal orchestrator driver, fixture. Reuses M2-M6; defers Z1/Z3/Z5/Z6, human-gates, triggers, real analysis stages. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
…nement Adds a name-free reference cataloguing the three pipeline archetypes (parallel fan-out, iterative role loop, scheduled ingestion) and the UNION of all their requirements, grounding the roadmap in observed demand. Verified subagent posture: none spawn subagents in running code, BUT one archetype deliberately rejected agent-managed subagents for bulk fan-out while another has planned (not-yet-merged) clean-context subagents. Refines the conclusion: the clean-context-subagent need is met for free by a RE-ENTRANT leaf-session contract (a leaf dispatches a child leaf); only Z6 extras (lineage/budget/policy/mail) defer. Charter G4/§2/§4/§6, MVP §2.5, and the registry note updated accordingly. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
TDD, bite-sized, 6 tasks grounded in the actual harness code (runTurn, createAgentSession, registerTool/TypeBox, knative-server, deploy/knative smoke pattern): verdict schema+validation, submit_verdict tool+capture, runLeaf envelope I/O (model boundary injected for unit tests), POST /run-leaf route, fixtures, and a gated kind smoke for parallel fan-out + retry + coverage audit + scale-to-zero. Reuses M2-M6; defers Z1/Z3/Z5/Z6. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
8 tasks
webchang
added a commit
to webchang/moca
that referenced
this pull request
Nov 13, 2026
Conflicts and resolutions: - docs/sbx/user-guide.md §8: main's "Your own templates" (what a template is, quota and policy, create with --dry-run, follow) is kept whole, with this branch's `mocactl sbx hosts` added to its "What you may do"; this branch's sections follow it (use it, change and retire it, waits and their exit, what your sandbox reached, a record of every call, for admins). This branch's own §8 opening, which pointed to the authoring client and the onboarding guide for create and follow, is dropped: main's section now covers them. Follow-up in the merge: docs/specs/README.md links the user guide's §8 by its heading as merged, rossoctl#8-your-own-templates. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Design-only PR from a credential-management/threat-model re-examination of the zero-trust track. Goal: a lighter, more practical credential plane than the fast-designed parent roadmap, grounded in an explicit threat model. Adds three paired specs and reconciles the milestone numbering. No code.
New specs (
docs/specs/)2026-06-26-identity-spine-design.md): per-session SPIFFE bound to the user in the attested path (namespace is not the isolation boundary); a trusted orchestrator as the sole minter of identity (harness has nopods/create); authoritativesession→userbinding integrity-protected and separate from the harness-writable log (refines parent §4.1); reconstruct-on-wake under scale-to-zero. Reframes parent M7.2026-06-26-harness-lockdown-design.md): the harness has no model-controlled egress, so it needs no egress proxy; defend it by making local execution boring — fail-closed sandbox redirection, secret-free container, default-deny egress NetworkPolicy, distroless, scoped RBAC. Triggered by the finding thatK8sSandboxClientredirection is override-based and fail-open.2026-06-26-inference-injector-design.md): a small shared gateway that holds provider keys so the harness doesn't, and is the only component with public egress (making Z2's NetworkPolicy enforceable). v1 = pure injector: multi-provider table,x-sh-providerrouting, strip-then-set, mTLS, streaming, audit-only. Realizes parent M8; separate pod (not sidecar) for NetworkPolicy granularity.Milestone registry (
docs/specs/README.md)New source of truth that supersedes the parent research doc's M7–M12 table and resolves the numbering collisions (M7×2, M10×2, M13-provisional, the previously-unnumbered June-26 specs): Phase 1
M1–M7frozen (built), Phase 2Z1–Z7(credential plane) with status/spec/alias/dependencies. No existing spec files renamed.Notes for review
main.Assisted-By: Claude (Anthropic AI) [email protected]