Orchestrata Ultimate › Tests › Reference › scripts › test_check_kimi_agent_level
Tests reference — tests/scripts/test_check_kimi_agent_level.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_check_kimi_agent_level.py
source · 30 tests · 585 lines
Tests for scripts/check_kimi_agent_level.py — the RUL-018 gate ("Kimi runs
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_kimi_hook_watchdog_spawn_fails_the_gate |
138 | D2: the tracked .kimi SessionStart hook starts a project-level |
| function | test_irc_listen_foreign_default_fails_the_gate |
160 | D1: os.environ.get("IRC_NICK", "codewhale") binds this repo's |
| function | test_both_ruling_violations_together |
181 | The tree as the ruling describes it: the hook's literal binding, its |
| function | test_prescribed_fix_passes_the_gate |
202 | Section 6 replaced by a systemctl --user is-active report and the |
| function | test_repo_owned_nick_may_spawn_its_own_watchdog |
222 | D2 is two-factor: spawning the repo's OWN listener under the repo's |
| function | test_watchdog_popen_without_a_nick_binding_is_silent |
240 | scripts/_irc_watchdog.py legitimately Popens the listener and |
| function | test_live_legitimate_nick_mentions_stay_silent |
265 | The real files in THIS checkout that mention the fleet nicks for |
| function | test_context_journal_is_exempt_from_enumeration |
276 | context.json is the session CLI's work JOURNAL — narrative prose |
| function | test_provider_named_kimi_is_not_an_irc_identity |
297 | kimi as the Moonshot LLM/browser PROVIDER name — the largest |
| function | test_read_side_attribution_map_is_not_a_binding |
309 | PLATFORM_FOR_NICK LABELS a captured turn by its speaker's nick. |
| function | test_default_irc_nick_constant_is_word_anchored_out |
323 | DEFAULT_IRC_NICK cannot match \bIRC_NICK — the preceding |
| function | test_pgrep_probe_and_environ_read_are_not_spawns |
333 | Health probes name the listener but never start it; the sed |
| function | test_markdown_is_excluded_from_the_corpus |
345 | SESSION_START.md, the RUL-018 page itself and plans/kimi-*.md quote |
| function | test_live_repo_corpus_contains_no_markdown |
362 | The same exclusion, proven against the live checkout's own corpus. |
| function | test_untracked_runtime_state_is_out_of_scope |
370 | Untracked, gitignored local runtime state (.kimi/irc-last-check) |
| function | test_self_exempt_paths_are_not_graded |
384 | The gate and its own test module must quote the violating lines |
| function | test_no_blanket_tests_exemption |
401 | A test that hardcoded a foreign nick and spawned the watchdog would |
| function | test_export_binding_propagates_to_a_later_spawn |
427 | A spawn line with no binding of its own inherits the file's most |
| function | test_systemd_environment_binding_is_detected |
438 | Environment=IRC_NICK=<nick> in a unit file is a binding. The unit |
| function | test_env_dict_binding_is_detected |
453 | The python env-dict form {"IRC_NICK": "<lit>"}. |
| function | test_one_hop_indirection_resolves |
461 | |
| function | test_unresolvable_indirection_is_skipped_not_guessed |
467 | A false negative is preferred to a false positive: an unassigned |
| function | test_indirection_is_one_hop_only |
482 | Only LITERAL assignments enter the resolution table, which is what |
| function | test_binding_below_a_spawn_does_not_leak_upwards |
493 | Lines are graded in order: an assignment can only feed a spawn that |
| function | test_agent_of_strips_the_agent_suffix |
502 | |
| function | test_spawn_verbs_and_trailing_ampersand |
509 | |
| function | test_non_git_directory_skips_instead_of_crashing |
524 | |
| function | test_cli_subprocess_exit_codes_and_json |
534 | The real CLI, in a real subprocess — how health_check.py invokes it. |
| function | test_text_report_names_the_ruling |
567 | |
| function | test_script_satisfies_the_rulings_lint_gate_grammar |
579 | rulings_lint's gate <script> <rule-id> directive resolves by |