Skip to content

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
SSFSKIM merged 10 commits into
masterfrom
fix/dx4-joined-notifications
Nov 8, 2026
Merged

SSFSKIM merged 10 commits into
masterfrom
fix/dx4-joined-notifications

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

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:

  1. One row can carry several notifications. 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). 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.
  2. A notice the engine queued and never handed over. The engine enqueues every notification in the main loop's transcript as a uuid-less queue-operation record 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, the queued_command prompt, and the engine's queue-operation enqueue whose content starts with <task-notification>. A remove, a dequeue and an enqueue of other content (a prompt, a peer's quote) are not read. The expiry rule moves into fold, judged by the folding loop's monitors, as sminos_jobs.py 1.40.6 has it. For the one loop the port reads, that changes nothing.
  • src/engine-host/fs/backfill.ts. parseTaskNotifications gives one outcome per block (subagent.finished or task.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 marked origin.kind: task-notification, as DX4's rule and the ledger require. The bare form keeps its start-only check. A queued copy without source_uuid is 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). Its LoopIndex gets the same per-block and queue-record reading. loopJobs folds the main loop's words (also) only while the loop's own rows leave a task running, as sminos 400632ce does.
  • The vendored vectors: test/fixtures/lane-a/dx4-jobs.json and apps/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:

  • Their user.message origin moves from null to 'task-notification'. The transcript model draws that as an engine trigger, with no row. These rows are isMeta, 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.
  • Their delivery class in the chain follower and in recent-turns moves from tail to interleave, as for the bare form.
  • src/renderer/src/transcript/model/disk.test.ts pins 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 LoopIndex and loopJobs (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:

  • The lane A jobs view and the background chips (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.
  • The remote agent drill-in holds the agent scope's jobs, but nothing draws them.
  • In a subagent drill-in, a background Bash or Monitor cell reads done at its result. Backfill emits no task.started for it, so it has no backgroundTaskId, 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, blob a414fd58d, sha256 930e1b82…4666. sminos merged them unchanged as b0db15af (sminos 1.40.6, doperpowers #478), and PROVENANCE and the README name that merge.

Tests

  • src/services/lane-a/jobs.test.ts replays every vector case; cases 17 and 18 failed before the change. It adds case 17's rows rewritten as queued_command attachments, because the vectors join blocks only in plain rows.
  • src/services/lane-a/transcript-jobs.test.ts pins that the follower keeps no rows by uuid, so a queue record reaches the ledger.
  • src/engine-host/fs/backfill.test.ts covers 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.ts runs the vectors, plus two also cases 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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

… 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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T06:08:31.998941Z 6dcbb77 PR opened
ℹ️ 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" or "@codex security review".

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)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…notification a row carries and the engine's queued notices; #535, #536 and #537 noted, #533 closed; the fake machine's queue-record row

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit fe15386 into master Nov 8, 2026
@SSFSKIM
SSFSKIM deleted the fix/dx4-joined-notifications branch November 8, 2026 12:18
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…6b, #524, #527 and #530 live, every welcome carries record, the second-member precondition's machine item met; the render series closed and its row closed; the pressure rule's row; the four-kept note

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant