Skip to content

[RFC] Benchmark TTFA and TTC and Reduce Agent Tool Overhead #449

Open
0 of 1 issue completed
Open

Description

@FayeSpica

Problem

A DeepSeek face-replacement run showed 1,224 calls, 1,209 completed and 15 failed in the execution record. The Agent reported publishing an editable timeline and a finished video. Users had to inspect the trace to see which calls changed the project, which were waiting for generation, and which errors needed attention.

Execution record in AI chat after a face-replacement task.

origin traces:
OpenDirector-trace-3f68aec5-under10MB.zip

  • Six Bash calls waited on 15 jobs and produced 968 job wait requests (91.9% of CLI traffic). These included 954 status queries and 14 project snapshot reads. Of the status queries, 939 counted as completed calls while the jobs were still queued or running.
  • The panel counts the latest status per call ID. It showed 173 DeepSeek tool records and 1,051 CLI records. The trace recorded 1,053 CLI attempts and 16 CLI failures. Five of 20 generation submit attempts failed, including two retries rejected because they changed the input and reused the original call ID. Fourteen generation jobs succeeded. One failed after the provider returned HTTP 500 during a status check.
  • For image requests, users first wait for an editable node to appear. They may still be waiting for a usable image after the node appears. Measure both waits from Send.

Latency metrics

Both timers start on the same Send click in AI chat and use the browser's monotonic clock.

Metric End event for the single-image benchmark
TTFA (Time to First Action) The first browser frame showing the new editable image node in the viewport. Verify that it belongs to this turn's committed project state.
TTC (Time to Completion) The first browser frame showing the decoded generated image in the node. Verify that this turn's successful job produced the image and that the preview matches the adopted, persisted asset.

The first benchmark uses a fresh, empty project and sends this prompt.

Generate one image on the canvas. Set the generation size to 2048x2048 and output format to PNG. Use this exact image prompt: "A red ceramic mug on a pale blue table in soft window light." Keep the image visible on the canvas.

Keep the exact prompt, starting project, Agent harness and resolved version, tool and skill settings, and both model configurations fixed across baseline and candidate runs. Record the providers, model IDs and versions where available, and effective settings such as reasoning level, generation size, and output format.

Report P50 and P90 for both metrics, along with sample counts, failures, and timeouts. Keep the TTFA sample when the node appears and generation later fails. Use 3 seconds as the single-image TTFA target and report the shares within 3 seconds and over 8 seconds. Set a TTC target after collecting the real-model baseline.

Parallel work items

Each task can start independently. T3 and T4 can profile the single-image case while T5 defines the shared benchmark for final comparisons.

Task Work and acceptance Implementation and status
T1. Explain and reduce avoidable calls Reconcile panel records with runtime calls, CLI attempts, and polling requests. Use project receipts and later actions to distinguish useful calls, necessary waits, and avoidable repeats. Compare actual requests, status visibility, and committed changes for any proposed reduction. #455 open. Batch job waits and reduce discovery calls.
T2. Reduce tool failures Reproduce parameter, revision, and call ID errors. Rank preventable failures by code. Test improved contracts, errors, or retries against the same cases. When a submission outcome is unknown, look up the original operation. Verify that recovery preserves receipts and avoids duplicate writes. Open. Tool failure baseline and recovery comparisons pending.
T3. Reduce TTFA Time draft save, turn admission, runtime startup, node commit, synchronization, and the first visible frame. Compare TTFA after the proposed change. Verify that the node matches its commit and that selection, viewport, and unsaved input are preserved. #469 open. Turn timing supports profiling. Browser TTFA comparison pending.
T4. Reduce TTC Time generation submission, provider execution, asset registration, adoption, and preview decoding. Compare TTC, success rate, and duplicate submissions. Verify that the displayed image matches the adopted asset and meets the requested size and format. #469 open. Timing instrumentation supports profiling. End-to-end TTC comparison pending.
T5. Define the reference benchmark Publish the fixed inputs, run command, browser version, warmup and sample counts, concurrency, timeout, and output checks. Provide a real-model baseline and raw per-run results that let another contributor reproduce both metrics. #469 open. Instrumentation in progress. Fixed reference setup, real-model baseline and raw samples pending.

Compare cold and warm runs separately and retain failed samples. Rerun TTFA and TTC together after combining changes. Keep shared authorization, revision, lock, and adoption rules in effect. Verify changes to the execution record in English and Chinese.

Decisions for discussion

  1. What should the execution record show by default, and which labels can we support with trace evidence?
  2. What percentile and sample size should we use for the TTFA target? What progress should users see after 8 seconds?
  3. Which changes should we pursue based on the baselines, and what TTC target should we set for the fixed model?
  4. Which Agent harness and models should the first benchmark pin? When should we add other runtimes or reference-image cases?

If you would like to help, comment with the work item you want to take.

Related: #454 tracks what users see while video generation is running. This RFC tracks measured Agent latency.

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    help wanted
    on Nov 22, 2026
  2. added
    area:canvas
    area:timeline
    on Nov 22, 2026
  3. Redivesue commented on Nov 22, 2026

    @Redivesue
    Contributor

    I'd like to take T1 (explain and reduce avoidable calls) and T2 (reduce tool failures), scoped to the agent CLI / tool layer: CLI commands, the gateway's call records, the job query path, and the error and retry contract the agent sees. I won't change UI timing (T3/T4), and I'll use the T5 benchmark for final comparisons once it's defined.

    I read the current code (main @ fc2ff9f7). Most of the trace's numbers can be explained from the code:

    Why there are so many calls

    • job wait (packages/core/src/opendirector/cli.py:678) polls job.get once per second, one job per command. In agent mode, each poll goes to the gateway with a new random ID (cli.py:173), and cli_transport.py:41 records each one as a separate cli:<uuid> tool record. A successful query is recorded as complete whatever state the job is in. That matches 939 of the 954 status queries counting as completed while the jobs were queued or running: they are polls inside 6 Bash calls, not separate agent decisions. Each record also stores up to 64 KB of result.
    • On the server, job.get loads the full project snapshot and scans every object to find one job (application/creation_canvas.py:853), so each 1 s poll is a full snapshot read.
    • The 14 project snapshot reads: when job.get returns succeeded with an asset, the CLI calls read_project for the whole project just to build the delivery field (cli.py:256). That's one per successful job, and 14 jobs succeeded.

    T1 plan

    1. Reconcile the records: join panel records, gateway calls, CLI attempts and HTTP requests for the face-replacement run and the single-image prompt. Label each one as a committed mutation with a receipt, a necessary wait, or an avoidable repeat.
    2. Candidate changes, each compared on actual requests, status visibility and committed changes:
      • record one job wait as one call whose result is terminal / still running / timed out, instead of one record per poll;
      • make job.get an indexed lookup instead of a full-snapshot scan;
      • build delivery from a targeted query instead of read_project;
      • let job wait take several job IDs and wait on the server. canvas.status already supports waitSeconds (creation_canvas.py:730), so job.get could follow the same pattern. Caveat: ToolGateway.execute holds execution_lock for every call in a turn (agent/gateway.py:65), so a 30 s server-side wait would block the agent's other calls (for example, submitting the next job). A server-side wait only makes sense if waiting queries don't hold that lock; otherwise we lose parallel work.

    T2 plan

    1. Reproduce and rank the 16 CLI failures by code. Two causes are already visible in the code:
      • Call ID reused with a changed input. The CLI generates a new ID when --operation-id is omitted (cli.py:205), so the agent re-passed the original ID after changing its input. Rejecting it is correct. But the gateway's error (gateway.py:56) has no code and doesn't tell the agent whether to use a new ID or read the original receipt, so it can't be localized in the execution record or acted on reliably. I'd add a stable code and actionable guidance, plus a lookup of the original operation when a submission's outcome is unknown.
      • HTTP 500 during a status check failing the job. Status-check retries differ by adapter: Kling and Volcengine retry temporary/rate-limit errors (kling_video.py:151), while the generic video adapter in model_adapters.py (~line 668) fails the job on the first HTTP error. I'd make temporary errors during status checks retry the same way across adapters, keep the original remote job, and never resubmit.
    2. Tests: same ID + same input returns the original receipt; same ID + different input is rejected with the new code; recovery keeps receipts and writes no duplicates. New messages ship in both zh-CN and en-US through the existing code-based localization.

    Authorization, revision, lock and adoption rules stay as they are. I'd start with the record and query-cost changes, since they carry the least risk, and include before/after numbers in each PR.

    Questions

    • Could you share the raw trace (or an export) of the face-replacement run? I need it to classify the remaining failures and see which provider returned the 500.
    • Would you accept waiting queries running outside execution_lock, or would you rather keep server-side waiting out of scope and only fix records and query cost?
  4. Redivesue commented on Nov 22, 2026

    @Redivesue
    Contributor

    @FayeSpica Could you export the trace of those 1,224 calls as a JSON file and share it? It would be one of the main references for the optimization work.

    @FayeSpica 能麻烦您把那 1,224 次调用的轨迹导出成 JSON 文件分享出来吗?这能作为优化的重要参考依据之一!

  5. added
    area:agent
    area:harness
    area:performance
    on Nov 22, 2026
  6. FayeSpica commented on Nov 22, 2026

    @FayeSpica
    CollaboratorAuthor

    @Redivesue updated in RFC, PTAL

  7. Zhangbo-cn commented on Nov 22, 2026

    @Zhangbo-cn
    Contributor

    I'd like to take T3 (reduce TTFA), T4 (reduce TTC) and T5 (define the reference benchmark), on top of the shared work Redivesue is doing in T1/T2: TTFA and TTC are only meaningful once the record and query costs are understood, so I'll reuse the same instrumentation rather than invent a parallel one.

    What I found in main today (fc2ff9f7)

    • Neither metric has any instrumentation: TTFA/TTC appear nowhere in the code, and the Agent path has no performance.now() marks, so there is currently no before/after evidence for either task.
    • T3's six stages exist but are untimed — draft save (src/canvas/useAssistantChat.ts:461 await flushChatDraft() runs serially before the turn is posted), turn admission (apps/api/src/opendirector_api/agent.py:437+: per-project admission lock, model resolution, skills(), and a full projects.snapshot), runtime start (native.py/process.py spawn the CLI each turn), node commit through cli.py or tools.py into agent/gateway.py:65 (execution_lock held for the whole turn), synchronization (apps/api/src/opendirector_api/creation.py:243 /subscribe pushes a cursor, and the browser answers every event with a full refresh() of /canvas, plus one more from syncServiceResults() when a tool call ends), and the first visible frame.
    • T4's stages map to jobs and results already exposed in the snapshot (creationJobs.ts: job.adopted, generationSpecs.currentResultId, preview pending → decoded), but no stage is timed and the preview is fetched only when the node renders — there is no prefetch and no off-main-thread decode.
    • T5 has reusable pieces but no benchmark: scripts/nightly/benchmark.json + daily_benchmark.py already define the regression policy (regressionRatio with minDeltaMs, an empty baseline until a ubuntu-22.04 sample is copied in), reference_drag_performance.mjs shows the browser-sampling pattern, and tests/browser/creation_server.py (with --assistant-fixture) plus scripts/run-browser-suite.mjs give an isolated, credential-free harness.

    Plan

    1. T5 first, because T3/T4 need it: publish the fixed project template and exact prompt, the run command, pinned browser build, warmup and sample counts, concurrency, timeout, and output checks (size, format, and that the displayed pixels are the adopted asset). Report P50/P90 with sample counts, failures and timeouts, keep failed TTFA samples, and publish raw per-run JSON. Validate the instrument against the fixture first, then record a real-model baseline and state provider, model ID and version, reasoning level, size and format.
    2. T3 and T4 next, each stage timed separately, then the candidate changes ranked by measured contribution: draft flush off the critical path; admission and job.get shared with T1's snapshot work; the execution_lock question Redivesue raised; per-event incremental sync instead of a full /canvas refresh; preview prefetch and off-main-thread decode for TTC.
    3. Re-run both metrics together after combining changes, with cold and warm runs reported separately, and verify the execution record in both languages.

    Questions

    • Which harness and model should the first benchmark pin? I can measure default, deepseek and opencode here; codex currently fails with CLI 未返回模型列表 and jiuwenswarm times out past 900 s on this machine, so I would rather not pin either until that is resolved.
    • Where should the real-model baseline be produced and published — a nightly artifact next to daily-benchmark.json, or a file in the repository with the raw samples attached? Real 2048×2048 PNG samples need credentials and cost money, so I want that decision before collecting 20 runs.
    • Is a warm process pool for the CLI runtimes in scope for T3, or should runtime start stay out of scope for now? It is the largest single stage but also the riskiest.
    • For T5's TTFA target, do you want P50 within 3 s and a separate >8 s share, or a P90 gate as well? The issue sets 3 s as the target and asks for the >8 s share; I'll follow that unless you prefer an explicit percentile gate.
  8. FayeSpica commented on Nov 22, 2026

    @FayeSpica
    CollaboratorAuthor

    @Redivesue and @Zhangbo-cn, you’re both assigned to #449, so please go ahead with your proposed tasks. Feel free to share findings or questions here, or open a sub-issue if something needs its own discussion.

  9. Zhangbo-cn commented on Nov 22, 2026

    @Zhangbo-cn
    Contributor

    First T3/T4 slice is open for review: #455 (perf/tool-call-batching). It removes the two per-item loops that dominate the trace, without adding a parallel mechanism:

    • job.status query answers up to 50 jobs from one snapshot and waits server side for up to 100 s per window. job wait JOB... / job wait --all uses it, receipts return one wait command for every accepted job, and read-only queries no longer take the turn's execution slot.
    • opendirector capabilities replaces per-command --help probing, and project show --summary returns identities and revisions instead of every record body.

    Measured with the new scripts/bench_agent_polling.py on a 200-item/600-commit project with 14 unfinished jobs:

    Metric Before After
    14 jobs, one poll tick 180.6 ms, 14 snapshot reads 14.0 ms, 1 snapshot read
    Discovery 33 CLI calls, 30.1 s, 110 KB 1 call, 1.0 s, 7 KB
    project show payload 176,840 bytes 57,237 bytes

    The 968 waits in the trace still need server-side windows to shrink further (9 processes per 15 min instead of ~900), which is included; what remains outside this slice is R1 (native tool channel instead of one CLI process per action), R4 (event-driven canvas sync instead of a full refresh per tool event), and T5 instrumentation. I plan to build T5 on this benchmark so the TTFA/TTC numbers and call counts come from one harness.

  10. Redivesue commented on Nov 23, 2026

    @Redivesue
    Contributor

    T1 evidence update: internal polling accounts for most of the recorded calls.

    cc @FayeSpica @Zhangbo-cn

    I parsed all 2,715 JSONL records in the attached trace. This confirms the RFC's polling counts and adds a comparison of unchanged responses.

    Trace findings

    Six background Bash calls waited on 15 distinct generation jobs. Some Bash commands looped sequentially over job IDs; this does not mean the generation jobs themselves ran sequentially.

    Requests recorded under opendirector job wait Count
    job.get status queries 954
    Additional project reads after successful jobs 14
    Total 968 / 1,053 CLI attempts (91.9%)

    The 954 status-query results contained:

    Job status returned Count
    running 825
    queued 114
    succeeded 14
    failed 1

    All 954 queries were recorded as complete: 939 completed query records still represented queued/running jobs. Query completion is valid transport/execution evidence, but does not establish generation completion.

    Grouping results by job ID and comparing their complete recorded result strings gives 59 distinct responses across 954 queries. The remaining 895 responses (93.8%) repeat a result already returned for the same job. These status-query result strings occupy 9,662,495 UTF-8 bytes (~9.66 MB), excluding the 14 additional project reads. This measures recorded payload, not model tokens or inference cost.

    For reproduction, use deepseek.jsonl from the attachment; select top-level type == "tool", status == "complete", name == "opendirector job wait", and arguments.type == "job.get". Group by arguments.objectId, deduplicate the result strings within each group, and sum the unique counts. Count attempts from their running events rather than counting both start and completion events. Archive SHA-256: aa0416ebdda89248914ed46a9a15161db7c75181b5b4d099390ccec082617244.

    Corresponding code mechanism

    Source references below are pinned to 8c00a9e5, the baseline inspected locally, not a claimed commit identity for the trace.

    1. job_wait() queries one job repeatedly and sleeps up to one second between queries.
    2. Client.call() assigns identity or uuid4(); each poll without an explicit identity gets a new call ID.
    3. The CLI transport emits separate running/terminal tool activities for each request and records up to 65,536 result characters.

    This explains the amplification: per-second polling → fresh request IDs → independent activity records → successful queries counted as completed calls.

    The corresponding backend work also matters:

    • query_snapshot() loads a project snapshot and builds/scans the object index to answer job.get.
    • Client.query() reads the project again after a successful job to construct delivery. The trace contains exactly 14 such reads following the 14 successful jobs.

    Process-count clarification: the original job_wait() loop runs inside one CLI process. The 954 status requests must not be reported as 954 CLI process launches; a shell loop can start another CLI process for the next job, but individual polling iterations do not.

    Implication for the RFC

    This supports the batched-wait direction in #455 and gives T1/T5 a baseline for measuring separately:

    • CLI requests and backend snapshot reads;
    • activity-record count and recorded payload;
    • visibility of job progress, terminal outcomes and delivery.

    Aggregating records alone would improve readability without proving reduced backend work. Moving polling server-side alone would reduce transport requests without proving fewer snapshot reads. Comparisons should retain all job outcomes and distinguish query success from generation success.

    Scope: trace analysis and source inspection only; no real-model rerun, browser timing, or measured TTFA/TTC improvement is claimed. The trace has no application commit identifier and includes capabilities differing from this baseline.

  11. 4 remaining items

  12. Zhangbo-cn commented on Nov 23, 2026

    @Zhangbo-cn
    Contributor

    Measured the batching side of R1/R3 on real code, not a synthetic ledger — this is the first deterministic number for "how many calls does one task need", measured at the CLI boundary where every tool call actually lands.

    Setup

    scripts/-style replay harness, seeded project (200 canvas nodes, 600 saves, 14 or 40 jobs seeded as cancelled + cancellation facts so the fixture satisfies the Job.execution_identity validator). Same task on both sides: discover the interface → read project state → wait for the job group → read project state again. Before = upstream-ssh/main @ 27315390; after = #455.

    Result

    jobs before after
    14 18 calls / 18.7 s / 384,812 B 4 calls / 4.9 s / 126,171 B
    40 44 calls / 48.2 s / 534,806 B 4 calls / 5.1 s / 133,503 B

    The before column is O(jobs) because each job needs its own job wait; the after column is flat, because job wait --all answers the whole group with one server-side wait. Bytes drop less than calls (4.5×) than calls do (11× at 40 jobs) — the /canvas snapshot still dominates what the agent reads, which is R4 and is not addressed by #455. Worst single call before was discover (1.2 s, opendirector --help) and, at 40 jobs, job wait number 18.

    What this does and does not show for T3/T4

    • It bounds the call-count and transport share of a turn without a model in the loop, so it is reproducible on any machine — useful as the denominator for A2.
    • It does not measure TTFA/TTC. Wall-clock per turn, start-up share and the synchronization segment need the ledger in [perf] agent: record where a turn spends its time (#449) #469, which anchors spawn/work on the CLI's monotonic start and writes agent-runs/timing/<turn_id>.json per turn; scripts/bench_turn_timing.py turns those raw numbers into percentiles and a band verdict (spawnShareOfTurn > 0.4 ⇒ the transport, not the call count, is the thing to replace).
    • A model turn still has to land on top of this: locally codex crashes on start, deepseek/jiuwenswarm are absent, and opencode forwards no tool events through the API path, so the end-to-end model ledger is still unmeasured. That is the remaining gap before any TTFA/TTC number can be quoted.

    Two defects found while measuring are fixed in #455 (354644e3): a wait group used to be re-selected on every poll, so settled jobs vanished from the answer and failures were reported as success; and capabilities described only the commands built from a command model, missing 24 registered ones including job wait itself.

  13. Redivesue commented on Dec 4, 2026

    @Redivesue
    Contributor

    Proposing a concrete convention for Decision 1 (What should the execution record show by default, and which labels can we support with trace evidence?) alongside the T1 implementation in #681 (cc @FayeSpica @Zhangbo-cn @hsliuustc0106 @princepride):

    1. Trace / persisted data (no transport semantics change): keep status: "complete" for successful wait calls and record an explicit waitOutcome payload (kind, settled, and statuses/status) on completed job.status and canvas.status waits.
    2. Default execution-record labels & counts (trace-backed):
      • A wait record with status === "complete" and waitOutcome.settled === false is shown as Not finished (en-US) / 未结束 (zh-CN), excluded from the finished count, and summarized separately (e.g., 2/4 complete · 2 returned before jobs finished / 2/4 已完成 · 2 次返回时任务未结束).
      • Settled waits (settled === true) and legacy records saved before waitOutcome existed continue showing as Complete / 已完成.
    3. Why this label: it is strictly backed by observed server state (terminal === false / non-terminal status) without claiming why the wait returned or conflating a timed-out wait window with a failed tool call.

    Please confirm if this labeling and summary convention works for Decision 1, or let us know if you prefer different wording/placement in #681.

  14. Redivesue commented on Dec 5, 2026

    @Redivesue
    Contributor

    T1 status: implemented in #681 (merged), follow-up #701 in review.

    cc @FayeSpica @Zhangbo-cn

    T1 asked us to explain the recorded calls, separate useful calls from necessary waits and avoidable repeats, and compare requests, status visibility and committed changes for any reduction. This summarizes what landed, what it measured, and what remains.

    1. Reconciliation of the face-replacement trace

    scripts/trace_job_queries.py (#681) reads the attached trace archive in memory, checks its SHA-256 (aa0416eb…7617244), and fails with a full diff if any published number is not reproduced. --check-published reproduces every number from the RFC and the T1 evidence update: 2,715 records, 1,053 CLI attempts, 16 CLI failures, 954 job.get queries (825 running, 114 queued, 14 succeeded, 1 failed), 939 complete records for unfinished jobs, 59 distinct and 895 repeated responses, 9,662,495 result bytes, and 14 project reads after successful jobs.

    It also labels each of the 1,037 completed CLI records:

    Label Records Meaning
    Project change 36 Commands with a payload
    Necessary wait 59 A new answer for a job
    Avoidable repeat 895 The same answer the job already returned
    Delivery project read 14 A full project read to build job show delivery
    Other 33 Project and model reads (project show 15, object.get 13, model show 2, model list 1, asset.usage 1, group assemble 1)

    Each of the 15 jobs changed status only one to three times but was queried up to 162 times.

    2. What changed

    The per-job polling loop and per-command --help discovery were removed by #455. T1 addressed what remained on the wait and query paths:

    Change (#681) Before After Evidence
    job wait / canvas.status copy the snapshot only when the project head moves One full snapshot copy per 0.5 s tick One copy per new commit 5 → 1 copies and −77% CPU per idle window; 55 → 5 copies with 5 concurrent waiters; terminal states still reported with 0 missed, 0 wrong
    job show takes delivery from job.status read_project: full project and model catalog, queued behind the turn's writes One job's view, read-only 141,320 → 2,660 B; 1,038 → 51 ms with the write slot held for 1 s; identical output digest
    Tool records indexed by call ID Linear search per event Dictionary lookup 2,500 calls in one turn: 744 → 563 ms; identical saved records
    One discovery rule for every runtime Per-turn context said opendirector --help, SYSTEM said capabilities Both use CLI_DISCOVERY Runtime tests assert the actual prompt each runtime receives
    waitOutcome on completed waits A wait window that returned early was recorded and counted as complete settled and status counts are recorded; the record keeps status: complete Transport tests, persistence tests, browser check in both locales

    Snapshot reads share one _read_snapshot() with snapshot() (after #562), so wait reads keep the same manifest check, journal recovery and head validation, and take the catalog lock no more often than a plain read. The benchmarks are scripts/bench_agent_polling.py --source <tree> runs on identical fixtures; commands and fixture sizes are in #681.

    #662 covered two T2 failure modes from the same trace: a stable command_conflict code with a receipt lookup for reused call IDs, and retries for transient video status polls that keep the original remote job.

    3. Real-model check

    We ran the RFC's single-image prompt (2048×2048 PNG) three times on each side, alternating before and after, with the default runtime, deepseek-flash and MiniMax-H3-Image:

    • All 6 turns produced a 2048×2048 image on the canvas. No job needed recovery.
    • waitOutcome appeared on 3/3 turns after the change and 0/3 before.
    • This prompt waits for one job, and each turn returned from its first wait window. No turn called job show, capabilities or --help. The wait gating, delivery and indexing changes are therefore not visible in these records; their evidence is the controlled measurement above.
    • Turn time (P50 54.4 s before, 63.1 s after, n=3) is dominated by model and provider latency, and the after turns made two more calls each. We do not attribute it to the change.

    4. Status visibility (Decision 1)

    The convention proposed above is implemented: status stays the call outcome, and waitOutcome carries what the wait observed. #701 refines the display after review: it records the requested wait mode, so an until=any wait or a zero-second status query that returns while other jobs are running is not shown as an expired wait. I'd suggest treating #701's display as the answer to Decision 1 unless you prefer another presentation; the recorded data supports alternatives without backend changes.

    5. Remaining avoidable calls found during T1

    These are outside the T1 changes and are listed for follow-up:

    1. Full project reads behind small commands. In agent mode, model list, model show and project show --summary each call read_project (the whole project, model catalog and command list) and queue behind the turn's writes. In the real-model turns these reads made up 94–98% of recorded result bytes. [RFC] Agent context cost and prompt-cache stability #586 T6 covers the summary size; the model commands need a catalog-only read.
    2. Missing next command after canvas.createGeneration. The video creation receipt includes a ready-to-run generation submit with current versions; the generic receipt does not. In all 6 real-model turns the agent's first submit was rejected for missing expectedVersions. This belongs with T2.
    3. Discovery effect not yet observed. No real-model turn ran capabilities or --help, so the unified rule removes a contradiction but its effect on call counts is unmeasured. After the change, every turn also called model show once (3/3 vs 0/3); n=3 is too small to attribute this to the new wording.

    Scope and limits

    • Controlled benchmarks use local fixtures on macOS (Apple Silicon, Python 3.13); Windows byte verification was simulated.
    • The real-model check covers one short single-job prompt with n=3 per side. A multi-job, long-wait task, as in the original trace, has not been rerun with a real model.

    Once #701 is merged, I think T1 can be marked done in the task table. The items in section 5 can move to T2 and #586.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:agentarea:canvasarea:harnessarea:performancearea:timelinehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions