Skip to content

fix(#8908): render Claude Workflow progress - #8913

Merged
jctanner merged 16 commits into
fullsend-ai:mainfrom
jctanner-fullsend-ai:fix/8908-claude-workflow-progress
Nov 5, 2026
Merged

jctanner merged 16 commits into
fullsend-ai:mainfrom
jctanner-fullsend-ai:fix/8908-claude-workflow-progress

Conversation

@jctanner

@jctanner jctanner commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Claude dynamic Workflows can run for dozens of minutes or hours under fullsend run while the console shows only elapsed-time heartbeats. Useful task/agent progress already reaches Fullsend and is captured in output.jsonl, but the parser previously dropped it from the display.

This PR renders task and agent lifecycle changes alongside useful runtime notices. It preserves partial updates and optional run IDs, retains failure context, and distinguishes repeated events from unchanged snapshots. Displayed metadata is redacted and bounded without changing raw stream capture, model output, tool traces, or usage accounting.

Before and after

Before — recorded pre-fix fullsend run output during a Workflow:

  ⏳ Agent running (30s elapsed, 1h29m30s remaining)
  ⏳ Agent running (1m0s elapsed, 1h29m0s remaining)
  ⏳ Agent running (1m30s elapsed, 1h28m30s remaining)
  ⏳ Agent running (2m0s elapsed, 1h28m0s remaining)

The heartbeat proves elapsed time, but gives no phase, agent, or tool context even while those events are arriving.

After — output from the patched parser/renderer replaying that same job's captured Claude stream:

  ⚙ Task w80g4bbn2 / agent #1 (a78b8aa07430c07f5) [Read]: read input — running (attempt 1)
  ⚙ Task w80g4bbn2 / agent #1 (a78b8aa07430c07f5) [Read]: read input — completed (tool: StructuredOutput: /sandbox/workspace/target) (attempt 1)
  ⚙ Task w80g4bbn2 / agent #2 (aff6bc07e129e197a) [Create]: strategy-create — running (attempt 1)
  ⚙ Task w80g4bbn2 / agent #2 (aff6bc07e129e197a) [Create]: strategy-create — running (tool: Bash: python3 scripts/frontmatter.py schema strat-task 2>&1) (attempt 1)
  ⚙ Task w80g4bbn2 / agent #2 (aff6bc07e129e197a) [Create]: strategy-create — completed (tool: StructuredOutput) (attempt 1)
  ...
  ⚙ Task w80g4bbn2 / agent #9 (a3adb8ad862450699) [Result]: write result — running (attempt 1)
  ⚙ Task w80g4bbn2 / agent #9 (a3adb8ad862450699) [Result]: write result — completed (tool: StructuredOutput: strat-completion) (attempt 1)
  ⚙ Task w80g4bbn2: Result: write result — completed (tool: write result)

These are excerpts, not a new live model run. The before excerpt has CI timestamps/runner prefixes removed and emoji encoding normalized; the after excerpt omits intervening lines. Task and agent IDs, phase attribution, tool context, and lifecycle transitions come from the original stream. The complete replay normalized 325 task/agent events into 55 display lines, with repeated snapshots suppressed.

The normal heartbeat remains. Task completion is runtime lifecycle metadata, distinct from Fullsend's validated business result. This does not stream complete nested tool stdout/stderr or recover internal workflow_log messages that Claude filters out before SDK emission.

The workflow_progress payload (including workflow_agent metadata) and system/task_summary message are undocumented internal Claude Code extensions, not stable public Agent SDK contracts. They may change or disappear without notice in any patch release; decoding is best-effort. The 2.1.312 evidence is its embedded emitter/schema, not a newly recorded live Workflow run.

Related Issue

Fixes #8908

Changes

  • Normalize task start/progress/update/notification events, pending/paused/resumed/terminal states, and Workflow agent blocked/cached/error metadata.
  • Merge partial lifecycle changes, preserve failure details, and handle missing/late run IDs and restarts without reopening terminal tasks from stale snapshots.
  • Display useful hook lifecycle, permission-denial, compaction/session, notification, background-membership and rate-limit metadata. Keep per-request status chatter out; preserve repeated unkeyed warnings.
  • Sanitize, credential-redact and bound fields and retained display state; keep prompts, result bodies, hook output and progress usage counters out of these display events.
  • Add regressions and a version-bounded event matrix documenting displayed, ignored and producer-unavailable records.

Testing

  • make lint passes, including Go vet, credential checks and Markdown links.
  • Tests added/updated for new or modified logic, including red-first regressions for the Claude review findings.
  • go test -race -coverprofile=/tmp/fullsend-8908-review-final-runtime.cover ./internal/runtime -count=1 passes; 93.3% package statement coverage.
  • go test -race ./internal/cli -run '^TestIterationEventHandler' -count=1 passes for the display consumer, redaction and model-output/tool-trace non-interference.
  • Model-free replay of the original captured stream passes; raw archive unchanged.
  • Read-only claude-opus-5-5 review; actionable findings repaired and final re-review found no new material defect.

Validation limit: the earlier full make go-test run hit the CLI package's default 10-minute timeout. The active existing test passed individually on both unchanged main and the patch. This PR does not claim a passing full repository suite, and no suite timeout was increased.

Checklist

  • PR title follows Conventional Commits.
  • Commit is signed off (DCO).
  • I wrote this contribution myself and can explain all changes in it.

@jctanner
jctanner requested a review from a team October 29, 2026 18:33
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

E2E tests are running

Authorization passed for this commit. See the E2E Tests workflow for results.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Render live Claude Workflow and runtime progress

🐞 Bug fix ✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Display Claude task, Workflow agent, and runtime status changes so runs show useful progress.
• Preserve partial lifecycle context while suppressing unchanged snapshots and stale terminal
 updates.
• Redact and bound display metadata without changing raw capture, tool traces, or usage accounting.
Diagram

graph TD
  Stream["Claude stream"] --> Parser["Claude parser"] --> Events["Progress events"] --> Renderer["Event renderer"] --> Output["Console and CI"]
  Secrets["Runner secrets"] --> Renderer --> Cache["Display cache"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Maintain lifecycle state in the Claude parser
  • ➕ Keeps Claude-specific run-ID and lifecycle rules close to wire decoding.
  • ➖ Couples parsing to console display policy and makes normalized progress events less reusable.

Recommendation: Keep the PR’s separation: allowlisted Claude decoders emit advisory events, while the renderer owns display-state merging, redaction, and deduplication. Parser-owned lifecycle state would make display behavior harder to reuse without improving raw stream capture or accounting.

Files changed (14) +1562 / -6

Enhancement (5) +486 / -5
claude_progress.goRoute Claude lifecycle and status records to progress decoders +15/-0

Route Claude lifecycle and status records to progress decoders

• Recognizes selected system subtypes and rate-limit events, emitting normalized advisory events alongside the existing Claude stream events.

internal/runtime/claude_progress.go

claude_status_progress.goDecode allowlisted Claude runtime notices +239/-0

Decode allowlisted Claude runtime notices

• Extracts display-safe hook, summary, notification, session, permission, background-task, compaction, and rate-limit fields. Excludes hook output and result bodies, and ignores unsupported states or malformed records.

internal/runtime/claude_status_progress.go

claude_task_progress.goDecode Claude task and Workflow agent lifecycle events +142/-0

Decode Claude task and Workflow agent lifecycle events

• Maps task starts, progress, patches, and notifications into normalized events, including partial-field markers and agent attribution. Ignores static phase declarations, malformed optional snapshots, and terminal result summaries.

internal/runtime/claude_task_progress.go

renderer.goDispatch advisory progress through the event renderer +18/-5

Dispatch advisory progress through the event renderer

• Adds task and status event handling, a caller-provided progress redaction callback, and per-renderer lifecycle and deduplication state.

internal/runtime/renderer.go

status_progress.goRender bounded runtime notices and state transitions +72/-0

Render bounded runtime notices and state transitions

• Defines advisory status events and renders sanitized, deduplicated progress lines. Treats unkeyed notices as occurrences, suppresses initial recovery messages, bounds retained state, and preserves CI output boundaries.

internal/runtime/status_progress.go

Bug fix (2) +254 / -1
run.goApply runner-secret redaction to iteration progress +5/-1

Apply runner-secret redaction to iteration progress

• Creates an event renderer for the iteration and configures its progress-only redaction callback with runner environment secrets before wiring it into the existing event handler.

internal/cli/run.go

task_progress.goTrack and safely render task and agent progress +249/-0

Track and safely render task and agent progress

• Defines task lifecycle events and maintains separate task, run, and agent identities across partial updates and restarts. Guards terminal and hidden tasks, deduplicates snapshots, and redacts and bounds fields before retention or display.

internal/runtime/task_progress.go

Tests (5) +765 / -0
workflow_progress_test.goVerify Workflow metadata remains display-only +33/-0

Verify Workflow metadata remains display-only

• Checks that task and status progress redact runner and provider secrets without entering collected model output or creating tool spans.

internal/cli/workflow_progress_test.go

claude_progress_review_test.goCover lifecycle identity and repeated-notice regressions +185/-0

Cover lifecycle identity and repeated-notice regressions

• Tests terminal context, unkeyed warning occurrences, quiet request cycles, optional run-ID promotion, restarts, malformed optional fields, and safe field joins.

internal/runtime/claude_progress_review_test.go

claude_status_progress_test.goTest status shapes, transitions, and display safety +154/-0

Test status shapes, transitions, and display safety

• Covers supported and rejected wire records, status deduplication and recovery, raw-stream and metrics preservation, CI safety, redaction, and cache bounds.

internal/runtime/claude_status_progress_test.go

claude_task_updates_test.goTest partial task updates and terminal guards +105/-0

Test partial task updates and terminal guards

• Verifies pause and resume patches, preserved failure details, explicit field clearing, fresh runs, agent metadata, and suppression of ambient or stale progress.

internal/runtime/claude_task_updates_test.go

claude_workflow_progress_test.goExercise Workflow fixtures and renderer invariants +288/-0

Exercise Workflow fixtures and renderer invariants

• Tests agent transitions against a reduced Claude capture, lifecycle decoding, identity separation, deduplication, sanitization, CI boundaries, bounded state, and unchanged raw capture and usage accounting.

internal/runtime/claude_workflow_progress_test.go

Documentation (2) +57 / -0
run.mdDocument live Claude Workflow display and limits +51/-0

Document live Claude Workflow display and limits

• Explains displayed event kinds, deduplication and lifecycle behavior, sanitization, and producer-version limitations. Clarifies that progress is advisory and does not include nested output or change usage totals.

docs/cli/run.md

claude.mdLink Claude runtime guidance to live progress behavior +6/-0

Link Claude runtime guidance to live progress behavior

• Notes that structured Workflow and lifecycle events can appear during a Claude run, with a link to display behavior and limitations.

docs/runtimes/claude.md

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:35 PM UTC · Completed 6:57 PM UTC

Commit: 7f266ee · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.44

@qodo-code-review

qodo-code-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. A token-shaped test value enters source ✓ Resolved

Resolving commit: a4c6474

Resolution reason
The hardcoded credential-like literal was removed. The test now constructs a clearly synthetic value
at runtime using "ghp_" + strings.Repeat("0", 36), with an explicit comment identifying it as a
scanner-shaped dummy rather than a stored credential, while preserving the redaction assertions.
Description
token hardcodes a ghp_-prefixed credential-shaped string in a renderer redaction test. Although
the value is used as fixture data, it matches the prohibited token pattern and is shipped in the
changed Go source instead of being an unmistakable non-secret placeholder.

2. Hook completions lose their hook names ✓ Resolved

Resolving commit: 8e1fd40

Resolution reason
Hook name and event fields are now decoded as optional, propagated as attribution metadata, and
retained by hook ID in the status renderer so sparse completion events reuse the prior identity.
Added tests verify identity retention and explicit clearing.
Description
decodeClaudeStatusProgress constructs each hook label solely from fields on the current record,
without recovering the name and event from an earlier record with the same hook ID. When a response
omits those optional fields, its outcome appears as an unnamed hook even if the start identified it.

3. Counter updates erase agent context ✓ Resolved

Resolving commit: 8e1fd40

Resolution reason
The decoder now tracks presence for optional agent fields using pointers and Set flags, while
taskProgress merges omitted metadata from the prior agent snapshot and preserves explicit
empty/false values as clears. Added tests verify sparse counter snapshots retain context and
explicit clears remove it.
Description
decodeClaudeTaskProgress turns an agent snapshot with omitted fields into empty phase, tool, and
error values, while taskProgress retains only its label and state for non-update events. When a
later snapshot carries the same agent identity and state but only changed counters, the renderer
prints another line with the previously displayed context removed.

View medium (1)
4. New tasks disappear after hidden runs ✓ Resolved

Resolving commit: 8e1fd40

Resolution reason
Removed inheritance of the previous named run's hidden flag when assigning a new run identity, and
retained hidden state under the event's own key so hidden agents cannot replace or suppress the
visible parent run.
Description
taskProgressIdentity copies the current run’s hidden flag onto the first agent event of an unseen
named run, and taskProgress stores that agent event as the new run’s parent. If a hidden run is
followed by a run with the same task ID whose first event is an agent completion, the parent becomes
terminal and subsequent running progress for the new run is suppressed.

Grey Divider

Context sources
✅ Compliance rules (platform): 94 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Cross-repo context — repo relationships
Review mode: Auto: 🧠 Deep: Complex parser, lifecycle, rendering, redaction, and deduplication logic span many paths.

Grey Divider

Tip of the day
💡 Did you know, you can turn these tips off under Display > Comment parts

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread internal/runtime/task_progress.go Resolved
Comment thread internal/runtime/task_progress.go Resolved
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://db6fd19d-site.fullsend-ai.workers.dev

Commit: d667f9323c55532eb1d8de871776fb1e6c5ba8cb

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.26027% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/runtime/claude_status_progress.go 92.04% 7 Missing and 7 partials ⚠️
internal/runtime/claude_task_progress.go 98.52% 2 Missing ⚠️
internal/runtime/event.go 0.00% 2 Missing ⚠️
internal/runtime/progress_text.go 97.59% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Oct 29, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

Previous run

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

Previous run (4)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

Previous run (5)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with high test coverage and zero protected or security paths, balancing active runner file churn against well-scoped issue criteria and straightforward rollback safety.

Previous run (6)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with high test coverage and zero protected or security paths, balancing active runner file churn against well-scoped issue criteria and straightforward rollback safety.

Previous run (7)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with high test coverage and zero protected or security paths, balancing active runner file churn against well-scoped issue criteria and straightforward rollback safety.

Previous run (8)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

Previous run (9)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high git churn and author contention on touched CLI and runtime files, balanced by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive rendering scope.

Previous run (10)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high git churn and author contention on touched CLI and runtime files, balanced by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issues additive rendering scope.

Previous run (11)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

Previous run (12)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk driven by high churn and author contention on touched CLI and runtime files, offset by zero protected or security-sensitive path changes, high test coverage, and clear alignment with the linked issue's additive scope.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — decodeClaudeStatusProgress goes beyond what linked issue Claude Workflow task_progress events are captured but omitted from console output #8908 requests (normalizing and rendering Claude Workflow task_progress and related task lifecycle events). It also adds decoders and renderers for hook lifecycle, session state, permission denials, background-task membership, compaction status, informational notices and rate limits. The PR body discloses this extra scope, but the issue does not request it. Severity stays at the prior level: this push did not touch this code.
    Remediation: Split the general runtime and hook notice handlers into a separately authorized issue/PR, or have the maintainers explicitly accept the broader scope on the issue.

Low

  • [secret-exposure] internal/cli/run.go:4358 — redactSecretLiteralsWithNormalizer replaces literals one at a time, longest first. That handles a secret nested inside another but not two credentials that partly overlap. With TOKEN_A=*** and TOKEN_B=***, masking TOKEN_A leaves part of TOKEN_B visible, and the renderer's overlap-union fallback never sees the original text because the CLI callback runs first. Exploiting this needs two distinct credentials whose values overlap in displayed progress text, so it is unlikely. No CLI test covers crossing overlaps.
    Remediation: Collect all literal match ranges against the unchanged input, merge overlapping ranges, and mask the union in a single rewrite. Add a CLI progress-redaction regression test with crossing overlapping credentials.

Earlier findings

  • internal/runtime/task_progress_message.go:60, secret-exposure: resolved. The latest push masks the assembled task-row message with the caller redaction callback and the fallback scanner before it is fingerprinted or displayed (internal/runtime/task_progress_reconciler.go), with a split-credential regression test.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NsYXVkZV9zdGF0dXNfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfZTczMzBkOGNlZGI4ZWEyOSIsImxpbmUiOjEzLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiaW50ZW50LWNvaGVyZW5jZSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InNlY3JldC1leHBvc3VyZSIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3Rhc2tfcHJvZ3Jlc3NfbWVzc2FnZS5nbyIsImlkIjoiZl82MjhhYTY5YWRlYjMxODRhIiwibGluZSI6NjAsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2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MDY3ODMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — decodeClaudeStatusProgress decodes general Claude runtime notices (hook lifecycle, notifications, compaction/session state, permission denials, rate limits) beyond the Workflow task/agent progress that issue Claude Workflow task_progress events are captured but omitted from console output #8908 authorizes. The PR body discloses this, but it is still outside the linked issue's scope and adds display surface that needs allowlisting and redaction. The file is unchanged since the prior review.
    Remediation: Limit rendering to Workflow task and agent events, or split general runtime status notices into a separately authorized issue and PR.

Low

  • [secret-exposure] internal/runtime/task_progress_message.go:60 — Task rows are sanitized after the fields are joined but are not credential-redacted again. Each field is redacted on its own upstream, but the joined row can rebuild a registered credential split across field boundaries (for example TaskID opaque-task with Label credential-tail against a registered opaque-task: credential-tail). Status rows now redact the joined row in this push, so task rows are inconsistent with them.
    Remediation: Run the caller-owned redactor and scanProgressSecrets on the fully assembled task message before display, and add a regression test for a credential split across TaskID and Label.
  • [secret-exposure] internal/cli/run.go:4358 — The CLI progress callback masks credential literals with sequential strings.ReplaceAll calls, so crossing overlaps leave fragments visible (credentials crossing-alpha-start and start-crossing-beta in crossing-alpha-start-crossing-beta). The renderer calls this callback before its new union-based masking, so the fallback never sees the original text. The new overlap tests cover only the nil-callback path.
    Remediation: Collect all match spans against the original input and mask their union in the CLI callback, and add a test that runs the production callback with crossing credentials.

Earlier findings

  • internal/runtime/progress_text.go:82, secret-exposure — resolved by change: maskRuntimeSecretLiterals now collects raw and normalized registered-literal spans against the original text and masks their union, with new overlap and ordering tests.
  • internal/runtime/progress_text.go:82, secret-exposure — resolved by change: same union-masking rewrite of scanProgressSecrets.
  • internal/runtime/progress_text.go:82, secret-exposure — resolved by change: same union-masking rewrite of scanProgressSecrets.
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWV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[scope-creep] internal/runtime/claude_status_progress.go:13 — decodeClaudeStatusProgress parses and renders general runtime lifecycle and status notices (hook lifecycle, compaction, session state, permission denials, text notifications, background tasks, rate limits). Issue Claude Workflow task_progress events are captured but omitted from console output #8908 authorizes rendering Claude Workflow task/agent progress (task_progress, workflow_progress, and related task_* lifecycle events), not general runner/runtime telemetry.
    Remediation: Restrict this change to Workflow task/agent progress, or split the general runtime notice decoding into a separate issue and PR.

Low

  • [secret-exposure] internal/runtime/progress_text.go:82 — The nil-callback fallback in the renderer scans raw registered literals and token patterns before matching normalized registered credentials. An inner match can break a longer normalized credential's match and leave part of it visible (for example, with inner-secret and opaque\tinner-secret-tail both registered, opaque inner-secret-tail renders as opaque ***-tail). The CLI's combined original/normalized callback covers the normal fullsend run path, so only callers relying on the fallback are affected.
    Remediation: Match original and normalized registered literals together, longest first, before pattern redaction, and add nil-callback regression tests.
  • [secret-exposure] internal/runtime/progress_text.go:82 — Duplicate of the finding above (same fallback ordering gap); carried from the prior review.
Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NsYXVkZV9zdGF0dXNfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfZTczMzBkOGNlZGI4ZWEyOSIsImxpbmUiOjEzLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiaW50ZW50LWNvaGVyZW5jZSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InNlY3JldC1leHBvc3VyZSIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3Byb2dyZXNzX3RleHQuZ28iLCJpZCI6ImZfNjFmYjBhNjdhOGYzYzQ5OCIsImxpbmUiOjgyLCJhY3Rpb25hYmxlIjpmYWx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oicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMGNlZTM5NmZmOGY3NjRhMyIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8xMzVhMDE5NjE2M2RmZWI3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMDM5NGFkMmI2Nzk0Mzc2NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzI0NDllN2FiODlhMDAzYmIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — decodeClaudeStatusProgress renders general runtime status events (hooks, task_summary, session states, permission denials, background tasks, rate limits, compaction). Issue Claude Workflow task_progress events are captured but omitted from console output #8908 names only Workflow task_progress plus task_started, task_updated and task_notification. The PR body discloses the extra scope, but the issue does not authorize it.
    Remediation: Move the general status rendering to a separate issue or PR, or have a maintainer explicitly approve the wider scope.

Low

  • [secret-exposure] internal/runtime/progress_text.go:82 — In the nil-callback fallback, raw registered literals and patterns are scanned before normalized registered literals. If one registered credential contains another, only the inner one is masked, and the normalized outer form then no longer matches. For example, a registered opaque-prefix-<ANSI>shortsecret-tail plus a registered shortsecret leaves opaque-prefix-***-tail. The scenario is narrow. The CLI's combined longest-first callback does not have this gap.
    Remediation: Put the original and normalized registered literals into one longest-first replacement pass before pattern scanning, and add a nil-callback regression test with overlapping credentials.

Earlier findings

  • internal/runtime/progress_text.go:108, secret-exposure — resolved. The normalized-secret minimum-length floor is removed, and TestProgressFallbackRedactsShortNormalizedRuntimeSecret covers it.
  • internal/cli/run.go:4318, doc-style — resolved. The doc comment now starts with the function name.
  • internal/runtime/progress_text.go:17, doc-style — resolved. The doc comment now starts with redactProgressText.
  • internal/runtime/status_progress.go:58, naming-convention — resolved. maxStatusProgressEntries is introduced and used for the status cache bound.
Previous run (4)

<!-- fullsend:review-findings-v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mNzY0YTMiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfMTM1YTAxOTYxNjNkZmViNyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzAzOTRhZDJiNjc5NDM3NjYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8yNDQ5ZTdhYjg5YTAwM2JiIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — Issue Claude Workflow task_progress events are captured but omitted from console output #8908 scopes the work to system/task_progress plus the related task lifecycle events (task_started, task_updated, task_notification). decodeClaudeStatusProgress also adds parsing and console display for unrelated runtime status events: hook lifecycle, permission denials, compaction status, session state changes, background-task membership and rate limits. These go beyond the linked bug fix. The issue's wording that a heartbeat should not be the only visible activity makes this arguable, so the call is a judgement.
    Remediation: Split the general runtime status rendering into a separate, explicitly authorized change, or get maintainer confirmation that it is in scope.

Low

  • [secret-exposure] internal/runtime/progress_text.go:108 — The renderer's nil-callback fallback skips normalized forms of registered credentials shorter than 8 bytes (minNormalizedSecretLen). A credential registered as opaque<ESC>[31m can reach display, CI notices and retained metadata if its escape sequences are split in the displayed text, because it normalizes to the 6-byte opaque. The skip is a deliberate trade-off to avoid blanking ordinary output. The trigger is unusual, since the credential has to contain an escape or whitespace sequence.
    Remediation: Apply the length floor to the original credential only, mask every non-empty normalized form of a registered credential, and add a nil-callback renderer regression test for this case.
  • [doc-style] internal/cli/run.go:4318 — The doc comment on redactProgressSecretLiterals does not start with the function name. The neighbouring redactSecretLiterals comment does.
  • [doc-style] internal/runtime/progress_text.go:17 — The doc comment on redactProgressText does not start with the function name. Other helpers in this file do.
  • [naming-convention] internal/runtime/status_progress.go:58 — statusProgressSeen is capped with maxTaskProgressEntries, a constant defined for task-level tracking in task_progress_reconciler.go. A dedicated or shared constant would keep the two progress domains separate. This has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Z28iLCJpZCI6ImZfMjQ0OWU3YWI4OWEwMDNiYiIsImxpbmUiOjI4LCJhY3Rpb25hYmxlIjpmYWxzZX1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl9lNzMzMGQ4Y2VkYjhlYTI5Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzEzNWEwMTk2MTYzZGZlYjciLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8wMzk0YWQyYjY3OTQzNzY2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMjQ0OWU3YWI4OWEwMDNiYiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

Low

  • [secret-exposure] internal/runtime/progress_text.go:82 — With RedactProgress nil, the default registered-secret protection does not match normalized credential literals. For example, register opaque\trunner-credential and render opaque\trun\x1b[31mner-credential. Normalization produces opaque runner-credential, which SecretRedactor cannot match against the registered tab-containing value. The text is then displayed and retained. The CLI's callback (internal/cli/run.go) covers this case, so only the renderer's nil-callback fallback is affected.
    Remediation: Include normalized runtime-secret literals in the fallback's redaction pass, and add a test with an ANSI-split registered credential containing whitespace and no callback.
Previous run (6)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NsYXVkZV9zdGF0dXNfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfZTczMzBkOGNlZGI4ZWEyOSIsImxpbmUiOjEzLCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoiY29tcGxleGl0eS1yYXRpbyIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3Rhc2tfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfMTM1YTAxOTYxNjNkZmViNyIsImxpbmUiOjE0LCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmlkaS1vdmVycmlkZSIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3Rhc2tfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfMDM5NGFkMmI2Nzk0Mzc2NiIsImxpbmUiOjQ1MSwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6Im1pc3BsYWNlZC1hYnN0cmFjdGlvbiIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3JlbmRlcmVyLmdvIiwiaWQiOiJmXzI0NDllN2FiODlhMDAzYmIiLCJsaW5lIjoyOCwiYWN0aW9uYWJsZSI6ZmFsc2V9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfZTczMzBkOGNlZGI4ZWEyOSIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8xMzVhMDE5NjE2M2RmZWI3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMDM5NGFkMmI2Nzk0Mzc2NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzI0NDllN2FiODlhMDAzYmIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

Earlier findings

  • internal/runtime/task_progress.go (now task_progress_reconciler.go), complexity-ratio — resolved: message formatting moved to task_progress_message.go and text sanitization to progress_text.go.
  • internal/runtime/renderer.go, misplaced-abstraction — resolved: reconciliation state moved into progressReconciler (progress_reconciler.go), separating it from I/O rendering.
  • internal/runtime/task_progress.go, bidi-override — resolved: progress_text.go now normalizes Unicode (bidi overrides/isolates) before display sanitization, with coverage in progress_unicode_test.go.
Previous run (7)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NsYXVkZV9zdGF0dXNfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfZTczMzBkOGNlZGI4ZWEyOSIsImxpbmUiOjEzLCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoiY29tcGxleGl0eS1yYXRpbyIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3Rhc2tfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfMTM1YTAxOTYxNjNkZmViNyIsImxpbmUiOjE0LCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmlkaS1vdmVycmlkZSIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3Rhc2tfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfMDM5NGFkMmI2Nzk0Mzc2NiIsImxpbmUiOjQ1MSwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6Im1pc3BsYWNlZC1hYnN0cmFjdGlvbiIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL3JlbmRlcmVyLmdvIiwiaWQiOiJmXzI0NDllN2FiODlhMDAzYmIiLCJsaW5lIjoyOCwiYWN0aW9uYWJsZSI6ZmFsc2V9XX0= -->

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — Issue Claude Workflow task_progress events are captured but omitted from console output #8908 covers normalizing and rendering Claude Workflow task progress (system/task_progress) and related task lifecycle events (task_started, task_updated, task_notification). This PR also adds a separate StatusProgressEvent subsystem (decodeClaudeStatusProgress, status_progress.go, renderer statusProgress) that decodes and renders hook lifecycle events, compaction/session state, permission denials, background task counts, notices and rate-limit info. The issue does not ask for these, although the PR body discloses them. The decoder is an allowlist that keeps hook stdout/stderr/output out of display.
    Remediation: Consider moving the StatusProgressEvent decoding and rendering to a follow-up issue and PR, or have a maintainer explicitly accept the extension on Claude Workflow task_progress events are captured but omitted from console output #8908.

  • [complexity-ratio] internal/runtime/task_progress.go:14 — Production code for this display feature is heavy: bounded dedup state (maxTaskProgressEntries, maxTaskProgressRows = 16*1024), per-run watermark/hash state for promoting anonymous runs, many presence flags on event structs, and UTF-16 code-unit run-ID ordering (compareTaskRunIDs, task_progress.go:284) emulating SDK 0.3.314 JavaScript ordering. Some of this follows from the issue (dedup, concurrent identity, bounded and redacted state), but the overall complexity is high for the goal.
    Remediation: Consider whether a bounded last-seen fingerprint per (task, agent) would suffice instead of run watermark promotion and JS-order emulation, unless maintainers judge the extra edge-case handling worth the cost.

Low

  • [bidi-override] internal/runtime/task_progress.go:451 — NormalizeProgressText (task_progress.go:451) is strings.Join(strings.Fields(sanitizeOutput(s)), " "). sanitizeOutput strips ANSI, C0/C1 controls and workflow-command markers but passes U+202A–U+202E, U+2066–U+2069, zero-width characters and Unicode tags, and the redactor is a secret redactor only. Sandbox-derived task/status fields can therefore carry these into console lines and ::notice:: annotations. This matches how renderer.go already displays model/error/streamed text, but the repo strips these characters elsewhere with security.NewUnicodeNormalizer() (tool span names, cli/run.go:4119).
    Remediation: Optionally run security.NewUnicodeNormalizer() in NormalizeProgressText before credential matching, and add a test asserting U+202E, U+2066 and U+200B are absent from rendered output.

  • [misplaced-abstraction] internal/runtime/renderer.go:28 — EventRenderer now holds task-progress lifecycle state (taskProgressSeen, taskProgressRuns, statusProgressSeen; renderer.go:28-29) and reaches SDK-specific run ordering (compareTaskRunIDs). The renderer was already stateful for display dedup, so this follows existing patterns, but Claude-specific reconciliation would sit better in the Claude stream adapter so custom OnEvent consumers get reconciled events.
    Remediation: Consider moving Claude-specific run ordering and reconciliation into the Claude parser or a separate aggregator, leaving display-level dedup in EventRenderer.

Previous run (8)

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — decodeClaudeStatusProgress (and decodeClaudeRateLimit, line 216) decode and render general runtime status notices: hook lifecycle, informational/notification, compaction status, session state changes, permission denials, background-task membership and rate limits. Issue Claude Workflow task_progress events are captured but omitted from console output #8908's "Scope and acceptance" covers system/task_progress and the related task lifecycle events (task_started, task_updated, task_notification). It does not mention these notices, and the generic notification subtype is not task_notification. task_summary is arguably in scope. The PR body states the expansion openly, but the issue does not authorize it. The extra code adds StatusProgressEvent, a renderer path, dispatch in claude_progress.go and its own tests.
    Remediation: Split the non-task status decoding into a separate issue and PR, or have the issue scope expanded to cover these notices. Keep this PR on Workflow task and agent progress.

Info

  • [sub-agent-failure] N/A — The docs-currency sub-agent did not return findings: it timed out after 900 s. Documentation currency was not assessed in this run.

Earlier findings

  • internal/runtime/claude_task_progress.go:181, logic-error — resolved. Workflow agent state is now derived from producer metadata in claudeWorkflowAgentState (queued, retrying and skipped come from timestamps, attempt and skipped flags), and the correctness review of the current head found no defect.
  • internal/runtime/task_progress.go:316, insecure-deserialization — resolved. The security review found retained display fields bounded, cloned and hashed, caches capped at 1,024 entries, and run-order strings capped at 1,024 bytes.

1 finding(s) below the low severity threshold were not posted.

Previous run (9)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvY2xhdWRlX3Rhc2tfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfYzQ4NTA2MWQwMTk3NzU3YyIsImxpbmUiOjE4MSwiYWN0aW9uYWJsZSI6dHJ1ZX0seyJzZXZlcml0eSI6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50ZXJuYWwvcnVudGltZS9jbGF1ZGVfd29ya2Zsb3dfcHJvZ3Jlc3NfdGVzdC5nbyIsImlkIjoiZl9kYmE3NWQ3MzExMzQ4YjEwIiwibGluZSI6MTUyLCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiZG9jLXN0eWxlIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvY2xhdWRlX3N0YXR1c19wcm9ncmVzcy5nbyIsImlkIjoiZl9iZTg5OTdmYmNlZGE2ZTRmIiwibGluZSI6MTAsImFjdGlvbmFibGUiOnRydWV9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfNDAwNThkMjNmN2VmMDE3MCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9hNGIwZjQwY2EyNTgzMGNjIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMzBlNjI1MzI4NTkyZTgzOCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2JlODczMTdjZGEwY2FmZDIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kYmE3NWQ3MzExMzQ4YjEwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYmU4OTk3ZmJjZWRhNmU0ZiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [logic-error] internal/runtime/claude_task_progress.go:181 — Derived agent states are calculated before sparse metadata is reconciled, so omitted fields can fabricate lifecycle transitions. For example, an indexed agent snapshot with state="start", queuedAt=100 followed by state="start", tokens=20 (without timing fields) renders queued → running although no execution evidence arrived. Similarly, state="error", skipped=true followed by a counter-only state="error" snapshot renders skipped → failed. mergeAgentProgress retains other omitted metadata but cannot recover these distinctions after they have been collapsed into State.
    Remediation: Preserve the wire state and presence of its derivation metadata, reconcile omitted timing/attempt/skipped fields against the previous snapshot, and derive the display state afterward. Keep the running fallback for identities with no prior metadata. Add parser-to-renderer regressions for sparse queued, retry-start, and skipped snapshots.

  • [insecure-deserialization] internal/runtime/task_progress.go:316 — Short normalized fields can retain their entire untrusted input allocation, defeating the display-cache memory bounds. For example, a task_started description containing nearly 1 MiB of spaces followed by "x" becomes a one-element strings.Fields result; strings.Join returns that substring without copying. Because its rune count is below the limit, taskProgressText returns it unchanged, and taskProgressSeen retains the approximately 1 MiB backing allocation. Around 1,024 distinct tasks can therefore retain roughly 1 GiB despite displaying one-character labels. The same issue affects other cached task fields and status Subject/Context attribution.
    Remediation: Clone the final normalized/redacted/bounded string before returning it (strings.Clone), or otherwise ensure cached fields own allocations proportional to their final lengths. Add a regression covering heavily whitespace-padded single-word fields.

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — decodeClaudeStatusProgress introduces console rendering for hook lifecycle (hook_started/hook_progress/hook_response), task_summary, informational notices, notifications, compaction and session state transitions, permission denials, background task membership, and rate limits. Issue Claude Workflow task_progress events are captured but omitted from console output #8908 authorizes rendering Claude Workflow task_progress events (along with task_started, task_updated, and task_notification) and deduplicating task/agent progression; it does not authorize expanding into general Claude runtime status notices and auxiliary event handling.
    Remediation: Extract the auxiliary status-notice decoding and rendering into a separate focused issue/PR, or update issue Claude Workflow task_progress events are captured but omitted from console output #8908 with explicit scope authorization for general runtime status notices.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (10)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NsYXV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NlZGE2ZTRmIiwibGluZSI6MTAsImFjdGlvbmFibGUiOnRydWV9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfNDAwNThkMjNmN2VmMDE3MCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9hNGIwZjQwY2EyNTgzMGNjIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMzBlNjI1MzI4NTkyZTgzOCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2JlODczMTdjZGEwY2FmZDIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kYmE3NWQ3MzExMzQ4YjEwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYmU4OTk3ZmJjZWRhNmU0ZiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — Issue Claude Workflow task_progress events are captured but omitted from console output #8908 authorizes normalizing and rendering Claude Workflow task_progress and, optionally, the related task lifecycle events (task_started, task_updated, task_notification). decodeClaudeStatusProgress and StatusProgressEvent also decode and render hooks, permission_denied, session-state and compaction status, notification/informational, background_tasks_changed and rate_limit_event. The issue does not mention these, and several are undocumented internal Claude Code shapes. The latest push added comments about the undocumented schemas but did not narrow the breadth. This is advisory: a maintainer should decide whether the extra notice rendering belongs in this PR.
    Remediation: Confirm with maintainers that this notice rendering is intended, or split the non-task notice rendering into its own issue and PR.
Previous run (11)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NsYXVkZV9zdGF0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RmIiwibGluZSI6MTAsImFjdGlvbmFibGUiOnRydWV9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfNDAwNThkMjNmN2VmMDE3MCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9hNGIwZjQwY2EyNTgzMGNjIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMzBlNjI1MzI4NTkyZTgzOCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2JlODczMTdjZGEwY2FmZDIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kYmE3NWQ3MzExMzQ4YjEwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYmU4OTk3ZmJjZWRhNmU0ZiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [scope-creep] internal/runtime/claude_status_progress.go:13 — decodeClaudeStatusProgress and decodeClaudeRateLimit decode and render non-task events: hook lifecycle (hook_started/hook_progress/hook_response), informational/notification, status/compaction, session_state_changed, permission_denied, background_tasks_changed and rate limits. They are reached from claude_progress.go. Issue Claude Workflow task_progress events are captured but omitted from console output #8908 scopes the work to system/task_progress plus the related task_started/task_updated/task_notification lifecycle events. The latest commit changed hook attribution types but kept this event surface.
    Remediation: Move general runtime status/hook/session/rate-limit display to its own issue and PR, or get explicit maintainer authorization for it on Claude Workflow task_progress events are captured but omitted from console output #8908. This is a scope decision for maintainers, so it is advisory.

Earlier findings

  • internal/runtime/task_progress.go, misplaced-abstraction — resolved: TaskState and TaskProgressEvent moved out of the renderer file into event.go.
  • internal/runtime/status_progress.go, code-organization (two findings) — resolved: StatusProgressEvent moved to event.go and printProgress moved to renderer.go.
  • internal/runtime/claude_workflow_progress_test.go, code-organization — resolved: about 129 lines of generic renderer tests were removed from the wire-parser test file; renderer-level tests now live in task_progress_test.go and status_progress_test.go.
  • internal/runtime/claude_status_progress.go, doc-style — resolved: the doc comment now starts with the function name, decodeClaudeStatusProgress.

Labels: PR changes Go runner runtime progress rendering and the matching CLI/runtime docs.

Previous run (12)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InNjb3BlLWNyZWVwIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvY2xhdWRlX3N0YXR1c19wcm9ncmVzcy5nbyIsImlkIjoiZl80MDA1OGQyM2Y3ZWYwMTcwIiwibGluZSI6MTMsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJtaXNwbGFjZWQtYWJzdHJhY3Rpb24iLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS90YXNrX3Byb2dyZXNzLmdvIiwiaWQiOiJmX2E0YjBmNDBjYTI1ODMwY2MiLCJsaW5lIjo2MiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImNvZGUtb3JnYW5pemF0aW9uIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvc3RhdHVzX3Byb2dyZXNzLmdvIiwiaWQiOiJmXzMwZTYyNTMyODU5MmU4MzgiLCJsaW5lIjoxMSwiYWN0aW9uYWJsZSI6dHJ1ZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiY29kZS1vcmdhbml6YXRpb24iLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9zdGF0dXNfcHJvZ3Jlc3MuZ28iLCJpZCI6ImZfYmU4NzMxN2NkYTBjYWZkMiIsImxpbmUiOjY2LCJhY3Rpb25hYmxlIjp0cnVlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJjb2RlLW9yZ2FuaXphdGlvbiIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NsYXVkZV93b3JrZmxvd19wcm9ncmVzc190ZXN0LmdvIiwiaWQiOiJmX2RiYTc1ZDczMTEzNDhiMTAiLCJsaW5lIjoxNTIsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJkb2Mtc3R5bGUiLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jbGF1ZGVfc3RhdHVzX3Byb2dyZXNzLmdvIiwiaWQiOiJmX2JlODk5N2ZiY2VkYTZlNGYiLCJsaW5lIjoxMCwiYWN0aW9uYWJsZSI6dHJ1ZX1dfQ== -->

Review

Findings

Medium

Low

  • [misplaced-abstraction] internal/runtime/task_progress.go:62 — Task-progress reconciliation (dedup, partial-update merging, run-ID aliasing, terminal-state enforcement) lives in EventRenderer rather than the Claude adapter, so custom OnEvent consumers see repeated snapshots. No existing consumer is shown to be harmed.
    Remediation: Consider moving reconciliation into the Claude stream adapter, or document the repeated-snapshot behaviour on TaskProgressEvent.
  • [code-organization] internal/runtime/status_progress.go:11 — StatusProgressEvent and TaskProgressEvent are defined outside event.go, where every other AgentEvent type lives.
    Remediation: Move them into internal/runtime/event.go and add them to the interface-satisfaction test in event_test.go.
  • [code-organization] internal/runtime/status_progress.go:66 — printProgress is shared by status and task rendering but defined in status_progress.go; the comparable helper endBlock lives in renderer.go.
    Remediation: Move printProgress to internal/runtime/renderer.go.
  • [code-organization] internal/runtime/claude_workflow_progress_test.go:152 — Runtime-independent EventRenderer tests (lines 152-288, plus TestStatusProgressRendererSafetyAndBounds) sit in Claude stream-decoding test files; generic renderer tests live in renderer_test.go.
    Remediation: Move them to renderer_test.go or new per-feature test files.
  • [doc-style] internal/runtime/claude_status_progress.go:10 — The doc comment on decodeClaudeStatusProgress does not start with the function name.
    Remediation: Start it with // decodeClaudeStatusProgress ....

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:57 PM UTC · Completed 8:08 PM UTC

Commit: 8e1fd40 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.63

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment component/runner Agent runner behavior and lifecycle go Pull requests that update go code labels Oct 29, 2026

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Two review findings, posted inline.

Comment thread internal/runtime/task_progress.go Resolved
Comment thread docs/cli/run.md Resolved
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:01 PM UTC · Completed 11:11 PM UTC

Commit: a4c6474 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.07

fullsend-ai-review[bot]

This comment was marked as outdated.

Comment thread docs/cli/run.md Resolved

@rh-hemartin rh-hemartin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would move the section on the docs, other than that looks good to me.

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One review finding, posted inline.

@jctanner
jctanner requested a review from a team as a code owner October 30, 2026 14:08
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:10 PM UTC · Completed 2:19 PM UTC

Commit: 34fc739 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.72

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One review finding, posted inline.

Comment thread docs/runtimes/claude.md Resolved
…ch configuration

Fullsend launches Claude with --print --verbose --output-format
stream-json and no --include-hook-events. The SDK emits only SessionStart
and Setup hook events in that mode, so those are the only hook rows real
runs produce; the docs table now says so, and the hook decoder fixtures
use SessionStart to match the producer configuration instead of
documenting PreToolUse behaviour fullsend never receives. The decoder
itself still accepts any hook_event value if a future launch enables
hook events.

Signed-off-by: jctanner <tanner.jc@gmail.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:06 PM UTC · Completed 7:15 PM UTC

Commit: f4920d3 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.80

fullsend-ai-review[bot]

This comment was marked as outdated.

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One review finding, posted inline.

… settle tool row churn

Redaction: registered runtime secrets and their normalized forms are now
masked in one pass ordered by each literal own length, before pattern
redaction. The registry orders by raw length, but normalization can
reverse that order, so a shorter normalized form masked first could
destroy a longer overlapping credential match and leave its suffix
displayed and retained. The joined status row is also masked after its
label/subject/context joins, which can reconstruct a tab-containing
credential from fields redacted individually.

Task rows: a parent-task tool swap no longer prints a second row per
subagent tool call (the SDK already emits those tools as ToolUseEvents).
The dedup comparison is tool-name-insensitive but tool-presence-
sensitive, so a tool appearing or disappearing still prints while a
swap does not; the retained event keeps the latest tool name. The
status cache capacity guard reuses the entry lookup, and tests were
repaired to assert retention through changed output rather than
assertions that pass regardless of the fix.

Also restores a non-SessionStart hook fixture and cites the inspected
SDK version in the hook docs row.

Signed-off-by: jctanner <tanner.jc@gmail.com>
…row with the caller callback

Cross-model review of the longest-first masking found that no sequential
replacement order survives crossing overlaps: one secret end overlapping
another secret start leaves a fragment visible whichever is replaced
first, and a self-overlapping literal re-matches its own replacement.
Literal match ranges are now collected against the original text and
their union is masked in one rewrite. The joined status row also runs
the caller redaction callback before the fallback scanner, so
environment-derived credentials split across fields are masked too.
Test literals were made distinctive so registered normalized forms
cannot mask unrelated later tests, and the tool-churn tests now cover
appearance, explicit clears, retained names on real transitions, and
usage-bearing frames.

Signed-off-by: jctanner <tanner.jc@gmail.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:52 PM UTC · Completed 9:01 PM UTC

Commit: 81af21d · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.88

fullsend-ai-review[bot]

This comment was marked as outdated.

fullsend-ai-review[bot]

This comment was marked as outdated.

…entials

Task rows redact each field individually but the assembled message
joins them, so a registered credential split across fields (for
example TaskID and Label around the colon separator) reconstructed in
the displayed row. The caller callback and the fallback scanner now
run on the joined text before the fingerprint and display, mirroring
the status rows. Adds a join reconstruction regression test.

Signed-off-by: jctanner <tanner.jc@gmail.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:25 PM UTC · Completed 10:35 PM UTC

Commit: d667f93 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.77

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note: The following review comments could not be posted on the diff (GitHub returned 422) and are included here instead:

  • internal/cli/run.go (file-level): Line 4358 ·
    [low] secret-exposure

redactSecretLiteralsWithNormalizer replaces literals sequentially, longest first, which does not protect against partly overlapping credentials: masking one leaves a fragment of the other visible, and the runtime overlap-union fallback never sees the original text because the CLI callback runs first. Exploiting this needs two distinct credentials whose values overlap in displayed progress text. No CLI test covers crossing overlaps.

Suggested fix: Collect all literal match ranges against the unchanged input, merge overlapping ranges, and mask the union in a single rewrite. Add a CLI progress-redaction regression test with crossing overlapping credentials.

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

See the review comment for full details.

@jctanner
jctanner added this pull request to the merge queue Nov 5, 2026
Merged via the queue into fullsend-ai:main with commit 32d3cd8 Nov 5, 2026
72 checks passed
@jctanner
jctanner deleted the fix/8908-claude-workflow-progress branch November 5, 2026 00:41

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — d667f932 Deployed Nov 4, 2026 by github-actions[bot]
dev — d667f932 Deployed Nov 4, 2026 by jctanner via playback #18908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/runner Agent runner behavior and lifecycle go Pull requests that update go code requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude Workflow task_progress events are captured but omitted from console output

4 participants