Skip to content

fix(web): do not infer process success from malformed background status details #702

Closed

Description

@outlier27-cell

Confirmed defect

On latest origin/main 3cb2ecf, projectToolEvidence for bg_status accepts status: [failed] through String(status). The strict comparisons then miss failed/killed/timed_out and fall through to returned. Arrays [failed], [killed], [timed_out] and [done] all produce processState: returned, exitCode: 7 in a deterministic production-function probe. This fabricates process completion from malformed tool detail metadata.

Runtime boundary and requirement

A bg_status tool returning successfully is distinct from its inspected process completing successfully. Require a literal known process status before projecting terminal receipt fields, and require safe integer exit codes. Preserve valid done/failed/killed/timed_out/running mapping and ordinary tool-return state, but report unknown process state for malformed receipt details.

Evidence and deduplication

The isolated Node probe imports the production evidence module, with no processes, models, installed runtime or private Session. All-state searches background status array evidence and terminal evidence status validation found no equivalent correction. This is separate from #700 hidden terminal-string display sanitization and #698 persisted turn-change decoding: different triggers, invariants and regressions, with no dependency between branches. Claiming independent fix/web-terminal-receipt-types from latest origin/main.

Activity

  1. outlier27-cell commented on Oct 7, 2026

    @outlier27-cell
    ContributorAuthor

    Evidence record and validation boundary are in the branch docs/research record; targeted regression was red on origin/main and green after the fix. Full local Windows limitations are stated in the PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions