Bootstrap and first implementation

This commit is contained in:
2026-06-15 01:04:30 +02:00
parent ae89e76264
commit a28a79956b
12 changed files with 1313 additions and 15 deletions

View File

@@ -4,11 +4,11 @@ type: workplan
title: "Bootstrap State Hub integration"
domain: helix_forge
repo: reuse-surface
status: ready
status: finished
owner: codex
topic_slug: helix-forge
created: "2026-06-14"
updated: "2026-06-14"
updated: "2026-06-15"
state_hub_workstream_id: "293ef16d-c15b-41cc-9258-4a3a233f4bf2"
---
@@ -20,7 +20,7 @@ Capability registry for planning and implementation reuse based on discovery and
```task
id: REUSE-WP-0001-T01
status: todo
status: done
priority: high
state_hub_task_id: "18c811c8-f9f6-4452-b3f0-b713c91918a4"
```
@@ -28,11 +28,17 @@ state_hub_task_id: "18c811c8-f9f6-4452-b3f0-b713c91918a4"
Review `INTENT.md`, `SCOPE.md`, `AGENTS.md`, and `.custodian-brief.md`.
Replace generated placeholders with repo-specific facts where needed.
Completed by reviewing the generated integration files, preserving
`.custodian-brief.md` as generated output, and refining `SCOPE.md` to the
actual registry-first repository boundary. `INTENT.md` already contained
repo-specific intent and maturity model content; no placeholder replacement was
needed there.
## Verify Local Developer Workflow
```task
id: REUSE-WP-0001-T02
status: todo
status: done
priority: high
state_hub_task_id: "0877cf67-6abe-48c3-b76c-df552620d678"
```
@@ -41,11 +47,16 @@ Identify the repo's install, test, lint, build, and run commands. Add or refine
those commands in the agent instructions so future coding sessions can verify
changes confidently.
Completed by adding the local developer workflow to `AGENTS.md`. The repository
is documentation-only: no install, build, runtime service, package manifest, or
configured test runner exists. Current verification is `rg --files`, `git diff
--check`, and State Hub ADR-001 consistency sync after workplan changes.
## Seed First Real Workplan
```task
id: REUSE-WP-0001-T03
status: todo
status: done
priority: medium
state_hub_task_id: "f480aa11-f7e1-45fe-bf0b-4a3c164eb85b"
```
@@ -56,3 +67,7 @@ next change. After workplan file updates, run from `~/state-hub`:
```bash
make fix-consistency REPO=reuse-surface
```
Completed by `REUSE-WP-0002`, which seeds the MVP registry foundation:
schema, templates, sample capabilities, index, validation guidance, and agent
registry instructions.

View File

@@ -0,0 +1,129 @@
---
id: REUSE-WP-0002
type: workplan
title: "MVP registry foundation"
domain: helix_forge
repo: reuse-surface
status: finished
owner: codex
topic_slug: helix-forge
created: "2026-06-15"
updated: "2026-06-15"
state_hub_workstream_id: "32e0f249-65dd-4401-831c-736b229c5865"
---
# MVP registry foundation
This workplan implements the first registry artifacts required by
`specs/ProductRequirementsDocument.md` section 15 (MVP Requirements) and section
16 (MVP Acceptance Criteria). The repository already has `INTENT.md`, the
product requirements, use case catalog, and capability maturity standard under
`specs/`. The remaining MVP work is to make the registry usable by humans and
agents.
## Design decisions
- **Canonical format:** Markdown capability entries with YAML front matter under
`registry/capabilities/`. The index at `registry/indexes/capabilities.yaml`
is the machine-readable discovery surface for agents.
- **Schema alignment:** Follow `INTENT.md` and `specs/CapabilityMaturityStandard.md`
section 10. Internal maturity uses `maturity.discovery` and
`maturity.availability`. Consumer evidence uses `external_evidence.completeness`
and `external_evidence.reliability` — not nested under `maturity`.
- **Sample capabilities:** Seed three helix_forge entries illustrating different
vectors: registry meta (`capability.registry.register`), implementation-ready
feature control (`capability.feature-control.evaluate`), and research-heavy
identity canon (`capability.identity.vocabulary-canonicalize`).
- **Validation:** Document manual validation rules in `registry/README.md` and
`tools/README.md` for MVP. Automated CLI validation is out of scope here.
## Define Capability Schema
```task
id: REUSE-WP-0002-T01
status: done
priority: high
state_hub_task_id: "431edb19-2166-4715-bb3d-4428149aa2bc"
```
Create `schemas/capability.schema.yaml` as a JSON Schema draft (YAML syntax)
for registry entry front matter. Cover stable IDs, `maturity` (discovery and
availability only), `external_evidence`, discovery scope fields, availability
artifacts, relations, evidence references, and consumer guidance. Enum values
must match `specs/CapabilityMaturityStandard.md`.
## Create Capability Entry Template
```task
id: REUSE-WP-0002-T02
status: done
priority: high
state_hub_task_id: "a4763385-954f-4141-9f16-a85e96704f46"
```
Create `templates/capability-entry.template.md` as the Markdown-first authoring
template. Include YAML front matter with required fields, commented guidance
for assessors, and placeholders for evidence, relations, and consumer guidance.
The template must be consistent with the schema from T01.
## Seed Sample Registry Entries
```task
id: REUSE-WP-0002-T03
status: done
priority: high
state_hub_task_id: "96078fbb-f2cc-4d4f-ac7c-6a1744c33e0b"
```
Create three sample entries under `registry/capabilities/`:
- `capability.registry.register.md` — D3/A0, meta registry capability
- `capability.feature-control.evaluate.md` — D5/A4, implementation-ready example
- `capability.identity.vocabulary-canonicalize.md` — D4/A0, research/planning example
Each entry must conform to the schema and illustrate distinct maturity vectors.
Include relations between entries where appropriate.
## Build Capability Index
```task
id: REUSE-WP-0002-T04
status: done
priority: medium
state_hub_task_id: "19e0d200-fe1f-4273-9f47-abdf4a67b517"
```
Create `registry/indexes/capabilities.yaml` as a manually maintained index.
Include IDs, names, summaries, compact maturity vectors, domain, and paths to
entry files. The index must list all three sample capabilities from T03.
## Add Validation And Search Guidance
```task
id: REUSE-WP-0002-T05
status: done
priority: medium
state_hub_task_id: "bf0dd838-9c13-480e-93b9-47d4ae5edc82"
```
Create `registry/README.md` and `tools/README.md` documenting:
- Required and recommended fields
- Manual validation checklist (schema enums, relation ID format, broken references)
- Search/filter guidance for UC-RS-004, UC-RS-005, UC-RS-006, and UC-RS-015
- How to add a D0/A0/C0/R0 entry with minimal friction (MVP acceptance criteria)
## Extend Agent Registry Instructions
```task
id: REUSE-WP-0002-T06
status: done
priority: medium
state_hub_task_id: "a78fc037-b432-4af3-a068-132690344bb2"
```
Add a **Capability Registry** section to `AGENTS.md` explaining how coding
agents should orient to the registry, query the index, add or promote entries
using the template, validate manually, and avoid duplicating existing
capabilities. Reference paths created in earlier tasks and map guidance to MVP
acceptance criteria in `specs/ProductRequirementsDocument.md` section 16.