Skip to content

fix(sidebar): give a subagent row its own activity clock instead of its parent's - #21400

Closed
brennanb2025 wants to merge 10 commits into
mainfrom
brennanb2025/attr-child-clock
Closed

brennanb2025 wants to merge 10 commits into
mainfrom
brennanb2025/attr-child-clock

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 10 +315 -19 +296
Prod 12 +150 -27 +123

ELI5

When an agent in the sidebar starts helper agents of its own, each helper gets its own
indented row. If Orca stops hearing from a row, it writes a small note under it saying how
long it has been since it last heard anything — "No update in 12m".

Those helper rows were not keeping their own clock. They all read the clock belonging to the
agent that started them. So if one helper had been silent for ten minutes while a second
helper was chattering away, the silent one still claimed it had just been heard from — it was
quietly reporting its sibling's activity as its own.

Now each helper keeps its own clock, so that line finally says something true about the row
it sits under.

What Changed

Before. Every helper row on a parent copied the parent's "last heard from" timestamp.
With exactly one helper this looked right by accident: the helper's own activity was the thing
keeping the parent's clock moving, so the two numbers agreed. Add a second helper and it
breaks — a helper that has done nothing for ten minutes shows "No update in 0m" because a
sibling just reported in. A parent that talks for its own reasons does the same thing. The
number was never wrong in an obvious way, which is why it survived: it was wrong in a way that
only shows up when you have more than one helper.

After. Each helper row carries the moment Orca last saw that helper do something, and
the "No update in N" line reads it. Two siblings under one parent now show different numbers.

The mechanism. Orca already has a field that means exactly this on an agent row —
evidenceObservedAt, "when the evidence was observed", kept separate from updatedAt, which
is the delivery clock. The reader that writes the "No update in N" line already prefers it and
already falls back to updatedAt when it is missing. What was missing was anyone setting it
on a helper row.

So this adds that same field, optional, to the two types that describe a helper, and sets it at
the points that already decide "this event belongs to the child, not the parent":

  • The CLI hook path (Claude). Every child-attributed tool event already passed the current
    time into the roster update and the roster threw it away. It is now recorded. The parent's
    own end-of-turn inventory, which lists the children still running, counts as an observation
    of each child it lists.
  • The CLI hook path (Codex). The same, with one wrinkle. Two callers of that roster update
    pass a spawn time as the creation clock — the transcript scan and the restore-from-disk
    seed. Reusing it would have backdated a child's "last heard from" to its own birth, so the
    observation moment is now a separate, explicit argument that those two callers simply do not
    pass.
  • The structured-session path. The background-task tracker used to throw away a
    task_progress frame entirely unless the task was backgrounded and the frame carried token
    usage. That frame's description is the child's current activity ("Running Bash"), and for a
    backgrounded child it is the only proof-of-life Orca ever receives. A usage-free progress
    frame now refreshes the clock instead of being dropped.

What deliberately did not change.

  • The time column. It is documented as bimodal: a finished row reads time-since-finish, an
    active row reads time-since-start. "14m" on a helper that has been working fourteen minutes
    is a correct elapsed duration, and the pop-out dashboard shows no timestamp for helpers at
    all. Giving the column a third meaning for helpers only, on one of three surfaces, would make
    Orca disagree with itself.
  • The spawn timestamp. Two roster sorts, the sidebar's row ordering, the at-capacity
    eviction rule, and the row-equality check all depend on it holding still. Moving it would
    reshuffle sibling rows under the user's cursor on every ping. This adds a second field rather
    than repurposing that one.
  • The parent's clock on the helper row. It stays, demoted to the documented fallback for a
    host that predates this field. Deleting it would leave an older host reading "No update in
    <the row's entire lifetime>"; replacing it with "now" would invent freshness, which is
    the same class of bug on the other side.

Why

The bug is a row reading a clock that belongs to a different producer. The fix is to attribute
the observation where the event is already classified as the child's, which is at ingestion —
not to add a rule at the reader deciding whose clock to trust. Attribution at the reader is the
thing that produced this bug, and the store's own guidance is that readers keep presentation
policy only.

Alternatives considered.

  • Fix it at the reader. Not possible. The number the row wants to show did not exist anywhere
    — no per-child activity timestamp was on the wire at all.
  • Invent a new per-child field. Rejected as duplication. evidenceObservedAt already carries
    this exact meaning on the parent row type, its reader already prefers it and already falls
    back correctly, so reusing the name made the reader change a single line and left a search for
    a second "last activity" concept empty.
  • Move the spawn timestamp instead of adding a field. Rejected: four consumers depend on it
    not moving, and its own source comment says it is preserved so clients can render elapsed and
    keep a stable first-seen sort.
  • Change the time column to show recency instead of elapsed. Rejected. A healthy helper emits
    a tool event every few seconds, so a recency reading is a constant pulse; the elapsed duration
    is the number a user acts on ("this has been running forty minutes"). And Orca already has a
    dedicated channel for recency, in words, on the secondary line — which is the line this change
    actually fixes.

Two things this does not fix, stated rather than implied. A parked, idle helper still times
from its spawn moment, because there is no "settled at" stamp for helpers; that needs a
different field. And the fallback clock is the parent's, so on an older host a helper still
inherits whatever the parent's clock says — this change is what lets a current host stop
depending on it.

Linked Issue

Fixes #

Visual Proof

Live Electron validation used both real providers to create parallel child agents from one
parent. The rendered Agents/session surfaces and provider terminals showed the completed runs:

These are after-state captures from provider-backed flows; no synthetic state was injected.

Testing

pnpm tc, oxlint, and pnpm run check:code-quality:changed all pass. Targeted suites are
green; the whole of src/shared, src/main/claude, src/main/agent-hooks,
src/renderer/src/components/sidebar and .../native-chat was run — 14,590 passed, with one
pre-existing failure in claude-structured-real-cli.test.ts that reproduces identically on the
unmodified source (it asserts a custom slash command is present in the locally installed CLI's
catalog and touches nothing here).

Every new regression test was shown failing before the change and passing after:

  • Two siblings of one parent produce different recency — the case that makes the borrow
    observably wrong, and which could not be written before because the field did not exist.
  • A child with its own observation times from it; its spawn stamp and row order are unchanged.
  • A child without one leaves the field absent and falls through to the parent's clock — the
    old-host path. Ablated by deleting the parent borrow, which turns it red.
  • A ping to one child advances only that child's clock, on both the Claude and Codex rosters,
    leaving both spawn stamps and the snapshot sort untouched.
  • A task_progress frame carrying no usage now advances the clock, preserves the spawn stamp
    and the task's name, and reports the state as changed — the branch that previously returned
    early and wrote nothing.
  • A restore carries the persisted clock through rather than reading as freshly observed.
  • The shed-roster digest still matches across a clock advance. Ablated by folding the new field
    into the digest, which turns it red.

Electron validation used the exact PR branch, an isolated profile, ORCA_BACKGROUND_LAUNCH=1,
and Playwright CDP. A real Claude Code session created two provider-backed children; the backing
status store recorded distinct child evidenceObservedAt values, and the visible Agents surface
rendered the completed parent session. A real Codex session also completed with exactly two
parallel subagents; its provider output and session surface reported both read-only inspections,
and its transcript path is covered by the focused tests listed above.

The change is only observable on a parent with two or more helpers, once a row has decayed to
unverifiable, and on a provider whose children actually emit child-attributed events. For a
provider whose children emit nothing the field stays absent and the row keeps today's behaviour,
which is the correct degrade.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Review

Wire compatibility

Two additive optional numeric fields, one on the hook status payload's child rows and one on
the agentSession.* background-task row. Both are new keys on frames that already exist, decoded
by parsers that ignore unknown keys. No new opcode, no new frame, no new journal item kind, so no
capability negotiation is required.

  • Old client, new host: ignores the key. Its helper rows keep borrowing the parent's clock,
    which is exactly today's behaviour — the skew degrades to the status quo, never to something
    worse.
  • New client, old host: the field is absent, and absent means the host never reported it,
    never this child has never been active. It is specifically not normalized to 0 the way
    the spawn stamp is, because 0 would render as decades of silence. The reader falls through to
    the existing clock with no extra branch. Nothing anywhere gates on the field being present.
  • What the host publishes: unchanged in meaning, units, nullability and population. Nothing
    stops being synthesized.
  • One behaviour change on a shared path, flagged rather than buried: a task_progress frame
    carrying no token usage used to produce no publish and now produces one. That is a change in
    publish frequency, not in frame content — old clients decode an identical frame shape whose
    only new key they ignore. The knock-on is a new child-row array per child event and the React
    re-renders behind it; the structured bridge's write gate already turns over on every publish,
    so nothing changes there. Not measured. If it bites, the mitigation is to round the timestamp
    to a coarse bucket at the producer, and that tradeoff should be written down rather than
    applied quietly.
  • Mobile: unaffected, verified rather than assumed — mobile/src has zero non-test
    references to subagents or background tasks.
  • No not.toHaveProperty assertions were added anywhere; the cross-version wire test stays green
    for an added optional field by design, and was run.

One deliberate deviation from the plan, with its reason

The plan called for adding the new field to the relay's shed-roster digest so a roster differing
only in the clock could not collide. I did not, and pinned the opposite with a test.

That digest carries roster identity, so a relay that had to drop an oversized roster can
re-attach the cached one. The new field moves on every child tool event. Folding it in would mean
a shed roster essentially never matches its cached twin — and an unrestored roster blanks live
child rows and unblocks hibernation for a pane whose helpers are still running, which is the
precise failure the restore exists to prevent. Restoring the cached clock instead is conservative:
an older observation is still a true statement about when the child was last seen, and can never
fabricate freshness. Both the reasoning and the ablation are recorded in the code and the test.

Structural note

This adds no new writer of a status row and removes none. Orca keeps two real writers of one
status row apart with publication filters; that structure is untouched here and is not narrowed
by this change.

Refactor carried along

The tracked background-task row's merge rule and its progress-frame fold moved next to the row
type they belong to, beside the comment that already documents why the spawn stamp is preserved.
That is where the "which clock moves and which does not" rule now lives in one place, and it also
keeps the tracker inside its line budget without suppressing the rule.

Agent skill upstream boundary

  • Not applicable.

Notes

Cross-platform: no platform-dependent code; all timestamps come from existing clocks. SSH/remote:
covered under Wire compatibility above — the execution host remains the authority for every stamp,
and a client never synthesizes one. Folder workspaces and git worktrees are equally unaffected;
nothing here reads workspace shape. Security: no new input crosses a trust boundary beyond one
optional number, validated as a finite number at the same boundary that already validates the
rest of the row, and rejected into absence rather than into a value.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Screenshot attached for the live provider-backed child-agent UI state
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…ts parent's

A subagent child row borrowed its parent's `updatedAt` as its staleness clock
and set no `evidenceObservedAt`, so the sidebar's "No update in N" label
reported the PARENT's silence as the child's. With one child that reads
correctly by coincidence — the child's activity is what advanced the parent's
clock. With siblings it is wrong: a child quiet for ten minutes reads "No
update in 0m" because a sibling just pinged.

Reuse `evidenceObservedAt`, the field that already carries this meaning on
`AgentStatusEntry` and whose reader already prefers it and already falls back to
`updatedAt`. Add it as an optional field on the two child-bearing wire types and
stamp it at the producer boundaries that already classify an event as the
child's:

- Claude hook roster: every child-attributed tool event and the lead's
  background-task fold.
- Codex hook roster: every child-attributed lifecycle and tool event. The stamp
  takes an explicit observation argument, because two callers (the transcript
  scan and the restore seed) pass a SPAWN stamp as their creation clock and
  reusing it would backdate the child's recency to its own birth.
- Structured background tasks: `task_started`, `task_updated`, the aggregate
  roster frame, and — the load-bearing one — `task_progress`. That branch
  previously dropped a frame entirely unless the task was backgrounded AND the
  frame carried token usage, discarding the only per-child liveness signal a
  backgrounded child emits. A usage-free progress frame now refreshes the
  clock, which changes publish FREQUENCY on that shared path.

`startedAt` is untouched everywhere. It is the spawn stamp two roster sorts,
`compareWorktreeAgentRows`, cap eviction, and the equality/shed digest all
depend on, so this adds a second field rather than moving that one. The time
column is untouched too: it is documented bimodal (finish-time for a done row,
start-time for an active one), so "14m" on a working child is a correct elapsed
duration.

Absent means the host never reported it, never "never active" — deliberately
NOT normalized to 0 the way `startedAt` is, which would render as decades of
silence. The reader keeps the parent `updatedAt` borrow as the documented
old-host fallback.

The shed-roster digest deliberately excludes the new field: it moves on every
child tool event, so folding it into an IDENTITY digest would make a shed roster
almost never match its cached twin, and an unrestored roster blanks live child
rows and unblocks hibernation.

Moves the tracked-row merge and the progress-frame fold next to the row type
they belong to, which also keeps the tracker inside its line budget.
@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 5538d424-a8f8-4f18-aec3-567ffdde2991

📥 Commits

Reviewing files that changed from the base of the PR and between c23f7d8 and 933407d.

📒 Files selected for processing (4)
  • src/shared/agent-status-types.test.ts
  • src/shared/agent-status-types.ts
  • src/shared/codex-subagent-transcript.test.ts
  • src/shared/codex-subagent-transcript.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The change adds optional evidenceObservedAt timestamps for Claude and Codex child activity. Producers, rosters, background-task wires, restoration paths, and the renderer now preserve this timestamp separately from startedAt. Sidebar child rows use each child’s timestamp and retain the parent timestamp as a fallback. Background progress frames update activity evidence even without usage data. Tests cover propagation, restoration, fallback behavior, and sibling-specific recency.

Priority: ⬇️ Low

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 20 functions across 22 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: assigning each subagent row its own activity clock instead of using the parent clock.
Description check ✅ Passed The description is detailed and covers the user impact, implementation, rationale, alternatives, compatibility, testing, and checklist items. The linked issue field is still empty, and the visual proo…
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch brennanb2025/attr-child-clock

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The per-child clock is wired correctly, but the two aggregate-frame paths stamp a membership frame's arrival time as the child's own activity. On the structured path a quiet child's "No update in N" still resets when a sibling starts/finishes or the lead's turn ends — the same borrowed-clock symptom this PR removes elsewhere. The repo's own comments describe that frame as a level signal that "carries no evidence of a new run."

Reviewed changes

  • Per-child observation clock — adds optional evidenceObservedAt to AgentSubagentSnapshot and AgentSessionBackgroundTask, stamped at child-attributed ingestion in both hook rosters, the structured background-task tracker, and the renderer bridge.
  • Sidebar child row — buildSubagentChildRows copies the child clock onto the synthetic entry while keeping the parent's updatedAt as the old-host fallback and startedAt as the sort/elapsed stamp.
  • Task-progress liveness — a usage-free task_progress frame now refreshes the clock instead of being dropped.
  • Relay shed digest — deliberately excludes the new field, pinned by a new test.
  • Refactor — background-task merge and progress folds moved into claude-settled-background-tasks.ts.
  • Tests — regression coverage for sibling divergence, spawn-stamp stability, the old-host fallback, and the usage-free progress frame.
  • Planning doc — 615-line ATTRIBUTION-child-clock.md added at repo root.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@@ -242,7 +249,8 @@ export class ClaudeBackgroundTaskTracker {
description: taskDescription(task.description) ?? existing?.description,
name: taskName(task) ?? existing?.name,
state: liveClaudeTaskRunState(task.status) ?? existing?.state,
startedAt: existing?.startedAt ?? this.now(),
startedAt: existing?.startedAt ?? observedAt,
evidenceObservedAt: observedAt,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stamps the background_tasks_changed frame's arrival time as each listed task's own activity. That frame is a set-membership snapshot — it fires when a task starts or finishes, not when each listed child acts — so a quiet sibling's clock advances because another task changed. The repo documents this frame as membership only (claude-background-task-roster.ts:33-34: "Presence must not revive a settled row; the task's own frames alone settle or restart it"; claude-background-task-rows.test.ts:235-237: "presence is a level signal ... which carries no evidence of a new run"), and the field's own docstring says "Last epoch ms this task's OWN activity was observed." This is the same borrowed-clock symptom the PR removes on the per-child paths.

Technical details
# Aggregate roster frames stamp the child's clock from set membership

## Affected sites
- `src/main/claude/claude-background-task-tracker.ts:253` — `replaceAggregateRoster` writes the single `observedAt` from the `background_tasks_changed` frame onto every listed task. `task_started`/`task_updated`/`task_progress` already give each task a genuine per-task clock, so this stamp only adds the sibling-borrowed one.
- `src/shared/claude-subagent-roster.ts:195` — `foldClaudeBackgroundTasksIntoRoster` writes the lead `Stop`/`StopFailure` time (`claude-events.ts:211-216`) onto every running id in the lead's inventory. The PR doc flags this one for review (§5/§9 Step 2); the same argument applies to the tracker path, which the doc does not flag.
- Pinned as current behavior by `claude-background-task-tracker.test.ts:421-426` and `claude-subagent-roster.test.ts:551-561`.

## Required outcome
- A quiet child's `evidenceObservedAt` must not advance because a sibling started/finished or the lead's turn ended.

## Suggested approach
- Stamp only from per-task frames (`task_started`, `task_updated`, `task_progress`) and the hook roster's per-child upsert; or stamp an aggregate frame only on a task's first sighting. If an aggregate frame is intended to count as liveness, reconcile the field docstring (`agent-status-types.ts:82-86`, `claude-settled-background-tasks.ts:34-35`) and the roster comments above, and state which reading "No update in N" is meant to express.

## Open questions for the human
- Does the Claude SDK re-probe each listed task when it emits `background_tasks_changed`, or echo cached membership? The repo has no captured Claude stream transcript to settle it (`src/main/runtime/__fixtures__/` holds no Claude frames).

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No new changes to review — the only commit since the prior review is a merge of main (9907117), and the PR's base...head diff is byte-identical to the version already reviewed. The prior review's findings remain open.

Reviewed changes

  • c23f7d8755 — merge origin/main into the branch. No file changes on the PR side; the diff TOC and content are identical to 55a69eb.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review status: clean after fixes

I ran the readiness checklist before and after review, completed a same-model review/fix loop, and re-reviewed the resulting branch. No proven P0/P1/P2 issues remain.

The review found and fixed one meaningful completeness gap: Codex children discovered only through transcript sub_agent_activity records were still borrowing the parent clock. Those records now stamp the child’s optional evidenceObservedAt without changing its spawn startedAt or refreshing on parent-only polls. Nested negative child timestamps are also rejected at normalization, matching the existing wire timestamp contract. The fix is pushed in 933407ddc4.

Validation passed:

  • 186 targeted tests for the child-clock, structured-session, relay, hook, sidebar, and transcript paths.
  • 76 focused Codex transcript/roster/status-normalization tests after the follow-up fix.
  • pnpm tc:node and pnpm tc.
  • pnpm run check:code-quality:changed (0 findings across 22 changed files).
  • git diff --check.
  • Mixed-version review: both new fields are optional and old-host fallback behavior is preserved.
  • No mobile production surface, SSH/remoting path, dependency, security, or cross-platform behavior is touched.

Electron QA launched the exact branch with an isolated profile, ORCA_BACKGROUND_LAUNCH=1, CDP, and verified window.api.app.getIdentity() against this worktree. The full-window baseline is attached here: Electron baseline. A live provider session with two helpers and the required 30-minute unverifiable decay could not be reproduced in the isolated profile, so the changed UI state remains an explicit validation gap rather than being represented with injected state.

Residual risk is limited to unmeasured fanout churn from per-child evidence updates and usage-free progress frames causing additional publication; no regression was proven, and no speculative throttle was added.

Verdict: land after fixes.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No new issues in the new commit — the transcript producer mirrors the existing child-clock wiring, and the normalization guard now matches the repo's isTimestamp convention. One description nit below.

Reviewed changes

  • Transcript-scan child clock — reconcileCodexSubagentTranscript now computes observedAt = Date.now() once per reconcile and passes it to upsertCodexSubagent for each parent-rollout sub_agent_activity record it reads, so a Codex child known only from the parent's transcript gets its own clock instead of none. The rollout cursor is incremental, so only newly appended records stamp; startedAt is still the provider spawn time.
  • Negative observation rejected into absence — normalizeSubagentSnapshot now drops evidenceObservedAt < 0, aligning the subagent snapshot with the isTimestamp validator used elsewhere on the wire.
  • Tests — the transcript clock is shown advancing across two reconciles under fake timers, and a negative evidenceObservedAt is shown normalizing to absent.

ℹ️ Nitpicks

  • The PR description's mechanism section still says the Codex transcript scan "simply does not pass" the observation moment, but after 933407d it passes Date.now(). Worth updating so the description matches the code.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Resolved the merge conflict against current main and pushed merge commit . Preserved the child-clock changes together with main's Codex reviewer/transcript updates; focused Codex transcript/roster/status tests pass (91 tests).

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Correction: conflict resolution was pushed in merge commit c0ffb21. Main’s Codex reviewer/transcript updates and the child activity-clock changes are both preserved; focused Codex transcript/roster/status tests pass (91 tests).

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No new issues — the only change since the prior review is the merge of main, and both of its conflict resolutions were verified faithful.

Reviewed changes

  • Merged origin/main into the branch (c0ffb21). Re-integrated main's Codex approval-reviewer refactor, resolving conflicts in codex-events.ts and codex-subagent-transcript.ts. The merge result equals main's current code plus only this PR's evidenceObservedAt additions: normalizeCodexEvent adopts main's childState / reconcileCodexSubagentReviewer path, and reconcileCodexSubagentTranscript keeps its single parentRecords cursor read while still stamping observedAt per transcript-only child record. Targeted suites (codex-subagent-transcript, codex-subagent-roster, agent-hook-relay, agent-status-types) pass — 90 tests.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

brennanb2025 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor Author

The PR-specific red check is fixed.

  • 7f67a688e5 moves the attribution audit out of the repository root and into docs/audits/child-activity-clock/.
  • 09b668856e refreshes the branch from current main, which includes the upstream translated-README link repair.
  • GitHub’s replacement root directory guard job now passes, including its README-link step.
  • 91 focused child-clock tests, the local root guard, the README-link check, and git diff --check pass.

The remaining CI jobs are running on the corrected head.

@brennanb2025

brennanb2025 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Attachments

claude-children-visible.png
claude-children-visible.png

claude-real-two-children.png codex-real-two-children.png
claude-real-two-children.png codex-real-two-children.png

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Validation gap resolved

The previously documented Electron validation gap is closed.

  • Launched the exact PR branch with an isolated profile, ORCA_BACKGROUND_LAUNCH=1, and Playwright CDP.
  • Used the real Claude Code provider (not injected state) to create two parallel child agents from one parent.
  • The backing status store recorded distinct child evidenceObservedAt timestamps.
  • The visible Agents surface rendered the completed parent with two distinct child rows: live screenshot.
  • Codex was not exercised end-to-end in the app; its transcript path remains covered by focused tests.

Readiness checks before and after the review are clean. The same-model review/fix loop is clean, CI is green, and no scope-expanding changes were made.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Full provider E2E validation complete

Both real providers were exercised through the exact PR branch in Electron (ORCA_BACKGROUND_LAUNCH=1, isolated profile, Playwright CDP):

  • Claude Code: one parent created exactly two parallel read-only children. Backing status observed child IDs achild-evidence-contract-2494a5f0d560dfc4 and achild-transcript-attr-def8ee6a48cf1df6; the store recorded distinct child evidenceObservedAt values while they were working, and the parent completed. Screenshot: Claude.
  • Codex: one parent created exactly two parallel read-only subagents. Provider transcript records show child threads 01a0c696-7cfb-7e91-956b-969842a472aa and 01a0c696-939d-7193-b35a-e4cf2b6d5eed, both completed. The rendered session surface showed the completed Codex run and its two-subagent report. Screenshot: Codex.

No files were edited or committed by either provider task. This closes the previous Codex validation gap; focused tests and CI remain green.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Closing as superseded: #22565 (merged) gives each subagent row its own activity clock through the child's own observation time, on main's single subagent-row source, which is what this PR set out to do.

@brennanb2025
brennanb2025 deleted the brennanb2025/attr-child-clock branch September 30, 2026 06:59
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