Repository navigation
P5 O9 lane A: DX4 jobs read every notification a row carries, preamble-form and queued notices (sminos 1.40.5–1.40.6) - #527
Merged
Conversation
… a row carries (DX4 case 17, sminos 1.40.5) The engine joins the notifications it delivers at once into one row, each <task-notification> block after a blank line (2.1.257 on; joinedNoticeLengths from 2.1.302). The lane A ledger and backfill read one block per row, its elements searched over the whole text: the other tasks in the row read as running for good, and a monitor's statusless event could take a later block's <status>. - src/services/lane-a/jobs.ts: each whole block is one notification, in both forms (the plain row and the queued_command prompt), as sminos_jobs.py's _notifications. jobs.test.ts adds the attachment form of case 17's rows, which the vectors join only in plain rows. - src/engine-host/fs/backfill.ts: parseTaskNotifications returns each block's outcome (subagent.finished or task.notification, its <result> and <summary> its own); the row stays one message and one turn. A queued copy without source_uuid is a duplicate when every block's tool use was delivered. - test/fixtures/lane-a/dx4-jobs.json re-vendored from doperpowers sminos/tests/dx4-jobs.json at 98bb6a61 (blob f4f3bfc), its PROVENANCE updated, with the port's path. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ies (DX4 case 17) The fake machine's plainNotification and queued_command readers fed a row's whole text to one notification, so a joined row ended only its first task and a monitor's event took a later block's <status>. Each whole block is now one notification, as sminos_jobs.py's _notifications. dx4/dx4-jobs.json is re-vendored from doperpowers sminos/tests/dx4-jobs.json at 98bb6a61 (blob f4f3bfc) and its README names the commit, the hash and sminos's current paths; jobs-parity passes 78/78. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tifications (origin.kind task-notification) A subagent's transcript writes its task notifications after the engine's fixed preamble ([SYSTEM NOTIFICATION - NOT USER INPUT]) and a blank line, and every row the engine joins is in that form (the desk track's survey: 26 joined plain rows, all preamble-form, in subagent transcripts). Backfill required the text to start with <task-notification>, so it read none of them: the nested agent such a row ends stayed started in a drill-in. The DC9 plan had parked this under S2. parseTaskNotifications now takes the record. The preamble form counts only when the engine marked the row origin.kind task-notification, as DX4's reading rule and the lane A ledger do; the bare form keeps its start-only check. Those rows' user.message origin moves from null to 'task-notification', which the transcript model draws as an engine trigger (no row); they are isMeta, so they open no turn either way, and the drill-in draws them as before. The follower's and recent-turns' delivery class moves from tail to interleave, as for the bare form. disk.test.ts pins the drill-in over case 17's a17p rows: one user row (the agent's prompt), nothing of the preamble drawn, and the nested agent a17n finished (it read started before). backfill.test.ts adds the preamble form with the origin, and without it or with a human origin, read as words. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e's third form (DX4 case 18, sminos 1.40.6) The engine enqueues every notification it queues in the main loop's transcript, as a uuid-less queue-operation record, before it hands it to the loop it is for; one it never hands over (the session's process ended, or its agent handed back) leaves the enqueue as the only word that the task ended, so the task read exited, or running for good. - src/services/lane-a/jobs.ts: an enqueue whose content starts with <task-notification> is read like the other two forms, every block in it. A remove, a dequeue and an enqueue of other content (a prompt, a peer's quote) are not. A later delivered copy, folded after, sets the end's time. The expiry rule moves to the fold (by the folding loop's monitors), as sminos_jobs.py 1.40.6 has it; for the one loop the port reads it changes nothing. - TranscriptJobs keeps no rows by uuid; transcript-jobs.test.ts pins that a queue record reaches the ledger (it read exited without the port). - test/fixtures/lane-a/dx4-jobs.json is doperpowers 4057f1d9's (branch sminos-subagents-queued-ends, blob a414fd5), PROVENANCE updated; the merge sha replaces the branch commit when it lands. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ce's third form (DX4 case 18) An enqueue record (type queue-operation, no uuid) whose content starts with <task-notification> is read like the other forms, every block in it; a remove, a dequeue and other content are not. The record sits in the main loop's transcript whichever loop it is for, so loopJobs's also carries it to a subagent loop's tasks, a monitor's queued expiry judged by the loop that started it (unchanged, as sminos 1.40.6 now has it). jobs-parity adds the also side over case 18's rows split into a subagent's own and the main loop's queue records. dx4/dx4-jobs.json is doperpowers 4057f1d9's (branch sminos-subagents-queued-ends, blob a414fd5), its README updated. The recording loader keeps only rows with a uuid and no recording holds a queue record, so the fake's live session reads none yet. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nly through feed The live path replays only a recording's rows with a uuid, so the engine's uuid-less queue records (case 18) are read through LoopIndex.feed alone, as the vectors' rows are (the desk track's review of 39b8cef). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e loop's own leave a task running (sminos 400632ce) The engine enqueues a notice in the main loop's transcript before it hands the agent its copy, so the enqueue is the older word. loopJobs folded the main loop's words (also) after the loop's own, which put a delivered end back to the enqueue's time and could replace its word: an own failed at T2 read as a queued completed at T1. As sminos's jobs_body now has it, the loop's own rows fold first, and also's words only while that outcome is running; a bridge note after an own end gives way the same way. One loop's jobs are unchanged, and the vectors (blob a414fd5) carry no also. jobs-parity adds the case: an own delivered copy saying failed, later than a queued completed, keeps failed, its own time and its own summary (red before the change). dx4/README.md names 400632ce. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…414fd5) 400632ce changes only jobs_body's also, which the port leaves out; the pinned sminos_jobs.py hash follows it. Sminos-Session: GUI AI agent workspace charter#37052769 (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. |
The PROVENANCE note and the fake machine's dx4/README name the merge in place of the branch commit. The vectors are unchanged (blob a414fd5), and sminos_jobs.py at the merge is the pinned e5b89d9b... . Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…lease-download fallback (#534) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The defect
DX4's jobs contract, which MAWS shares with sminos, pins how a transcript's background shells, monitors and agents end. Two readings of it were incomplete:
<task-notification>block after a blank line (2.1.257 on;joinedNoticeLengthsfrom 2.1.302). MAWS read only the first block, and searched elements over the whole text, so the other tasks in the row read as running for good, and a monitor's statusless event could take a later block's<status>. Every joined row seen so far (the desk track's survey: 26) is in the preamble form of a subagent's transcript, which backfill did not read at all.queue-operationrecord before it hands it to the loop it is for. One for an agent that handed back, or for a session whose process ended first, is never handed over, so the enqueue is the only word that the task ended (sminos 1.40.6, DX4 case 18).What changed
src/services/lane-a/jobs.ts, the lane A jobs port. Each whole block is one notification, in every form: the plain row, thequeued_commandprompt, and the engine'squeue-operationenqueue whose content starts with<task-notification>. Aremove, adequeueand an enqueue of other content (a prompt, a peer's quote) are not read. The expiry rule moves intofold, judged by the folding loop's monitors, assminos_jobs.py1.40.6 has it. For the one loop the port reads, that changes nothing.src/engine-host/fs/backfill.ts.parseTaskNotificationsgives one outcome per block (subagent.finishedortask.notification, with that block's own<result>and<summary>). It also reads the preamble form ([SYSTEM NOTIFICATION - NOT USER INPUT], a blank line, then the blocks), but only on a row the engine markedorigin.kind: task-notification, as DX4's rule and the ledger require. The bare form keeps its start-only check. A queued copy withoutsource_uuidis a duplicate only when every block's tool use was already delivered.apps/desk-hub/fake-machine/jobs.ts, the desk's fake machine (the desk track's code, reviewed there). ItsLoopIndexgets the same per-block and queue-record reading.loopJobsfolds the main loop's words (also) only while the loop's own rows leave a task running, as sminos 400632ce does.test/fixtures/lane-a/dx4-jobs.jsonandapps/desk-hub/fake-machine/dx4/dx4-jobs.json, with their PROVENANCE and README.Rendering and delivery change
A subagent transcript's preamble-form notification rows are now notifications in backfill:
user.messageorigin moves fromnullto'task-notification'. The transcript model draws that as an engine trigger, with no row. These rows areisMeta, so they open no turn either way. They were not drawn as bubbles before either; what changes on screen is that the nested agent a row names now finishes in a drill-in, where it read "started" for good.recent-turnsmoves fromtailtointerleave, as for the bare form.src/renderer/src/transcript/model/disk.test.tspins the drill-in over case 17's rows: one user row (the agent's prompt), nothing of the preamble drawn, and the nested agent finished.Rule 2: the contract's readers are enough
The queued-notice rule applies in DX4's readers: the lane A ledger, for the main loop it follows, and the fake machine's
LoopIndexandloopJobs(also), for a subagent's tasks. No MAWS product view shows a subagent's own shell or monitor as running, so no view needs to read the main loop's queue records:useDrivenJobs) read only the session watch's jobs (src/renderer/src/lane-a/watches.ts). Locally those come from the ledger over the main transcript; remotely, from the plane's main-scope body.task.startedfor it, so it has nobackgroundTaskId, and a cell reads running only while its turn is open.Lane B's own engine lists shells from the wire's task frames, outside this contract.
The vendored vectors
Both copies are doperpowers
sminos/tests/dx4-jobs.json, bloba414fd58d, sha256930e1b82…4666. sminos merged them unchanged asb0db15af(sminos 1.40.6, doperpowers #478), and PROVENANCE and the README name that merge.Tests
src/services/lane-a/jobs.test.tsreplays every vector case; cases 17 and 18 failed before the change. It adds case 17's rows rewritten asqueued_commandattachments, because the vectors join blocks only in plain rows.src/services/lane-a/transcript-jobs.test.tspins that the follower keeps no rows by uuid, so a queue record reaches the ledger.src/engine-host/fs/backfill.test.tscovers a four-block row in the plain, queued and preamble forms. It also checks that the preamble text with no origin, or with a human origin, reads as words.apps/desk-hub/test/fake-machine/jobs-parity.test.tsruns the vectors, plus twoalsocases over case 18's rows: queued ends carried to a subagent's tasks, with a monitor's expiry judged by the loop that started it; and an own delivered end that stands over an older queued word.Gates
--gates all --lane hosted, on 6dcbb77: run 42453368238. Attempt 1: 43 jobs green, 2 matrix placeholders, 0 flaky lines; 10 groups lost setup to GitHub's release-download 504s before any test ran, ande2e:connectors-oauthwas cancelled at its job timeout on the mini's slow uplink. Attempt 2:e2e:connectors-oauthgreen; the same 10 groups lost setup again.e2e:desk-webande2e:desk-web-hub, all green, 0 flaky. The second run covers master's channel reach: a member reads any project's channel, each entry still cut at view (M7b's live check) #524 (src/endpoint), which reaches the desk-web groups as this change does.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)