Skip to content

Improve response-stream differential graph and dependency coverage #415

In progress

Description

@QuantumGhost

AI disclosure: This issue was drafted and analyzed with Codex using gpt-6.1-sol. Its scope and test requirements were reviewed by the human author, who is responsible for the content.

Problem

The response-stream differential tests introduced in #400 vary inputs around a fixed diamond-and-suffix topology and predetermined branch blockers. They do not exercise selector-dependent assigner blocking, distinct dependencies across responses, or references to outputs from mutually exclusive branches after a merge.

The separate seeded cyclic-graph cases use random.Random, so their choices cannot be shrunk by Hypothesis. Cycles also fall outside the validated workflow DAG domain.

Expected test coverage

  • Generate DAG topologies with fewer than ten nodes through Hypothesis, including shrinkable edges, referenced selectors, and edge decisions.
  • Keep independent properties for branch gates, preceding response gates, ordinary node outputs, assigner dependencies, distinct response dependencies, and optional branch outputs.
  • Distinguish output ownership from blocks_variable_output(). Exercise real VariableAssigner writes to conversation selectors and commit values through valid upstream execution traces.
  • Cover Answer references to both sides of If -> A/B -> C -> Answer, executing only the selected branch and observing skipped sources.
  • Compare current and legacy filter chunks after each event prefix, including source, selector, text, and final flag. Keep Hypothesis's default example count in committed code and describe each property in a short docstring.

This is a test-coverage follow-up to #400. Container behavior remains covered by its separate existing tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions