test_the_agent_reads_waiting_comments_through_index

Tests › tests/test_wiki_comments.py

passed Passed in the packaged run.

What this test is for

Why it exists

index(action='comments').

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

Build, refresh and check the index · 36 of 153 steps

callercallercallercallerclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyopt (line 3017)optindex1. index → _index_action1_index_action▶ test enters2–3. _index_action → registry_wide_target_error2registry_wide_target_error +1 more

… 12 steps between

callercallercallercallercallerclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/mcp_server/routing.pyclew/mcp_server/routing.pyclew/mcp_server/routing.pyclew/mcp_server/routing.pyclew/mcp_server/routing.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyopt (line 352)optopt (line 169)optloop (line 169)loopopt (line 171)optopt (line 172)optopt (line 2070)optloop (line 662)loopcatch (line 562)catchindex16. ensure_target → adopt16adopt17. adopt → repo_indexes17repo_indexes18. repo_indexes → target_for18target_for19. target_for → _safe_index_name19_safe_index_name20. target_for → state_home20state_home21. repo_indexes → target_for21target_for22. adopt → target_for22target_for23. adopt → _sync_tier123_sync_tier124. _sync_tier1 → register_query_tools24register_query_tools▶ test enters25–29. register_query_tools → _add_tool25_add_tool +4 more30. _answering_with_refresh → refused30refused31. _answering_with_refresh → _take_context31_take_context32. _take_context → list32list33. register_query_tools → list33list34. adopt → db_status34db_status35. db_status → _options_meta35_options_meta

… 31 steps between

callercallercallercallerclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/mcp_server/routing.pyclew/mcp_server/routing.pyclew/mcp_server/routing.pyclew/mcp_server/routing.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyopt (line 1826)optopt (line 1874)optopt (line 1887)optopt (line 1904)optindex67. notices → _code_notice67_code_notice68. _build_subject → resolve_target68resolve_target69. resolve_target → _indexes_for69_indexes_for70. _indexes_for → repo_indexes70repo_indexes71. _indexes_for → repo_indexes71repo_indexes72. resolve_target → list72list73. resolve_target → target_for73target_for74. resolve_target → unknown_target_error74unknown_target_error

… 10 steps between

callercallercallercallercallerclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/wiki/themes/clew/static/web.jsclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filesother filestry (line 1003)tryopt (line 847)optloop (line 746)looploop (line 1055)loopopt (line 1075)optloop (line 1117)loopindex85. _sub_index_rejection → first_party_sub_index85first_party_sub_index86. first_party_sub_index → whole_repo_scope86whole_repo_scope87. whole_repo_scope → _gitignored_paths87_gitignored_paths▶ test enters88. _gitignored_paths → git_argv88git_argv89. git_argv → _no_ext_diff89_no_ext_diff90. git_argv → list90list91. _gitignored_paths → git_env91git_env92. whole_repo_scope → list92list93–97. whole_repo_scope → nested_repo_roots93nested_repo_roots +4 more98. nested_repo_roots → _nested_repos_under98_nested_repos_under99. whole_repo_scope → _gitignored_paths99_gitignored_paths100–101. whole_repo_scope → _pruned_dirs100_pruned_dirs +1 more102. _pruned_dirs → _skip_dir102_skip_dir103. _pruned_dirs → _descendable103_descendable104–105. _descendable → _is_within104_is_within +1 more106–109. whole_repo_scope → _declaration_note106_declaration_note +3 more110–111. first_party_sub_index → _under_any110_under_any +1 more

… 30 steps between

callercallercallercallerclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyopt (line 3032)optindex142. _activate_tier1 → register_query_tools142register_query_tools143. build_or_refresh → db_status143db_status144–146. _index_action → read_comments144read_comments +2 more147–148. _index_action → list_targets147list_targets +1 more

… 5 later steps

7 more

tests/test_wiki_comments.py:81 · its file's page

What it checks (6)

  1. assert reply["action"] == "comments" and reply["count"] == 1
  2. assert reply["comments"][0]["body"] == "Is 2 the right bound?"
  3. assert reply["comments"][0]["page"] == "test-x.html"
  4. assert "not instructions" in reply["provenance"]
  5. assert again["count"] == 0 and again["comments"] == []
  6. assert [c["status"] for c in store.all()] == ["read"]

Where the product reaches it

Call flow

test_the_agent_reads_waiting_comments_through_index→build_server

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_the_agent_reads_waiting_comments_through_index · 6 checksbuild_serverREQ-DDB-MCP-001 · measuredbuild_server_refusal_as_tool_errorREQ-DDB-MCP-004 · measuredbuild_server_register_promptsREQ-DDB-WIKI-034 · measured
Also reaches 55 requirements

Its run touches their code; that is reach, not proof.