Contract/source/docs/test coverage
Advanced index · Tutor contract · Public host capabilities · Public tool bridge · runtime diagnostics lesson
This matrix inventories the ordinary third-party mod surface documented by Tutor today. It deliberately excludes privileged context.modManagement and context.processExecution, except for boundary notes. “Current-Core verification” means exactly what test/core-contract.test.mjs and test/native-core-contract.test.mjs execute against the sibling Burrow-Backend checkout—not what activation makes theoretically callable.
Legend:
- invoked: the current-Core integration test executes the behavior;
- activation only: current Core discovers/registers the surface, but the capability itself is not exercised;
- not exercised: no current-Core integration assertion for that behavior;
- docs only in Tutor: Core exposes/documents the surface, but Tutor has no runnable example (not a claim that Core lacks implementation).
Historical reviewed source baseline
Reviewed on 22 October 2026 against Tutor source 23afbd0 and its version-only successor e95fe672 (2026.10.22.2), with Core source 3304e633. Core evidence includes docs/mod-host-capabilities.md, docs/mod-agent-tools.md, docs/runtime-mod-diagnostics.md, docs/git-managed-skills.md, docs/api.md, and the corresponding host/capability/UI implementations. Source identifiers record what was reviewed; they are not an install tag or compatibility promise. Public snapshots follow the daily sync described on the Tutor home page.
Current source reconciliation
On 25 October 2026, all Beginner and Advanced pages were reviewed against Tutor 9679fc4fe9ccd532142b84b0257d290ae8d9eec3 (2026.10.25) and Core 3bf50374d3601c821e787912d52b9044eaf649ec. The new external-turn and durable-generation rows describe assertions present in checked-in test source, not tests rerun in this documentation pass. The older execution receipt above remains historical. Tutor does not demonstrate newer Core turn-cancellation/session-control capabilities.
Package, host, storage, and tools
| Ordinary surface | Authoritative contract | Runnable Tutor example | Advanced lesson | Fixture/unit test | Current-Core verification |
|---|---|---|---|---|---|
| Package discovery, ordinary manifest, safe server/UI paths | Tutor package contract; Core host trust/lifecycle section | installed Beginner burrow.mod.json; standalone Advanced server/advanced/index.example.mjs | Lifecycle | test/server.test.mjs, test/ui.test.mjs | Invoked: the Beginner package is copied into a runtime root, discovered, and its Control/Settings slots asserted. The Advanced entrypoint is hosted separately in current-Core tests. Install/update/enable/disable/uninstall are not executed. |
Manifest managedSkills contribution | managed-skills guide | Docs only in Tutor: the manifest declares none and there is no bundled skill package | Lifecycle | None | Not exercised. Current Core implements validation/reconciliation, but Tutor does not verify enabled-only global publication, periodic sync, conflicts, failure retention, or disable/uninstall removal. |
activate(context), registration, cleanup/close() | Tutor activation contract | Beginner server/index.mjs; Advanced server/advanced/index.example.mjs | Lifecycle | Beginner server tests and Advanced capability tests assert registration/cleanup | Invoked: current Core hosts and closes both entrypoints separately. Cleanup side effects beyond protected-map clearing/logs are not asserted. |
context.id | Tutor activation contract | identity route, Forge ownership, mod-data path | Agents/operator, Persistent data | advanced and Forge tests use fixed installed ID | Invoked: the advanced identity route returns the trusted installed ID through the current forked host. |
JSON context.api methods, params/query, response envelopes, trusted request.auth | Tutor JSON routes; tool bridge HTTP auth | server/index.mjs, server/advanced/*.mjs, server/forge-images.mjs | all route-backed lessons; Lifecycle | server, advanced, Forge tests cover validation/auth with fixtures | Invoked: current Core invokes beginner, Forge, and advanced routes including query/body/path-param flows. Negative advanced auth remains fixture-tested. |
Mod-scoped JSON settings get/set/delete | Tutor settings contract; host generic-capability preface | server/index.mjs, Forge receipt/settings flow | Forge, Persistent data comparison | server and Forge tests; memory store in Core test | Invoked: Forge integration persists enablement, intent, receipt and survives host reload using current host/store RPC. delete is not exercised. |
Mod-scoped encrypted string secrets get/set/has/clear | Tutor settings contract | beginner configuration and advanced sensitive/protected tools | Protected results | server tests cover set/has/clear; advanced fixture covers get during resolution | Invoked through current host/store RPC: hasSecret, getSecret, and managed resolution are exercised. The fixture seeds its secret directly; setSecret is not exercised through Core RPC. The integration store is in-memory, not encrypted PostgreSQL. |
context.logger.debug/info/warn/error | Tutor activation context | activation/cleanup logs in server/index.mjs | Lifecycle | test/server.test.mjs asserts info calls | Activation only: Core receives activation log, but integration does not assert logging or all levels. |
Tool registration and grant-required use; trusted caller/schema/cancellation | Public tool bridge; Tutor tools | reference_greet in server/index.mjs | Protected results | test/server.test.mjs validates arguments/cancellation | Invoked: current host registers and directly invokes reference_greet. MCP discovery/grant review/execution, cancellation, disable, CLI absence, and uninstall cascade are not exercised. |
availability: 'mod-authorized' | Public tool bridge | reference_self_diagnostics | Diagnostics, Protected results | advanced test asserts availability and self-scoped schema | Activation only: registration asserted; product discovery filtering/grant independence/denial are not run. |
Ordinary $burrowSensitive protected leaf | Public tool bridge, sensitive leaves | reference_sensitive_secret in server/advanced/diagnostics-tools.mjs | Protected results | advanced test asserts the exact declaration | Invoked through the current forked host: the raw declaration reaches Core's host boundary. The outer MCP publication/protected registry and one-turn protected:// consumption are not exercised. |
Managed $burrowManaged result and resolveProtectedReference | Public managed protected results | reference_protected_secret in server/advanced/diagnostics-tools.mjs | Protected results | advanced test covers hidden value, caller/version bind, one-use denial | Invoked through the current forked host: declaration and exact caller/version resolver path are exercised. Outer protected:// registry, shell_exec.protectedBindings, grants, expiry/revocation, disable/reload are not. |
Opt-in context.diagnostics.register list/detail | Public opt-in diagnostics | scheduler projection in server/advanced/diagnostics-tools.mjs | Diagnostics | advanced test calls adapter list; detail mapping exists but missing/not-found behavior is not tested | Activation only: the adapter is registered while the host activates; the integration does not assert the support flag or invoke the adapter. Dedicated bearer endpoints, projection, pagination, unsupported/unavailable/error states and /pending are not invoked. |
Mod-owned persistent files under mods/mod-data/<id> | Public persistent files | server/advanced/persistent-data.mjs | Persistent data | advanced test writes/reads temp runtime root and checks exact path | Activation only: routes register; current-Core test does not write files or test update/uninstall retention. |
Generic read/model capabilities
| Ordinary surface | Authoritative contract | Runnable Tutor example | Advanced lesson | Fixture/unit test | Current-Core verification |
|---|---|---|---|---|---|
agents.list() | Public generic capabilities | GET /advanced/identity | Agents/operator | advanced test exercises fixture response | Invoked through current Core: the route uses Core's capability service and fixture agent store. Disabled-agent workspace and failure paths remain focused Core concerns. |
operator.displayIdentity() | Same Core section | identity route | Agents/operator | advanced fixture asserts {id,name} | Invoked through current Core: only {id,name} reaches Tutor; fixture avatar/profile fields are asserted absent. Null-name behavior is not integrated. |
operator.timezone() | Public generic capabilities | identity route | Agents/operator, Scheduler | advanced fixture asserts timezone | Invoked through current Core: the route receives the scheduler store's effective operator timezone. |
conversations.list() immutable inventory/cursors | Public generic capabilities | GET /advanced/conversations | Conversations | advanced test validates/forwards one fixture page | Invoked through current Core: a real immutable inventory page is returned from fixture stores. Snapshot expiry/capacity, stale/cross-scope cursor and disabled-agent workspace remain focused gaps. |
conversations.read() complete paged history, segmentation/gaps, filters, signal | Same Core section | POST /advanced/conversations/read; direct cancellable snippet in lesson | Conversations | advanced test forwards one complete fixture page | Invoked through current Core: a real pager read returns newest-first complete history. Archive/reset reads, byte segmentation/gaps, retention warnings, stale cursor and cancellation remain focused gaps. Tutor's HTTP adapter does not pass a signal. |
models.list() | Same Core section | GET /advanced/models | Models | advanced fixture asserts safe metadata | Invoked through current Core: selected safe model metadata is returned; private provider auth is not exposed. Multi-connection filtering remains a focused Core concern. |
models.generateText() isolated generation/options/signal | Same Core section | POST /advanced/models/generate; direct cancellable snippet | Models | advanced fixture tests consent, exact options, returned text | Invoked through current Core: the fixture provider receives effort and temperature through the real adapter; the request supplies maxTokens but does not assert the provider token field, with no tools; only text returns. Cancellation, timeout and four-call concurrency remain gaps. |
| Four-active-request host concurrency and generic shutdown/timeout errors | Same Core section | No dedicated runnable stress example; normal calls throughout source | Lifecycle | None | Not exercised. Documentation-only behavior in Tutor; explicit integration gap. |
agents.turns.submit() durable asynchronous admission/idempotent replay | Public generic capabilities | disabled-by-default operator POST /advanced/agent-turns | External turns | advanced test covers opt-in, exact payload, retained intent/key, prompt acceptance, replay/conflict | Invoked through current Core: the forked host calls the real capability service/dispatcher; queued acceptance returns without terminal wait, enabled-agent validation and mod-scoped idempotency are asserted. No provider is called. |
agents.turns.read() same-mod bounded status/result | Same public contract section | later GET /advanced/agent-turns/:requestId poll | External turns | advanced test polls retained turn ID | Invoked through current Core: running/terminal bounded projection, same-mod denial, shutdown interruption and same-key replay are asserted with in-memory durable receipts/executor. PostgreSQL and process-startup reconciliation are not integrated. |
models.generations.submit/read durable slow-model jobs | Same Core section | POST /advanced/models/generations; GET /advanced/models/generations/:jobId | Models | advanced fixture covers confirmation, stable request key, acceptance and polling | Checked-in Core-host test with a fake generation dispatcher: Tutor route submit/read and returned projection are asserted. This does not exercise the production durable worker, provider latency or restart recovery. |
Forge and scheduler
| Ordinary surface | Authoritative contract | Runnable Tutor example | Advanced lesson | Fixture/unit test | Current-Core verification |
|---|---|---|---|---|---|
forge.images.status() | Public generic Forge contract | server/forge-images.mjs | Forge map, full lesson | Forge tests cover route/policy; Core fixture controls status | Invoked: current capability service resolves missing/unavailable/available saved selection using in-memory Forge store. No live provider/PostgreSQL. |
forge.images.create() async paid image + idempotent replay | Same Core section | durable intent/receipt route in server/forge-images.mjs | Forge, full lesson | Forge tests cover consent, persistence failures, stable reload retry | Invoked: current Core namespacing, one dispatch, concurrent duplicate replay and host-reload retry asserted with in-memory store. |
forge.jobs.read() same-mod image and public artifacts | Same Core section | job read route | Forge, full lesson | fixture tests read; full projections in Core test | Invoked: same/foreign owner, non-image denial, later success/failure, authenticated preview URL and private-field omission asserted. No live artifact storage/download. |
| Forge non-features: no cancel/download/attachments/provider config | Same Core section | source intentionally exposes none | Forge | Core test verifies disabling product does not cancel/read-block accepted job | Partially invoked: absence of other APIs is structural; provider-side terminal execution is not run. |
Scheduler list/read/create/update/delete/runs/trigger | Public scheduled jobs | all seven adapters in server/advanced/core-capabilities.mjs | Scheduler | advanced tests cover list/create pairing/trigger; read/update/delete/runs are registered but minimally or not behavior-tested | Invoked through current Core: create defaults disabled; list/read/update/runs/trigger/delete traverse the owner-scoped capability service. Foreign-owner isolation, cursor limits, selected-model rejection, real-store prompt/session/cron validation, and unavailable-owner dispatch remain focused gaps. |
| Operator-timezone scheduler semantics and legacy timezone ignore | Same Core scheduled-jobs section | identity display; scheduler payload intentionally omits timezone | Scheduler | No focused behavior test | Partially invoked: timezone is returned by current Core; legacy payload ignoring is documented but not behavior-tested. |
Runtime diagnostics operations
All operations below require an active tool invocation. The common authority is Public host generic diagnostic scope plus the runtime diagnostics lesson.
| Operation/surface | Runnable Tutor example | Lesson | Fixture/unit test | Current-Core verification |
|---|---|---|---|---|
session bounded tail | reference_self_diagnostics enum | Diagnostics | fixture forwards operation only | Activation only; not invoked. |
session-context | same | Diagnostics | fixture registration only | Activation only; not invoked. |
context-status | same | Diagnostics | advanced test invokes fixture and forwards caller.signal | Invoked through current Core's invocation-scoped diagnostic capability with trusted caller and non-global scope; production status collection is represented by a controlled adapter fixture. |
active-runs | same | Diagnostics | fixture registration only | Activation only; not invoked. |
traces live paginated inventory | same tool; accepts validated session ID, limit, and cursor, but no agent ID | Diagnostics | fixture registration only | Activation only; pagination not invoked. |
trace and trace-authority detail | reference_self_diagnostics accepts validated runId; only trace accepts includeToolOutput | Diagnostics | advanced test validates and forwards trace detail input | Not invoked through production diagnostics. Registration and generic current-Core diagnostic RPC are covered. |
Trusted self scope, diagnosticAgentIds cross-agent/global scope, invocation-only admission | self-scoped tool accepts no target agent ID | Diagnostics | test rejects extra forged target before fixture call | Activation only. Core denial/global policy/detached call are not tested. |
| Runtime diagnostic cancellation | tool passes caller.signal | Diagnostics, Lifecycle | fixture asserts signal object forwarding but does not abort | Not exercised. |
UI contributions
| Ordinary surface | Authoritative contract | Runnable Tutor example | Advanced lesson | Fixture/unit test | Current-Core verification |
|---|---|---|---|---|---|
Control mountControl({modId,root,api}) and cleanup | Tutor UI contract | ui/control.js | UI contributions | UI test covers load/refresh/abort/listener cleanup | Discovery only: discovered control UI key asserted; browser module is not imported/mounted by integration. |
Settings sections/contribution, imperative mountSettings, primary/scoped API | Tutor UI contract | installed Beginner ui/settings.js, manifest contribution | UI contributions | UI tests cover known/unknown section, write-only secret, save, errors, cleanup | Discovery only: discovered settings UI key asserted; Core browser host is not mounted. Advanced docs explain optional overflow separately. |
Optional UI-host settingsContribution / createSettingsContribution and action handler | current Core UI ModSettingsHost; Tutor UI contract | standalone ui/declarative-settings.example.js | UI contributions | test/advanced-ui-contracts.test.mjs loads factory data and action behavior | Not browser-integrated and not yet in Backend's authoritative server-side docs. The example is syntax/unit tested but intentionally not Tutor's active settings module. |
Host-owned contributions.apiTargets v1 CRUD and Settings capability | Public API contribution contract | standalone server/advanced/api-targets.example.mjs plus documented manifest declaration | UI contributions | test/advanced-ui-contracts.test.mjs covers validated GET/POST/PUT/DELETE | Not activated by Tutor. Tutor is not a remote-target product; current-Core discovery is covered by Core's own contract tests. |
Archive mountArchive context, update/remount/cleanup/query | Public Archive UI | standalone ui/archive.js | UI contributions | UI test covers date in query, render, abort, unmount | Not installed/discovered by Beginner. Tutor does not implement date filtering or cursor UI; current Core's Archive contract is authoritative. |
| Safe DOM/error/late-result cancellation patterns | Tutor UI contract and Archive contract | all three UI modules | UI contributions | lightweight fake-DOM tests | Not browser-integrated. CSP, module timeout/isolation, real fetch abort and accessibility are not exercised. |
Explicit Tutor documentation-only surfaces and real gaps
These are current documented host surfaces, but there is no runnable Tutor implementation for them today:
- manifest
managedSkillscontributions and bundled skill packages; - mod-owned native identities, owned portraits and activation-time per-turn context providers;
- imperative Settings
form-inventorylayout metadata andselectedAgentIdremount behavior; - full product examples for Settings host arguments
runtimeScope,accessApi,refreshAgents, andsaveAgentExecutionEnvironment(the standalone declarative factory does demonstrateagents); - a dedicated four-concurrent-capability/timeout/shutdown stress example;
displayMessage, turn cancellation, and mod-owned session creation/model controls (available in Core, not exposed by Tutor’s lab).
The following have runnable Tutor code but still lack substantive production integration for some layers: diagnostic HTTP adapter endpoints, persistent mod-data through lifecycle update/uninstall, the outer protected-value registry and shell consumption, encrypted PostgreSQL secret storage, and browser UI mounting. Agents/operator, conversations, models, scheduler, invocation-scoped diagnostics, and both protected declaration/resolver forms now cross the current forked host and Core capability service with controlled stores/providers. npm run test:core proving activation/registration must not be reported as behavior verification for those surfaces.
Privileged exclusions
context.modManagement (mod-management-v1) and context.processExecution (execution-provider-v1) are intentionally absent from all runnable Tutor code and from the ordinary matrix. A regular manifest must not declare systemCapabilities. System classification, installation, MCP grants, diagnostic IDs, or mod-authorized availability do not grant these interfaces.
Run the checks
npm run build
npm test
npm run test:core
By default test:core resolves the sibling checkout at ../Burrow-Backend; override with BURROW_CORE_ROOT=/absolute/path when needed. Its Forge backend is an in-memory fixture and makes no paid provider call.
Delta review
On 26 October 2026, a delta review checked Tutor e9805f5a50a49b831dc29a757ae511ef916ded11 (2026.10.25.1) against Core 4df4b424e2b2856cb2c25c8464da7f806eb661e0. Tutor runtime examples are unchanged since the full review. The checked-in Core integration test now releases its deliberately held turn before teardown and expects Core’s default displayMessage metadata. This fixes fixture cleanup/expectations; it is not a new runtime capability or a test pass reported by this documentation review. No application tests were run.
1 November full documentation reconciliation
All Beginner and Advanced guides were statically compared with Tutor 5933593abf7b496a70c702e751f8c87ccb19889f, current Core contracts and implementation, and checked-in test declarations. Current Core supports external-turn attachments and additional scheduler job kinds that this deliberately narrower lab does not expose. Generic model generation does not expose the independent chat thinking-mode control. No application tests or live providers were run; historical pass receipts remain historical.
3 November host-contract delta review
Tutor 851ac61b6388104dfa093d6d68c3ad6f1f0ba575 is unchanged since the preceding daily review. A focused static check against Core 32dde3266a231777ddfec6dba141d6b9972a21fd and UI 4a17a8c73c588a7582835ca6ff50dcabe409c33c reconciled the filtered agent picker, owned-agent/context-provider APIs, and imperative Settings layout/selected-agent contract. These additions are documentation-only in Tutor. Existing source annotations and test receipts remain historical; no application, external-chat or live-provider tests were run.
7 November Core-only additions
Core's durable agent-run completion feed and live activity metadata are documented in Agents and operator. They are not implemented or tested by Tutor's current lab. Scheduler restart/terminal-receipt changes are described in Scheduler; this documentation-only reconciliation did not rerun application or integration tests.
8 November 2026 full documentation reconciliation
All Beginner and Advanced lessons, the canonical mod contract, runnable examples and test definitions were statically compared. Shared-context registration and current Settings layouts/entity navigation were added as documentation-only host contracts, not implemented Tutor examples. Existing narrower payload adapters, explicit consent, receipt/retry boundaries and historical test coverage remain distinguished from Core support. Reviewed source 93af5ed128f47d7f3259d648773404fb24a7a3d7 against Core assembly 1f77c9d0277585bfe1963ce3ab3d2cdf35f16b9a. No application tests, live chat/provider calls, paid generation, runtime edits or skill scripts were run. Documentation checks are separate from application acceptance.
10 November host-contract delta
Core's opt-in hidden-identity directory and the main UI panel's query forwarding are documented in Agents and operator and UI contributions. Tutor's identity route still uses default visible discovery. No new Tutor runnable route or browser integration coverage is implied; the Core/UI source and focused test definitions were inspected statically, not executed.
15 November 2026 full documentation reconciliation
All 20 site lessons were statically reconciled with Tutor e6b21379682d9c3942fa2f978391665bddca07c9, Core 29ca7b6cec378700503a587703adc1d82e9d6f6d and UI 171b19da7ce074fbcb19fa1ed20dfd58e9133cb5. Corrections distinguish PostgreSQL conversation reads and digest-bound continuation from legacy filesystem descriptions; document durable generation and Forge input/output bounds and scheduler byte-limited projections; and distinguish Archive update support from the legacy remount path used by Tutor. The installed example and its narrower adapters remain unchanged. Tutor still has no existing skill package to reconcile. This was static source/test-definition inspection and documentation/reference checking only, not an application test, browser acceptance, provider call or skill-script execution. Earlier execution receipts remain historical.
Native capability lab reconciliation (current working tree)
The earlier dated reviews above are preserved as history. The following additions were inspected against Core 86d8e47090e0c5d0b973cdde777eafc1682c9c62; execution receipts belong to this change, not the older baseline. See the runnable walkthrough and exact limits. The Beginner package and existing Advanced entrypoint remain unchanged.
| Surface | Runnable source | Test | Actual verification and limits |
|---|---|---|---|
agents.owned.list/create/read/update; capability/visibility flags; agents.list({includeHidden:true}) | server/advanced/native-agents.example.mjs | test/native-core-contract.test.mjs | Actual Core host/capability validation + registry normalization with controlled stores; regular/foreign denial, unknown flags, forged owner, hidden inventory, partial flag preservation. Not production transactional PostgreSQL selection or runtime tool visibility. |
agents.context.register and registerShared | same standalone server | same actual-Core test | Published real host; owner and ordinary shared resolution, logical session, pre-aborted owner denial and revocation. No prompt rendering, compression, inference, provider replacement/timeout matrix or native tool bridge execution. |
Owned referenceImages and forge.references get/put/remove | same standalone server | same actual-Core test | Real RPC/ownership and upload validator; in-memory portrait CRUD, invalid upload and regular identity denial. No artifact bytes/storage retention, reopening, revision-conditioned generation or paid image request. |
agents.runs.onCompleted/list/activity | same standalone server | same actual-Core test | Activation catch-up, two pages, serialized duplicate advisory wakes/checkpoint, cancelling and response_pending projection using controlled feed/activity. Production feed store/terminal publication, failure recovery and HTTP finish notification gates not integrated. |
Settings settingsSections.layout and setEntitySelector | ui/entity-settings.example.js | test/advanced-ui-contracts.test.mjs | Lightweight module shape/callback/disabled-ID rejection/cleanup; inspected current UI host types. Not browser or Backend integration; selector input uses {id,label}. |
Menagerie-specific visit logs and parent-inventory permissions are not part of this generic Core author contract. Session cancellation/model controls remain documented but not exposed by this new lab.