Repository navigation
docs: lean rewrite of contributor docs - #2157
Merged
Merged
Conversation
Move docs/drafts/ and docs/design/surface-migration-plan.md to docs/proposals/. Every proposal now starts with a Status, Owner, and Last updated header; instruction-files.py enforces it and fails on Status: implemented, because the implementing PR should fold the proposal into docs/ or user-docs/ and delete it. Root AGENTS.md and docs/README.md state the rule; inbound links follow the move. Co-Authored-By: Claude Opus 5.5 <[email protected]>
architecture.md goes from 2,200 lines to 250: what Mecatl is, layers and how the dependency direction is enforced, how one prompt flows end to end, a code map, and the platform principles. Subsystem material it used to hold moves to the owning chapters (credential store, caller identity, SDK, Studio, scheduled tasks, reflection, placement, stream retry). docs/design/principles.md is folded in and deleted, along with its ADR citations and acceptance-plan machinery; panel-review now points at the overview's principles section. Corrected against code: engine/learning is a core domain package; governance is stdlib-only and tool imports only session; internal/app is also imported by internal/cliconfig; the code map adds the execution provider binaries; the pairing principle names the seams that check it (history replacement and compaction); command runners use ScrubWithInherited. Co-Authored-By: Claude Opus 5.5 <[email protected]>
domain-model.md (235 → 150 lines) covers the Session aggregate, messages and replay fields, the state machine, tool call/result pairing and the seams that keep it, typed tool results (moved from architecture.md), events, titles and token accounting, and the harness context runtime. ports.md (223 → 130) covers why ports stay narrow, the main ports and their non-obvious contracts, the tool contract, the Environment and Workspace seam, and why tests use reference adapters plus conformance suites. Corrected against code: the authorizing state and the Abandon recovery seam; repairTerminalState (not loadAndReopen) applies recovery; terminal transitions reject authorizing; readers keep unknown usage kinds; ReasoningItemID is a fourth replay field; AuthorityEvaluator, SessionLiveness, and DeliveryQueue are ports; the run budget counts main and router usage; retiring a harness context defers cleanup rather than waiting. Co-Authored-By: Claude Opus 5.5 <[email protected]>
agent-loop.md (451 → 178 lines) covers the engine and run handle, the drive algorithm, read-parallel/mutate-serial dispatch and the barrier for direct-write children, permission pause and resume across restarts, the plan-approval gate, steering, and system-prompt assembly (moved from architecture.md). context-and-compaction.md (200 → 109) covers the window, token counting, when compaction runs, both compactors, why tool history must stay paired, manual compaction, and failure modes. Corrected against code: the run token budget counts main plus router usage; composition wires the user model through OperatorProfileSource, not the turn-0 assembler; tools that can request external authorization also leave read batches; the 0.6 target applies to any budget-accepting compactor; the tier-4 summary uses the compaction-slot model. Co-Authored-By: Claude Opus 5.5 <[email protected]>
subagents-and-teams.md now covers all three delegation tools in 170 lines (from 248 + 156): what every child shares (bounded session, no nesting, narrowed authority, context isolation, permissions), Subagent modes by intent, direct-write children and the dispatch barrier, Parallel fork-join, teams, and where child workspaces come from (including delegation never accepting placement input). parallelism.md is deleted. Corrected against code: a merging Parallel call reports MutatesParent and runs alone; first/judge report an opaque artifact handle, not a path; only Subagent and Parallel share drainChildObserved (teams stream); direct-write uses directWriteCommandRunner; a failed dirty overlay sends the child a degraded-fork advisory. Co-Authored-By: Claude Opus 5.5 <[email protected]>
governance.md (180 lines) gathers what decides whether a call runs: permission resolution and why configured Ask is never bypassed, shell checks, the posture ladder, workspace trust, the command-runner environment, untrusted-content fences and child isolation, lifecycle hooks, and model-backed guardrails. It replaces hooks-and-guardrails.md and absorbs the governance half of deployment-and-hardening.md and the untrusted-content section of architecture.md. Corrected against code: a PreToolUse-rewritten call is re-authorized; plan mode also denies Copy, Move, and Remove; learned allows are user scope with the built-in floor below; shell parsing lives in shell.go; posture raises trust only on interactive roots while --trust-project trusts directly; the project authority set includes model bindings, rules, and instruction files; trust never carries to alternate roots; contextual review runs in engine/agent, not modelhook; guardrails also do permission review and fail closed by default. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cut providers.md from 859 to 199 lines: adapter invariants, wire adapters vs registry identities, per-session routing, model inventory, aliases and slots, and the semantic model router. Flags, settings keys, and per-function detail now point to the public configuration pages. Corrected against code: the missing openrouter-anthropic identity, the reflection and title slots, tier fallback only when the tier is bound, bearer-token availability for openai, default-provider order, and the unknown-context-window rejection. Co-Authored-By: Claude Opus 5.5 <[email protected]>
observability.md goes from 573 to 199 lines: the three separate contracts (diagnostics, audit, events), the durable event log and its consumers, telemetry composition, persistence, the session lease, remote store and source drivers, and provider resilience including semantic stream retry (moved from architecture.md). Flags, metric catalogs, and JSONL internals give way to links to the public pages. Corrected against code: latency instruments share one explicit-bucket ladder (LatencyViews); OTLP can also push metrics; memstore.Store does not implement SessionLease (memstore.Lease and memlease do); an approval on a persisted awaiting session resumes the run instead of returning ErrNoActiveRun; the lease is held for the session's life, not per run. Repoints an otlp.go comment that cited a removed section number. Co-Authored-By: Claude Opus 5.5 <[email protected]>
api-surface.md (171 → 220 lines) covers how gRPC, HTTP/SSE, and ACP share one Service, contract generation and negotiated compatibility, the live stream and durable watch semantics, session commands and successors, scheduled tasks, the TypeScript SDK, Mecatl Studio, and the engine-as-library contract. The SDK, Studio, scheduler, and successor sections move here from architecture.md; RPC lists and routes now link to the reference pages. apps/README.md follows the Studio anchor. Corrected against code: ACP starts with `mecated acp`, not a flag; there are eight core packages; Studio pins an exact SDK version; SDK callback tools are authorized; Converse can end at an authorization park; Run.Cancel leaves a parked authorization untouched; schedule claims are at-most-once, not exactly-once. Co-Authored-By: Claude Opus 5.5 <[email protected]>
deployment-and-hardening.md (358 → 200 lines) now covers only the server process: edge authentication, caller identity and ownership, the event-log actor, protected-resource discovery, the internal credential store, remote mecatui login, rate limiting and shutdown, multi-replica operation, and the mecated/mecak8s/mecatequi shapes. It absorbs those sections from architecture.md; permissions, posture, and trust moved to governance.md and placement to microvm-environments.md. Corrected against code: static bearer and OIDC are mutually exclusive at startup; appendEvent is the only actor-stamping site (there is no AppendRunEvent); system principal roots include model-catalog-refresh and stale-session-reconcile; mecak8s accepts a mounted workspace and is not strictly storage-free; a plain-file credential backend exists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
extensibility.md (310 → 173 lines) covers MCP (why streaming HTTP only, server sources, admission and naming, revisioned reconciliation, the session-scoped broker, secret-shaped headers), skills and slash commands, nested project instructions, progressive disclosure, built-in web retrieval, and library extension points. Broker, slash-command, and web-retrieval material moves here from architecture.md; the seam table and non-goals list are dropped because each seam has its own chapter. Corrected against code: skills live in engine/adapter/skillfs; validateSkillDraftConfig is in internal/app; direct MCP supports DCR; the project skill tier is withheld for untrusted workspaces; learned skills publish live through AtomicCatalog; drafting goes through the lifecycle drafter when a learned-skill store exists; progressive tool disclosure is off in every shipped host; broker admission is all-or-nothing while direct registration is first-wins. Co-Authored-By: Claude Opus 5.5 <[email protected]>
memory.md now covers both stores' shared CAS contract, how memory reaches the model, the safety boundary, caller scoping, consolidation, and evidence-backed reflection (moved from architecture.md), in 149 lines. Settings and workflows point to the public learning and dreaming pages. Corrected against code: memory is partitioned per caller under ownership enforcement (memory.NewCallerStore), mecatui enables project memory by default, the model-visible tool names, and which internal engines omit the operator profile. Co-Authored-By: Claude Opus 5.5 <[email protected]>
microvm-environments.md (292 → 149 lines) now explains the placement contract first (server-owned bindings, exact reattachment, the governance root, alternate worktrees, schedules, delegation), then the local microVM runtime: repository identity, logical worktrees and routing, delegation and merge, image and credentials, networking, and readiness and recovery. The placement sections move here from architecture.md and deployment-and-hardening.md; the live-journey test record and deferred list are dropped. Corrected against code: Darwin arm64 is admitted (experimental), not compile-only; a compatibly configured stopped daemon is restarted; there is one user-local microvmd managing per-repository VMs; deleting a schedule keeps its placement after the first claimed fire; mecak8s can install a remote execution provider; the microVM provider rejects worktree selectors; the Redis filesystem provider is listed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tui.md (142 → 130 lines) keeps the client boundary, layout and navigation, conversation feedback, styling, and verification rules, and absorbs the current, non-obvious parts of architecture.md's mecatui section. The provider-resilience link now points at the observability page instead of a heading anchor. Corrected against code: the ui/theme import rule is a convention, not a lint rule (no depguard entry covers cmd/mecatui); terminaltext lives at cmd/mecatui/internal/terminaltext. Co-Authored-By: Claude Opus 5.5 <[email protected]>
perf-tracking.md (665 → 220 lines) drops the ADR scaffolding, phase status history, roadmap, and open decisions, and keeps what we track and why, the benchmark harness, regression gating, baseline storage, the dated baseline snapshot, PGO, and how to add a scenario. perf-measurement-survey.md (285 → 83) becomes a question-to-technique map filtered to what Mecatl actually runs, without the generic Go tutorial. Code comments, Taskfile descriptions, perf.yml, .gitattributes, and the perf-optimization skill cited "Phase N" headings or the deleted ADR 0019; they now name the current sections. Comment-only changes. Corrected against code: BenchmarkReadOnlyBash is BenchmarkReadOnlyShell; the steady-state turn benchmarks exist and are gated; the main-branch trend is per-commit medians from benchtrend; RSS and wall-clock are recorded in the JSON only; the OTel runtime collector and metrics exist; histograms are explicit-bucket; PGO reads cmd/mecated/default.pgo. Co-Authored-By: Claude Opus 5.5 <[email protected]>
READING.md and docs/README.md now route to the rewritten chapters: foundations (overview, domain model, ports, agent loop), then one table of topic chapters, with parallelism folded into subagents and hooks-and-guardrails replaced by governance. Root AGENTS.md points at READING.md for how the system fits together. Two module pointers go where a chapter explains something the code does not make obvious: engine/AGENTS.md on MutatesParent for read-only tools that can write the parent tree, and internal/AGENTS.md on the governance root versus the execution root. The embed-engine guide's reflection link follows the section to memory.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
governance.md implied that any server is headless, so readers took `mecated` to be one. Headless is a per-binary setting: mecatui is always interactive, mecated is interactive unless started with --headless, and mecak8s and mecatequi default to headless. Also state that the trusted posture's only effect is raising project trust. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The last merge from main kept this branch's relative user-docs links in docs/README.md, undoing main's switch of the audience routes and the public-documentation link to mecatl.dev and GitHub URLs. Restore main's version of those lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- perf-tracking: no default.pgo is committed; it is absent, not empty. - deployment-and-hardening: a local store directory always gets a flock session lease (internal/app/build.go buildSessionLease), matching observability.md. - domain-model: user_prompt reaches clients as a scheduled-delivery note; name ClaimAuthorization and the RestoreAuthorizationClaim edge; Abandon keeps a pending exact retry. - providers: name Typesafe System One, list the reserved synthesis slot, and add the architecture-guide back-link. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- dispatch.go preHook: a hook-rewritten call is re-authorized on the effective args (authorizeBound / reauthorizeApprovedCall); the comment said it was not. - evaluator.go: ScopeUser is the lowest configured scope; ScopeBuiltinDefault sits below it. - Taskfile, perf.yml, perf/: drop "Phase N" labels from the removed perf roadmap. Comment-only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- subagents-and-teams: the forker's own git worktree add runs under the gitenv scrub (internal/adapter/forker/forker.go). - governance: guardrail checker usage is charged to the reviewed session and late usage after the run ends is dropped (engine/agent/loop.go recordGuardrailUsageWhileActive). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The guardrail slot falls back to the cheap tier (internal/app/slots.go), and guardrailsConfigured follows that fallback. An operator binding cheap for compaction also gets enforcing guardrails and their checker cost. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Point agents at the one chapter they need, only when the code doesn't answer the question, instead of a reading map to start from. Add the docs/ counterpart of the existing user-docs update rule so the rewritten chapters don't drift again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The proposals README says abandoned proposals are deleted, so the header check no longer accepts the status. Adds a fixture case. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name go.work and environment/microvm/go.mod rather than restating the Go and go-microvm versions, and drop the core-package count the table already shows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rewrap prose and one Go comment that the earlier review fixes left over-long, and say that only the listed internal-call slots fall back to cheap (title has no default tier; plan falls back to reasoning). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The architecture overview and deployment chapter now point at the version go.work declares instead of repeating it, so the source-build floor test no longer asserts a literal Go version in those two pages. The other surfaces it checks (AGENTS.md, Taskfile, user-docs, the SDK Dockerfile) still pin it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main moved and deleted user-docs pages and moved content into these docs while this branch rewrote them. This points the rewritten pages at the new user-docs paths, keeps main's operator route and microVM source-qualification pointers, folds in main's reasoning-summary and Anthropic thinking-mode facts in providers.md, and repoints the reflection link on the page that replaced embed-engine.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rdimitrov
force-pushed
the
claude/docs-rewrite-proposals-e1b1bb
branch
from
October 7, 2026 20:18
2469b94 to
8f16695
Compare
Go back to main's docs/drafts/ instead of a new docs/proposals/ home, and drop the Status/Owner/Last updated headers and the instruction-files check this branch added for them. The drafts index is main's, plus a row for the surface-migration plan, which this branch moved out of the deleted docs/design/. Root AGENTS.md keeps one line saying drafts are not current behavior. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…roposals-e1b1bb # Conflicts: # docs/tui.md
8 tasks done
This was referenced Oct 8, 2026
3 tasks done
This branch was successfully deployed
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
The contributor docs under
docs/are rewritten to be short enough to keep accurate, and drafts are clearly marked as not current behavior. Every kept claim was checked against current code; claims that could not be verified are left out and listed below.Part A: drafts and principles
docs/drafts/stays as main has it: proposals and work records, not current behavior. No header lifecycle or extra check is added.docs/design/surface-migration-plan.mdmoves intodocs/drafts/(with a row in its index), anddocs/design/principles.mdis folded into the overview in Part B, sodocs/design/is gone.AGENTS.mdgets one line:docs/drafts/holds proposals and work records, not current behavior.docs/README.md"What goes where" gets adocs/drafts/row.Part B: page sizes
docs/architecture.md(+ foldeddesign/principles.md)architecture/domain-model.mdarchitecture/ports.mdarchitecture/agent-loop.mdarchitecture/context-and-compaction.mdarchitecture/subagents-and-teams.md(+ mergedparallelism.md)architecture/governance.md(replaceshooks-and-guardrails.md)architecture/providers.mdarchitecture/observability.mdarchitecture/api-surface.mdarchitecture/deployment-and-hardening.mdarchitecture/extensibility.mdarchitecture/memory.mdarchitecture/microvm-environments.mddocs/tui.mddocs/perf-tracking.mddocs/perf-measurement-survey.mddocs/READING.md,docs/README.mdSome chapters stayed the same size or grew because they absorbed sections from the old 2,200-line
architecture.md: the SDK, Studio, and scheduler went to api-surface; caller identity and the credential store to deployment-and-hardening; reflection to memory; placement to microvm-environments; stream retry to observability.Page set changes:
parallelism.mdis merged intosubagents-and-teams.md.hooks-and-guardrails.mdbecomesgovernance.md, which also takes permissions, posture, trust, and environment scrubbing out of deployment-and-hardening. Every page drops ADR, phase, and issue history; flags, settings keys, routes, and field lists now link to the publicuser-docs/pages.Inbound anchors kept or repointed:
observability.md#remote-store--source-drivers-adaptersgrpcdriver(heading kept),architecture.md#mecatl-studio→api-surface.md#mecatl-studio(apps/README.md),architecture.md#evidence-backed-reflection→memory.md#evidence-backed-reflection(user-docs/.../embed-engine.md). The two strings asserted byredis_dependency_floor_test.goare kept.Per commit: removed, corrected, unverified
overview: architecture.md + design/principles.md (2,200 + 85 → 250)
layering_test.go, andengine/AGENTS.mdown it); the engine adapter and dependency lists; build-identity mechanics; mecatui transport/TLS and mecak8s TLS/Redis detail (in user-docs). Subsystem sections moved to their chapters.engine/learningis a core domain package (engine/arch/surface.go);governanceis stdlib-only andtoolimports onlysession(engine/arch/layering_test.go:86-107);internal/cliconfigalso importsinternal/app; the code map addsmecatl-execution-providerandmecatl-executor; the pairing principle now names the seams that callValidateToolPairing(session.go:651-660,compaction.go:149,cascade.go:265) rather than "every run entry"; runners useenvscrub.ScrubWithInherited(internal/app/command_runner.go:58).cmd/mecatui/clientmay import.environment/microvm/microvm.gocalls the runtime "future";Taskfile.yml:564lists an outdated engine dependency closure.domain-model (235 → 150) + ports (223 → 130)
LLMRequest/ChunkGo blocks, the per-port signature column, the 20-rowEventTypetable,Limits/Counters/ToolResultfield lists; microVM, placement-reattach, background-shell, and plan-approval detail (owned by other chapters); Redis read-ledger flags (user-docs); speculative remote-backend and sandbox notes.authorizing(engine/session/session.go:55-56,authorization.go:90-180) and the fourth recovery seamAbandon(session.go:1119); recovery is applied byrepairTerminalState, notloadAndReopen(internal/adapter/server/service.go:4706);Cancel/Fail/Stop/Completerejectauthorizing(session.go:766,785,798,935); usage readers keep unknown kinds (usage.go:108-115);Message.ReasoningItemIDis a fourth opaque replay field (conversation.go:66-76);AuthorityEvaluator,SessionLiveness,DeliveryQueue, andScheduleStorewere missing from the port table; a run budget counts main plus router usage (engine/agent/loop.go:2615);Retiredefers cleanup rather than waiting (internal/app/harness_context.go:1162-1203).permission.askis never projected"; how harness-context bindings are rebuilt after restart.engine/port/doc.go:3-4says fakes live ininternal/adapter(they are inengine/adapter); thememfspackage doc still describes ledger semantics that moved toReadLedger.agent-loop (451 → 178) + context-and-compaction (200 → 109)
user-docs/features/context-windows.md); HTTP routes and wire fields for resolve-ask, plan approval, and steer;NewEnginedefault list,askRegistrydiagrams, steer watermark and handoff internals;PendingAskJSON tags; the authority-evaluator table (to governance/subagents); discovery ownership (to providers); deferred notes (cross-tree budgets, steer to children and ACP).engine/agent/loop.go:2615); the user model reaches the prompt throughDeps.OperatorProfileSource, not the turn-0 assembler (internal/app/build.go:4578,:4603); tools implementingtool.AuthorizationRequesteralso leave read batches (engine/agent/dispatch.go:53); the 0.6 target applies to any budget-accepting compactor, and the heuristic compactor ignores it (manual_compaction.go:37); tier-4 summaries use the compaction-slot model on the session's provider (build.go:4903).context_window_unavailable; instruction-snapshot cache bounds; the steer promote-grace duration. Kept one inference: an oversized request the provider rejects fails like any provider error (no dedicated handling exists).subagents-and-teams + parallelism (248 + 156 → 170; parallelism.md deleted)
--enable-parallel,--max-team-tokens, cancel routes, mecatui keys (in user-docs);Executestep lists, factory names,gitenvkey list, dirty-overlay git commands;ListWorktreesselector internals (session placement, not delegation).Parallelcall reportsMutatesParentand runs alone (engine/agent/parallel.go:415,dispatch.go:59);first/judgereport an opaque artifact handle, not a workspace path (parallel.go:1475-1479,:760-763); only Subagent and Parallel usedrainChildObserved, and teams stream (subagent.go:3677,parallel.go:1138,teamsupervisor.go:21-27); direct-write usesdirectWriteCommandRunner(internal/app/build.go:7798,command_runner.go:65); a failed dirty overlay sends a degraded-fork advisory (internal/adapter/forker/forker.go:200-206).RunTeamoutcome payload.governance (new; replaces hooks-and-guardrails 151, absorbs ~175 lines of deployment-and-hardening → 180)
/guardrailsview and notice settings (user-docs);HookOutcome.Mutatedshapes, trust-registry write mechanics, soul double-gate, the built-in floor's tool list; guardrail usage attribution and detail RPC (observability).PreToolUse-rewritten call is re-authorized (engine/agent/dispatch.go:1054-1066,:296-300); plan mode also deniesCopy,Move,Remove(engine/governance/evaluator.go:21-27); learned allows areScopeUser, withScopeBuiltinDefaultbelow (evaluator.go:157-166,permission.go:66-74); shell parsing is inshell.go, notbash.go; posture raises trust only on interactive roots, while--trust-projecttrusts directly (internal/app/posture.go:217-241,trust.go:108-109); the project authority set includes model bindings, rules, and AGENTS.md/CLAUDE.md (project_ingestion.go:10-19); trust never carries to alternate roots (project_ingestion.go:22-27); contextual review runs inengine/agent/actionreview.goandinboundreview.go, notmodelhook; guardrails also do permission review and fail closed by default (contextual_reviewer.go:85,permconfig/schema.go:1948-1952). Newly stated:autoloosens the main engine's substitution floor, andauto/yoloare refused as root without a declared sandbox (posture.go:147-150).preHookdoc comment inengine/agent/dispatch.go:1419-1424says rewritten args are not re-authorized;evaluator.go:160callsScopeUserthe lowest scope.providers (859 → 199)
--openai-base-url,--toolhive-llm-mode,--model-slot,providers.<name>, OpenRouterorder:), the OIDC record format andmecatui providerslifecycle, the Responses request/SSE mapping, discovery lock ordering, proto field numbers, the ToolHive direct-mode TLS detail.openrouter-anthropicidentity was missing (internal/app/registry.go:54);reflectionandtitleslots were missing,synthesishas no consumer (internal/app/slots.go:62-90); tier fallback applies only when the tier is itself bound (slots.go:223-231); a bearer-token file also enablesopenai(registry.go:488-509); default-provider order now stated (registry.go:1365-1394); context window can resolve to unknown and be rejected (provider_discovery.go:402-419).--subagent-modeldefault" precedence;ServerCapabilities.model_selectionsemantics.cheaptier appears to turn guardrails on, becauseguardrailsConfigureduses the tier-fallback selector (internal/app/guardrails.go:500-504). The page states the behavior; confirm it is intended.observability (573 → 199)
--llm-*,--otlp-*,--metrics-addr,--perf-*); retention settings and cleanup-token flow (linked tosession-storage-operations.md); the per-metric catalog; JSONL paging, cursor, and flock internals; the 15-row conformance table (reduced to suite names); benchmark mechanics (linked toperf-tracking.md); speculative "future bump" notes.LatencyViews(internal/adapter/telemetry/metrics.go:85-127), and there is noToolDurationView; OTLP can also push metrics (otlp.go:133-137,209-235);memstore.Storedoes not implementSessionLease,memstore.Leaseandmemleasedo (engine/adapter/memstore/lease.go:12-21); approving a persisted awaiting session resumes viaEngine.ResumeApprovalrather than returningErrNoActiveRun(internal/adapter/server/service.go:6873-6885); the lease is held for the session's life, and the fencing token is not checked (service.go:7981-7986,engine/port/lease.go:44-48).Servicedoc comment (service.go:914-922) still describes the old approve-after-restart behavior;internal/app/build.go:511cites observability.md for user-model-store locality, which the page no longer covers. Fixed one:otlp.gocited "architecture.md §2".api-surface (171 → 220; absorbs ~470 lines of SDK, Studio, scheduler, and successor material from architecture.md)
query(),resolvePlan, Deno launcher, callback limits);ModelInfofields, SDK timestamp normalization, connection-monitor precedence, test inventories, release mechanics.mecated acpsubcommand, not--acp(internal/adapter/acp/doc.go:17); there are eight core packages, includingengine/learning(engine/arch/surface.go:27-36); the Studio BFF pins an exact SDK version (apps/server/package.json); SDK callback tools are authorized under the default evaluator (sdk/typescript/e2e/tool.e2e.test.ts:304);Conversecan end at a pendingauthorization.requiredpark (harness.proto:101-106);Run.Cancelleaves a durably parked authorization untouched (engine/agent/loop.go:1217-1219); schedule claims are at-most-once (engine/port/schedule.go:532), not exactly-once.ErrFireNowOverlapcomment ininternal/adapter/scheduler/scheduler.gosays 409, buterrorcodes.go:183maps it to 412;Taskfile.yml:117(api:checkdescription) still says "seven" core packages.deployment-and-hardening (358 → 200; absorbs ~400 lines from architecture.md, sheds ~175 to governance)
--rate-limit,--oidc-*,--drain-addr, TLS flags),daemon.yamlprecedence, mecak8s shutdown budget and Redis pool flags, SSH-forward login recipe, mecatequi exit codes, Helm transport postures (all in user-docs deployment pages); Redis credential-reload and migration internals, keyring migration, logout/revocation mechanics; live e2e suite, PSS manifests, Renovate workspace list.internal/cliconfig/oidc.go:260-265);AppendRunEventno longer exists, soService.appendEventis the only stamping site (internal/adapter/server/service.go:7568); the system principal registry also hasmodel-catalog-refreshandstale-session-reconcile(internal/syscaller/syscaller.go:35-53); the credential-key setting iscredential_store.oidc.key, notllm.credential_key(internal/adapter/permconfig/providers.go:56-80; the page no longer names it); mecak8s accepts a mounted workspace and remote execution, so it is "no durable state by default", not storage-free (cmd/mecak8s/flags.go:361-362); a plain-file credential backend exists (internal/adapter/clientauth/credential_backend.go:203-216).issrules; mecatequi's untracked-file diff hunk.extensibility (310 → 173; absorbs MCP broker, slash commands, web retrieval from architecture.md)
mcp-oauth-and-credentials.md,mcp-client.md,skills-commands-and-soul.md); SkillDraft similarity internals,OAuthControllerlifetime walkthrough, engine dependency list; the debug-session MCP borrow.engine/adapter/skillfs, andinternal/adapter/skillsre-exports it (alias.go:1);validateSkillDraftConfigis ininternal/app/skilldraft.go; direct MCP supports DCR (internal/adapter/mcp/oauth_dcr.go); the project skill tier is withheld for untrusted workspaces (skillfs/resolve.go:98-104,build.go:4977-4981); learned skills publish live throughAtomicCatalog(skillfs/atomic.go:35); with a learned-skill store, drafting usesNewLifecycleDrafter(internal/app/catalog.go:663-671);ProgressiveToolsis off in every shipped host (engine/agent/loop.go:376-382); broker admission is all-or-nothing while direct registration is first-wins (mcpbroker/workspace_catalogue.go:465-480,mcp/mcp.go:1757-1777). Reviewer pass: nested instructions are activated only by structured file tools and arrive on the next request (engine/prompt/builder.go:199).internal/adapter/server/grpc.go:165).memory (149 → 149, also absorbs ~228 lines of reflection from architecture.md)
mecated skills promote; learning modes, thresholds, budgets, consolidation schedules, flag names (now linked to user-docsfeatures/learning.mdandfeatures/dreaming.md); numeric ceilings, manifest layout, parser rejection list; duplicated CAS and consolidation text.memory.NewCallerStore(internal/app/build.go:4775,:5798), and remote memory and learning drivers are refused in that mode (build.go:5770-5772,learningdriver.go:20). Project memory is on by default in mecatui (cmd/mecatui/main.go:1592-1620) and opt-in in mecated. The tool names areInspectMemory/ForgetMemory/UndoMemory(internal/adapter/memory/tools.go:12-15). The operator-profile exclusions areguardrail-reviewer,ask-reviewer,model-router,usermodel-review, andparallel-judge(build.go:6912-6918).microvm-environments (292 → 149; absorbs placement from architecture.md and deployment-and-hardening.md)
internal/adapter/microvmmanager/default_operations.go:81,129); a compatibly configured stopped daemon is restarted under the manager lock (manager.go:304-307); there is one user-localmicrovmdmanaging per-(owner, Git common dir) VMs, not a per-repository daemon (bootstrap.go:86-103,environment/microvm/repository_lifecycle.go:99-101); schedule delete cleans up placement only before the first claimed fire (internal/adapter/server/schedule_manager.go:953-963); mecak8s can install a remote execution placement provider (cmd/mecak8s/main.go:91-110). Newly stated: the microVM provider rejects worktree selectors (internal/adapter/microvm/client.go:220-222); the Redis filesystem provider exists (internal/app/redis_workspace.go:23).internal/adapter/server/placement.go:52still says "requires Linux amd64 with KVM" though Darwin arm64 is admitted.tui (142 → 130), perf-tracking (665 → 220), perf-measurement-survey (285 → 83)
ns/op, and Bencher as future work; the survey's §1–§12 Go tool tutorials and its priority ranking; "keep rationale in ADRs" in tui.md; the 30-line debug-session description.BenchmarkReadOnlyBashis nowBenchmarkReadOnlyShell(engine/governance/bench_test.go:26);BenchmarkSteadyState*Turn(engine/agent/bench_test.go:158-186) andBenchmarkContextualReviewPrivateCapacityexist and are gated; the main trend is per-commit medians fromperf/cmd/benchtrend(perf.yml:384-435); RSS and wall-clock are only in the JSON artifact (perfconvert); the OTel runtime collector is started (otlp.go:159) and metrics are exported; histograms are explicit-bucket; PGO readscmd/mecated/default.pgo, beside the main package; RSS comes from procfs; tui'sui/themeimport rule is a convention, not lint-enforced;terminaltextiscmd/mecatui/internal/terminaltext.perf.yml,.gitattributes, and the perf-optimization skill cited "perf-tracking.md Phase N", "Open decisions", or the deleteddocs/adr/0019-perf-tracking.md; they now name current sections.task benchtoday (darwin/arm64) shows much lower allocs/op for several rows (BuildRequest 77 → 32, HeuristicCompact 199 → 55, CascadeCompact 249 → 106, EvaluatorEvaluate 13/18/29 → 8/12/23). A deliberate re-capture is worth doing separately.cmd/mecatui/embed/embed.go:13-14(client imports);perf.yml:94-95("raw URL");internal/adapter/telemetry/metrics.go:110-112("no OTLP metrics reader").Final commit: READING.md, README.md, AGENTS.md pointers
AGENTS.mdpoints atdocs/READING.md.engine/AGENTS.md: aReadOnly()tool that can write the parent workspace must implementMutatesParent(explained in agent-loop.md).internal/AGENTS.md: a binding's governance root is not its execution root (explained in microvm-environments.md)..claude/skills/panel-reviewnow points at the overview's principles section instead of the deleteddesign/principles.md.For reviewers: needs a decision or a follow-up
cheaptier: binding only thecheaptier appears to turn guardrails on (internal/app/guardrails.go:500-504). providers.md states the current behavior; confirm it is intended.ErrFireNowOverlap: the comment says 409, buterrorcodes.gomaps it to 412.Taskfile.ymlapi:checksays "seven" core packages; there are eight.dispatch.gopreHookdoc: rewritten args are in fact re-authorized.evaluator.go:160callsScopeUser"LOWEST".service.goServicedoc: approve-after-restart now resumes the run.engine/port/doc.go: fakes live inengine/adapter, notinternal/adapter.metrics.gosays there is no OTLP metrics reader; there is one.embed.goclient-import note.environment/microvm/microvm.gocalls the runtime "future".perf/,cmd/mecatui/uibench files,engine/prompt/bench_test.go,Taskfile.yml,perf.yml,.gitattributes, andinternal/adapter/telemetry/otlp.gocited removed doc sections ("Phase N", ADR 0019, "§2") and now name current ones.Verification
task docs: generated references are unchanged;instruction-files: ok; matlatl strict check reports 166 documents, 0 broken links or anchors, 0 orphans, 0 unreachable.python3 .github/scripts/instruction-files_test.py: all checks passed.go test ./internal/adapter/ -run TestRedisFollowCapacity_Scenario4: ok.task site:build: success (oneuser-docslink changed).task lint: 0 issues across the root, engine, authn/oidc, and provider modules.task test:race. The Go changes in this PR are comment-only.🤖 Generated with Claude Code