ForgeDocs

Approved hosted command parity

Issue 657d63ee-249a-44ae-94e2-55549f84eea9 owns this approved disposition: 5 MIGRATE, 22 FOLD, 5 DROP. The table names implementation targets, not additional supported hosted commands. The hosted contract remains the authority for availability; implementation slices keep the parent Issue open.

Forge has one client mode: hosted. The native-owner mode is removed, so no row is reachable through a native root any more. A folder without a hosted marker is refused with FORGE_ROOT_UNAVAILABLE and the next step nforge host ROOT. Every name below that is not a hosted action refuses with HOSTED_ACTION_UNSUPPORTED and names the hosted command that does its job (retiredActions in src/agent-verbs.ts).

  • Shipped hosted actions: diff, peers, log, records and provenance. log uses the retained-output reader from both CLI and forge_check. records uses one current-authorized canonical page (100 heads and descriptors, no body hydration) or an exact id/version, under forge_work_overview. Continuations keep their original project, collection and filter; source references pin immutable bytes.
  • provenance reads canonical Candidate inputs and Lane-version history, including syncs, under forge_review. One changed file and 20 history versions per page; R2 manifests/blobs use verified batch transport. Continuations keep the Candidate/base/head/file/line selection and walk inputs and dependencies. Partial pages say historyComplete:false and mark line attribution partial. Operation requesters remain separate from unrecorded executor identities.
  • FOLD rows refuse and name their replacement; the replacement jobs that are not built yet keep their owning Issues (save.delivery for handoffs, Lane undo e7812d8f, session reports 40ad7abd).
  • DROP rows (view, views, save --preview, x undo-revert, x guidance) are removed from the CLI, MCP and docs. Stored wire names (viewId) are unchanged.
CommandAgent jobDecisionReplacement or target actionUse evidence / marginal context
diffInspect selected changesMIGRATEPaged diff with exact Lane/Candidate/State pins; exact bytes through show5283a92f; 10t
peersCoordinate edits to a pathMIGRATEBounded Lane/path peer read; reused by the first-write hook5283a92f; e6f4b0a6; 5t
reviewReview pinned changesFOLDdiff summaries/hunks and show; distinguish local unsaved bytes5283a92f; 0t
candidateInspect one checked integrationFOLDstatus {candidateId} with bounded inputs and check/acceptance pointers657d63ee; 0t
candidatesFind a Lane's integrationsFOLDLane status latest pointer and all participation pages through records657d63ee; 0t
viewUse the old Candidate spellingDROPRemove public alias after compatibility; retain persisted viewId and replay657d63ee; df34d40f; 0t
viewsUse the old participation spellingDROPRemove public alias after compatibility; retain stored keys and receipts657d63ee; df34d40f; 0t
provenanceExplain selected file/line contributorsMIGRATEPaged attribution/rationale under forge_review, pinned to Candidate/head657d63ee; 12t
recordsDiscover retained work and historyMIGRATEIndexed, paged summaries under forge_work_overview with parent/source IDs657d63ee; 8t
briefRecover task and next actionFOLDConcise instruction paths, task and recovery pins in start/open/status657d63ee; 0t
linkShare exact selected evidenceFOLDPinned URLs in existing receipts and source rows; no extra lookup657d63ee; 0t
logDiagnose a failing checkMIGRATECause in terminal receipts first, then bounded log pages in forge_check657d63ee; 58236de6; 18t
handoff / save --handoffSave delivery evidenceFOLDOptional save.delivery, including clean heads and outcome-only Lanes657d63ee; 0t
handoff-readRecover prior delivery contextFOLDCompact status.latestDelivery; older notes through records657d63ee; 0t
report / save --reportAttach optional session totalsFOLDLater optional save session report; reads through records40ad7abd; 0t
making-ofExplain an Intent's path to mainFOLDIntent-scoped records; later hosted view/metrics aggregation40ad7abd; 0t
pending-status / status --pendingFind interrupted or queued workFOLDCompact root status, records cursors and exact recovery command657d63ee; e34dcfe5; 0t
improveGroup repeated workflow frictionFOLDBounded planning summaries with report IDs, costs and fixing Lanes88d3cfba; 0t
save --preview (integrate)Diagnose saved-Lane interactionsDROPRemove standalone agent mode; retain preflight and composed check-only jobs657d63ee; 0t
land --resume-ready (land-ready)Continue dependency waitsFOLDOriginal landing replay/wait command and server-driven dependency wake657d63ee; 0t
x undo-syncRestore pre-sync Lane workFOLDx undo restores an earlier Lane State. Landed changes use checked revert.e7812d8f; 0t
land (saved heads)Submit saved work without local editsFOLDExisting finish protocol with explicit saved inputs/pins, without capture657d63ee; df34d40f; 0t
x acceptSubmit an exact checked CandidateFOLDland --save with exact Candidate/run under existing policy657d63ee; df34d40f; 0t
x undo-revertCompensate native optimistic revertDROPRetire native-specific agent surface; retain explicit checked compensation657d63ee; 0t
x cleanReclaim regenerable local artifactsFOLDExisting explicit prune/maintenance with pins and in-use safeguards995c8da9; 75170a57; 0t
x takeContinue another agent's LaneFOLDstart --open/status delivery and pending-operation pins; retain authorship657d63ee; 0t
x guidanceStore agent instructionsDROPRemove native agent surface; retain hosted guidance UI/API and repo instructions657d63ee; 0t
x pre-editObserve overlaps on first writeFOLDThe first-write hook reads board claims and notes; overlap notices were removed (Issue 853fcde3); incomplete reads fail opene6f4b0a6; 5283a92f; 0t
x install-hooksInstall first-write noticesFOLDLocal installer/first-run, reversible and idempotent, with off settinge6f4b0a6; 0t
x uninstall-hooksUndo hook installationFOLDDiscoverable local installer/settings inverse preserving other hookse6f4b0a6; 0t
x friction-triageRecord a friction dispositionFOLDExisting planning updates/comments with IDs, reasons and fix evidence88d3cfba; 0t
x define-checkConfigure an exact-source checkFOLDx configure-check with existing authority and definition pins657d63ee; df34d40f; 0t

Use evidence is the linked friction/implementation Issue per row; 657d63ee records the native-command discovery in docs Lane c8dec75d and owner approval a8947c0e. No hosted-use transcript is claimed for formerly unavailable commands. The retained native synthetic reader supplies the provenance output specification; records and log tests exercise their shared canonical/output readers and refusal paths.

t estimates tokens as marginal compact-list characters / 4, rounded up, with one action removed at a time: diff 38, peers 17, log 70, records 30, provenance 48 characters. Shared fields make these non-additive. Fold/drop rows add no alias or mode to the list (0t); their existing replacement is already charged there.

Migrated actions extend existing MCP tools. One schema generates CLI help, MCP accepted actions and the hosted command table; a guard rejects documented hosted actions that dispatch as unsupported. The generated help table and dispatch guard enforce this contract.

The no-growth guard in tests/mcp-tool-list.test.mjs retains eight tools and the measured pre-parity ceilings: tools/list 5,758 characters, Codex 5,874, Claude Code 5,746, descriptions 920. Current measurements are 5,670 / 5,786 / 5,658 / 675; short descriptions pay for restored actions, with full guidance behind help. See context budget.

Reads stay paged, current-authorized and source-pinned, with explicit incomplete coverage, bounded calls per page and zero idle calls. Retry identity and all continuations remain intact. Removal preserves history and existing human approval; this disposition adds no mandatory reports, telemetry, cleanup or retention policy.

records costs one query per 100-head/descriptor page; exact-version reads hydrate one selected record. log keeps its existing manifest + stream pages + selected chunk downloads. provenance uses at most three metadata queries per page plus batch object descriptors/download authorization (no per-file RPCs). Its 20-version, 3,000-file synthetic fixture transfers about 7.44 MB of State metadata and 366 bytes of selected source on a cold cache; the fixture process peaks around 375 MB, including its compiler and seeded data. These are synthetic observations, not live billing or performance-gain claims. All reads perform zero writes/wakes and zero idle calls. Large files retain the existing native attribution limits; incomplete history, rationale and dependency evidence is disclosed, never treated as independence.