2026-06-22 23:16:25 +02:00
|
|
|
|
## First Session Protocol
|
|
|
|
|
|
|
2026-09-05 19:59:11 +02:00
|
|
|
|
Triggered when `get_domain_summary("financials")` shows **no workplans**.
|
2026-06-22 23:16:25 +02:00
|
|
|
|
The project is registered but work has not yet been structured.
|
|
|
|
|
|
|
|
|
|
|
|
**Step 1 — Read, don't write**
|
2026-09-05 19:59:11 +02:00
|
|
|
|
- `~/the-custodian/canon/projects/financials/project_charter_v0.1.md` — purpose, scope
|
|
|
|
|
|
- `~/the-custodian/canon/projects/financials/roadmap_v0.1.md` — planned phases
|
2026-06-22 23:16:25 +02:00
|
|
|
|
- Scan repo root: README, directory structure, existing code or docs
|
|
|
|
|
|
|
|
|
|
|
|
**Step 2 — Survey in-progress work**
|
|
|
|
|
|
Look for TODOs, open branches, half-finished files. Note done vs. started but incomplete.
|
|
|
|
|
|
|
2026-07-08 14:50:25 +02:00
|
|
|
|
**Step 3 — Propose workplans to Bernd**
|
|
|
|
|
|
Propose 1–3 workplans — each a coherent strand, weeks to months, anchored to a
|
2026-06-22 23:16:25 +02:00
|
|
|
|
roadmap phase. **Wait for approval before creating.**
|
|
|
|
|
|
|
2026-09-05 19:59:11 +02:00
|
|
|
|
**Step 4 — Write the workplan file; Repo Manager projects it (ADR-001)**
|
2026-06-22 23:16:25 +02:00
|
|
|
|
```
|
2026-09-05 19:59:11 +02:00
|
|
|
|
workplans/COMMERCE-WP-NNNN-<slug>.md ← write this, commit it
|
2026-06-22 23:16:25 +02:00
|
|
|
|
```
|
2026-09-05 19:59:11 +02:00
|
|
|
|
Then run the deterministic, forge-derived sync — do **not** call
|
|
|
|
|
|
`create_workplan`/`create_task` yourself:
|
2026-07-08 14:50:25 +02:00
|
|
|
|
```bash
|
2026-09-05 19:59:11 +02:00
|
|
|
|
uv run --project ~/repo-manager rmgr sync --path . --push
|
2026-06-22 23:16:25 +02:00
|
|
|
|
```
|
2026-09-05 19:59:11 +02:00
|
|
|
|
Repo Manager writes deterministic `state_hub_workstream_id` and
|
|
|
|
|
|
`state_hub_task_id` values, pushes the file, verifies `primary/railliance01`,
|
|
|
|
|
|
and asks central to derive that exact Forgejo commit. If connectivity is down,
|
|
|
|
|
|
the queued receipt is pending evidence; rerun the same command later.
|
2026-06-22 23:16:25 +02:00
|
|
|
|
|
|
|
|
|
|
**Step 5 — Record the setup**
|
|
|
|
|
|
```
|
|
|
|
|
|
add_progress_event(
|
2026-09-05 19:59:11 +02:00
|
|
|
|
summary="First session: structured financials into N workplans, M tasks",
|
2026-06-22 23:16:25 +02:00
|
|
|
|
event_type="milestone",
|
|
|
|
|
|
topic_id="fe2aaa78-9c20-4feb-b3d2-4fe0529572a3",
|
2026-07-08 14:50:25 +02:00
|
|
|
|
detail={"workplans": [...], "tasks_created": M}
|
2026-06-22 23:16:25 +02:00
|
|
|
|
)
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Delete or archive this file once past first session -->
|