Skip to content

Carry layer paths through consumers and join ports - #1086

Draft
beojan wants to merge 2 commits into
layer-paths-beojan/2-provider-layer-pathfrom
layer-paths-beojan/3-carry-layer-paths
Draft

beojan wants to merge 2 commits into
layer-paths-beojan/2-provider-layer-pathfrom
layer-paths-beojan/3-carry-layer-paths

Conversation

@beojan

@beojan beojan commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Consumers, join nodes, fold partitions and unfold specifications now hold layer_path values instead of single layer names. The repeaters and the accumulator still take a single layer name, so the join nodes pass them the last layer of the path.

index_router still compares only the last layer name, so routing doesn't change.

Part of #984.

This description was drafted by Claude Code. It has been fully reviewed and approved by Beojan Stanislaus.


@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@                             Coverage Diff                             @@
##             layer-paths-beojan/2-provider-layer-path    #1086   +/-   ##
===========================================================================
  Coverage                                            ?   91.10%           
===========================================================================
  Files                                               ?      183           
  Lines                                               ?     6092           
  Branches                                            ?      971           
===========================================================================
  Hits                                                ?     5550           
  Misses                                              ?      347           
  Partials                                            ?      195           
Flag Coverage Δ
amd64 91.10% <100.00%> (?)
arm64 91.10% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
phlex/core/consumer.cpp 100.00% <100.00%> (ø)
phlex/core/consumer.hpp 100.00% <ø> (ø)
phlex/core/declared_fold.cpp 100.00% <100.00%> (ø)
phlex/core/declared_fold.hpp 100.00% <100.00%> (ø)
phlex/core/fold_join_node.hpp 93.61% <100.00%> (ø)
phlex/core/framework_graph.cpp 100.00% <100.00%> (ø)
phlex/core/index_router.cpp 98.16% <100.00%> (ø)
phlex/core/index_router.hpp 100.00% <ø> (ø)
phlex/core/message.hpp 100.00% <ø> (ø)
phlex/core/multilayer_join_node.hpp 97.56% <100.00%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d58038c...db6d606. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@beojan
beojan added this pull request to stack #1090 November 19, 2026 19:21
@beojan
beojan force-pushed the layer-paths-beojan/3-carry-layer-paths branch from 8893779 to 7498a0e Compare November 19, 2026 19:43
Consumers, join nodes, fold partitions and unfold specifications now
hold layer_path values instead of single layer names. The repeaters and
the accumulator still take a single layer name, so the join nodes pass
them the last layer of the path.

The index router still compares only the last layer name, so routing is
unchanged.

AI-Assisted-By: Claude Code
AI-Model: claude-sonnet-5-5
counting_layer_hashes_under counted every descendant path that ended in
the counting layer. When a hierarchy had sibling branches that share a
leaf name, a multi-input join was told to wait for cells on a branch that
never reaches it, so its end token carried the wrong count.

The count now keeps only paths on which every input layer and the
counting layer lie. A test with /job/run/event and /job/mc/event shows
the count dropping from 7 to the expected 2.

AI-Assisted-By: Claude Code
AI-Model: claude-sonnet-5-5
@beojan
beojan force-pushed the layer-paths-beojan/3-carry-layer-paths branch from 7498a0e to db6d606 Compare November 20, 2026 22:10

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant