Skip to content

Praxis mode: three Go fields have no Rust counterpart, and the parity check is green on Go-only PRs #1828

Closed

Description

@evaline-ju

Summary

The Praxis workflow has failed on every run on main since #1804. Three
fields that Go PRs added have no Rust counterpart, and the parity tests that
catch this do not block a Go-only PR. For two of the fields, rows recorded in
praxis mode differ from direct mode.

Failing tests

On main (430563a), cargo test --locked in praxis/:

record::line::tests::every_session_event_field_is_set_or_listed
  fields neither set nor listed: ["project", "subagentKind"]
parse::model::tests::every_go_inference_field_is_set_or_listed
  Go fields the Rust model does not give: ["inference.toolCallCount"]
Field Added in Effect in praxis mode
subagentKind #1804 A Bob child task has no subagent and no subagentKind. The row builder reads only Claude Code's agent headers, not X-Task-Id / X-Parent-Task-Id.
project #1819 No row has a project. Direct mode sets it in the forward proxy, but attribution.Wire does not carry it and ingestion does not set it. Under --praxis, cost by project (#1821) files every row under no project, and an Agents row cannot expand into projects (#1824).
inference.toolCallCount #1812 None. Only the session API's summary view sets it, like messageCount and toolCount, which the Rust model already lists as not set.

Proposed fix

  • inference.toolCallCount: add it to the Rust not-set list, next to
    messageCount and toolCount.
  • project: carry it in attribution.Wire, as proc and clientProc are,
    and set it on the row in Rust.
  • subagentKind: port the Bob child-task rule to the Rust row builder. A Bob
    child's subagent is its own task id, and its kind is subtask when the
    request offers end_subtask, else subagent. Extend the Go golden table
    so the parity test pins it.

Why the PRs were green

On a pull request, the Praxis workflow blocks only when the PR changes
praxis/, the workflow, or praxis mode's Go side. For any other PR, fmt,
clippy, the tests and the end-to-end step run with continue-on-error, so
the check is green and the failure is a warning inside the run. On a push to
main, the same failure fails the run.

#1804, #1819 and #1812 changed Go code and the goldens that the Rust tests
read, so each passed as a PR and failed after merge. Making a PR run blocking
when it changes those goldens (core/pipeline/testdata/** and the parsers'
testdata/) would catch this before merge.

Assisted-By: Claude (Anthropic AI) [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions