Define canonical session workspace paths

This commit is contained in:
2026-11-29 23:59:15 +00:00
parent 816453b444
commit f923d75562
11 changed files with 110 additions and 64 deletions

View File

@@ -42,7 +42,7 @@ bundle path supplied by `internal/artifacts`. Exact physical paths belong in
Prepared references delivered to Notarius use session-durable paths owned by
`internal/artifacts` beneath
`cache/notarius/references/<sha256>/<prepared-basename>`. These verified
`inputs/references/<sha256>/<prepared-basename>`. These verified
content-addressed snapshots are outside run-local layout, survive ordinary
published-run cleanup, and are excluded from publish and restore enumeration.

View File

@@ -707,12 +707,12 @@ Durable session paths:
- `audio/**`
- `transcripts/**`
- `artifacts/**`
- `previous/**`
- `inputs/previous/**`
- `reports/**`
- `logs/**`
- `config/**`
- `runs/**`
- `cache/notarius/references/<sha256>/<prepared-basename>`
- `inputs/references/<sha256>/<prepared-basename>`
`manifest.json` is the versioned session-progress document. Narratio accepts
only `narratio.session-manifest.v2`. Do not edit unsupported session state to

View File

@@ -153,6 +153,13 @@ runner and restore entry points, not just the version comparison function.
## Stage 3 — Define the canonical workspace paths
**Complete.** Commit: `Define canonical session workspace paths`.
Verification: focused path-model, layout, reference-snapshot, and run-local tests
passed with Go 1.27.4. The broader `internal/stage` test run still has two
publication failures because previous-session publication enumeration uses the
old path; its migration belongs to Stage 18. Root reports/config paths remain
temporarily in use by producers until their routing changes in later stages.
**Read:** roadmap “Final layout and ownership”; [Workspace Internals](../internal/workspace.md).
Entry points: `internal/artifacts/paths.go`, layout creation in its local store,
`internal/config` path constants, and `internal/stage/run_local.go`.