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

@@ -19,9 +19,8 @@ Directory bundles are not promoted by `internal/fileops`; extraction keeps
the original bundle in its run until cleanup and promotes individual validated
products.
Fileops updates, inspects and removes recognized managed latest-attempt links
without following their targets, including dangling links. Unrelated entries are
left alone and conflicting managed names are rejected.
The workspace path owner manages latest-attempt links; fileops provides confined
directory creation and removal mechanics.
## Cleanup Contract

View File

@@ -24,5 +24,5 @@ publish. See [operations](../operations.md#cleanup).
## Implementation And Tests
`internal/stage/cleanup_plan.go`, `cleanup.go`, `internal/fileops/cleanup.go`,
`attempt_views.go`, and their tests own authorization, inspection, managed view
`internal/artifacts/attempt_views.go`, and their tests own authorization, inspection, managed view
removal and confined deletion.

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`