specscore

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package specscore is the SpecScore spec-tree ingestion adapter: it parses `spec/` trees of repos managed by SpecScore (marked by a `specscore.yaml` at the repo root) into idea/feature entities and `declared` facts.

Feature: cli/studio/index (REQ: adapter-specscore)

Emitted predicates:

  • has-status — a feature's or idea's `**Status:**` line
  • has-ac — one fact per `### AC: <slug>` heading in a feature
  • contains — feature parent/child directory containment
  • sourced-from — feature → idea per the `**Source Ideas:**` line
  • promotes-to — idea → feature per the `**Promotes To:**` line

Subjects and objects that are spec entities are emitted repo-relative (`#<path-slug>`): features as `#<feature-id>` and ideas as `#ideas/<slug>`. The pipeline prefixes them with the workspace-scoped repo slug (fact-shape spec IDs: `<repo>#<path-slug>`).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter is the SpecScore spec-tree ingestion adapter. The zero value is ready to use.

func New

func New() Adapter

New returns the adapter.

func (Adapter) ID

func (Adapter) ID() string

ID returns the stable adapter id stamped into every emitted fact.

func (Adapter) Ingest

func (Adapter) Ingest(repoPath string) ([]fact.Fact, []fact.Warning)

Ingest parses the spec tree of the repo at repoPath. A repo without a specscore.yaml is not SpecScore-managed and yields no facts and no warnings. Per-file parse failures become warnings and skip only that file (REQ: partial-tolerance).

func (Adapter) Version

func (Adapter) Version() string

Version returns the adapter version stamped into every emitted fact.

Jump to

Keyboard shortcuts

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