Repository navigation
community_9_modules_chain_runner
grisun0 edited this page Oct 28, 2026
·
1 revision
Community 9 | 38 files | cohesion 0.54
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,.
| 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 |
| 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 |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
cli/apt_chain_support.py |
py | utility | 17 | yes |
cli/retry_support.py |
py | utility | 10 | yes |
| 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.
-
_token_name_ok(function,cli/apt_chain_support.py:42)def _token_name_ok(name)- True when a name matches the chain token grammar. -
ChainArgs(class,cli/apt_chain_support.py:48)class ChainArgs- Parsedapt_chaininvocation. -
parse_chain_args(function,cli/apt_chain_support.py:72)def parse_chain_args(line)- Parse oneapt_chaincommand line into structured args. -
_set_value(function,cli/apt_chain_support.py:141)def _set_value(args, flag, value)- Assign one valued option onto the args struct. -
resolve_admin(function,cli/apt_chain_support.py:169)def resolve_admin(args)- Execute an admin action against the registry and checkpoint store. -
select_step_ids(function,cli/apt_chain_support.py:257)def select_step_ids(chain, args)- Resolve --step/--from-step/--to-step into one id set. -
adversarial_continue(function,cli/apt_chain_support.py:289)def adversarial_continue(chain)- Return a copy of the chain where every step continues on error. -
render_result(function,cli/apt_chain_support.py:297)def render_result(result)- Render one chain result as operator lines (JSON mode prints dict). -
build_cli_approver(function,cli/apt_chain_support.py:330)def build_cli_approver(printer, input_fn)- Return an approver baked for interactive operators. -
approve(function,cli/apt_chain_support.py:338)def approve(step_id, command) -
build_reactive_replanner(function,cli/apt_chain_support.py:352)def build_reactive_replanner()- Return a replanner driven bymodules.reactive_engine. -
replan(function,cli/apt_chain_support.py:355)def replan(context) -
_decision_command(function,cli/apt_chain_support.py:377)def _decision_command(decision)- Extract one actionable command from a reactive decision. -
_step_from_decision(function,cli/apt_chain_support.py:386)def _step_from_decision(command, outcome, executed_count)- Build one safe replan step from a suggested command. -
_recent_changes_block(function,cli/apt_chain_support.py:408)def _recent_changes_block(target)- Recent world changes on the target for one LLM recovery prompt. -
build_llm_recovery_chain(function,cli/apt_chain_support.py:436)def build_llm_recovery_chain(result, target, task_id)- Ask the LLM pool for a temporary recovery chain after a failed run. -
_platform(function,cli/apt_chain_support.py:510)def _platform()- Guess the loop platform from the payload configuration. -
select_agent_flavour(function,cli/commands/command_and_control_migrated.py:43)def select_agent_flavour(run_tests, platform)- Pick the agent script extension from the tests of the current run. -
CommandAndControlMigratedCommandSet(class,cli/commands/command_and_control_migrated.py:66)class CommandAndControlMigratedCommandSet(LazyOwnCommandSet) -
do_msf(method,cli/commands/command_and_control_migrated.py:71)def do_msf(self, line)- Automates various Metasploit tasks including scanning for vulnerabilities, setting up reverse shells -
do_c2(method,cli/commands/command_and_control_migrated.py:421)def do_c2(self, line)- Handle C2 server setup and agent compilation. -
do_listener(method,cli/commands/command_and_control_migrated.py:543)def do_listener(self, line)- Manage C2 listeners: list, add, start, stop, remove. -
_api(function,cli/commands/command_and_control_migrated.py:570)def _api(method, endpoint, payload) -
do_sandbox(method,cli/commands/command_and_control_migrated.py:671)def do_sandbox(self, line)- Toggle or query Docker sandbox mode. -
do_msfrpc(method,cli/commands/command_and_control_migrated.py:713)def do_msfrpc(self, line)- Connects to the msfrpcd daemon and allows remote control of Metasploit. -
do_sliver_server(method,cli/commands/command_and_control_migrated.py:737)def do_sliver_server(self, line)- Starts the Sliver server and generates a client configuration file for connecting clients. -
do_empire(method,cli/commands/command_and_control_migrated.py:854)def do_empire(self, line)- Generates payloads using PowerShell Empire with various options. -
do_automsf(method,cli/commands/command_and_control_migrated.py:904)def do_automsf(self, line)- Try to check if Vulnerable using the module passed by argument of lazyown example automsf exploit/wi -
do_iis_webdav_upload_asp(method,cli/commands/command_and_control_migrated.py:949)def do_iis_webdav_upload_asp(self, line)- (CVE-2017-7269). Vulnerable using the module iis_webdav_upload_asp of metasploit -
do_duckyspark(method,cli/commands/command_and_control_migrated.py:984)def do_duckyspark(self, line)- duckyspark Compiles and uploads an .ino sketch to a Digispark device using Arduino CLI and Micronucl
- Internal resolved imports (EXTRACTED): 107
- Cross-boundary resolved imports (EXTRACTED): 86
- [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.
- No scoped security, taint, cycle, or layer risks.
- What would break if the most connected file in modules: chain_runner changed?
- Should modules: chain_runner be split, given cohesion 0.54?
cli/apt_chain_support.pycli/commands/command_and_control_migrated.pycli/commands/retry_ops.pycli/retry_support.pymodules/atomic_cli.pymodules/chain_distill.pymodules/chain_facts.pymodules/chain_registry.pymodules/chain_runner.pymodules/chain_state.pymodules/chain_synth.pymodules/closedloop.pymodules/defense_eval.pymodules/defense_stages.pymodules/gym_matrix_runner.pymodules/gym_winbox_runner.pymodules/hunt_verify.pymodules/listener_manager.pymodules/retry_session.pymodules/verb_manifest.py- ... and 18 more
Generated offline by readmenator from commit e742884c3073. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_modules_lazyown_mcp
- community_10_skills_claude_md_orchestrator
- community_11_modules_kerberos_core
- community_12_modules_saas_attacks
- community_13_skills_hermes_lazyown
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_tests
- community_17_scripts_journal
- community_18_modules_backdoor
- community_19_poc_tui
- community_1_cli_commands
- community_20_scripts_check_contract_manifest
- community_21_scripts_migrate_lazyown
- community_22_tools
- community_23_orphans
- community_2_modules_lazy_loop
- community_3_modules_world_model
- community_4_cli
- community_5_modules_html2pdf_bundle_min
- community_6_lazyc2_security
- community_7_lazygui_panels
- community_8_modules_llm_budget
- community_9_modules_chain_runner
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p24
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- ARCHITECTURE_p8
- ARCHITECTURE_p9
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_guardrails
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_mediation
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p15
- KB_modules_p16
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_root_p3
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_sinks
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p18
- KB_tests_p19
- KB_tests_p2
- KB_tests_p20
- KB_tests_p21
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p42
- SYMBOLS_p43
- SYMBOLS_p44
- SYMBOLS_p45
- SYMBOLS_p46
- SYMBOLS_p47
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes