test-driver/workplans/TD-WP-0001-statehub-bootstrap.md
tegwick 04e9573b5a T04: deterministic semantic kernel
Alice/Bob/Carol runs end to end, deterministically, replayable from seed.
16 tests pass, no third-party dependencies.

- src/testdriver: intent, provenance, world, actions, drivers, observers,
  oracles, evidence, energy, scenario, runner
- lab/minimal.py: the SUT, exposing the independent observation channel
  required by D-07
- evidence is stratified S1/S2/S3; Runner refuses to attribute S2/S3 to an
  actor; claims are frozen and provenance-checked at construction
- missing evidence yields INCONCLUSIVE, which outranks PASS in the run verdict
- EnergyEvents captured, no scoring (H-005 dormant)

The observation channel records both stored state and an out-of-band
enforcement probe; their disagreement is an invariant and is what detects an
authorization defect that leaves the audit trail intact. A seeded
RevokeIsCosmetic lab fails the run via both the claim and that invariant.

Also closes TD-WP-0001-T02 (stack and commands now exist).

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

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 1629012@bnt-lap001
Assistant-Session: 78d4fb13-8a1e-474b-87a3-9b9261c49a39
2026-08-22 23:21:07 +02:00

66 lines
1.8 KiB
Markdown

---
id: TD-WP-0001
type: workplan
title: "Bootstrap State Hub integration"
domain: infotech
repo: test-driver
status: active
owner: codex
topic_slug: custodian
created: "2026-08-22"
updated: "2026-08-22"
state_hub_workstream_id: "a8573acc-44b5-5364-b0e3-6797c3e2e426"
---
# Bootstrap State Hub integration
Use-case-driven verification framework for integration, end-to-end, multi-user, authorization and security testing that matures tests from agentic exploration into deterministic regression.
## Review Generated Integration Files
```task
id: TD-WP-0001-T01
status: done
priority: high
state_hub_task_id: "d446eb01-442d-5309-92ca-d6832d09bbd0"
```
Review `INTENT.md`, `SCOPE.md`, `AGENTS.md`, and `.custodian-brief.md`.
Replace generated placeholders with repo-specific facts where needed.
## Verify Local Developer Workflow
```task
id: TD-WP-0001-T02
status: done
priority: high
state_hub_task_id: "39da4237-aaa3-5b4f-93c4-9cbf794f0850"
```
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.
## Seed First Real Workplan
```task
id: TD-WP-0001-T03
status: done
priority: medium
state_hub_task_id: "2e9e6f99-66c8-5771-bc95-f92716695037"
```
Create the first implementation workplan for the repository's most important
next change. After workplan file updates, run the sync locally from this repo
checkout:
```bash
statehub fix-consistency
```
**Done 2026-08-22.** Unblocked by TD-WP-0002-T04. `pyproject.toml` added;
`python3 -m pytest -q` is the whole workflow — stdlib only, no install step.
Commands and the architectural non-negotiables are recorded in `AGENTS.md`
under the repo-extensions marker, and in `README.md`.
Seeded workplan: `workplans/TD-WP-0002-vertical-spike-crystallization.md`.