record

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package record is the read side of `abcd <id>`: dispatch on a record id — iss-N, itd-N, spc-N, adr-N — and report what the record is, its links, and the concrete next move for its lifecycle state (spc-26). It is a leaf package over the capture, intent, and spec read paths plus a thin adr reader; nothing imports it back, and nothing here writes or knows a transport.

Index

Constants

This section is empty.

Variables

View Source
var IDRe = regexp.MustCompile(`^(iss|itd|spc|adr)-[0-9]+$`)

IDRe is the family gate: the only positional shapes the root command routes here. Anything else stays on the unknown-command path, byte-for-byte.

Functions

func RecommendedVerbPaths

func RecommendedVerbPaths() []string

RecommendedVerbPaths enumerates every abcd verb path the next-move table can emit — including verbs arriving via passed-through intent.Ready remedies — for the surface-side anti-drift test.

Types

type Description

type Description struct {
	ID        string            `json:"id"`
	Family    string            `json:"family"` // issue | intent | spec | adr
	Title     string            `json:"title"`
	Status    string            `json:"status"` // folder/bucket, directory-as-truth
	Path      string            `json:"path"`
	Links     map[string]string `json:"links,omitempty"`
	NextMoves []string          `json:"next_moves,omitempty"`
}

Description is the structured answer to "what is this, and what is my next move". Paths are repo-relative; Links carries the record's outbound edges (spec_id / intent / promoted_to / resolved_by.* / superseded_by) as present.

func Describe

func Describe(repoRoot, id string) (Description, error)

Describe locates id in its store (any status folder or bucket) and renders the read-only description. A shape-matching id found in no store is an error naming the stores searched; Describe never writes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL