Skip to content

community_9_modules_chain_runner

grisun0 edited this page Oct 28, 2026 · 1 revision

modules: chain_runner

Community 9 | 38 files | cohesion 0.54

Definition

This community groups 38 file(s) rooted at tests with dominant language py (cohesion 0.54). Central symbols: Chain, ChainArgs, ChainFactsSpoolSpec, ChainRunResult, ChainRunner, ChainStep, CommandAndControlMigratedCommandSet, Comparison. Core file: modules/chain_runner.py (41 symbols). Documented purpose: Parsing, printing and replanning support for the apt_chain CLI. Keeps cli.commands.command_and_control_migrated thin: argument parsing, step selection,.

Files

tests (18 files)

File Language Layer Symbols Doc
tests/test_apt_chain_admin.py py testing 22 yes
tests/test_apt_chain_integration.py py testing 6 yes
tests/test_chain_distill.py py testing 15 yes
tests/test_chain_evidence.py py testing 27 yes
tests/test_chain_parallel_fallback.py py testing 26 yes
tests/test_chain_registry.py py testing 9 yes
tests/test_chain_runner.py py testing 39 yes
tests/test_chain_synth.py py testing 10 yes

modules (16 files)

File Language Layer Symbols Doc
modules/atomic_cli.py py utility 11 yes
modules/chain_distill.py py utility 19 yes
modules/chain_facts.py py utility 3 yes
modules/chain_registry.py py utility 17 yes
modules/chain_runner.py py utility 41 yes
modules/chain_state.py py utility 5 yes
modules/chain_synth.py py utility 6 yes
modules/closedloop.py py utility 7 yes

cli (2 files)

File Language Layer Symbols Doc
cli/apt_chain_support.py py utility 17 yes
cli/retry_support.py py utility 10 yes

cli/commands (2 files)

File Language Layer Symbols Doc
cli/commands/command_and_control_migrated.py py utility 34 yes
cli/commands/retry_ops.py py utility 8 yes

... and 18 more files in this community.

Key Symbols

Internal vs External Edges

  • Internal resolved imports (EXTRACTED): 107
  • Cross-boundary resolved imports (EXTRACTED): 86

Connections

  • [EXTRACTED] depends_on community 9 <-> 2 (strength 0.9): Extracted import edge crosses communities: cli/apt_chain_support.py imports modules/mediation/init.py.
  • [EXTRACTED] depends_on community 9 <-> 0 (strength 0.9): Extracted import edge crosses communities: cli/apt_chain_support.py imports modules/reactive_engine.py.
  • [EXTRACTED] depends_on community 9 <-> 8 (strength 0.9): Extracted import edge crosses communities: cli/apt_chain_support.py imports modules/guardrails/init.py.
  • [EXTRACTED] depends_on community 9 <-> 5 (strength 0.9): Extracted import edge crosses communities: cli/commands/command_and_control_migrated.py imports cli/assign.py.
  • [EXTRACTED] depends_on community 9 <-> 1 (strength 0.9): Extracted import edge crosses communities: cli/commands/command_and_control_migrated.py imports cli/commands/_base.py.
  • [EXTRACTED] depends_on community 9 <-> 3 (strength 0.9): Extracted import edge crosses communities: cli/commands/command_and_control_migrated.py imports modules/atomic_exploit_bridge.py.

Risks

  • No scoped security, taint, cycle, or layer risks.

Open Questions

  • What would break if the most connected file in modules: chain_runner changed?
  • Should modules: chain_runner be split, given cohesion 0.54?

Sources

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally