Repository navigation
UX wave · U10, second landing, pull request 2 of 4 (U10b-2): an agent deletes a draft it made, Undo brings it back, and a deleted artifact takes no edit - #728
Conversation
…2, As built); the three providers that drop ⌘ join R6's tracker row Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…e pin-on-add case a tracker row; the cross-build scene's first run read Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…arams name, so a relative path chip's side tab draws the viewer and its refusal, as its main tab does, never the tree Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…opens the file last, since F (as this build) opens a session from the sidebar in the place of a clean unpinned tab Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…, a tracker row, one unit test file)
Two conflicts, both kept to both sides' intent:
- transcript/view/markdown/Link.tsx: U6d turns the path chip into its InlineLink (link text, click/Enter/Space, open(metaKey)); U6b-1's ⌘ rule rides on it as open={(metaKey) => actions.openFile(path, line, session, { main: metaKey })}; the header comment carries both.
- tools/maws/panes/connect.test.ts: the header names U6d's retired artifact pane; the imports are U6b-1's (vi for the fake timers, the Files tool, the held bridge, open-file's wait), U6d having dropped only the artifact cases' imports.
connect.ts, tools.ts (paneNotReady beside artifactPaneRetired), context.tsx, links.test.tsx and tools.test.ts merged without conflict. No wire change on this branch; the merged head's minor stands.
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ment, { main: false } (U6b-1's ⌘ rule on the merged InlineLink)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…itor, before the modules The close question by the file's key and its answer while the tab moves (sequence 2), ⌘S and Comment on this line on the file that holds the keyboard (R4), the first edit keeping the preview tab, a session that goes leaving its unsaved file as a main tab (R5, sequence 6), the quit list, and the side tab's unsaved mark. The new exports are inert stubs. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
A side tab whose file has unsaved edits carries the dot a main file tab carries, and its close asks the question a main file tab's close asks, by the file's key (closeGuardOf), its answer acting only while the tab still holds the file (sequence 2). ⌘S and Comment on this line act on the file whose viewer holds the keyboard, else on the main file tab on screen (focusedFile, R4). The first edit keeps the preview tab. A file that leaves the side tabs unsaved by no answered close (its session archived or deleted) becomes a main tab, not in front, before the viewer's prune runs (R5, sequence 6). Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…nswer on card R8 (15); the cross-build scene on M1's head ticked Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…re peer for the two-build group, and the custom-connector landing) No conflicts. The one file both sides changed, e2e/cross-build.spec.ts, merged on its own: master's edits are in the shared helpers builds(), crossing() and handedOverCrossing(); this branch's are the files-beside scene and its row. The wire manifest follows master's (minor 47); this branch takes no minor. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…session goes; a conflict landing while the close question is open Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…s before the held save (the fake disk answers as the call arrives) Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… as the side's until its main tab exists; the merge view's veto holds after the close question's answer keepUnsaved decides every file to keep before the first open and counts them in sideFileKeys for the length of the loop, so the viewer's own layout subscriber, which prunes at each open, cannot take the next file's entry. closeGuardOf reads the entry again after the answer: a conflict that settled while the question was open keeps the tab in the merge view and writes nothing, for a side tab and a main tab alike. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…rk, in four pull requests Written against master 93905c9. The landing is cut into U10b-1 (a document's page, an HTML page published from a file), U10b-2 (the agent's delete with Undo), U10b-3 (the chat over an artifact as a bar, hidden, Show chat) and U10b-4 (Make something new, a Space's instructions, the design system's page): eleven milestones. Twenty-eight places where the child's file no longer holds at this pin, each with the default built and its one place; what each older build (2c70442, f1852de) does with what the landing stores and sends; the one new offer over the machine link; the frames to draw and seven cards for the owner. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…tate and the files.tree key The suites come first: treePlace's table (the owner's answer on card R8, the tree in the file's place), the session's tree state over a fake client (one read, the 250 ms write, the 200-folder bound, a session the window no longer knows, an act before the read, a refused read, the first root after a relaunch), the tree at the file's left over the panel host, and the files.tree schema. tree-state.ts is an inert stub; the schema and the copy are declarations. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…, stored under files.tree Every Files tab draws the tree in a column at the left of its file (a tab with no file, the tree alone), where treePlace says: beside while the tab has room for both, unless the person folded it; in a tab too narrow for both folded, and the button at the start of the file's bar shows it in the file's place until a file is chosen or the button is pressed again (the owner's answer on card R8). The divider is the app's Resizer, between the tree's least width and what leaves the file 320 px; a double-click returns it to the default. The tree's state moves out of the tool's instance into tree-state.ts, one per session: the width, the fold and the folders open are read once from files.tree and written 250 ms after a person's act (the 200 folders opened last; a session the window no longer knows dropped), the selection and the scroll for this run only; after a relaunch a stored session's first root is only noted, so a deliberate collapse stands. A row's click opens the preview tab, a double-click keeps it, a Command-click opens a main tab; the row of the file in view is marked. The cross-build scene gains the key. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…gistry through an effect on its element (the React Compiler keeps the component) Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…view and on the six drawn pages All seven findings of the adversarial review are folded in, with the architect's rulings on the reported points and on what the drawn pages found (L1 to L7, B1 to B10, R1 to R5, M1, M2). An agent may delete an artifact only while the store holds a mark written at the agent's create and kept in step with every content row; a person's write, or any row the mark did not account for, breaks it for good. A deleted artifact takes no content frame and no new replica, for the person's delete too, and an editor open on it shows the deletion with Undo. U10b-1 owes both exact peers; U10b-3 lands after the requests-in-transcript landing; an export after a page change fails rather than print the old page; the exported page takes the editor's spacing; the component canvas is chosen per component. Eight cards for the owner. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…F spacing, Compact, Export menu, Above the bar), each the recommended option, written beside the place that builds it Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…uld not settle, each a dated Decision Log line Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… Other session, New cards, Space mark), each the recommended option; no card is open Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…decisions folded (17), one observation for M5 Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… minor 48): the tree U10b-1 is built on Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…the divider's maximum and the stored width are whole; a reuse ends the tree in the file's place; the hidden file keeps its viewer mounted - A double-click on a row of the tree in the file's place: its first click shows the file at once, where the row stood, so the second lands on the file. The file chosen by a click is remembered until the next click that is not the second of a pair (detail under two), and a double-click elsewhere in a Files tab keeps it. - The divider's maximum is the tab's width floored, less 320; a width is stored rounded, and a value its schema would refuse is never written. - The button's 'shown' is cleared on any change of the file the tab holds (A, B, A from links shows A, not the tree). - While the tree stands in the file's place the viewer stays mounted, hidden and inert, and is not registered as holding the keyboard: at the viewer's cap a clean file keeps its entry and its undo history. - resource.test's backend answers layout.get, so the refused-read line is not logged there. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…d exporting it as itself (red) The publish schema's path or files, the two tool texts, the refusals; artifact_publish from a path (bytes kept, refusals, other kinds, stale base, replay); readHtmlSource; the html/html exporter through both roots; main's Save a copy of a page; the renderer's formats without html for a page and its Save a copy in the row menu and the viewer; the two guide sentences. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…s itself artifact_publish takes path (exactly one of path and files), read by readHtmlSource, the steps artifact_create had inline, and stores the file's bytes unchanged; the answer's references are counted in the stored version, so a replay reads no file. The html/html exporter copies the stored page. The person's menus leave html out for an html page and offer Save a copy… in the viewer and the row menu. The dashboard and html guides gain their sentences; the charter's X9 its two dated lines. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… and artifact_export's html The hunks of MAWS_WRITE_PROBE_TOOLS=1's diff on the build VM for the two tools this milestone changes, applied as a patch. The switch also rewrites the three places search-tools.test.ts holds older than the source on purpose (the message tool, the instructions, show_pane), whose hunks are left out so the recorded fixtures still match. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…e base it rebuilds The parameter shadowed the base's own files below it (the node typecheck). Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…nt, not between P2-E1's and its entry Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ad out or the capped backoff armed, never both; a trigger or a superseding change during the read asks once more when it settles, a gone answer not acted on then Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… the park, a ready during a parked read with a reopen pending, and a direct read out at the park, each read against the coalescer's invariant at every step Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… first read is out, so the host lacks it at the park Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…sed while parked asks through it, a ready asks before the open's guard, and a direct read out at the park holds the backoff back until it settles Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…one element (an exact-text match on one segment never matched); the older-engine-host row of the document says what the sheet shows Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… the main strip hears a dragover The file scene's side-tab drag onto the main strip waited for "Move to tab" and never saw it. The strip draws that label only in its dragover handler, and Chromium fires dragover only on a second sample over the same innermost element: the first sample over an element gets dragenter (and the old one dragleave) alone. The helper's twelve coarse steps cross the session tab's parts (its status glyph, title, close button, the strip's background), so the last two samples can hit different elements, and Playwright sends nothing while the pointer rests: no dragover ever reached the strip. The panel, pane-body and group targets the other drags use light up on dragenter, which is why only this step failed. A second sample at the final point gives the strip its dragover as a resting real pointer does (macOS keeps sending updates). Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…y one scene-helper commit: the drag helper samples its last point twice) Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…og, and a tracker row for the reads a replica inherits when it parks Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…s (delete, Undo, delete, a refused reopen): none starts another, decides anything or arms a timer, and the last carries the wait Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…-4 on U6b-1 on U10b-1 on master ef1d659) The chain: each landing branch holds the one before it, so U10b-2 lands on top of U10b-4. Pre-merge head 4c99f27. Conflicts, each of the both-sides-added kind, resolved by keeping both with the chain head's lines first: - docs/charter.md, X9's record: both appended dated sentences to the one line; U10b-1's and U6b-1's sentences, then U10b-2's. - docs/doperpowers/plans/2026-11-15-ux-wave-U10b-artifacts.md: Progress keeps the chain head's ticked M1 to M3 and this branch's ticked M4 and M5; the Decision Log keeps the chain head's entries, then this branch's; Outcomes keeps U10b-1's and U10b-4's entries, then U10b-2's (the "Pending" line dropped). The chain head's corrected section G row merged without a conflict and stands as written there. - docs/tech-debt-tracker.md: the chain head's rows, then this branch's six U10b-2 rows. - e2e/cross-build.spec.ts, the UC-14 coverage table: the chain head's rows (document page, space instructions), then this branch's (deleted draft). - e2e/library.spec.ts: the chain head's scenes (its breadcrumb step at the scene near line 755 as the chain head has it), then this branch's scene of an agent's delete. - src/engine-host/ops.test.ts: the chain head's new case (a Space's instructions refused unavailable), then this branch's "fourteen artifact writes" in place of "thirteen". - src/renderer/src/library/actions.ts: both imports (refreshSpaceInstructions, then ARTIFACT). - src/shared/maws/tools.test.ts: both schema imports, and both describe blocks (a document's page in the tools, then artifact_delete). - src/shared/ipc/wire.ts and wire-fingerprint.json: the chain head's WIRE_MINOR 49 (spaces.instructions, spaces.setInstructions) and fingerprint; the next commit takes 50 for this branch's artifacts.undelete and artifacts.get's deleted, with the manifest regenerated. The link minor: the chain head is at RL2_PROTOCOL.minor 14 and this branch's 8477361 moved it to 15, which stands. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…eleted), above the chain head's 49 The number, its history note, and the manifest and fingerprint as pnpm wire:manifest wrote them on the VM from the chain head's manifest at 49. Redone from 7084979 at the merge of the chain head (U10b-4 took 49). Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…erged into pull request 718's head Master will be this tree once the two pull requests land in their order (718 fast-forward, then 717 merged into it): the flake fix of the desk web app's depth scenes (f50dee5) and the security fix of board ticket 711 (5f534f8). The merge has no conflict. The chain's first link merges this commit, so that the cascade's conflicts are resolved before the landings, and only a re-merge of the real master remains. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The cascade of the coming master: two pull requests land on master ahead of the UX wave's chain, board ticket 711's security fix (the ask tool's grant refusal and the answer envelope that holds no text the model wrote) and the depth scene's test fix. Their combined tree is the cascade base, origin/ux-wave/cascade-base at 9622061. It goes into the chain's first link here, so that every later link holds it. Conflicts, both resolved by keeping both sides whole: - docs/charter.md, X9: both sides append to the X9 entry; U10b-1's dated 2026-11-15 sentences stand first, then the base's "Amended 2026-11-16 (board ticket 711)" sentences, in date order. - e2e/cross-build.spec.ts, UC-14's coverage table: the base's row (an async ask's answer envelope, board ticket 711) first, then U10b-1's row (a document's page), in landing order. - e2e/cross-build.spec.ts, the scenes at the file's end: the base's block (the envelope's constants, helpers and two scenes) first, then U10b-1's block (the document page scene), each whole. The wire: the base takes no wire minor and no link minor; WIRE_MINOR stays 48 and RL2_PROTOCOL stays 1.14. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ster) The cascade of the coming master: board ticket 711's security fix and the depth scene's test fix land on master ahead of the UX wave's chain; their combined tree (the cascade base, 9622061) went into the chain's first link, U10b-1, at c6322b7. That head goes into U6b here, the chain's next link. Conflict, resolved by keeping both sides whole: - docs/charter.md, X9: both sides append to the X9 entry; U6b's "Amended 2026-11-14 (UX wave U6b-1, l5-code-11)" sentence stands first, then the base's "Amended 2026-11-16 (board ticket 711)" sentences, in date order. e2e/cross-build.spec.ts merged without a conflict. The wire: the base takes no wire minor and no link minor; WIRE_MINOR stays 48 and RL2_PROTOCOL stays 1.14. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ster) The cascade of the coming master: board ticket 711's security fix and the depth scene's test fix land on master ahead of the UX wave's chain; their combined tree (the cascade base, 9622061) went into U10b-1, then U10b-1's head into U6b at ae8f717. That head goes into U10b-4 here, the chain's third link. Conflicts, both resolved by keeping both sides whole: - docs/charter.md, X9: both sides append to the X9 entry; U10b-4's "Amended 2026-11-15 (UX wave, U10)" sentence stands first, then the base's "Amended 2026-11-16 (board ticket 711)" sentences, in date order. - e2e/cross-build.spec.ts, the list of the wave's blocks in the header comment: the base's paragraph (board ticket 711, the envelope scenes) first, then U10b-4's (space instructions), in landing order. The coverage table's rows and the scenes at the file's end merged without a conflict, in the order base, U10b-1, U6b-1, U10b-4. The wire: the base takes no wire minor and no link minor; WIRE_MINOR stays 49 and RL2_PROTOCOL stays 1.14, as the link had them. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… master) The cascade of the coming master: board ticket 711's security fix and the depth scene's test fix land on master ahead of the UX wave's chain; their combined tree (the cascade base, 9622061) went down the chain through U10b-1 and U6b into U10b-4, whose head ca1ad88 goes into U10b-2 here, the chain's fourth link. Conflict, resolved by keeping both sides whole: - docs/charter.md, X9: both sides append to the X9 entry; U10b-2's "Amended 2026-11-15 (UX wave, U10b-2)" sentence stands first, then the base's "Amended 2026-11-16 (board ticket 711)" sentences, in date order. e2e/cross-build.spec.ts merged without a conflict: the base's header paragraph, its coverage row and its scenes stand where U10b-4's merge put them, before U10b-1's, U6b-1's and U10b-4's. The wire: the base takes no wire minor and no link minor; WIRE_MINOR stays 50 and RL2_PROTOCOL stays 1.15, as the link had them. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…cene reads the steer in its new form) Master is at the test fix (f50dee5) since pull request 718 landed. Pull request 717 gained one commit that edits one e2e scene (a9a61f8). This commit's tree is master with that head merged, the tree master will have once 717 lands; it stands on the earlier base so the chain's links take only the one file's change. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Pull request 717 (board ticket 711) gained one commit after the first cascade: the to-human scene reads the steer in its new form (e2e/to-human.spec.ts). This merge brings that one file's change; no conflict. The wire and link numbers are unchanged. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Pull request 717 (board ticket 711) gained one commit after the first cascade: the to-human scene reads the steer in its new form (e2e/to-human.spec.ts). This merge brings that one file's change; no conflict. The wire and link numbers are unchanged. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Pull request 717 (board ticket 711) gained one commit after the first cascade: the to-human scene reads the steer in its new form (e2e/to-human.spec.ts). This merge brings that one file's change; no conflict. The wire and link numbers are unchanged. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Pull request 717 (board ticket 711) gained one commit after the first cascade: the to-human scene reads the steer in its new form (e2e/to-human.spec.ts). This merge brings that one file's change; no conflict. The wire and link numbers are unchanged. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Landed as master-first merge 9dab97a in batch 1 (#725 to #728, one sitting, chain order); merge tree equals this PR's head tree. Gate of record: the manual gate during the Actions billing lock, runs named in the body; final Mac default rerun 3b7493f-20261116T163807Z GREEN. Accepted for the batch: e2e:desk-web and cross-build on the tip only (no intermediate head is installed anywhere), unit:darwin and e2e:lane-a from 3b7493f-20261116T135342Z (same tree). Owed after the lock: the real class 1a on master. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3b7493f443
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const pageSystem = useExportSystem(governing); | ||
| const setting = useDocumentPageSetting(snapshot.handle?.doc ?? null); | ||
| const inForce = useMemo(() => pageInForce(setting.page, setting.overrides, pageSystem), [setting, pageSystem]); // resolves the system's tokens: once per change |
There was a problem hiding this comment.
Read page checks from the version being exported
When a retained version is previewed, snapshot.handle.doc still holds the live document, so these checks describe the live page settings rather than the version that Export will print. For example, previewing an A4/Compact version after changing the live document to Letter/Standard shows Letter checked and Compact unchecked, although exporting that preview produces A4/Compact output. The governing system is also resolved from the live placement here. Derive the displayed page state from the previewed document and its pinned system so the checked items agree with the export.
Useful? React with 👍 / 👎.
Root:
docs/doperpowers/specs/2026-11-12-ux-wave-design.md· child U10 (docs/doperpowers/specs/2026-11-12-ux-wave/U10-artifacts.md), second landing (U10b), the second of its four pull requests · parent pin93905c9ef· execution documentdocs/doperpowers/plans/2026-11-15-ux-wave-U10b-artifacts.md, milestones M4 and M5. Item: l6-artifacts-07 (c); Acceptance A4, and A9 as for every pull request of U10b. Board #687.What it does
Until now an agent could make an artifact but never remove one, so an abandoned draft stayed in the Library until the person deleted it. And an editor still attached to a deleted artifact could go on writing into it after the delete, whoever had deleted it.
mawstool server gainsartifact_delete { artifact }(an id or a handle), last in the tool list, titled "Delete artifact" and annotateddestructiveHint: true. Its description: "Delete a MAWS artifact this session made and no longer needs, such as an abandoned draft; without this tool, ask the user to delete it in the Library. Only an artifact that this session, or the session a side thread was opened from, created and that only agents have written to; anything else is refused with the reason. The user can undo it from the transcript. Returns the deleted artifact's id, kind and title." It answers{ status: 'deleted', artifactId, kind, title }. It passes the session's permission mode like anymawstool. A design system that still styles another artifact is refused as the person's delete refuses it. A replayed call answers its first answer and deletes nothing twice.agentDraft:<artifactId>in the artifact store'smetatable, advanced with every content row that a session writes to the artifact or its suggestion document. A person's content row breaks the mark for good, and so does any row the mark did not account for: a person's typing, a deletion alone, an accepted or rejected suggestion, a restored version, a design's migration when a person opens it, and any write made while an older build ran on the store. The mark outlives a checkpoint and a prune of the log. An artifact with no mark (made by a person, by an older build, or before this build) is never deletable by an agent. The refusals the agent receives, each followed by the refusal's JSON with awhy:artifact_delete: "<title>" was created by the user; ask them to delete it in the Library,artifact_delete: the user has edited "<title>"; ask them to delete it in the Library,artifact_delete: "<title>" was created by another session; ask the user to delete it in the Library,artifact_delete: MAWS cannot tell that only agents have written to "<title>"; ask the user to delete it in the Library.artifacts.undeleteon the artifact's machine. It brings back only what an agent's delete removed: an artifact the person deleted in the Library is refused ("this artifact was deleted in the Library, not by an agent"), and an artifact that is already back is a success that writes nothing, so two presses or two windows end the same way. Undo is disabled while it runs; one that ends without its effect leaves a line under the row ("Not restored: …") and is enabled again. On another machine it acts there, for that machine's owners only. It is disabled with its sentence as a line of the row: "Restore is unavailable while is offline.", "Can’t restore on yet. Update MAWS on and try again." (a machine whose build lacks the capability), "Only ’s owners can restore an artifact there."deleted: the artifact was deleted), refuses a new replica's open, and refuses the host's own writes into it. The check is the artifact'sdeletedAt, read inside the delete's own write, so an edit is either written before the delete (and then counted by the mark, which refuses the agent's delete) or refused after it; none is acknowledged after the delete. This closes the same hole for the person's own delete in the Library.deletedannouncement, or at a refused reopen, the window's copy of the document turns read-only and keeps its unsent edit. It turns writable again only on a fresh read of the artifact, issued after the delete was seen, that answers that the artifact is live; neither a cached library row nor a sync from before the delete counts. Every recovery event asks again (thecreatedannouncement, the host's ready, the link coming up, a resync), and it re-reads at the reconnect backoff's cap while the tab is held. Its reads are coalesced: once read-only, no read is started while one is out, and never a read while the backoff timer is armed.artifacts.gethas a 10 s deadline here and over the link.artifacts.getanswers, for a deleted artifact,{ artifact: null, deleted: { title, kind, undoable } },undoabletrue for an agent's delete.What is stored or sent, and what builds
f1852de3aand2c7044231do with it (UC-14; the execution document's §G).metatable,agentDraft:<artifactId>, the JSON of{ by, seq, broken?, deleted? }. Nothing is added toSTORE_MIGRATIONSand no entity field changes (git diff --stat b0daad097 3b7493f44 -- src/engine-host/documents/migrations.ts src/shared/artifacts/entity.ts src/endpoint/targets.ts src/shared/maws/instructions.tsprints nothing). Both older builds readmetaby key only, so they never see, change or remove the key, and their store opensok, writable. A content row either build appends leaves the mark behind the artifact's newest row, so a draft written to there is no longer deletable by an agent here; an agent's delete made here can still be undone after a stay there. A deleted artifact is deleted there too; one this build restored is live there.artifacts.undelete(engine host, grademanage), and one optional property,deletedinartifacts.get's answer. An older window on this build's machine never sends the command and draws anartifact_deletecall as an ordinary tool call; it drops the unknown property and shows its own "deleted, or not in the library". An older engine host never sendsdeleted, and this build's views then show today's notice with no Undo.artifacts.undeleteis offered to the machine's owners behind the new capabilityrl2.artifact-undelete(src/endpoint/offers.ts: exactly one row added). A machine of either older build lacks the capability, so this build's device sends it nothing and Undo is disabled with "Can’t restore on yet…".e2e/cross-build.spec.ts: this build's agent makes two drafts and deletes one; under the peer the store isok, lists the kept draft alone and takes a person's edit (proved by the store's revision, with no tool call under the peer); back here the agent's delete of the edited draft is refused and Undo still brings back the earlier delete. It skips only when the peer's ownstorage.tsnamesagentDraft(neither build does, nor masterb89d6d1d7) and never readssameWire. It adds one row to the spec's UC-14 coverage table.Wire minor 50, link minor 15.
WIRE_MINOR49 → 50 is alone ina33936c0f(with the regeneratedwire-manifest.jsonandwire-fingerprint.json), above the chain head's 49 (U10b-4's two Space commands); masterb89d6d1d7holds 48. It was first taken as 49 in708497934and redone at the chain merge.RL2_PROTOCOLis{ major: 1, minor: 15 }(rl2.artifact-undelete,8477361e4); master and the chain head hold 14. The gate reads this tree's wire as 3.50,2c7044231's as 3.46 andf1852de3a's as 3.33. If another landing reaches master first with a minor of its own, this one is taken again above master's in its own commit.The record.
docs/charter.md), one dated line: the toolartifact_delete, annotated destructive; undone by the commandartifacts.undelete(notartifacts.restore, which is the version restore).docs/tech-debt-tracker.mdand the P4-R7z row amended (residue, below).Insertions in another child's files (root UC-8; the document's §H). The transcript's artifact row, per UC-3:
transcript/model/classify.ts,derive.ts,rows.ts,schema.ts,copy.ts,view/rows/Artifact.tsx,view/context.tsx(undeleteArtifactonTranscriptActions, registered inApp.tsx) andtranscript.css. U9'ssrc/endpoint/offers.ts,capabilities.tsandsrc/shared/ipc/remote-unavailable.ts, by U9's rule for a later child's offer, withapps/org-protocol/src/channel.ts(the minor) and two lines ofsrc/main/lane-b/remote-artifacts.ts(the act'srequiresread fromREMOTE_NEEDS).src/shared/maws/tools.tscarries §C.1's tool text word for word.e2e/cross-build.spec.ts: one scene and one coverage row. The rest is U10's own files and files no child owns.Verification
3b7493f443a12bed78fa3198f7b09d4f26964961onux-wave/U10b-2, the tip of the wave's first batch. The landing's own work ends at4c99f277e(M4, M5 and their fix waves, built on015c2a727, the execution document with master63c97b5c0, with one merge of masteref1d659ad,eb51293ca); then the mergec0705c98bof U10b-4's head as it then stood,e705d0e83(ten conflicts, each "both sides added" and kept both, as its message lists), anda33936c0f, the wire minor alone. The head holds masterb89d6d1d7by tree through two cascade merges of U10b-4's head:0cbec050cbrought master's two fixes, board ticket 711's ask envelope and the desk web app's depth scenes (19 files changed, 1049 insertions, 82 deletions; one conflict, X9's line indocs/charter.md, kept both sides), and3b7493f44, the head itself, brought one e2e file,e2e/to-human.spec.ts(5 insertions, 2 deletions); neither changes the wire or link numbers.b89d6d1d7and this head, whose tree equals the head's tree (5cd7a0b3d;git merge-tree --write-tree b89d6d1d7 3b7493f44prints it), because the head already holds master. U10b-1 (UX wave U10b: the rest of the artifacts work #595), U6b-1 (UX wave U6b-1: a file opens beside the chat #670) and U10b-4 (UX wave U10b-4: four cards to make something new, a Space's instructions, the design system's page #689) must be on master before this pull request, so that its diff against master reads as this landing's own (git diff --stat b0daad097 3b7493f44 | tail -1: 80 files changed, 3856 insertions, 99 deletions, the execution document's lines among them).3b7493f443a1-20261116T140256Z: GREEN. plan;static(the script tests 588 of 588);unitin four shards, all passed, 41,793 tests passed and 100 skipped of 41,893;probes347 of 347;e2e:desk-web(its import graph reacheslibrary/undo-delete.tsandartifacts/deleted-replicas.tsthrough the transcript's row): 199 scenes, 198 passed, 1 skipped. Its plan reads this tree's wire as 3.50 against master's 3.48 and addse2e:cross-build(below).3b7493f443a1-20261116T143056Z(RED for the batch at three groups, two of them this landing's), with the rerun of those three,3b7493f443a1-20261116T160258Z, and a second rerun ofe2e:default(below); with the reruns, every group passed. The fifteen groups of the document's Proof 6 for U10b-2, with the mini copies this landing owed (tools, library, remote, document-app, artifacts, design-systems, supervisor-daemon):e2e:tools: passed, 16 scenes passed; its mini copy passed, 16.e2e:deliverables: failed at one scene, 13 passed and 1 failed:e2e/deliverables.spec.ts:1172, "a pass on an HTML page: Escape keeps the text in the card, a second pick lists the first and Send reads "Send 2 comments", the Artifacts surface away and back shows "2 unsent comments" at the page’s top right, and one Send to main delivers both as one message". The rerun passed, 14.e2e:library: passed, 12; its mini copy passed, 12.e2e:remote: passed, 16; its mini copy passed, 16 (it also passed, 16, in the tip's first Mac run, below).e2e:machines: passed, 2.e2e:transcript: passed, 41.e2e:document-app: failed at one scene, 25 passed and 1 failed: U5a'se2e/document-narrow.spec.ts:350, "UX wave U5a: in a body under 720 px, a comment’s card that became its side thread folds to the passage’s mark when the answer arrives, once the keyboard is back in the page, and the passage is tinted once". Its mini copy in the same run passed, 26; the rerun passed, 26.e2e:document: passed, 19.e2e:dashboard: passed, 15 (no mini copy: the plan skips one for it, its config's selection not being literal).e2e:presentations: passed, 38 passed and 10 skipped.e2e:design: passed, 19.e2e:artifacts: passed, 5 passed and 1 skipped; its mini copy the same.e2e:design-systems: passed, 10; its mini copy passed, 10.e2e:connectors: passed, 6.e2e:supervisor-daemon: passed, 27; its mini copy passed, 27.e2e:default(it selects spec files the cascade and the chain touched,e2e/to-human.spec.ts,e2e/layout-transfer.spec.tsande2e/sessions.spec.tsamong them): failed at one scene, 103 passed, 212 skipped and 1 failed:e2e/sessions.spec.ts:797, "sessions › New chat from each control, with three sessions open, adds one tab right after the tab in front and the three stay". The rerun failed at one other scene, 239 passed, 315 skipped and 1 failed (it ran 555 scenes against the record's 316):e2e/ux2-shell.spec.ts:891, "Acceptance: overflowing tabs remain reachable and F6 visits cards and surface content", which passed in the record run'se2e:layout; the sessions scene passed in the rerun. Neither scene is this landing's or in a file it changed; the second is a scene U6b-1 (UX wave U6b-1: a file opens beside the chat #670) edits. Its second rerun, on the mini's host, manual gate run3b7493f443a1-20261116T163807Z: passed, 581 scenes: 266 passed and 315 skipped, both scenes above among the passed. That run ise2e:default's record.unit:darwin: in the tip's first Mac run,3b7493f443a1-20261116T135342Z(its build failed at a peer's build, so most groups did not run there and it is not their record): passed, 22 files, 574 tests passed and 10 skipped.e2e:panel31,e2e:code39,e2e:side12,e2e:scm8,e2e:layout25,e2e:browser-comment18,e2e:composer33, with the mini copies of panel, code, side and scm;e2e:lane-apassed, 17, in run…T135342Z.e2e:library(e2e/library.spec.ts): "an agent deletes its own draft while a tab shows it: the row reads Deleted with Undo, the Library leaves it out, the tab’s notice says an edit typed before it is not saved and holds an editor that takes no keystroke; Undo brings it back, Restored with Open, that edit saved, the editor writable again". It holds the window's outgoing document frames through a seam installed only under the e2e flag (src/renderer/src/artifacts/held-frames.ts), so the edit typed just before the delete is proved end to end. The existing scene of the person's delete now expectsartifacts.getto answerdeletedwithundoable: false.e2e:remote(e2e/remote.spec.ts): "U10b A4 on B: B’s agent deletes its own draft; A’s row of B’s session reads Deleted with Undo, which restores it on B, then Restored; with B stopped, Undo is disabled with its sentence as a line of the row".e2e:tools(e2e/maws-tools.spec.ts): the round trip now expects nineteen tools,artifact_deletelast with its annotations.e2e/cross-build.spec.ts: "(deleted draft, both ways) this build’s agent makes two drafts and deletes one; the peer’s store is ok, lists the kept draft alone, and takes a person’s edit there; this build refuses the agent’s delete of the edited draft and still undoes the earlier delete".e2e:cross-buildagainst each of the two older builds and, since master moved, against master's build. The record ran all three on this head, each passed, 28 scenes each: against masterb89d6d1d7(wire 3.48), 8 passed and 20 skipped; againstf1852de3a(3.33), 21 passed and 7 skipped; against2c7044231(3.46), 9 passed and 19 skipped. "(deleted draft, both ways)" passed in all three (its scene line in each job's log), and so did U10b-4's "(space instructions, both ways)". Both reruns ran the one against master again: 8 passed and 20 skipped each, the scene passed in both. None is owed on the manual gate.a33936c0f: class 1a and the desk web app, run 43755995405: success;unit:darwin, run 43755971934: success;e2e:cross-buildagainstf1852de3a, run 43756000366, and against2c7044231, run 43756010359: success. Its Mac runs, 43755996352 (the fifteen groups; cancelled) and 43756020470 (e2e:default; failure), are superseded by the union above.a95266ae8(after fix wave 3):e2e:cross-buildruns 43730127436 (f1852de3a: 23 scenes, 16 passed, 7 skipped) and 43730126644 (2c7044231: 4 passed, 19 skipped): success, "(deleted draft, both ways)" passed in both; run 43730109769:e2e:tools,e2e:library,e2e:remoteand its mini copy green, cancelled before the other mini copies; class 1a run 43730125800: failure inprobesalone, the snapshot's served tools compared with recordings made beforeartifact_deleteexisted, ruled and fixed inbdbac7553(As built, below).508a54acf(M5 built, before its fix waves): run 43715208689 (e2e:tools,e2e:library,e2e:remote):e2e:libraryfailed at the person's delete, which now answereddeleted, and the mini copy ofe2e:remoteat the new scene, which read B's draft before B's delete; run 43715198365 (--peer-exact f1852de3a): failure at "(deleted draft, both ways)", noartifact_deleteat the dashboard seam. Fix wave 3 (868bbafc3..a95266ae8) answered all three.86d4342c1: each breaking case proves the mark outlives the person's rows after a prune).59b94ddb1..af4db9e85,9db474b4d..11cab006c): a late answer about the deletion could leave a restored editor read-only, so each read takes a ticket and a stale answer decides nothing (the ticket moves with the host's restart and with each newer sync); a transient failure ofartifacts.getended the replica, so onlynotFoundandinvalidend it now andunavailableorstoreTooNewmean "not known"; a delete never answered had no sentence; and the edit typed before the notice was proved only by unit cases, so the scene's held-frames seam was built.doperpowers:review-codexhigh panel on015c2a727..c6d5e1ded: one P1 and four P2 findings, all in how the read-only editor recovers; it read the mark, the undo and the e2e seam and found them sound. P1: an unsent edit in a read-only editor was dropped when another opening replaced the tab, or when it was closed, without a question. P2: a recovery open that failed while read-only stopped retrying; a cached library row read as a restore for a member whose reads are refused; an Undo lost in the remote feed's gap beforeartifacts.resync; a sync from before the delete, applied later, cleared it. The architect ruled one rule for the four P2 findings (the editor turns writable only on a current read that answers live) and that a refused edit keeps its tab. Fix wave 4 (78faca59bred, 9 failed and 128 passed;f2ca04a1bthe fix; withbdbac7553the probe list andc597fd495a scene comment) and, from wave 4's own review (three Important: the backoff ran out while read-only; a refused row came back while a read was in flight; the close question covered documents only), fix wave 5 (12bef97fered,2d0f86e9d); wave 5's review was clean.doperpowers:reviewer-mediumon the delta since the panel,c6d5e1ded..4b4126ee0: one P2: a read that a newer one had overtaken still armed the retry timer, so two overlapping reads could keep each other going and the editor could stay read-only after a restore. The architect ruled that the reads coalesce. Fix wave 6 (7785c7ac8red, 6 failed and 42 passed inhost.test.ts;f50326a65, 48 of 48). Its review found two paths that went around the coalescing (a reopen refused after the editor turned read-only read directly; the host's ready returned early while an open was in progress), fixed with a third found while listing every caller (a direct read still out at the moment the editor turned read-only let the timer be armed beside it): fix 6b (a08d6dc7bred, 3 failed and 48 passed;eebcb01f4, 51 of 51). Its review closed both and found one more: during a quick delete, Undo and delete, the editor can turn read-only with several reads already out. The architect ruled it a tracker row, with the invariant restated in the Decision Log ("once parked, no read is started while one is out, and never a read with the timer armed") and one test of that sequence, which passes on the product as it is (4c99f277e,host.test.ts52 of 52).298646bff: 14 failed, 59 passed, andartifact-delete.test.tsfailing at import):agent-draft.test.ts, among others, "is broken by a person's insert, and the delete is refused after a checkpoint and a prune", "does not stand after a stay under an older build that appended a row, and breaks at this build's next row", "a person's update just after the Library's delete: refused, …", "refuses a host-originated write to a deleted artifact, whoever deleted it";test/endpoint/undelete-row.test.ts, its five act cases;test/endpoint/deleted-document.test.ts(4 failed, 1 passed), among them "an update after the Library's delete is refused …", which timed out because the connection never closed.fdc33a815,e2f3b33ed): the cost of the check and the mark, counted in statements, 4 failed; the renderer's 18 failed cases and three suites failing at import, among them "the row of an agent's delete > "Deleted <title>" with Undo disabled until the library has answered…".508a54acf(M5's acceptance) and ata33936c0f(after the chain merge, before the cascade):pnpm typecheckand lint exit 0;pnpm wire:manifestleft no file changed; the gate's script tests,pnpm test:probesandmaws-app-scanexit 0; the suites over the changed and merged directories and the desk web app's tests and build pass but for files that fail on that VM for their own reasons or time out under load and pass alone. The cost pin: one keyed read ofdeletedAt, one of the mark, one of the newest sequence and one write of the mark per content row of an agent's draft, each read a keyedSEARCHinEXPLAIN QUERY PLAN.As built, beyond the document's first text (its Decision Log has each)
notFound, which ended the replica. Sosrc/renderer/src/artifacts/host.ts(no child owns it), with a newartifacts/deleted-replicas.ts, keeps the window's copy read-only at thedeletedannouncement and through the recovery and coalescing rules above. Every kind's editor already reads that state (document and dashboard, deck, design, design system), so none was made inert; that a read-only body still scrolls was read in the code, not run.writeAs, the accept or reject of a suggestion). It is thedeletedAtrow itself, read through the delete's own connection, so a lost write lowers it with its rollback; no in-memory set.deleted.byis the calling session; the agent's refusal for a design system in use carrieswhy: 'designSystemInUse', the person's refusal unchanged.SUGGESTION_SUFFIX,suggestionKeyandmainOfmove tosrc/engine-host/documents/doc-keys.ts.ARTIFACT.neverAnsweredDelete, the artifact family's form). A delete the person denies reads "Could not delete <title>: " with the engine's text whole, which can name "the user", as a denied create does today (tracker row).src/renderer/src/library/undo-delete.ts, shared by the row and the notice. A library row whose read was refused after it was cached counts as not known (Undo disabled with its sentence, never "Restored"); a read in flight keeps the last good answer, so a restored row does not flicker at eachlibrary.changed.RecordView.tsx,serialize.tsande2e/deliverables.spec.tsare not edited: the side column rendersArtifactView, the copy already reads the row's heading, and the replay's headings are unchanged.Storage.onStatement(null in production) for the statement counts;held-frames.ts(inert without the e2e flag, which a unit case pins);DASHBOARD_SEAM_TOOLSin the engine host's dashboard e2e seam, which servesartifact_deleteto the two-build scene's agent.artifact_delete, which no recording was served.spikes/protocol-probe/fixtures.test.mjsnames it in one list,UNRECORDED4, takes exactly those names out of the comparisons with the recordings, and asserts each absent from them, so an entry cannot outlive a re-recording unnoticed. The recordings were not made again in this landing.TranscriptPanechunk grows by about 7 kB (the modules Undo's logic imports; nothing in them runs at import).src/renderer/src/tools/document/tab-state.tsandtools/presentation/tab-state.ts(the design's inherits the deck's), edited by fix waves 4 and 5 for the panel's P1; M5's first list did not name them.src/engine-host/session-maws.test.tsandsrc/engine-host/tool-server/documents-wired.test.ts. The Acceptance line that counts the offers added was corrected togrep -c "^+ *'"; it prints 1.Residue
docs/tech-debt-tracker.md, owner UX wave U10b-2, none with a board ticket now: the agent's delete refuses a deck or a design the person only opened, since opening writes rows credited to the person there (H3); after an engine-host handover a side thread's lineage is empty, so it cannot delete its parent's draft (H13); a member who does not own the machine, with an editor open on an artifact an agent deletes there, sees the notice of an unreachable artifact and no Undo, and the unsent edit lives only while the tab stays open (H4); a delete never answered offers no Undo even when the delete went through; a denied artifact call's row names "the user" in the engine's text; a copy that turns read-only during a quick delete, Undo and delete can inherit several reads already out (each decides nothing, the last carries the wait). The P4-R7z row now also namesartifact_delete: the P4-B4 and P4-A3 scenarios are recorded again at the next probe pass.channel.ts, the command names, the wire files, the tool texts) or spec files that came in with the merges:e2e:panel,e2e:layout,e2e:code,e2e:side,e2e:scm,e2e:composerande2e:lane-aran in the batch's union on this head and passed (Verification, above).TranscriptSlot.test.tsx's bridge stub has noon(a strayTypeErroron stderr);test/endpoint/channel-feed.test.tsandread-open.test.tsmiss their time bounds under load and pass alone; a case title insession-maws.test.tsstill says "twelve tools".Closes #687
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)