Skip to content

Expose canonical Canon document-registration write surface #190

Description

@chitcommit

Problem

The Canon implementation already defines register_document / deprecated alias canon_register_document in chittyos/chittyentity/workers/chittyagent-canon/src/tools.ts, and the generated ChittyMCP inventory references the Canon registration tool. However, the currently connected Canon/ChittyMCP surface available to clients does not expose a usable Canon document-registration write action.

This blocks a governed flow such as:

draft/provisional Canon spec -> register_document -> canonical URI/registration receipt -> downstream projection sync

The immediate example is chittycanon://docs/tech/spec/chittyentity-projection-taxonomy: the normative spec can exist in GitHub, but live Canon registration cannot be completed through the active tool surface.

Required boundary

Do not add an ad hoc bypass or duplicate registry. Reconcile the existing Canon implementation through the canonical MCP/gateway projection with normal auth, ownership, approval, and audit controls.

Acceptance criteria

  • Active Canon MCP projection exposes document registration using the existing Canon capability/contract.
  • Canon read tools and write tools resolve through the same canonical service identity rather than a parallel endpoint.
  • Write path enforces the applicable ChittyAuth/approval boundary and records provenance/audit metadata.
  • A client can register a provisional spec and receive its canonical URI plus registration record/receipt.
  • /health and /api/v1/status (or canonical MCP status equivalent) identify the live Canon projection used for the write.
  • Generated MCP/tool inventory and actual exposed tool surface agree; drift is detectable.
  • No new schema/database/service boundary is introduced unless existing canonical storage is proven insufficient.

Evidence

  • Implementation: chittyos/chittyentity/workers/chittyagent-canon/src/tools.ts defines register_document.
  • Generated inventory: chittyos/chittymcp/docs/generated/mcp-tool-inventory.json contains the Canon registration projection.
  • Current client/tool exposure does not provide a callable Canon registration write surface.

Related

  • chittyfoundation/chittycanon#49 — provisional ChittyEntity projection taxonomy.
  • Follow the Capability Governor rule: one canonical capability, many controlled projections, no unmanaged clones.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions