Skip to main content

Module rules_canonical

Module rules_canonical 

Source
Expand description

Canonical Hybrid Policy — the single source of truth for all lean-ctx rules.

Every template, injected rule file, SKILL.md, and MCP instructions field MUST derive its tool-mapping table from this module. No inline tool tables elsewhere in the codebase.

Enums§

Mode

Functions§

automation_block
cep_block
compatibility_block
ctx_read_modes_block
dedicated_rules
Returns the full rules block (LITM-optimized) for dedicated rule files.
litm_end_block
mcp_instructions
Returns a short instructions string for MCP JSON instructions field.
tool_mapping_bullets
Tool-mapping in bullet format for MCP instructions blocks.
tool_table
Generates the canonical tool-mapping table for the given mode.
unified_tool_mode_block