Repository navigation
plan(permissions): one named permission-mode vocabulary and two admission gates - #1730
Conversation
|
Converting to draft. The advisory design reviews found a load-bearing error and the plan now carries one unresolved human decision, which under the plan contract means What changedThe allow-all mechanism is reopened. An earlier revision of this plan resolved it as "per-call extra rules driven by the session tier". That is wrong as written, and I confirmed each half against the tree:
So moving it per-call, with no second change, silently drops allow-all for every subagent, parallel branch, and team member. The fork matters more than the bug, because it decides how much of ADR 0351 is justified. Keep the grant build-time from the ceiling and nothing regresses, but That is a call for a human, so it is recorded as the one unchecked decision with all three candidates and their costs. Scenario 3's AC was rewritten to pin the binding invariant (the grant must keep reaching children) rather than a mechanism, so it stays valid whichever way the decision goes. Initial-tier derivation lost its provenance inference. AC2.3 keyed on whether the ceiling was "explicitly set". Already folded, earlier
Still openThe security review is still running, and the architecture review has more findings to send. I will fold both before marking this ready. Gates are green: bundled checker passes (correctly reporting one open decision keeping it in draft), |
0350 was taken by "purpose-attributed auxiliary token usage" (#1793), merged to main after this ADR was drafted. Renumbering to the next free slot; also drops the now-stale "draft ADR 0351" label for PR #1730 (0351 itself collided with an unrelated, already-merged Studio ADR, so PR #1730 will need its own renumber before it merges). Co-Authored-By: Claude Sonnet 5 <[email protected]>
JAORMX
left a comment
There was a problem hiding this comment.
UX review of the proposed contract, not an implementation review.
The combined presets, startup diagnostics, and posture-aware header should make autonomous startup much easier to understand. trusted-accept-edits names a useful workflow directly, and the refusal messages give operators a way to fix incomplete configuration rather than discover it through failed tool calls.
The main remaining concern is that --permission-mode sounds like one session setting, but sets two things with different lifetimes. The plan acknowledges this; I would make the resulting user journey explicit in the acceptance coverage:
- Cycling back to
defaultdoes not turn autonomy off. An operator who starts withautoand later cycles the session mode todefaultstill has the server's allow-all posture. The header and help should make that unambiguous, including after cycling throughplan. A behavioral/UI test for this sequence would be more useful than checking the header only at startup. - “Needs a restart” needs to identify whose restart. With an embedded server, the operator relaunches mecatui. With a remote connection, restarting the client does not change the server's posture; the server operator must change its configuration and restart it. The help should distinguish those paths rather than offer a local invocation that appears to change the remote server.
- A configured checker must not imply protection under
yolo. The planned advisory-only warning is important. Keep the distinction between an enforcing checker, an advisory checker, and an explicitly disabled checker easy to scan in startup output. Requiring a checker while removing its veto and fail-closed behavior otherwise risks giving false reassurance. - The default-on subagent reviewer is an authority and cost change. Startup output should plainly say that a model may approve headless subagent requests and that adjudication consumes tokens, with a discoverable opt-out. Keep this reviewer distinct from the guardrails checker in the wording; they serve different purposes.
The runtime limitation is honestly documented, but it remains a limitation: this improves discovery and launch-time configuration, not selection of autonomy from inside the TUI. I would describe the delivered outcome that way, rather than imply that all seven choices become interactive modes.
One documentation correction in this PR: the PR body's summary says trust-naming tokens refuse on headless roots because trust “can never be granted there.” The acceptance plan is more precise: they refuse only when no legitimate trust source is present. Please align the summary with that contract.
Overall, this is a useful improvement for “make autonomous startup understandable.” It does not yet satisfy “let me choose autonomy inside the TUI,” and preserving that distinction is the key UX requirement.
77c2752 to
b96791a
Compare
Systematic pass per the directing human's request: extracted every internal cross-reference (all 29 AC mentions, all Human-decision pointers, every numeric enumeration) and verified each against its actual target, plus re-verified external PR/issue status. Found and fixed: - "either of the two extra grant channels" (opening summary) - undercounted; now names all four (RootAuthority, MCPBroker, GrantToolAuthority, CompleteWorkspaceEnrollment). - "beyond the four originally named" (Scenario 3 intro + Interface contract, same bug in two places) - the real original count was six (SetMode, LoadSessionWithMCP, StartRunContent, RetryFailedRun, CompactSession, resumeFromAwaiting), not four. Both now say six and name them. - Scenario 1's "three channels this exploration found" - stale from the very first draft, before rounds 2/3 found more channels; now scoped correctly to what Scenario 1 itself proves, pointing to Scenario 3 for the rest. - "Deferred decisions" bullet 1 was missing the Ceiling/ GrantToolAuthority/CompleteWorkspaceEnrollment mechanism entirely - the biggest thing ADR 0353's text doesn't name yet, discovered in the latest review round, never folded back into this earlier bullet. - External state drift: PR #1741 (workspace-enrollment-authority) MERGED 2026-09-24 - was still described as "proposed, not yet approved" in two places (Scenario 3 + Interface contract, same stale phrase in both). Re-verified CompleteWorkspaceEnrollment's actual code is still unimplemented (naive full-replace) despite the approved contract, so this plan's technical claims still hold. - PR #1730 already renumbered itself again (0351->0365) - fixed two "still-unnumbered"/"pending renumbering" mentions. All AC cross-references (29 ACs), all Human-decision pointers, and all remaining enumerated counts verified correct on this pass. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Collapse the operator posture ladder and the per-session permission mode into one ordered vocabulary, plan < default < accept-edits < trusted < auto < yolo, bound at two scopes: an operator ceiling set at boot and a session tier clamped to it. Add two boot refusals so a deployment whose ceiling promises supervision or project trust it does not actually have fails to start with an error naming the fix. ADR 0351 supersedes the "no new PermissionMode" clause of ADR 0022 only. Its decisions 2, 3 and 4 (subordinate to the governance invariants, no hardcoded circuit breaker, loud root/sandbox-gated opt-in) carry over verbatim as binding constraints: no tier bypasses governance.Evaluate, so deny-dominance and the configured-Ask floor hold at every tier including yolo. Plan / Interface stage only. No implementation. Relates to #1455 (comment) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Two confirmed findings from the advisory design pass. The guardrails admission gate refused the defaults the plan claimed to reproduce. mecak8s ships flag default auto, and .github/actions/mecatequi defaults posture "auto" with an empty guardrails-model, which this repo's own mecatequi workflow uses. AC4.1 as written made all of them fail to boot, directly contradicting AC6.3. Resolved with no provenance exemption: the gate keys on the effective ceiling, and the shipped allow-all defaults now declare their checker choice explicitly. An exemption would have preserved exactly the silently unsupervised deployment this plan exists to abolish. Additive enum numbering is not sufficient for SDK compatibility. The HTTP transport bridges PermissionMode through two hand-written closed maps in sdk/typescript/src/http.ts that coerce an unknown value to "default" outbound and to 0/UNSPECIFIED inbound, so at an auto ceiling an HTTP client would read every fully allow-all session as having no mode at all. Both bridges are now in the interface contract, pinned by a round-trip AC across every tier. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ference Architecture review caught a load-bearing error. An earlier draft resolved the allow-all grant as per-call extra rules driven by the session tier. That is provably wrong: childRules injects the grant at build time from cfg.AllowAllTools, all three child constructors build at session.ModeDefault, and internal/app/allowall_test.go pins the grant reaching both rule sets as an explicit kill-switch. Moving it per-call without a second change silently drops allow-all for every subagent, parallel branch, and team member. The fork also decides whether this ADR is justified at all. Build-time from the ceiling regresses nothing but leaves trusted and yolo with no effect at permpolicy.Evaluate, so three of six tiers carry no domain meaning. Per-call with children inheriting the parent tier makes the tiers meaningful but changes child semantics and makes allow-all session-selectable, the shape ADR 0022 decision 1 refused. This is a human decision, so the plan returns to draft with the three candidate resolutions and their costs recorded, and the scenario 3 AC is rewritten to pin the binding invariant rather than a mechanism. Separately, AC2.3 keyed the initial tier on whether the ceiling was explicitly set. mecak8s reaches its auto ceiling through a flag default whose postureFlagSet bit is pinned false, so that rule contradicted the ADR's own claim that mecak8s gets initial auto. Replaced with a per-root declared initial tier and no provenance inference. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Security review found the clamp was specified at 3 of ~10 mode-ingress points. A mode enters at the gRPC mapper, two HTTP decoders, the ACP set_mode bridge, agent-def frontmatter, persisted schedule specs, snapshot restore, fork/clear successors, delegation children, and the SDK and TUI. session.Session.SetMode validates the state transition but assigns the value unchecked, so the domain is not a backstop. The sharpest case is agent-definition frontmatter, which is ingested repository content. resolvePermissionMode is safe today only because it is an explicit allowlist of default/plan/acceptEdits that warns and falls back otherwise. This plan's own "one shared ParsePermissionMode grammar" instruction, applied naively, would convert that closed set into the full widened grammar and let a project-tier def name yolo. The allowlist is now a stated invariant: a composition-bearing tier is structurally unnameable from ingested content at any trust level, because trust admits a repository's instructions, not its authority over the ladder governing them. Adds scenario 8: one Service.clampMode chokepoint every entry point calls, a structural guard that fails when a new ingress skips it, and the deliberate asymmetry that live client ingress refuses while persisted ingress clamps down with a WARN, since a stored session cannot retry and refusing would brick it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ision The allow-all fork was not a decision. It was a factual error about the wiring. acceptEditsRules is a per-call extra keyed on the session mode inside permpolicy.Evaluate; yoloAllowAllRule is a static rule baked in at construction through mainRules/childRules and keyed on cfg.AllowAllTools. They do not share a channel. ADR 0022 describes both as rules in the governance fold, which is accurate, and an earlier revision wrongly inferred they share the extra channel. Verified the main policy is a process singleton: mainRules has one construction site (build.go:3968), buildEngine runs once (build.go:2007), and sessionEngineFactory takes that policy as a parameter rather than rebuilding it. So the session tier drives exactly what it drives today, and TestAllowAllToolsBindsMainAndChildren stays green untouched. The correction exposes the sharper question, now the one open decision: with allow-all construction-derived, trusted/auto/yolo have no per-session behaviour at all, since permpolicy.Evaluate distinguishes only ModePlan, ModeAccept and everything else. Whether tokens with no per-session behaviour belong in a domain type and on the wire is a human call, with a dispatch-on-token shape as the leading candidate that would drop the proto change, the domain widening, the SDK bridge work and most of scenario 8. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…r raise it Security review's read on ingested content, adopted. Two independent bounds rather than one validation check. The ingestion path parses into its own closed type, agents.DefPermissionMode, holding only attenuating values, so a composition-bearing tier is unrepresentable there rather than merely rejected; resolveDefMode additionally takes a min against the caller. Unrepresentable beats validated because the failure mode in play is exactly someone applying a reasonable-sounding unification instruction to a closed set, which is how this hole nearly entered the plan in the first place. The structural argument comes before the risk-appetite one. Because the increments defining trusted/auto/yolo are ceiling-derived build-time knobs, a def naming one is either a silent grant (the ceiling already gave the build-time half) or a self-contradiction (it names a tier whose defining increment is withheld, the state the headless gate refuses to boot into). No third reading. Records the principled line against the honest counterargument that project ALLOWs are already a trust-gated authority grant: every other trust-gated grant here is lattice-bounded, tool-and-pattern scoped, deny-dominated, and unable to suppress a configured Ask, whereas a tier is blanket and unscoped. A mode is not a rule. Corrected the reviewer's scope ordering: project scope sits above ScopeUser, not below, per engine/governance/permission.go. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ition on (a) Replaces the principled line against admitting a tier name from ingested content with a form that does not depend on where project scope sits in the lattice, so a future lattice change cannot break it. Verified the mechanism at engine/governance/evaluator.go: the sole loosening is ask.Scope == ScopeBuiltinDefault && allow.Scope.HasHigherPrecedenceThan(ask.Scope), so a project ALLOW outranks a ScopeUser Ask and still cannot suppress it. Every authority grant accepted from ingested content is lattice-resident: a Rule, with a Scope, deny-dominated, able to loosen only the built-in floor. A mode is none of those and flips the floor wholesale. Refines option (a) of the open decision with a condition that would otherwise silently defeat it: the unrepresentability bound is free only if the composition-bearing tiers live in internal/app as app.Posture values and are NOT added to engine/session. If those constants exist on the domain type, resolvePermissionMode returns that type and can reach them, so the property is lost even with no wire change. Under (a) the proposed engine/session additions are withdrawn entirely. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…rom vocabulary AC7.1 asserted the shift+tab cycle would offer every tier at or below the ceiling. The default ceiling is accept-edits, so an unconfigured deployment cycles plan/default/accept-edits, which is exactly what it cycles today. An operator would see auto only if they had already configured it, meaning they already knew it existed. The fix fired only for operators who did not need it. The scenario written to answer the originating complaint did not answer it. There is also no mode picker to grey entries out in: ModeSwitch is a blind keybinding cycle, and the only mode surfaces are the cycle, the header, and the help overlay. Scenario 7 is rewritten against the two surfaces that can show an operator a value they did NOT set. The cycle is now explicitly unchanged, with no discoverability claim attached to it. The larger point, now recorded in the plan's opening: discoverability and the vocabulary collapse are independent problems, and bundling them is what produced an AC that did not work. Scenarios 4, 5 and 7 are all vocabulary-independent, so a reviewer who wants the reported problem fixed without the vocabulary change can take those three and decline the rest. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The ladder was wrong. Permission relaxation and project trust are independent axes, and any total order over them collapses the 2x2 and makes --posture trusted --mode accept-edits unexpressible. Replaced with a named token per supported combination, each mapping to an exact pair of values in the two mechanisms that already exist: plan/default/accept-edits strict posture + that session mode trusted trusted posture + default session mode trusted-accept-edits trusted posture + accept-edits session mode auto, yolo that posture + default session mode Nothing is lost, trusted keeps its exact current meaning so no deployment changes behaviour, and trusted-accept-edits becomes nameable for the first time. Verified both targets are used as designed rather than bent: DefaultMode is documented as applied when CreateSession leaves mode unspecified, and setting cfg.Posture from a flag is what --posture does. The flag is a parse plus a table lookup writing two existing fields. Nothing becomes session-selectable, so the proto contract, engine/session, the SDK, and snapshots are all untouched, ADR 0022 decision 1 is preserved rather than superseded, and agent-def frontmatter gets its unrepresentability property for free. ADR 0351 now amends 0022 by renaming its operator surface instead of superseding a clause. Also lands: the checker requirement states it is observability-only at the gate-free tier; the headless subagent ask reviewer becomes default-on for allow-all, opt-out and narrated, because the silent-denial friction is what pushes operators toward the tier that silently demotes their checker. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ity gap Adds three reference tables to the plan: what each value does, what each value sets in the two underlying mechanisms and the lifetime of each half, and which values are reachable at runtime versus needing a restart. The third is the one that matters most at review. Only the three session values are cyclable in the TUI, exactly as today; the four carrying a posture half need a restart. That is a known gap against the originating requirement that the setting be editable in the TUI, so it is now a resolved human decision rather than an out-of-scope row. Closing it properly needs per-session policy construction and per-session ingestion, which is larger than this whole plan. Restarting the embedded server on change was considered and rejected: it works only when mecatui hosts its own server, not when connected to a remote one, and it presents a process restart as a mode toggle. The mitigation is honesty, with the help overlay carrying all seven values and the header showing the active posture. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Pin the header's posture display across a session-mode cycle, since cycling back to default under allow-all must never read as turning autonomy off. Make restart guidance name whose restart it is: the operator's mecatui relaunch with the embedded server, or the server operator's mecated restart under mecatui connect. Report the checker as one of enforcing, advisory, or disabled so an advisory checker at the gate-free tier never reads as protection. Narrate the default-on subagent reviewer in plain words (a model may approve requests, it spends tokens, opt out with --subagent-ask-reviewer off) and separately from the checker. State the delivered outcome as launch-time configuration and discovery, not runtime selection of autonomy from the TUI. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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]>
The gRPC CreateSession handler collapsed an unspecified mode to default before server.Config.DefaultMode could apply, so the session half of a token would never have reached a gRPC client. Record the correction: no message, field, enum value, or rpc changes, only the CreateSession mode comment and its semantics, with no change for existing clients. Name the new deployment surface the checker declaration needs: the Helm chart's guardrails.model value and the mecatequi action's permission-mode input. Also state that a bare mecak8s now refuses without a checker decision, and that mecatui connect refuses a token that sets a posture. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Main landed ADR 0365 (microVM Darwin xattr ownership) and 0366-0374 while this plan was open, so the permission-mode vocabulary ADR moves to the next free number and its references follow. Co-authored-by: Mecatl <[email protected]>
a6af217 to
704fa7d
Compare
Stage: Plan / Interface. Contract only, no implementation. Merging this PR is the approval event.
Relates to the review comment on #1455: #1455 (comment)
The problem
Getting mecatl to run autonomously means combining two independently-documented knobs:
--posturefor the rule layer, and a guardrails checker model in the user-global settings file. The review reported the consequence. You go looking for an autonomous mode, the TUI offers only the session permission modes,postureisn't discoverable until--help, and the combination that delivers the intended behaviour is the one you're least likely to stumble into.--posture yoloreads as the obvious pick while silently demoting the checker to advisory, and--posture autostarts a fully allow-all deployment with nothing supervising tool content.Investigating the same complaint from the subagent side found a sharper instance. Under allow-all a subagent keeps the command-substitution guard the main agent loses (
mainEvaluatorOptionspassesWithLooseSubstitutionwhenever allow-all is on;childEvaluatorOptionsonly does at the gate-free tier). So a subagent shell command containing$(...)that the classifier can't prove read-only is held for approval, and headless with no ask-reviewer it's denied outright, while the main agent's identical command runs. The documented way out is--subagent-ask-reviewer, itself undiscoverable. The way an operator actually finds isyolo, which turns their checker into a log line. The friction and the trap compose.What this proposes
One named
--permission-modetoken per supported combination, each mapping to an exact pair in the two mechanisms that already exist:What each value does. Deny rules and any deliberately configured ask still win at every value, including
yolo.plandefaultaccept-editstrustedtrusted-accept-editsautoyoloWhat each value sets, and the lifetime of each half. The posture half is fixed at process start; the session half is only a starting point a session may later change.
cfg.Posture(process-wide)server.Config.DefaultMode(session start)plandefaultaccept-editstrustedtrusted-accept-editsautoyoloWhat is reachable at runtime. Only the three session values are cyclable, exactly as today.
plandefaultaccept-editstrustedtrusted-accept-editsautoyoloDefaults:
defaulton every root exceptmecak8s, which keepsauto. The same values are accepted by the operator-tierpermissionMode:key. Deliberately absent: an accept-edits variant ofautooryolo, because allow-all already permits edits.Plus two boot refusals and one changed default:
--trust-project, atrustedWorkspacesentry, or remembered trust all satisfy it--subagent-ask-reviewer offWhat this delivers, and what it doesn't
This makes autonomous startup understandable: one launch-time vocabulary, refusals for under-configured deployments, and a header and help overlay that show what's running. It does not make autonomy selectable from inside the TUI. Only the three session values stay interactive; the four carrying a posture half need a restart of whichever process hosts the server. That's the operator relaunching mecatui with the embedded server, or the server operator restarting
mecatedundermecatui connect.Why an enumeration and not a ladder
An earlier revision of this plan modelled the tokens as one ordered ladder,
plan < default < accept-edits < trusted < auto < yolo. That's wrong, and reviewers caught it twice in different forms. Permission relaxation and project trust are independent axes, so any total order collapses the 2x2 and makes--posture trusted --mode accept-editsunexpressible: project rules honoured, edits auto-accepted, everything else still prompting.Named tokens lose nothing.
trustedkeeps its exact current meaning, so no existing deployment changes behaviour, andtrusted-accept-editsbecomes nameable for the first time. Adding a combination later is a row, not a re-ranking.Why nothing becomes session-selectable
The composition-bearing tiers have no channel read after a session exists. Project ingestion decides what the prompt and catalog contain; allow-all and the substitution loosenings are baked into the evaluator at construction, and the main policy is a process singleton (
mainRuleshas one construction site,buildEngineruns once,sessionEngineFactorytakes that policy as a parameter). Making them session-selectable would need per-session policy construction, which is out of scope.Keeping them operator-only means ADR 0022 decision 1 is preserved rather than superseded, and there is no proto change, no
engine/sessionchange, no SDK change, and no snapshot migration. It also means agent-definition frontmatter cannot name a composition-bearing tier, because the type it parses into has no such value.Nothing is bent to a new purpose
Checked specifically, because a shorthand that forces existing interfaces into a new role would not be worth having.
server.Config.DefaultModeis documented in-tree as "applied when aCreateSessionrequest leaves mode unspecified", which is exactly the session half of a token. Settingcfg.Posturefrom a flag is what--posturealready does. The flag is a parse plus a table lookup writing two existing fields.The scope split is real and is surfaced rather than smoothed over: the posture half is process-wide and fixed at boot, the mode half is only a default a session may later change.
--help, the config reference, the help overlay and the startup line all say which half a token sets.Worth reviewers' attention
The reviewer default is the one authority expansion here. It grants an autonomous approval capability without the operator asking for it. It's bounded to headless allow-all, opt-out by flag, narrated at startup, subject to the existing per-run denial breaker, and where no model resolves it degrades to exactly today's behaviour with a WARN. The alternative it replaces is a silent denial. Still, it deserves specific scrutiny.
The checker requirement is honest but not preventive at the gate-free tier.
demoteForPosturedemotes a configured checker to advisory there, which costs three properties, not one: the pre-tool veto, the approve-once human ask, and fail-closed on checker failure. So a checker outage is indistinguishable from a clean result. The requirement is kept for operator-visible findings, and both the refusal and the startup line say so plainly. Removing the demotion would supersede ADR 0062 sub-decision B and make the gate-free tier no longer gate-free; that's deliberately out of scope.Runtime TUI editing is a known gap, not an oversight. The originating requirement asked that the setting be editable in the TUI. Four of the seven values are not, because project ingestion happens once before any session exists and the permission evaluator is built once per process and shared, so a runtime control for those four would be wired to nothing. Closing it needs per-session policy construction and per-session ingestion, larger than this whole plan. Restarting the embedded server on change was rejected: it only works when mecatui hosts its own server, and it presents a process restart as a mode toggle. Recorded as a resolved decision with the mitigation being honesty, not a workaround.
Two shipped defaults change.
mecak8sand themecatequiaction both run allow-all with no checker today, so they must declare their checker choice explicitly or they would stop booting.Compatibility
Nothing versionable is touched. Every current default is reproduced and every combination expressible today stays expressible.
--posture,--yoloand mecatui--modekeep working as deprecated aliases for one release;--trust-projectis not deprecated, since it stays a first-class trust source and is what the headless refusal points at.Review provenance
Three advisory reviews ran against earlier revisions and changed the contract substantially. Between them they caught: the boot gate refusing the shipped defaults it claimed to reproduce; additive enum numbering being insufficient for the SDK's HTTP transport; a factual error about how allow-all is wired; a discoverability criterion that was circular (it only fired for operators who already knew); and the ladder collapse above. Several of those invalidated decisions already written into the plan.
A UX review then added four behaviours to the contract: the header keeps showing the posture across a session-mode cycle, restart guidance names whose restart it is, the checker is reported as
enforcing,advisory, ordisabled, and the reviewer default is narrated in plain words (a model may approve, it spends tokens, how to opt out) and separately from the checker.The decision record is ADR 0365. Its working number, 0351, was taken on main by the Studio ADR, and 0364 is claimed by #1579.
Amended after implementation
Implementing the contract surfaced drift, now recorded in the plan and ADR:
defaultbeforeserver.Config.DefaultModecould apply, so the session half of a token would never have reached a gRPC client. No message, field, enum value, or rpc changes; only theCreateSessionRequest.modecomment and its semantics. With no permission mode configured the default isdefault, so existing clients see no change.SetModeis unchanged.guardrails.model(a checker model when set, an explicit--guardrails=offwhen empty), and the mecatequi action gains apermission-modeinput withposturekept as a deprecated alias.mecak8swith no checker decision refuses to start, andmecatui connectrefuses a token that sets a posture, since that posture belongs to the remote server.Gates
task docs: 438 documents, 3987 references, 0 broken links, 0 anchors, 0 orphans, 0 unreachable🤖 Generated with Claude Code