Skip to content

fix(pipeline): integrate embed stage, remove pipeline_managed hack (#770) - #791

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/daemon-status-convergence
May 4, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/daemon-status-convergence

Conversation

@Sinity

@Sinity Sinity commented May 4, 2026 •

Copy link
Copy Markdown
Owner

Set embed stage pipeline_managed=True, remove special-case in run_execution.py.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed the embed stage execution during pipeline runs. Previously, the embed stage was incorrectly being skipped during pipeline execution despite being essential to the workflow. Updated stage execution logic and pipeline configuration to ensure the embed stage now runs correctly as part of the standard process.

)

Set embed stage pipeline_managed=True and remove the special-case
'spec.name != "embed"' guard in run_execution.py. The embed stage is
now properly managed as part of the pipeline sequence.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Copilot AI review requested due to automatic review settings May 4, 2026 01:59
@Sinity
Sinity merged commit 4d74586 into master May 4, 2026
@Sinity
Sinity deleted the feature/feat/daemon-status-convergence branch May 4, 2026 01:59
@coderabbitai

coderabbitai Bot commented May 4, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5cd8e601-c729-4936-a743-8c7a942d6bff

📥 Commits

Reviewing files that changed from the base of the PR and between 43bbade and 150af62.

📒 Files selected for processing (3)
  • polylogue/pipeline/run_execution.py
  • polylogue/pipeline/stage_specs.py
  • tests/unit/pipeline/test_run_sources.py

📝 Walkthrough

Walkthrough

The embed stage's pipeline_managed flag is changed from False to True. The stage execution logic is simplified by removing the special-case exception that allowed embed to run despite being non-pipeline-managed. Test assertions are updated accordingly.

Changes

Normalize Embed Stage Pipeline Management

Layer / File(s) Summary
Stage Specification
polylogue/pipeline/stage_specs.py
PIPELINE_STAGE_SPECS["embed"] now sets pipeline_managed=True instead of False.
Execution Logic
polylogue/pipeline/run_execution.py
The gate in _run_stage_spec at line 291 changes from if not spec.pipeline_managed and spec.name != "embed": to if not spec.pipeline_managed:, eliminating the special case for embed.
Tests
tests/unit/pipeline/test_run_sources.py
Assertion in test_pipeline_stage_specs_cover_leaf_stage_vocabulary updated to expect PIPELINE_STAGE_SPECS["embed"].pipeline_managed is True.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 Embed once hid behind an exception's guise,
Now pipeline-managed, it standardizes—
No special cases, just truth in the specs,
The logic simplifies, the flow checks its necks! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/daemon-status-convergence

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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to treat embed as a normal pipeline-managed stage instead of relying on the old run_execution.py special-case. In the pipeline subsystem, it updates the stage spec and execution guard so embed is handled like the other leaf stages.

Changes:

  • Mark embed as pipeline_managed=True in the canonical pipeline stage spec catalog.
  • Remove the spec.name != "embed" special-case from _run_stage_spec() so pipeline-managed logic applies uniformly.
  • Update the unit assertion in test_run_sources.py to expect the new stage-spec flag.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
polylogue/pipeline/stage_specs.py Updates the canonical embed stage spec to be pipeline-managed.
polylogue/pipeline/run_execution.py Removes the execution-path exception that previously skipped normal pipeline handling for embed.
tests/unit/pipeline/test_run_sources.py Adjusts the stage-spec expectation for embed in unit tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

executed_stages=executed_stages,
)
if not spec.pipeline_managed and spec.name != "embed":
if not spec.pipeline_managed:
assert PIPELINE_STAGE_SPECS["embed"].pipeline_managed is False
assert PIPELINE_STAGE_SPECS["embed"].pipeline_managed is True


Sinity added a commit that referenced this pull request May 7, 2026
) (#791)

Set embed stage pipeline_managed=True, remove special-case in
run_execution.py.

Co-authored-by: Claude Opus 4.7 <[email protected]>
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.

2 participants