Repository navigation
Description
Context
Three test failures were observed on master while verifying PR #1011 (#1005) and the #1007 envelope-rename branch. They are unrelated to either change but predate them — verified by running on a clean master clone.
Failures
1. `tests/unit/cli/test_query_exec_laws.py::test_apply_modifiers_contract`
Hypothesis test: `apply_modifiers` calls `env.polylogue.add_tag(conv_id, tag)` against a conversation summary built by the strategy that was never persisted to the archive. `add_tag` raises `ConversationNotFoundError(conv-000000)`. Likely fix: seed the strategy's summaries into the test polylogue env before invoking modifiers, or change the strategy to use existing conv ids.
2. `tests/unit/cli/test_command_aux_runtime.py::test_tags_command_plain_paths_cover_empty_hint_and_tabular_counts`
Two implementation gaps:
- empty hint: implementation prints `"No tags found."` but test expects `"No tags found for provider 'chatgpt'."` plus `"Hint: use --add-tag"`. The provider-aware message was lost in a refactor.
- tabular path: test asserts `env.ui.print` is called with a `Table` titled `"Tags (all providers, 1 total)"` with cells `["alpha"]` / `["5"]`. Implementation uses bare `click.echo`. The Rich/tabular renderer was never wired.
3. `tests/unit/core/test_content_projection.py::test_prose_only_drops_claude_code_protocol_artifacts`
`prose_only` projection currently passes through 4 protocol artifact types it should drop: `command-wrapper`, `local-command-caveat`, `task-notification`, `skill-body`. This is exactly the work tracked at #839 (semantic storage of protocol artifacts) — the test was written for the post-#839 invariant and should remain xfail until that issue lands.
Acceptance criteria
- `test_apply_modifiers_contract` seeds its summaries into the env or tightens the strategy.
- `test_tags_command_plain_paths_cover_empty_hint_and_tabular_counts` either gets its expected behavior implemented in `polylogue/cli/commands/tags.py` (provider-aware empty hint + Rich table renderer through `env.ui.print`), or its expectations get pared back to what the implementation actually provides.
- `test_prose_only_drops_claude_code_protocol_artifacts` becomes a pass when fix(archive): store context and protocol artifacts semantically, not via projection fallbacks #839 lands; until then carry an xfail referencing fix(archive): store context and protocol artifacts semantically, not via projection fallbacks #839.
Source
- All three observed during `pytest --ignore=tests/integration` on PR fix(daemon): align loopback definitions across daemon and browser_capture (#1005) #1011 (fix(daemon): align loopback definitions across daemon and browser_capture; remove dead helpers #1005) and on the unmerged refactor(mcp): align insight registry envelope to use total like other paginated tools #1007 work-tree.
- Confirmed against fresh `master` clone — pre-existing.
Activity
fix(cli): route apply_modifiers tag mutations through custom repo whe…
chore: xfail pre-existing master test failures (#1012)
refactor(mcp): align insight registry envelope to {items, total} (#1007)
refactor(mcp): align insight registry envelope to {items, total} (#1007…
Sinity commentedon May 11, 2026
Strengthening pass — classify pre-existing test failures as reproducible bugs
This issue should be treated as a small bug bundle, not generic “test failures.” Each failure needs a repro command, root-cause classification, and a narrow acceptance test that fails before the fix.
Suggested structure:
Acceptance:
devtools verifyor the relevant quick/full gate is run before closure.Sinity commentedon May 15, 2026
Focused repro update from the 2026-05-15 open-issue audit: two rows now XPASS, but the issue is not closable yet. Command run:
pytest -q tests/unit/cli/test_query_exec_laws.py::test_apply_modifiers_contract tests/unit/cli/test_command_aux_runtime.py::test_tags_command_plain_paths_cover_empty_hint_and_tabular_counts tests/unit/core/test_content_projection.py::test_prose_only_drops_claude_code_protocol_artifacts -q. Result:test_apply_modifiers_contractXPASS,test_prose_only_drops_claude_code_protocol_artifactsXPASS,test_tags_command_plain_paths_cover_empty_hint_and_tabular_countsremains XFAIL for provider-aware empty hint and Rich table renderer. Remaining #1012 closeout should either implement the tags behavior or intentionally revise that expectation, then remove stale xfails for the XPASS rows.feat(verify): populate suppression registry and enforce type_ignore/n…
audit(governance): closed-issue workload audit (#1310) (#1401)
fix(cli): resolve stale XFAIL in tags command (#1012)