Skip to content

POC: First-class Documents in CALM Hub  #2981

Description

@LeighFinegold

Interested in being involved in this PoC? Add a comment on this issue.
Are you a maintainer who wants to help guide development? Please chip in by commenting on this issue too.

Executor of POC: @101Steeps

Aim

Prove, with a thin end-to-end proof of concept, that a CALM document (an OKF Markdown + structured-frontmatter artefact such as a Solution Architecture Document) can be authored, validated, pushed to CALM Hub via the calm workspace workflow, versioned, and retrieved as a first-class artefact rather than a Decorator, delivering the PoC agreed in #2866 and building on the #2791 decision (confirmed in Office Hours 2026-07-30, #2905) that document support is a first-class schema concept, not something implemented through decorators.

Objectives

  1. Expose document endpoints in CALM Hub: a first-class, namespace-scoped Document resource that stores and serves documents (Markdown + structured frontmatter source e.g. OKF, never rendered binaries).
  2. Make documents versioned first-class artefacts, mirroring the versioning other CALM Hub artefacts already receive.
  3. Publish through the existing calm workspace → Hub workflow, so drift detection (check) and versioning (bump) come "for free" and the document is managed alongside its architecture.
  4. Validate that an uploaded document conforms to the OKF frontmatter / basic-metadata contract.
  5. Produce evidence to answer the decorator-versioning question raised in Design Discussion: Introduce a Knowledge Decorator for Architecture Documentation #2866: when a document is linked, do decorators need to become versioned documents, or do we mint a new decorator on each version bump?
  6. Demonstrate the full value cycle end-to-end (author → validate → publish → retrieve) against a local CALM Hub.

Background & decision record

Value cycle

Image

Scope

In scope (minimum viable slice):

  • One document type end-to-end (e.g. a SAD-style document or knowledge-intent document).
  • Store and serve source (Markdown + frontmatter).
  • Basic frontmatter/metadata validation on write.
  • calm workspace publish and retrieval demo.

Out of scope (follow-ups):

Constraints & guard-rails

Definition of done

  • The child issues are delivered (endpoint, validation, workspace publish) and the render/register step is folded into CALM-Hub Decorator Registry and Views #2792.
  • A user can calm workspace push a document and retrieve it from CALM Hub.
  • The decorator-versioning question has evidence to inform a decision.

Related issues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions