claude-code - 💡(How to fix) Fix phipe: run-dir clean restructure — receipts, pkl path, remove run.jsonl [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46700Fetched 2026-04-12 13:35:21
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1
RAW_BUFFERClick to expand / collapse

Clean up vestigial run-dir artifacts and align with PhiProvenance-as-source-of-truth design.

What?

  • Remove run.jsonl writing/reading (duplicates LogTable)
  • Scope subtask receipts per-run: {run_dir}/{run_id}/nodes/, {run_dir}/{run_id}/dynamic/
  • Relocate provenance pkl outputs to {run_dir}/{run_id}/outputs/serialized/
  • Delete dead code: graph.json check, log_sink_uri field, 4 duplicate receipt free functions
  • Clean GCS bucket: delete phi_arr_bench_, phipe-test-, phipe-bench-*

Why?

Run directory structure was inconsistent with the design intent (PhiProvenance as source of truth). Accumulated debt from iterative development. Docs referenced aspirational layout, not actual layout.

Acceptance

  • All toy pipelines (toy_pipeline.py, toy_pipeline_datatypes.py) run clean end-to-end
  • phipe test suite passes
  • pkl outputs stored at predictable {run_dir}/{run_id}/outputs/serialized/{node_id}/output.pkl
  • nodes_table.output_uri always set for pkl outputs
  • No run.jsonl files written
  • Docs synchronized with actual layout

extent analysis

TL;DR

Remove vestigial run-dir artifacts and align the directory structure with the PhiProvenance-as-source-of-truth design to ensure consistency and cleanliness.

Guidance

  • Remove run.jsonl writing and reading to avoid duplication with LogTable.
  • Relocate provenance pkl outputs to {run_dir}/{run_id}/outputs/serialized/ to maintain a consistent directory structure.
  • Delete dead code, including graph.json check, log_sink_uri field, and duplicate receipt free functions to reduce technical debt.
  • Clean the GCS bucket by deleting unnecessary files and directories, such as phi_arr_bench_, phipe-test-, and phipe-bench-*, to maintain a organized storage system.

Example

No explicit code snippet is provided, but the guidance points should help in implementing the necessary changes.

Notes

The provided guidance is based on the information given in the issue and may not cover all possible scenarios or edge cases. It is essential to thoroughly test the changes to ensure they do not introduce new issues.

Recommendation

Apply the workaround by removing vestigial run-dir artifacts and aligning the directory structure with the PhiProvenance-as-source-of-truth design, as this will help to ensure consistency and cleanliness in the codebase.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix phipe: run-dir clean restructure — receipts, pkl path, remove run.jsonl [1 participants]