Files
jobtrackingapp/docs/ui-modernisation/ATTACHMENT_MUTATION_LIFETIME.md
T

1.5 KiB

Attachment upload/metadata completion

17 November 2026. Source a877b97d on codex/a3-ui-10, following local verified blob checkpoint 6c8a2f67 (push/ref readback failedHTTP502; no publication claim).

Upload and file-purpose/AI metadata changes capture the existing mounted job/session context before requests. Obsolete success/failure cannot mutate list state, refresh or notify; active feedback uses current language. A new application resets its upload indicator, and a previous upload's finally cannot clear the current upload indicator. Already-accepted server work is not reversed. Existing FormData files/jobId/header, metadata purpose/useForAi derivation, count/plural rules and endpoints are preserved.

Sixteen original regressions FAILED. Final87 cases/four suites PASSED (85 overlaps), including two added old/new upload busy-state controls; these controls were not part of the original red run. Project TypeScript, scoped ESLint, diff check and AST update PASSED (19,292 nodes/47,418 edges). Native/gzip/source bindings: evidence/attachment-mutation/SOURCE_RECEIPTS.json.

Mocked API/session/synthetic files only; no real uploads, tenant operations, provider, native browser, integrated security or release qualification. Two additional tests now reproduce retained rows and an open preview across job changes; that reset is a separate follow-up. Same-context competing reads/previews remain unqualified. Revert only this source commit to roll back; no data/schema change. Final A3/I18N/build/security/release gates remain open.