Move attempt views to workspace path ownership

This commit is contained in:
2026-12-02 21:36:30 +00:00
parent 3d09745a79
commit 106036cf5b
14 changed files with 470 additions and 424 deletions

View File

@@ -33,7 +33,7 @@ previous-session cache paths remain session-durable and are never redirected
into run-local output space.
Polish and extraction write to actual run-local output, log, and debug paths.
Each attempt advances managed relative `logs/<stage>` and `debug/<stage>` links;
The artifact path owner advances managed relative `logs/<stage>` and `debug/<stage>` links;
skips do not rotate them. Restore has its own diagnostic attempt. Extraction
promotes validated lanes to flat artifacts; the original bundle remains in
the producing run until cleanup. See [Operations](../operations.md#local-state-layout).
@@ -97,7 +97,7 @@ syntax and exact deletion scope belong in [CLI](../cli.md#session-clean) and
## Implementation And Tests
- Path model and local store: `internal/artifacts/paths.go`,
`internal/artifacts/local.go`
`internal/artifacts/local.go`, `internal/artifacts/attempt_views.go`
- Run-local materialization: `internal/stage/run_local.go`
- Bundle validation and product promotion: `internal/stage/extract.go`
- Workspace modes: `internal/fileops/modes.go`