Live-block contract checks.
Validates each@app.live_block(route, block)declaration:
live_block_unreachable_route— the declared route is not registered.live_block_unknown— the route's template has no block with that name.
Template is resolved viaroute_templates(populated by filesystem page
mounting). Imperative routes without tracked templates skip block-level
validation; the route-existence check still runs.
contracts.rules_live_blocks
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
Symbols on this page
check_live_blocks
function
def check_live_blocks(live_blocks: dict[tuple[str, str], LiveBlockSpec], router: Router, route_templates: dict[str, str], kida_env: Environment | None) -> list[ContractIssue]
Validate live-block declarations against routes and templates.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
live_blocks
|
dict[tuple[str, str], LiveBlockSpec]
|
— | |
router
|
Router
|
— | |
route_templates
|
dict[str, str]
|
— | |
kida_env
|
Environment | None
|
— |
View source · /home/runner/work/chirp/chirp/site/../src/chirp/contracts/rules_live_blocks.py:1