Repository navigation
feat(storage): enforce typed tool outcomes - #4502
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f1c22df505
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
fable-packet lives under `ops insights` (#4580 removed the root alias); beads has no rendering policy (#4598); Claude Code tool results with an exit code emit claude_tool_execution_result (#4502); the direct status fallback reports "daemon idle" with the start hint; the integration workload is a third default seeded artifact (#4532). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
The upward walk that resolves a session's repository stopped at nothing, so with the managed temp trees inside the checkout every scratch path resolved to the checkout itself. The walk now stops before a listed ceiling, as git does, and the ceiling is part of the normalization cache key. Tests: tool results without structural evidence are admitted as unknown with not_reported (#4539) and the writer refusal is exercised on a block with no evidence at all; block payloads carry tool_outcome (#4502); a provider-reported cost rolls up as "exact" (#4493); the v61 replace-table keeps the surviving canonical columns; the bulk-delete canaries and the naive-join survivor use TEMP objects on the opened connection so the schema manifest check at open no longer refuses them (#4472, #4594). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
|
Closing out open Codex review threads on this PR (evidence checked against master at 8e6234c):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Admit deliberate unknown tool outcomes as
ToolOutcome.UNKNOWN, preserve their parser reason, and keep action surfaces honest across Claude Code, Codex, and Hermes transcripts.Problem
The writer refused real Claude Code and Codex results whose parser evidence deliberately recorded
not_reportedordistrusted. The prior lane also converted unknown action assertions to success and removed no-verdict shapes from synthetic generators.Solution
The writer derives
unknownfromtool_result_outcome_unknown_reason, preserves the reason, and leaves legacy error and exit-code fields null. Codex and Hermes parser paths retainnot_reportedfor unresolved structural results. Action SQL maps the canonical value tooutcome_unknown. Claude Code, Codex, and tool-heavy synthetic generators can again emit no-verdict results. A parser-to-writer regression covers both real parser routes, and the restored assertions expectOUTCOME_UNKNOWNwithtool_success is None. Index schema v82 declares semantic replay for the changed derived DDL.Verification
.venv/bin/python -m devtools test tests/unit/storage/test_tool_outcome.py tests/unit/core/test_synthetic_semantics.py::TestWireFormatShape tests/unit/sources/test_claude_code_unread_wire_fields.py tests/unit/sources/test_tool_result_structural_outcome.py tests/unit/sources/parsers/test_hermes_state.py tests/unit/sources/test_parsers_codex_catalog.py::test_codex_catalog_parser_only_smokepassed: 59 passed.prepare_session_rows: 143 sampled Claude Code files with 11,259 tool results and 0 refusals; 116 sampled Codex files with 46,414 tool results and 0 refusals. Deliberate unknown reasons were retained in both populations.git fetch origin master && git rebase origin/masterpassed. The lane uses schema v82, above the v80 and v81 claims present in other active worktrees..venv/bin/python -m devtools verify --quickpassed: all quick checks green, including schema versioning.Residual risk: the complete 59 GB local JSONL corpus and live daemon convergence were not run. The malformed source file noted in the prior review remains an input-quality issue, not a typed-outcome refusal.
Reviewed-by: Claude (Opus) cross-family review