Repository navigation
Agent KB_guardrails
grisun0 edited this page Oct 26, 2026
·
4 revisions
- Doc: Operator-facing guardrail harness: tiers, capacity, checkpoints.
- Layer: utility
- Language: py
- Depends on:
modules/guardrails/advisories.py,modules/guardrails/budget.py,modules/guardrails/checkpoints.py,modules/guardrails/contracts.py,modules/guardrails/harness.py - Imported by:
cli/apt_chain_support.py,cli/orchestrator_assets_tabs.py,modules/lazy_loop.py,tests/test_guardrails.py
- Doc: Non-blocking advisories and feature degradation.
- Layer: utility
- Language: py
- Symbols:
-
AdvisoryLedger(class, line 17)class AdvisoryLedger -
FeatureGate(class, line 71)class FeatureGate -
__init__(method, line 20)def __init__(self, limit) -
notice(method, line 31)def notice(self, code, message) -
tail(method, line 49)def tail(self, limit) -
clear(method, line 54)def clear(self) -
describe(method, line 61)def describe(self) -
tail_locked(method, line 66)def tail_locked(self, limit) -
__init__(method, line 74)def __init__(self, features) -
suspend(method, line 84)def suspend(self, feature, reason) -
resume(method, line 102)def resume(self, feature) -
resume_all(method, line 108)def resume_all(self) -
is_suspended(method, line 115)def is_suspended(self, feature) -
suspended(method, line 120)def suspended(self) -
describe(method, line 125)def describe(self)
-
- Imported by:
modules/guardrails/__init__.py,modules/guardrails/harness.py
- Doc: Bounded capacity accounting with strict priority reservation.
- Layer: utility
- Language: py
- Symbols:
-
CapacityEnvelope(class, line 25)class CapacityEnvelope -
__init__(method, line 28)def __init__(self, capacities, threshold) -
_default_capacities(method, line 42)def _default_capacities() -
configure(method, line 50)def configure(self, capacities, threshold) -
admit(method, line 78)def admit(self, task_class, units) -
account(method, line 109)def account(self, task_class, units) -
release(method, line 118)def release(self, task_class, units) -
purge(method, line 126)def purge(self, task_class) -
reclaim(method, line 136)def reclaim(self) -
usage(method, line 140)def usage(self, task_class) -
capacity(method, line 147)def capacity(self, task_class) -
saturated(method, line 154)def saturated(self, task_class) -
threshold(method, line 161)def threshold(self) -
describe(method, line 166)def describe(self) -
_usage_ratio(method, line 171)def _usage_ratio(self, tier) -
_snapshot_locked(method, line 176)def _snapshot_locked(self)
-
- Depends on:
modules/guardrails/contracts.py - Imported by:
modules/guardrails/__init__.py,modules/guardrails/harness.py
- Doc: Checkpoint ledger with warm-restart recovery.
- Layer: utility
- Language: py
- Symbols:
-
CheckpointLedger(class, line 18)class CheckpointLedger -
__init__(method, line 21)def __init__(self, history) -
capture(method, line 33)def capture(self, key, state) -
restore(method, line 51)def restore(self, key) -
keys(method, line 59)def keys(self) -
warm_restart(method, line 64)def warm_restart(self, core_key) -
describe(method, line 92)def describe(self)
-
- Imported by:
modules/guardrails/__init__.py,modules/guardrails/harness.py
- Doc: Contracts for the execution guardrail harness.
- Layer: utility
- Language: py
- Symbols:
-
TaskClass(class, line 19)class TaskClass(IntEnum) -
RunTicket(class, line 40)class RunTicket -
GuardrailContract(class, line 49)class GuardrailContract(Protocol) -
HarnessAdminPort(class, line 73)class HarnessAdminPort(Protocol) -
is_known(method, line 31)def is_known(cls, value) -
describe(method, line 52)def describe(self) -
run_guarded(method, line 56)def run_guarded(self, task_class, fn) -
warm_restart(method, line 68)def warm_restart(self) -
configure(method, line 76)def configure(self, settings) -
rearm(method, line 80)def rearm(self)
-
- Depends on:
cli/commands/enum.py - Imported by:
modules/guardrails/__init__.py,modules/guardrails/budget.py,modules/guardrails/harness.py
- Doc: Execution harness facade: guarded runs, warm restart, degradation.
- Layer: utility
- Language: py
- Symbols:
-
GuardHarness(class, line 25)class GuardHarness -
global_harness(function, line 232)def global_harness() -
reset_global_harness(function, line 241)def reset_global_harness() -
__init__(method, line 28)def __init__(self, threshold, capacities) -
configure(method, line 48)def configure(self, settings) -
run_guarded(method, line 63)def run_guarded(self, task_class, fn) -
warm_restart(method, line 124)def warm_restart(self, core_key) -
suspend(method, line 138)def suspend(self, feature, reason) -
rearm(method, line 153)def rearm(self) -
describe(method, line 165)def describe(self) -
_on_failure(method, line 174)def _on_failure(self, tier, ticket, key, fn, args, kwargs, exc)
-
- Depends on:
modules/guardrails/advisories.py,modules/guardrails/budget.py,modules/guardrails/checkpoints.py,modules/guardrails/contracts.py - Imported by:
modules/guardrails/__init__.py
Generated offline by readmenator from commit a2fa9e276b96. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_modules_autonomous_daemon
- community_10_core
- community_11_modules_opsec_scorer
- community_12_modules_kerberos_core
- community_13_modules_saas_attacks
- 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_cli
- community_3_modules_lazy_loop
- community_4_modules_lazyc2
- community_5_modules_world_model
- community_6_lazygui_panels
- community_7_modules_lazyown_facts
- community_8_static_js
- community_9_skills_claude_md_orchestrator
- 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_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_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_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes