Add independent native run report delivery

This commit is contained in:
2026-11-20 04:48:04 +00:00
parent 6f39bca841
commit 41dc1f5517
5 changed files with 348 additions and 57 deletions

View File

@@ -520,6 +520,24 @@ wording or requiring a particular generation summary.
## Stage 6: Add Separate Native Report Delivery
**Status: Complete.** Added presence-aware report paths, typed native report
formats with no default, and native completion hints. Validation precedes model
execution and file creation. Main delivery still uses the invocation reporter;
the separate file renders the same native result without its artifact-only
template, independently of quiet and stdout format. Ordinary create/truncate
writes handle render/write/close errors without making parents. CLI observation
collection and its old report-file writer have been removed; HTTP is unchanged.
Verified on Go 1.27.4 with focused integration tests, race checks, and vet:
automatic/explicit native report formats, extension independence, replacement,
literal `-` filenames, quiet and redirected subprocess stdout, preflight errors
before provider/file effects, unchanged existing reports on resultless failure,
stdout failure followed by a report attempt, report failure after main success,
native render failures, retained presentation/file errors, and domain status 4
surviving delivery failure. Subprocess checks invoke the native adapter in a test
executable; final shipped-binary verification follows the legacy-file cleanup.
Full-package compilation remains deferred to Stages 8–9 as previously recorded.
**Primary files:** CLI generation-delivery helpers and focused delivery tests.
1. Add `--report` as a presence-aware application file flag with path completion.