← Về thư mục
tests/test_kernel_recovery.py
- _Candidate · class · L28-L42 — class _Candidate
- init · method · L29-L39 — def init(self, generation_id="candidate-1") -> None
- shutdown · method · L41-L42 — def shutdown(self)
- _manifest · function · L45-L62 — def _manifest()
- _orchestrator · function · L65-L85 — def _orchestrator(candidate, events, published, executed, *, bootstrap=None)
- test_bootstrap_manifest_snapshots_exact_sidecar_bytes_and_detects_tampering · function · L88-L100 — def test_bootstrap_manifest_snapshots_exact_sidecar_bytes_and_detects_tampering()
- test_bootstrap_manifest_v2_binds_worker_packages_locale_and_protocol_versions · function · L103-L159 — def test_bootstrap_manifest_v2_binds_worker_packages_locale_and_protocol_versions()
- _sidecar_event · function · L162-L178 — def _sidecar_event(module: str, source: bytes, order: int) -> dict
- _frozen_policy · function · L181-L201 — def _frozen_policy( sidecar: SidecarManifest, *, direct: bool = False, collection: str | None = None, ) -> dict
- test_runtime_sidecar_events_extend_manifest_in_exact_load_order · function · L204-L228 — def test_runtime_sidecar_events_extend_manifest_in_exact_load_order()
- test_collection_qualified_sidecar_event_is_recoverable · function · L231-L256 — def test_collection_qualified_sidecar_event_is_recoverable()
- test_unicode_sidecar_event_is_recoverable · function · L259-L264 — def test_unicode_sidecar_event_is_recoverable()
- test_non_identifier_sidecar_event_spellings_remain_recoverable · function · L268-L271 — def test_non_identifier_sidecar_event_spellings_remain_recoverable(module)
- test_sidecar_event_rejects_malformed_qualified_modules · function · L278-L282 — def test_sidecar_event_rejects_malformed_qualified_modules(module)
- test_sidecar_event_requires_complete_local_alias_roots · function · L285-L294 — def test_sidecar_event_requires_complete_local_alias_roots()
- test_frozen_sidecar_never_replaces_an_existing_module_for_an_alias_root · function · L297-L316 — def test_frozen_sidecar_never_replaces_an_existing_module_for_an_alias_root()
- test_frozen_sidecar_rechecks_current_capability_policy · function · L320-L332 — def test_frozen_sidecar_rechecks_current_capability_policy(policy_key)
- test_frozen_sidecar_recovery_uses_manifest_bytes_not_changed_disk · function · L335-L358 — def test_frozen_sidecar_recovery_uses_manifest_bytes_not_changed_disk(tmp_path)
- test_sidecar_manifest_rejects_unfrozen_local_imports · function · L369-L376 — def test_sidecar_manifest_rejects_unfrozen_local_imports(source)
- test_sidecar_manifest_rejects_mutable_explicit_code_loaders · function · L397-L404 — def test_sidecar_manifest_rejects_mutable_explicit_code_loaders(source, error)
- test_bundled_sidecar_recovery_compatibility_is_explicit · function · L407-L428 — def test_bundled_sidecar_recovery_compatibility_is_explicit()
- test_qualified_sidecars_reject_unfrozen_local_imports · function · L439-L448 — def test_qualified_sidecars_reject_unfrozen_local_imports(name, source): # The hyphenated form is syntactically invalid and is rejected before the # import-root check; the identifier forms exercise both qualified aliases.
- test_direct_sidecar_rejects_static_catalog_alias_import · function · L451-L458 — def test_direct_sidecar_rejects_static_catalog_alias_import()
- test_frozen_sidecar_package_path_cannot_load_changed_sibling · function · L461-L487 — def test_frozen_sidecar_package_path_cannot_load_changed_sibling(tmp_path, monkeypatch)
- test_real_loader_event_seals_dynamic_imports_through_every_package_alias · function · L490-L547 — def test_real_loader_event_seals_dynamic_imports_through_every_package_alias( tmp_path, )
- test_runtime_and_recovery_share_one_module_across_sidecar_aliases · function · L550-L620 — def test_runtime_and_recovery_share_one_module_across_sidecar_aliases(tmp_path)
- test_frozen_recovery_rejects_unfrozen_cross_skill_dependencies · function · L639-L703 — def test_frozen_recovery_rejects_unfrozen_cross_skill_dependencies( tmp_path, kernel_source, expected_error )
- test_sidecar_event_tampering_and_capture_failure_fail_closed · function · L706-L732 — def test_sidecar_event_tampering_and_capture_failure_fail_closed()
- test_replay_safety_fails_closed_for_external_side_effects · function · L752-L754 — def test_replay_safety_fails_closed_for_external_side_effects(code, methods, expected)
- test_replay_safety_allows_pure_computation_and_declared_read_only_host_calls · function · L757-L768 — def test_replay_safety_allows_pure_computation_and_declared_read_only_host_calls()
- test_verified_candidate_is_published_only_after_hydration_replay_and_validation · function · L771-L811 — def test_verified_candidate_is_published_only_after_hydration_replay_and_validation()
- test_non_replayable_step_yields_partial_and_preserves_old_generation · function · L814-L846 — def test_non_replayable_step_yields_partial_and_preserves_old_generation()
- test_replay_step_source_hash_is_rechecked_before_execution · function · L849-L881 — def test_replay_step_source_hash_is_rechecked_before_execution()
- test_prior_cells_without_namespace_coverage_cannot_be_declared_active · function · L884-L898 — def test_prior_cells_without_namespace_coverage_cannot_be_declared_active()
- test_validation_failure_is_partial_and_bootstrap_failure_is_failed · function · L901-L935 — def test_validation_failure_is_partial_and_bootstrap_failure_is_failed()
- test_recovery_journal_is_append_only_and_survives_repository_reopen · function · L938-L966 — def test_recovery_journal_is_append_only_and_survives_repository_reopen(tmp_path)