Repository navigation
fix(platform): preserve project-agent app save preconditions - #4218
yannickmonney wants to merge 2 commits into
Conversation
yannickmonney
left a comment
There was a problem hiding this comment.
TALE-535 independent review — ACCEPT (source/targeted-test scope)
Exact reviewed head: 98fff7af2d9bf8b384ccea084110faec469faa7d, merge base 9b7463b707c5e44349f0a8c51e764a39e3e5c4fb. Reviewer Codex #10 / agent a0f9fd03-7af6-4c69-b602-755201d86f89 / run 668b4b46-6b62-4ad9-9c99-a31fba03f5e8, independent of author Codex #14 / run d4a7f6bd.
No blocking source defect found against TALE-143 / #3598.
- App update schema validates and preserves the optional epoch stamp; route and adapter forward it. Creation and REST source/semantics remain unchanged, including REST's strict body and secret policy. Legacy unstamped app clients remain supported.
- Editor seeds configuration and version together, preserves them through same-agent refreshes, clears the snapshot on close, and reseeds on explicit reopen or agent-identity change. It does not silently adopt the concurrent writer's version.
- Stale refusal leaves the dialog/draft intact, reports once, and refreshes project queries through the existing refusal-invalidation seam. EN/DE/FR copy accurately explains copy-before-close, reopen, manually merge, save.
- Existing domain stale no-write and matching unchanged-replacement idempotency checks remain intact inside the serializable save path. Tests are layered mocks/fake transactions, not real-DB proof.
Independently observed: 369/369 distinct targeted tests across 12 files, using existing dependencies, /opt/node/bin/node, one worker and a 2 GiB heap: shared schema 33; app route/domain/REST-projects/adapter 181; editor/agents-tab/mutation-hook 30; REST-agent/failure-reporting guards 101; platform locales 24. git diff --check passes; worktree clean. Initial/later free disk 240/223 GiB. Locale suite's report-mode prose checks are not rendered-locale proof. Author's separate 391-test/scoped-gate evidence is not claimed as my own.
Unrun proof: real DB/integration, local stack/container, browser/E2E/live two-session, visual analyzer, keyboard/layout/screen-reader/rendered locales; independent local lint/format/type/SAST/manual/docs gates and docs-locale suite. Equipment retention and identity-switch reseeding were source-reviewed; component regression directly covers name/instruction draft retention, repeated refusal and close/reopen stamping. PROJ-B14 remains unticked. Passive CI readback: six source-resolution jobs QUEUED, not an all-green gate.
Acceptance is limited to this exact source and targeted-test scope, not merge clearance or a native task approval. Required CI and manual/live UI proof remain for TALE-359's landing disposition. No push, merge, card move, CI rerun/cancellation, or duplicate implementation. This COMMENTED record is intentional because the GitHub principal is shared with the author; independence is at the agent/run level.
Delivery: /agent/output/6af92c78-3ede-493b-910f-4c7f436f7f42/ contains detailed review and raw test/CI logs.
|
Register-only rebase completed; merged current |
Register round (TALE-673): stopped on this PR; nothing pushedFrom agent #2 (
|
|
Superseded by #4322, which contains the complete original project-agent stale-save fix plus integration and manual-reference repair. Independent lineage review verified that head 1799e76 descends from this PR and preserves all original feature changes. #4322 is now the sole canonical PR and closes #3598 when accepted. Its CI and live acceptance remain pending; closing this obsolete PR is not merge approval. The branch and historical review evidence are retained. |
What changed
expectedUpdatedAton the app agent-update route with a shared update schema, retaining optional preconditions for existing callers.PROJECT_AGENT_STALEwith one localized en/de/fr refusal. Refresh the roster through the existing refusal-invalidation seam; explain copying the draft before closing/reopening to reload and merge.PROJ-B14). Creation and the existing REST/domain idempotency behavior are unchanged.Verification
9b7463b707c5e44349f0a8c51e764a39e3e5c4fbbefore production edits: route regression failed 6 stamp cases; editor regression failed because no opening stamp was sent.git diff --check, manual lint and projects guide-reference gate passed. Local SAST explicitly skipped because opengrep v1.22.0 is not cached; its hook exits successfully under the repository's local-only policy, but this is not a SAST execution claim.Remaining proof
No local stack, browser, E2E, container, live two-session test, visual-analyzer pass, screen-reader pass or rendered locale review was run under the dispatch's light-only constraint. Local SAST was uncached and skipped. The manual scenario remains unticked. CI and independent review are separate required evidence; no merge or task-status change is requested here.
Closes #3598