Document S3 planning and close the audit finding

This commit is contained in:
2026-12-02 13:16:14 +00:00
parent c1f43de5f9
commit 59e324a8aa
8 changed files with 51 additions and 17 deletions

View File

@@ -140,8 +140,14 @@ Accepts the same stage/range, force, artifact, and context selections as `run`.
Reports execution/reuse actions and reasons, analysis targets, prerequisite work,
and publication mappings through shared planners. Planning reads existing state
without creating a workspace, changing manifests, acquiring execution locks, or
initializing stage adapters or invoking requirements inspection. It does not
predict unknown output identities.
initializing stage-execution adapters or invoking requirements inspection. For a
selected, previously successful S3 preparation eligible for reuse, planning
composes object storage and reads current audio identities. An inspection failure
or insufficient identity evidence schedules preparation with an unverified-source
reason; dependent decisions reflect that projected rerun. Object-store
initialization errors fail the command. The check observes sources at planning
time and does not guarantee they remain unchanged during execution. Planning does
not predict unknown output identities.
## Preflight

View File

@@ -75,8 +75,10 @@ model and the same pure pre-execution decision over recorded status, force, and
normalized resume validation. Planning applies that decision and modeled
selected-stage transitions to cloned session state; it does not persist, create
invocation state, initialize stage-execution adapters, or claim to observe an
execution result. Command configuration loading can still retrieve a
missing session file through configured remote storage. It retains the initially
execution result. For eligible S3 preparation reuse, the projection receives a
read-only object-store collaborator for the shared resume validator. Command
configuration loading can still retrieve a missing session file through
configured remote storage. It retains the initially
composed pipeline and selected campaign while resolving either a local or
downloaded remote session, so one invocation cannot mix pipeline revisions.
Analyze planning additionally exposes the artifact closure's targets,

View File

@@ -17,6 +17,10 @@ and remote-lock inspection while the context remains active. Preparation success
is persisted even when later readiness fails; readiness itself creates no stage
or reusable success record.
The composed store is passed to the shared preparation validator. If source
inspection fails, preparation attempts the ordinary rerun, and its report retains
the unverified-source reason alongside any resulting preparation failure.
Shared finalization retains terminal manifest evidence while locked. Normal
pipeline execution projects that evidence into its run-artifact inventory;
standalone preflight returns its readiness report without building that inventory.

View File

@@ -83,6 +83,9 @@ effective campaign/session, canonical party, derived-player and resolved glossar
bytes, local audio membership/checksums, or S3 key/size/entity-tag identity with that provenance.
Source relocation with equivalent effective documents, names, and bytes remains
reusable; changed or unavailable evidence causes a normal prepare rerun.
Confirmed mismatches and sources that cannot be verified have distinct reasons;
the latter retains the inspection error. Planning supplies the same S3 identity
collaborator to this validator without running preparation.
## Related Contracts And Tests

View File

@@ -131,6 +131,11 @@ dependent stage records through ordinary preparation rules. Preparation remains
available for reuse if a later readiness check fails. Preflight stops before
processing, publishing, notification, or cleanup.
For S3 audio, preflight checks source identity through ordinary preparation
reuse and can download current inputs when preparation runs. An access failure
can prevent readiness. In contrast, [session planning](cli.md#session-plan)
only inspects the source evidence and projects the resulting work.
Audita checks a synthetic transcript. Notarius uses a verified trimmed
transcript only when the normal work projection indicates its producers will
not rerun; otherwise it uses a synthetic input. These checks do not establish

View File

@@ -41,7 +41,8 @@ their scope. Unless assigned otherwise, a finding remains independent audit
remediation. Shared code does not make a refactoring a prerequisite or assign
the whole finding to a roadmap.
Ten entries are closed by the safety, transfer, and audio discovery work; 33
Eleven entries are closed by the safety, transfer, audio discovery, and S3
planning work; 32
remain open. **Planned** identifies an agreed remedy awaiting
implementation. **Potentially eliminated** requires verification that the offending
lifecycle is removed. **Coordinate** identifies shared changes, not a commitment
@@ -408,19 +409,24 @@ Related: [CAT-13](#cat-13--p2-give-s3-session-planning-the-evidence-needed-for-t
### CAT-13 — P2: Give S3 session planning the evidence needed for truthful reuse decisions
Status: Open
Status: Closed
**Disposition / owner.** Independent planning/preflight remediation — the [agreed decision](discussion.md#3-inspect-s3-when-planning-and-preflighting)
selects read-only S3 checks for both commands. Coordinate with the
[restore roadmap's planning changes](../session-restore.md#preparation-and-readiness-support-artifact-only-execution);
skipping covered audio work does not fix planning for raw-audio sessions. Use the
[audio roadmap's shared selection rules](../audio-inputs.md#one-selection-responsibility)
when composing raw-audio evidence; discovery consolidation alone does not supply
the missing remote collaborator.
**Disposition / owner.** Implemented and verified under the
[planning/preflight decision](discussion.md#3-inspect-s3-when-planning-and-preflighting).
**Closure.** Planning supplies the object store to the shared preparation
validator for eligible S3 reuse. Unavailable evidence reports an unverified
source and preserves the normal rerun. The application regressions in
[`plan_s3_test.go`](../../../internal/app/plan_s3_test.go) and
[`session_readiness_test.go`](../../../internal/app/session_readiness_test.go)
cover observed reuse, change, access failure, and preflight cancellation;
[`prepare_resume_test.go`](../../../internal/stage/prepare_resume_test.go)
covers unavailable and insufficient identity evidence. Full tests, race tests,
vet, and build pass on Go 1.27.4.
Original findings: [FC-03](01-correctness.md#fc-03--p2-session-planning-reports-reusable-s3-preparation-as-changed).
**Issue.** The planning projection omits the object store needed to inspect S3
**Original issue.** The planning projection omits the object store needed to inspect S3
audio identities. Resume converts that missing collaborator into 'inputs changed',
so plan can predict prepare reruns and dependent invalidation while actual
execution reuses identical evidence.

View File

@@ -201,7 +201,7 @@ importing published artifacts._
## 3. Inspect S3 when planning and preflighting
Status: Read-only S3 checks agreed
Status: Implemented and verified
Finding: [CAT-13](catalog.md#cat-13--p2-give-s3-session-planning-the-evidence-needed-for-truthful-reuse-decisions).
@@ -233,6 +233,14 @@ should be identified as such rather than reported as proven content change.
Use existing command failure/reporting conventions where they fit. The lookup
does not guarantee that S3 remains unchanged between planning and execution.
### Completion
The [source diagnostic](https://forge.maximumdirect.net/eric/narratio/commit/c0c8a95f7c93a2908cbe82c53f31119bd23da468),
[planning composition](https://forge.maximumdirect.net/eric/narratio/commit/11de2262a0d7b3f17118b00fa26a6ca85ae5479e),
and [preflight verification](https://forge.maximumdirect.net/eric/narratio/commit/c1f43de5f98a0b8cda0fe9e97e791b72d940a838)
implement the decision. The [catalog closure](catalog.md#cat-13--p2-give-s3-session-planning-the-evidence-needed-for-truthful-reuse-decisions)
links the regression coverage and validation.
Operator response:
_Read-only S3 checks approved; no further product choice identified here._

View File

@@ -1,6 +1,6 @@
# CAT-13: Accurate S3 Planning and Preflight Checks
Status: Pending
Status: Complete
## Purpose and scope
@@ -163,7 +163,7 @@ avoid incidental exact call counts or ordering.
## Stage 4: Document the boundary and close CAT-13
Status: Pending
Status: Complete
1. Update [CLI planning semantics](../cli.md#session-plan) to explain read-only
remote source inspection, existing action/reason reporting for unverified