Functions | |
| list[dict] | records (Path path, str key) |
| Read one registry list. | |
| Path | resolve_page (str name) |
| Resolve a page argument, accepting a number, stem, or filename. | |
| str | source_path (str source) |
| Extract a repository path from a path-or-symbol source declaration. | |
| str | module_path (str module) |
| Convert a Python module identifier to its repository path. | |
| dict[str, str] | page_aliases () |
| Map both filenames and Doxygen page identifiers to published page stems. | |
| str | canonical_page (str reference) |
| Resolve a registry page reference to its filename stem when declared by Doxygen id. | |
| str | git_log (list[str] paths) |
| Recent history for a set of paths, for spotting what changed underneath a route. | |
| list[dict] | contracts_for (str page_stem) |
| Invariant contracts that own or depend on a page. | |
| list[dict] | families_for (str page_stem) |
| Capability families whose entries live on a page. | |
| set[str] | record_pages (dict record) |
| Collect obligation and concern pages from a subsystem record. | |
| list[dict] | subsystems_for_pages (set[str] page_stems) |
| Find subsystem records routed through any supplied page. | |
| list[dict] | scope_records_for (str page_stem) |
| Scope records that name a page as a disclosure or activation surface. | |
| list[tuple[str, dict]] | freshness_for (str page_stem) |
| Freshness surfaces that route review to a page. | |
| list[str] | freshness_paths (dict surface) |
| Return the artifact or watched paths that define a freshness surface. | |
| str | freshness_state (dict surface) |
| Whether a surface is current, suspect, or never attested. | |
| str | _freshness_digest (list[str] paths) |
| Digest matching audit_freshness.digest_of. | |
| str | uncommitted (list[str] paths) |
| Current uncommitted status for declared sources. | |
| list[tuple[str, str, str]] | family_source_specs (dict family) |
| Resolve a capability family's declared source paths and symbols. | |
| list[str] | symbols_for (dict family) |
| Named symbols a capability family depends on, rather than whole files. | |
| list[str] | evidence_sources (dict family) |
| Declared evidence sources across a family's values. | |
| list | recorded_measurements (list[str] sources) |
| Measurement records cited by declared evidence sources. | |
| list[str] | make_targets (list[str] sources) |
| Make targets named by declared evidence sources. | |
| int | route_status (list[str] unresolved, bool unavailable=False) |
| Print the fixed route state and any unresolved declarations. | |
| int | unknown_identifier (str kind, str identifier, list[str] known) |
| Report an invalid registry identifier with close matches and known ids. | |
| None | print_freshness (list[tuple[str, dict]] surfaces, str heading) |
| Print freshness routing with current attestation state. | |
| tuple[str, dict|None] | load_xref () |
| Load the optional cross-reference index only when its dirty-byte stamp is current. | |
| list[str] | xref_matches (dict index, str path, str symbol) |
| Match a declared path and symbol to Doxygen member identifiers. | |
| str | format_xref_node (dict index, str refid) |
| Format one indexed symbol with its definition location. | |
| None | print_measurements (list records) |
| Print the measurements already recorded against this route. | |
| None | print_xref (list[tuple[str, str, str]] specs, list[str]|None paths=None) |
| Print bounded direct and two-hop Doxygen reference evidence for a route. | |
| int | contract_mode (str contract_id) |
| Print a review packet for one invariant contract. | |
| int | capability_mode (str capability_id) |
| Join one capability family across symbols, pages, contracts, evidence, and subsystems. | |
| int | subsystem_mode (str subsystem_id) |
| Join one subsystem across capability families, obligation pages, contracts, and evidence. | |
| int | surface_mode (str surface_id) |
| Join one freshness surface across watched paths, pages, contracts, families, and subsystems. | |
| tuple[dict[str, set[str]], bool] | changed_paths () |
| Collect staged, unstaged, and untracked nonignored paths from Git. | |
| str | classify_path (str path) |
| Classify a changed path for routing coverage. | |
| dict[str, list[str]] | routes_for_path (str path) |
| Find declared capabilities, surfaces, contracts, and subsystems touching a path. | |
| str | guide_fallback (str path) |
| Return the nearest existing directory guide for an unrouted production path. | |
| int | changed_mode (str value) |
| Report declared routing coverage for current working-tree changes. | |
| int | page_mode (str page_name) |
| Print the original page-scoped review packet with explicit route status and xrefs. | |
| argparse.Namespace | parse_args (list[str] argv) |
| Parse the mutually exclusive review-packet route selectors. | |
| int | main (list[str]|None argv=None) |
| Dispatch the requested bounded route and preserve differentiated exit states. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | PAGES_DIR = REPO_ROOT / "docs" / "pages" |
| TOOLING_DIR = Path(__file__).resolve().parent | |
| str | CONTRACTS = TOOLING_DIR / "contract_registry.json" |
| str | FRESHNESS = TOOLING_DIR / "freshness_manifest.json" |
| str | MEASUREMENTS = TOOLING_DIR / "measurement_records.json" |
| str | FAMILIES = TOOLING_DIR / "capability_families.json" |
| str | SUBSYSTEMS = TOOLING_DIR / "subsystem_records.json" |
| str | SCOPE = TOOLING_DIR / "capability_scope_records.json" |
| str | XREF = REPO_ROOT / "docs_build" / "xref.json" |
| tuple | XREF_CAVEAT |
| str | COMPLETE = "ROUTE: complete over declared registry data (not over code behavior)" |
| str | INCOMPLETE = "ROUTE: incomplete — declared identifier has unresolved routing" |
| str | UNAVAILABLE = "ROUTE: unavailable — required environment or metadata is absent" |
Assemble bounded review packets from PICurv's declared routing registries.
| list[dict] review_packet.records | ( | Path | path, |
| str | key | ||
| ) |
Read one registry list.
| [in] | path | Registry JSON path. |
| [in] | key | Top-level list key. |
Definition at line 48 of file review_packet.py.
| Path review_packet.resolve_page | ( | str | name | ) |
Resolve a page argument, accepting a number, stem, or filename.
| [in] | name | Page identifier supplied on the command line. |
| SystemExit | when no page matches. |
Definition at line 59 of file review_packet.py.
| str review_packet.source_path | ( | str | source | ) |
Extract a repository path from a path-or-symbol source declaration.
| [in] | source | Declared source string. |
Definition at line 78 of file review_packet.py.
| str review_packet.module_path | ( | str | module | ) |
Convert a Python module identifier to its repository path.
A dotted name may address a package rather than a single file - the storage surface is one - in which case the package directory is the source, because that is what an importer resolves the name to.
| [in] | module | Dotted Python module. |
Definition at line 88 of file review_packet.py.
| dict[str, str] review_packet.page_aliases | ( | ) |
Map both filenames and Doxygen page identifiers to published page stems.
Definition at line 106 of file review_packet.py.
| str review_packet.canonical_page | ( | str | reference | ) |
Resolve a registry page reference to its filename stem when declared by Doxygen id.
| [in] | reference | Page stem or Doxygen page identifier. |
Definition at line 121 of file review_packet.py.
| str review_packet.git_log | ( | list[str] | paths | ) |
Recent history for a set of paths, for spotting what changed underneath a route.
| [in] | paths | Repository-relative paths. |
Definition at line 131 of file review_packet.py.
| list[dict] review_packet.contracts_for | ( | str | page_stem | ) |
Invariant contracts that own or depend on a page.
| [in] | page_stem | Page identifier without extension. |
Definition at line 149 of file review_packet.py.
| list[dict] review_packet.families_for | ( | str | page_stem | ) |
Capability families whose entries live on a page.
| [in] | page_stem | Page identifier without extension. |
Definition at line 164 of file review_packet.py.
| set[str] review_packet.record_pages | ( | dict | record | ) |
Collect obligation and concern pages from a subsystem record.
| [in] | record | Subsystem lifecycle record. |
Definition at line 174 of file review_packet.py.
| list[dict] review_packet.subsystems_for_pages | ( | set[str] | page_stems | ) |
Find subsystem records routed through any supplied page.
| [in] | page_stems | Page stems to match. |
Definition at line 189 of file review_packet.py.
| list[dict] review_packet.scope_records_for | ( | str | page_stem | ) |
Scope records that name a page as a disclosure or activation surface.
| [in] | page_stem | Page identifier without extension. |
Definition at line 199 of file review_packet.py.
| list[tuple[str, dict]] review_packet.freshness_for | ( | str | page_stem | ) |
Freshness surfaces that route review to a page.
| [in] | page_stem | Page identifier. |
Definition at line 216 of file review_packet.py.
| list[str] review_packet.freshness_paths | ( | dict | surface | ) |
Return the artifact or watched paths that define a freshness surface.
| [in] | surface | Freshness manifest record. |
Definition at line 232 of file review_packet.py.
| str review_packet.freshness_state | ( | dict | surface | ) |
Whether a surface is current, suspect, or never attested.
| [in] | surface | One freshness manifest entry. |
Definition at line 242 of file review_packet.py.
|
protected |
Digest matching audit_freshness.digest_of.
| [in] | paths | Repository-relative paths. |
Definition at line 259 of file review_packet.py.
| str review_packet.uncommitted | ( | list[str] | paths | ) |
Current uncommitted status for declared sources.
| [in] | paths | Repository-relative paths. |
Definition at line 275 of file review_packet.py.
| list[tuple[str, str, str]] review_packet.family_source_specs | ( | dict | family | ) |
Resolve a capability family's declared source paths and symbols.
| [in] | family | Capability family record. |
Definition at line 294 of file review_packet.py.
| list[str] review_packet.symbols_for | ( | dict | family | ) |
Named symbols a capability family depends on, rather than whole files.
| [in] | family | Family record. |
Definition at line 312 of file review_packet.py.
| list[str] review_packet.evidence_sources | ( | dict | family | ) |
Declared evidence sources across a family's values.
| [in] | family | Family record. |
Definition at line 322 of file review_packet.py.
Measurement records cited by declared evidence sources.
| [in] | sources | Declared evidence source identifiers. |
Definition at line 336 of file review_packet.py.
Make targets named by declared evidence sources.
| [in] | sources | Source identifiers. |
Definition at line 351 of file review_packet.py.
| int review_packet.route_status | ( | list[str] | unresolved, |
| bool | unavailable = False |
||
| ) |
Print the fixed route state and any unresolved declarations.
| [in] | unresolved | Problems found while joining declared registry data. |
| [in] | unavailable | Whether required environmental metadata is unavailable. |
Definition at line 361 of file review_packet.py.
| int review_packet.unknown_identifier | ( | str | kind, |
| str | identifier, | ||
| list[str] | known | ||
| ) |
Report an invalid registry identifier with close matches and known ids.
| [in] | kind | Identifier category. |
| [in] | identifier | Unknown value. |
| [in] | known | Valid values. |
Definition at line 383 of file review_packet.py.
| None review_packet.print_freshness | ( | list[tuple[str, dict]] | surfaces, |
| str | heading | ||
| ) |
Print freshness routing with current attestation state.
| [in] | surfaces | Role and surface pairs. |
| [in] | heading | Section heading. |
Definition at line 402 of file review_packet.py.
| tuple[str, dict | None] review_packet.load_xref | ( | ) |
Load the optional cross-reference index only when its dirty-byte stamp is current.
current, missing, or stale) and current index when available. Definition at line 424 of file review_packet.py.
| list[str] review_packet.xref_matches | ( | dict | index, |
| str | path, | ||
| str | symbol | ||
| ) |
Match a declared path and symbol to Doxygen member identifiers.
| [in] | index | Current cross-reference index. |
| [in] | path | Expected definition path, or an empty string. |
| [in] | symbol | Expected unqualified or qualified symbol. |
Definition at line 450 of file review_packet.py.
| str review_packet.format_xref_node | ( | dict | index, |
| str | refid | ||
| ) |
Format one indexed symbol with its definition location.
| [in] | index | Current cross-reference index. |
| [in] | refid | Doxygen member id. |
Definition at line 470 of file review_packet.py.
| None review_packet.print_measurements | ( | list | records | ) |
Print the measurements already recorded against this route.
| [in] | records | Measurement records to render. |
Definition at line 484 of file review_packet.py.
Print bounded direct and two-hop Doxygen reference evidence for a route.
| [in] | specs | Declared source path, symbol, and kind tuples. |
| [in] | paths | Optional paths whose connected definitions should seed the view. |
Definition at line 503 of file review_packet.py.
| int review_packet.contract_mode | ( | str | contract_id | ) |
Print a review packet for one invariant contract.
| [in] | contract_id | Contract identifier. |
Definition at line 585 of file review_packet.py.
| int review_packet.capability_mode | ( | str | capability_id | ) |
Join one capability family across symbols, pages, contracts, evidence, and subsystems.
| [in] | capability_id | Capability family id. |
Definition at line 651 of file review_packet.py.
| int review_packet.subsystem_mode | ( | str | subsystem_id | ) |
Join one subsystem across capability families, obligation pages, contracts, and evidence.
| [in] | subsystem_id | Subsystem lifecycle id. |
Definition at line 712 of file review_packet.py.
| int review_packet.surface_mode | ( | str | surface_id | ) |
Join one freshness surface across watched paths, pages, contracts, families, and subsystems.
| [in] | surface_id | Freshness surface id. |
Definition at line 768 of file review_packet.py.
| tuple[dict[str, set[str]], bool] review_packet.changed_paths | ( | ) |
Collect staged, unstaged, and untracked nonignored paths from Git.
Definition at line 825 of file review_packet.py.
| str review_packet.classify_path | ( | str | path | ) |
Classify a changed path for routing coverage.
| [in] | path | Repository-relative changed path. |
Definition at line 855 of file review_packet.py.
| dict[str, list[str]] review_packet.routes_for_path | ( | str | path | ) |
Find declared capabilities, surfaces, contracts, and subsystems touching a path.
| [in] | path | Repository-relative production path. |
Definition at line 878 of file review_packet.py.
| str review_packet.guide_fallback | ( | str | path | ) |
Return the nearest existing directory guide for an unrouted production path.
| [in] | path | Repository-relative path. |
Definition at line 918 of file review_packet.py.
| int review_packet.changed_mode | ( | str | value | ) |
Report declared routing coverage for current working-tree changes.
| [in] | value | Supported selector, currently working-tree. |
Definition at line 934 of file review_packet.py.
| int review_packet.page_mode | ( | str | page_name | ) |
Print the original page-scoped review packet with explicit route status and xrefs.
| [in] | page_name | Page number, stem, or filename. |
Definition at line 981 of file review_packet.py.
| argparse.Namespace review_packet.parse_args | ( | list[str] | argv | ) |
Parse the mutually exclusive review-packet route selectors.
| [in] | argv | Arguments excluding the executable name. |
Definition at line 1061 of file review_packet.py.
| int review_packet.main | ( | list[str] | None | argv = None | ) |
Dispatch the requested bounded route and preserve differentiated exit states.
| [in] | argv | Optional arguments excluding the executable name. |
Definition at line 1081 of file review_packet.py.
| review_packet.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 17 of file review_packet.py.
| str review_packet.PAGES_DIR = REPO_ROOT / "docs" / "pages" |
Definition at line 18 of file review_packet.py.
| review_packet.TOOLING_DIR = Path(__file__).resolve().parent |
Definition at line 19 of file review_packet.py.
| str review_packet.CONTRACTS = TOOLING_DIR / "contract_registry.json" |
Definition at line 31 of file review_packet.py.
| str review_packet.FRESHNESS = TOOLING_DIR / "freshness_manifest.json" |
Definition at line 32 of file review_packet.py.
| str review_packet.MEASUREMENTS = TOOLING_DIR / "measurement_records.json" |
Definition at line 33 of file review_packet.py.
| str review_packet.FAMILIES = TOOLING_DIR / "capability_families.json" |
Definition at line 34 of file review_packet.py.
| str review_packet.SUBSYSTEMS = TOOLING_DIR / "subsystem_records.json" |
Definition at line 35 of file review_packet.py.
| str review_packet.SCOPE = TOOLING_DIR / "capability_scope_records.json" |
Definition at line 36 of file review_packet.py.
| str review_packet.XREF = REPO_ROOT / "docs_build" / "xref.json" |
Definition at line 37 of file review_packet.py.
| tuple review_packet.XREF_CAVEAT |
Definition at line 38 of file review_packet.py.
| str review_packet.COMPLETE = "ROUTE: complete over declared registry data (not over code behavior)" |
Definition at line 43 of file review_packet.py.
| str review_packet.INCOMPLETE = "ROUTE: incomplete — declared identifier has unresolved routing" |
Definition at line 44 of file review_packet.py.
| str review_packet.UNAVAILABLE = "ROUTE: unavailable — required environment or metadata is absent" |
Definition at line 45 of file review_packet.py.