Skip to content

core: brain_update has no CLI equivalent #1356

Closed as not planned
Closed as not planned

Description

@schlessera

Part of #1341.

Context

The MCP server can change a document's frontmatter or append content ("brain_update", packages/core/src/mcp-server.ts:522; updateDocumentFields, packages/core/src/lib/ops/write.ts:77-122). There is no brain update subcommand, so a non-agent user, or a skill following "skills orchestrate, the CLI executes" (ROADMAP decision 3), has no deterministic CLI path for the same operation.

Delivered prerequisite #1349

Needed before an agent can start

needs: use-case — a concrete skill or user flow that needs it from the CLI. Without one, closing as "MCP-only by design" is an acceptable outcome; record that in docs/cli.md.

Scope

Out of scope

  • New frontmatter semantics.

Acceptance criteria

  • CLI and MCP produce identical file bytes for the same update on a fixture, asserted by a test.
  • Contract doc lists the new command and its --json shape.

Verification

bun run test packages/core

Contract impact

Additive CLI command: CONTRACT: commit, minor.

2026-10-09 triage: restored the blocked label for the existing canonical prerequisite; its unresolved driving use case remains required.

2026-10-10 triage at main 7e398dc207f2c4725f6c364331c3cd5d3112954d: shared core operations are delivered by1468/62cf4d6c. The former active dependency declaration is historical; preserve the workflow-cleared blocked label. The requested CLI update still needs its genuine driving use case, so needs: use-case and existing deferred priority remain. Shared operations alone do not establish demand or approve a new CLI contract.

2026-10-12 current-source reconciliation at main acec591c83a730e5d68f36bae2b807f95bb5d9c9: the MCP adapter now delegates to delivered shared updateDocumentFields; refreshed both verified entry/operation pointers. No driving CLI workflow has been supplied, so needs: use-case and deferred p3 remain. No new command or contract approval.

2026-10-24 source review at main dc5d3c73282c29a3f0098306d398743ee18ec791: refreshed the brain_update registration anchor; shared updateDocumentFields remains at its cited anchor. The deliberately missing CLI workflow remains needs: use-case; no command is approved or implemented.

2026-11-04: verified the moved brain_update registration at inspected main 53b862123d7b8e4c9d039859fabdc9fc6ad4cd36. The shared operation remains present; the explicit driving-use-case prerequisite is unchanged.

Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Verified the moved active source anchors and refreshed navigation. Historical measurements and source-bound failure receipts keep their identities; existing scope, rulings, needs, priority, assignment and release attribution are preserved. This source review supplies no new runtime qualification or epic completion.

Triage 2026-11-09 at main fb999b8ba: corrected the updateDocumentFields range. A search of the three public trackers and the shipped skills found no new CLI-driven update workflow (the add skill's terminal path extends documents through brain add append-match), so needs: use-case stands.

Activity

  1. added
    type: feat
    area: core
    priority: p3
    needs: use-case
    contract
    on Oct 9, 2026
  2. added
    blocked
    and removed
    blocked
    on Oct 9, 2026
  3. schlessera commented on Oct 10, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #1349 merged in #1468 (62cf4d6), its only listed blocker.

  4. schlessera commented on Oct 11, 2026

    @schlessera
    OwnerAuthor

    2026-10-12 triage: refreshed the moved MCP adapter and shared update operation pointers after #1349 delivery. The requested CLI equivalent still awaits its driving use case; p3, native parent and contract label are preserved.

  5. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 triage: refreshed the moved brain_update registration at inspected main dc5d3c7. Shared operation delivery is intact, but no requested CLI workflow supplies the missing use case. Preserve p3, contract, native #1341 parent and no readiness.

  6. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-09): brain_update is MCP-only by design. Closing as not planned.

    No driving use case for a CLI path appeared in any of the three public trackers, and the add skill extends documents through brain add append-match. The documentation note this issue asked for if it closed this way is filed as #3780. A CLI can be reconsidered if a concrete skill or user flow needs one; the shared updateDocumentFields operation from #1349 already exists. Milestone 0.45.0 is set as release context for the resolution, not as an implementation claim.

  7. removed
    needs: use-case
    on Nov 9, 2026
  8. added this to the 0.45.0 milestone on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corecontractpriority: p3type: feat

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions