reuse-surface/workplans/archived/260615-REUSE-WP-0009-cli-hardening.md
tegwick 1df9c19c96
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
ci / validate-registry (push) Has been cancelled
Archive closed workplans with completion-date prefixes
Moves the remaining finished workplans into workplans/archived/. Prefixes
use each workplan's own completion date per the convention, not the date
the archive sweep ran.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 4609@bnt-lap001
Assistant-Session: 085df492-f02a-4fe6-acad-2aa52789fe1b
2026-09-20 22:39:35 +02:00

55 lines
No EOL
1.3 KiB
Markdown

---
id: REUSE-WP-0009
type: workplan
title: "CLI hardening and test suite"
domain: infotech
repo: reuse-surface
status: finished
owner: codex
topic_slug: helix-forge
created: "2026-06-15"
updated: "2026-06-15"
state_hub_workstream_id: "9121d16f-879f-4db3-9df6-06f7543481d8"
---
# CLI hardening and test suite
Raise registry tooling reliability toward R3 with automated tests and stricter
CI gates after WP-0006 relation hygiene.
## Add pytest Suite
```task
id: REUSE-WP-0009-T01
status: done
priority: high
state_hub_task_id: "57d0869a-38bb-409a-b5b1-b3c73ff31a96"
```
Add `tests/` covering validate, query, export, overlaps, federation compose,
graph, and catalog commands. Add `[dev]` optional deps and document
`.venv/bin/pytest` in `AGENTS.md`.
## Add Fail-On-Warnings Flags
```task
id: REUSE-WP-0009-T02
status: done
priority: high
state_hub_task_id: "d10fde06-e09b-4292-b6c8-ced5e5ef213c"
```
Add `--fail-on-warnings` to `validate` and `graph --check`. Use in CI once
WP-0006 relation hygiene is complete.
## Tighten CI Pipeline
```task
id: REUSE-WP-0009-T03
status: done
priority: medium
state_hub_task_id: "79c0fa70-7ec1-4762-9a7c-9783f0997016"
```
Update `.gitea/workflows/ci.yml` to run pytest and fail on relation warnings.
Record reliability evidence on `capability.registry.register`.