End-To-End Narrative
Current CLI Journey
- A person or agent works with a local text or Markdown file.
- They select a range and invoke
cite-selection, optionally supplying a handle, tags, and a note. - Cite2Site records accepted evidence, locator, artifact identity, and handle
binding in
.c2s. - The source artifact remains unchanged.
statusreplays citation history against the current artifact observation.exportgenerates flat and grouped JSON plus MkDocs projection files.- A future agent can consume the structured projection rather than receiving a copied conversational log.
Intended Integration Journey
- A user works in an editor, browser, document tool, or another supported surface.
- They select evidence and choose
Cite with C2Sfrom a native context menu. - The integration calls the same citation contract as the CLI; it does not create an overlay database or source marker.
- Later, the integration calls
lookup-actionsfor the region. If citations overlap, it presents an ordered picker before any mutation. - Once recovery commands exist, accepted evidence, relocation, retraction, and restoration will append compensating events rather than rewrite history.
- Grouped projections make the generated site navigable by artifact, handle, tag, status, and batch. Default projections are metadata-only; richer flat projections require the explicit repository policy described in the protocol.
The key design choice is that neither the original artifact nor the generated site is the citation authority. Authority remains in append-only history.