Commit Graph
2026 Commits
Author SHA1 Message Date
bvandeusen 41085b8a4a Merge pull request 'Shape rows of a repo that left a project stop counting (#8376); marker/binding fixes (#8321); hook contract tests (#8249)' (#240) from dev into main
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m20s
CI & Build / integration (push) Successful in 2m16s
CI & Build / Build & push image (push) Successful in 15s
2026-12-02 23:21:05 -05:00
bvandeusenandClaude Opus 5.5 f55e263d7e fix(8376): a repo that leaves a project takes its shape rows out of that project's accounting
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m19s
CI & Build / Build & push image (push) Successful in 20s
A coverage refresh walks only the repos bound to a project, but its readout
counts every live row, so the rows of a repo unbound or re-bound to another
project were never synced again and kept counting: in the total, the gap
list, and every reader of live rows (proposer, divergence, stamp review).
Re-binding a repo to another project and unbinding it now stamp its rows on
the project it left as vanished, and each refresh sweeps any rows still left
under a repo nobody binds to the project. A bound repo the forge did not
serve this time stays live. Each stamped row gets an `unbound` event and
keeps its judgment, so binding the repo back revives it like any vanished
row. Plugin version bumped for the shape-accounting skill's event list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 23:15:24 -05:00
bvandeusenandClaude Opus 5.5 af5edd5c3f test(8249): the prior-art and moment contract tests count the session binder as a reader of session_id
CI & Build / Plugin hooks (push) Successful in 16s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 35s
CI & Build / integration (push) Successful in 2m17s
CI & Build / Python tests (push) Successful in 2m31s
CI & Build / Build & push image (push) Successful in 18s
They subtracted session_id from what the hook sent, and their failure message
still listed it. The binder that runs before every plugin route reads it, so
it is passed to route_query_args beside the handler and the scope helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 16:49:53 -05:00
bvandeusen 1a9057e875 Revert "test(8249): DELIBERATE BREAK, the tool-rules route reads seen_rulings instead of seen_ruling_systems"
This reverts commit 451e129731.
2026-12-02 16:49:45 -05:00
bvandeusenandClaude Opus 5.5 451e129731 test(8249): DELIBERATE BREAK, the tool-rules route reads seen_rulings instead of seen_ruling_systems
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 22s
CI & Build / TypeScript typecheck (push) Successful in 41s
CI & Build / Python tests (push) Failing after 2m41s
CI & Build / integration (push) Successful in 2m57s
CI & Build / Build & push image (push) Skipped
Reverted in the next commit. CI must fail test_the_route_reads_every_name_the_hook_sends here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 16:44:50 -05:00
bvandeusenandClaude Opus 5.5 d5a9e0f8c8 test(8249): the tool-rules hook and its route agree on every name, checked by running the hook
The old test read the hook script, the shared helpers and the route source
and compared parameter names as text. It now runs grimoire_tool_rules.sh
against a local listener, in a repo with a remote and every session ledger
holding something, and checks that every key the hook sent is one the route,
its project-scope helper or the session binder reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 16:44:50 -05:00
bvandeusenandClaude Opus 5.5 ccee6aeffa fix(8321): the remote is looked up beside a marker only when the marker sent the project, not again after it resolved the project itself
CI & Build / TypeScript typecheck (push) Successful in 36s
CI & Build / Plugin hooks (push) Successful in 16s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m23s
CI & Build / integration (push) Successful in 2m7s
CI & Build / Build & push image (push) Successful in 21s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:29:17 -05:00
bvandeusenandClaude Opus 5.5 f4d6486255 fix(8321): a .grimoire marker that disagrees with the repo's binding is named at session start
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m58s
CI & Build / integration (push) Successful in 1m58s
CI & Build / Build & push image (push) Skipped
A marker copied along with a repo outlived the project it was written for:
the Throne folder's marker still named project 38 after the split, so every
hook held the session to Cartographer and writes to Throne stopped on the
project fence, with nothing saying why.

The SessionStart hook now sends the remote beside a marker's project_id. The
marker still decides the project; /context also resolves the remote's binding,
and when it names a different project the context says which project each
names and how to fix the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:22:50 -05:00
bvandeusen fca43e71ea Merge pull request 'Reply shape survives a compaction (#7716); test review pass (#8249); detector fix (#8292)' (#239) from dev into main
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m14s
CI & Build / Build & push image (push) Successful in 16s
2026-12-02 13:09:44 -05:00
bvandeusen 9de0e80531 Revert the deliberate break: the reply shape after the top two rule lines
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / integration (push) Successful in 2m21s
CI & Build / Python tests (push) Successful in 2m34s
CI & Build / Build & push image (push) Successful in 21s
2026-12-02 10:17:54 -05:00
bvandeusen c921f284d8 test(7716): DELIBERATE BREAK, every rule line ahead of the reply shape again
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Plugin hooks (push) Successful in 16s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Failing after 2m15s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / integration (push) Canceled after 1m53s
2026-12-02 10:12:52 -05:00
bvandeusenandClaude Opus 5.5 a3c4cc5921 fix(7716): the reply shape rides after the top two rule lines, so a compaction cannot push it out
CI & Build / Python lint (push) Successful in 1s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m28s
CI & Build / integration (push) Successful in 2m23s
CI & Build / Build & push image (push) Successful in 25s
A compaction sweeps the rule ledger as well as the shape ledger. On the
next prompt every rule the prompt arm reaches and every rule mounted on
reply.report comes back as a first mention with its statement (about 750
characters each), and the route placed all of them ahead of the shape. Six
fill the 4,500-character default budget, so the 2,343-character core was
left out on exactly the turn it is meant to return in full. Seen in a real
session: after 9 of 10 compactions the first prompt payload carried no
reply shape at all.

The prompt payload is now ordered as milestone 639 designed it: the first
two rule lines, the reply shape, the remaining rule lines, the reply's
lessons, the carried note, the records menu. Rules that do not fit stay off
the ledger and arrive on a later call.

The lesson-placement test now pins the lesson after the shape (a lesson
binds nothing; the shape is what the reply is written to). New test: six
full-length rule lines and the real core at the default budget; the shape
is kept and the later rules wait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:03:46 -05:00
bvandeusenandClaude Opus 5.5 3ad7d93386 test: the claims hook runner skips through need_tools rather than its own which-loop
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / integration (push) Canceled after 2m21s
_run_hook in test_task_claims.py repeated the shutil.which -> pytest.skip
guard that tests.helpers.need_tools exists to hold once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:01:12 -05:00
bvandeusen fd1974bc91 Revert the deliberate break: plan refused, kind filter None, empty judged block, sync ledger read
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Build & push image (push) Successful in 18s
CI & Build / Python tests (push) Successful in 2m20s
CI & Build / integration (push) Successful in 2m24s
2026-12-01 20:03:00 -05:00
bvandeusen 5e4fc3dccf test(8249): DELIBERATE BREAK, plan minted, kind filter sent as "", empty judged block, sync ledger ignored
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Failing after 2m4s
CI & Build / integration (push) Failing after 2m44s
CI & Build / Build & push image (push) Skipped
2026-12-01 19:58:03 -05:00
bvandeusenandClaude Opus 5.5 4caa7bae4b test(8249): the write-path sync-once check kept once, in the hook's own file
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m22s
CI & Build / integration (push) Successful in 2m50s
CI & Build / Build & push image (push) Successful in 17s
test_ledger_references_not_silence::test_the_sync_class_still_shows_only_once
checked a subset of test_write_path_trigger::test_sync_dedup_silences_a_sync_nudge_already_shown
(sync_note_ids empty, the id absent from the context); the covering test also
checks the semantic arm excludes it. Its reasoning (why the sync nudge is the
one class shown only once) moves into the covering test's docstring. The
helper's now-unused sync_exclude parameter goes with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:53:03 -05:00
bvandeusenandClaude Opus 5.5 094089e374 test(8249): area groups, first pass: one file folded in, three readout checks merged, two copies removed
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 2m23s
CI & Build / integration (push) Successful in 2m25s
CI & Build / Build & push image (push) Successful in 19s
- test_mcp_tool_tasks_kind.py is folded into test_mcp_tool_tasks.py, the
  tool's own file: the two "kind passes through" cases are one table, the two
  list-filter cases one table; the minted_kind refusals move to the service's
  kind tests (test_services_notes_task_kind.py).
- A fresh install reads as empty, not failed: three database tests each ran
  retrieval_summary on an empty install and checked one block
  (usage, judged, system_usage). One test now checks all three.
- test_reply_shapes::test_the_tool_is_registered_as_a_read: everything it
  checked, test_moments::test_the_tools_are_registered_and_classified checks.
- test_shape_ledger::test_classify_and_list_are_mounted_as_mcp_tools: every
  classified tool name must be a registered tool
  (test_mcp_auth::test_every_registered_tool_is_classified_exactly_once).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:45:38 -05:00
bvandeusenandClaude Opus 5.5 1d3d72d2d4 Revert the deliberate break: client turns skipped, one shared rule ledger, route reads shapes_seen
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 18s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m20s
CI & Build / integration (push) Successful in 2m23s
CI & Build / Build & push image (push) Successful in 19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:44:33 -05:00
bvandeusenandClaude Opus 5.5 1c6c874257 test(8249): DELIBERATE BREAK, client turns retrieved, tool arm keeps its own rule ledger, route reads shape_seen
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Failing after 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 2m4s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / integration (push) Canceled after 2m43s
Reverted by the next commit. CI must go red on
test_the_hook_spends_no_request_on_a_client_written_turn[client-written],
test_the_two_pre_tool_arms_share_one_session_rule_ledger and
test_the_route_reads_the_shape_ledger_the_hook_sends_and_returns_its_keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:41:39 -05:00
bvandeusenandClaude Opus 5.5 ea30e0bd75 test(8249): prompt filter, shared rule ledger and reply-shape guards run the hooks
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / integration (push) Successful in 2m33s
CI & Build / Build & push image (push) Successful in 18s
- test_prompt_boundary_filter: the prompt hook runs on a client-written turn
  and sends nothing, and on a typed one and asks; was "the filter call sits
  above the curl line" in the source.
- test_rule_usage_wiring: the write arm runs and is told it named rule 33,
  then the tool arm in the same session must send 33 as already named; was
  three string searches of each script for the ledger's path.
- test_reply_shape_turn: the hook half of the shape-ledger contract is the
  runtime test already there; the remaining test checks the route half from
  the route's AST.
- test_contract_around_the_change: its write-gate guard was a copy of
  test_hook_never_returns_a_permission_decision, which now checks the same
  two things.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:37:24 -05:00
bvandeusenandClaude Opus 5.5 0681534257 test(8249): a Grimoire tool sends no ask at all, not even for the tool list
The hook leaves a Grimoire tool before it reads the cached tool list, so the
right check is that no /moment ask is made; the test expected the list fetch.
Caught by CI on the reviewed tree (run 11237).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:37:16 -05:00
bvandeusenandClaude Opus 5.5 af30f46bee Revert the deliberate break: Grimoire tools left alone, shapes_seen named, checkpoint capped
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m58s
CI & Build / integration (push) Successful in 2m36s
CI & Build / Build & push image (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:32:53 -05:00
bvandeusenandClaude Opus 5.5 84847cea0e test(8249): DELIBERATE BREAK, Grimoire tools asked about, shapes_seen renamed, checkpoint uncapped
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Failing after 15s
CI & Build / Python tests (push) Failing after 2m0s
CI & Build / integration (push) Successful in 2m30s
CI & Build / Build & push image (push) Skipped
Reverted by the next commit. CI must go red on
test_grimoires_own_tools_are_left_to_their_responses,
test_the_route_reads_every_name_the_hook_sends and
test_a_checkpoint_holds_a_rule_once_and_books_it_as_surfaced_either_way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:29:56 -05:00
bvandeusenandClaude Opus 5.5 e92f129d4f test(8249): moment and checkpoint hook guards run the hooks
- test_moment_delivery: the route/hook name check runs the hook with the
  rule, opened and shape ledgers filled and checks every key it sends is read
  by the route; "leaves Grimoire's own tools alone" runs it with a listed
  Grimoire tool and sees no ask.
- test_gate_stop_hooks: the action hook run twice on one checkpoint rule
  holds once, and books the rule on the session ledger after the stop. This
  replaces two line-window checks in test_pre_act_checkpoint.
- The write hook never stopping a write: the two string guards (one per test
  file) are one, which now also forbids the shared deny helper, the call the
  old permissionDecision check could not see.
- route_query_args (tests/helpers.py) reads the query keys a route takes from
  its AST, shared by both route/hook contract tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:29:56 -05:00
bvandeusenandClaude Opus 5.5 4321b05387 test(8249): the route/hook argument run fills the sync channel too, so a renamed sync key is caught there
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / Python tests (push) Canceled after 2m14s
CI & Build / integration (push) Canceled after 2m6s
Deliberate break 3 renamed exclude_sync_ids in the hook; the channel test
caught it, the argument contract test did not, because its run had no sync
ids to send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:27:39 -05:00
bvandeusenandClaude Opus 5.5 7da203d6a4 Revert the deliberate break: /clear keeps claims, session start sends session_id, sync ids keep their name
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:27:39 -05:00
bvandeusenandClaude Opus 5.5 0b12d812ea test(8249): DELIBERATE BREAK, /clear releases claims, session start drops session_id, sync ids renamed
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Failing after 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m56s
CI & Build / integration (push) Successful in 2m31s
CI & Build / Build & push image (push) Skipped
Reverted by the next commit. CI must go red on
test_session_end_releases_claims_but_not_on_clear[clear-False],
test_the_session_start_hook_sends_the_source_and_the_session and
test_each_class_of_hint_is_sent_back_on_its_own_channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:24:27 -05:00
bvandeusenandClaude Opus 5.5 8fccaa0f3c test(8249): hook contract tests run the hooks instead of searching their source
- test_write_path_trigger:
  - the sync, reuse and rule dedup channels: two string searches become one
    run of the hook twice in a session, checking each class of id comes back
    on its own parameter;
  - "stays a GET": one request to the prior-art route, with no body;
  - the route/hook argument contract: the hook runs with every ledger it
    keeps already holding something, and every key it sends must be read by
    the route (read from the route's AST);
  - the "names the shapes" string search goes: two runtime tests already check
    the Write and the Edit cases.
- test_rule_moment_signal_hooks: the body the route must read is the body the
  hook actually sent.
- test_task_claims: session start is run and must send source and session_id;
  session end is run and releases on logout but not on /clear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:24:22 -05:00
bvandeusenandClaude Opus 5.5 85b29d642f test(8249): the payload-shape test expects the code as the shell sends it, without a trailing newline
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m13s
CI & Build / integration (push) Successful in 2m16s
CI & Build / Build & push image (push) Successful in 24s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:12:42 -05:00
bvandeusenandClaude Opus 5.5 3f1e9588ab Revert the deliberate break: notes skipped again, new_str read again, no platform read without the caller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:12:42 -05:00
bvandeusenandClaude Opus 5.5 adc460b5ba test(8249): DELIBERATE BREAK, notes no longer skipped, new_str not read, a platform read without the caller
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Failing after 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m53s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / integration (push) Canceled after 2m23s
Reverted by the next commit. CI must go red on
test_hook_asks_about_code_and_never_about_prose_or_data[README.md],
test_hook_reads_every_write_and_edit_payload_shape[Edit-new_str] and
test_every_public_service_takes_the_caller[platforms].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:10:02 -05:00
bvandeusenandClaude Opus 5.5 881e0fd75f fix(test-guards): an expected error is an outcome check, so a refusal test is not mock-only
A refusal test raises, then checks nothing was written with
assert_not_called. The mock-only signal counted only plain asserts as outcome
checks, so 28 of the 44 tests it flagged in Grimoire's own suite were refusals.
pytest.raises and assertRaises now count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:10:02 -05:00
bvandeusenandClaude Opus 5.5 2a4d73176e test(8249): signature and source-text batch, the hook tests run the hook
- The caller-scoping property now covers services/family, family_adoption and
  platforms, with the seven reads that need no caller named and why. The
  hand-written platform list goes.
- The snippet location keys: one test checks every door (service, MCP tool,
  web route) takes them; the route-only copy goes.
- The write-path hook: the payload-shape and skip-list tests searched the
  shell script for strings. They now run the hook against a local listener and
  check what it sends: the code from each of the four payload field names, and
  nothing for a note, JSON or SVG while a YAML file and a .py are still asked about.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:10:02 -05:00
bvandeusenandClaude Opus 5.5 bd69c8d096 Revert the deliberate break: the systems service and the trash list route are back
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:10:02 -05:00
bvandeusenandClaude Opus 5.5 496d047d69 test(8249): DELIBERATE BREAK, a service without the caller and the trash list route removed
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m46s
CI & Build / integration (push) Successful in 2m24s
CI & Build / Build & push image (push) Skipped
Reverted by the next commit. CI must go red on
test_service_user_id_contract[systems] and test_routes_trash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:06:32 -05:00
bvandeusenandClaude Opus 5.5 5d764ecf2f test(8249): the caller-scoping contract is a property of the services, not four lists of names
Review of the signature-flagged tests:
- Four route files each listed service names by hand and checked each takes
  user_id. A new service without the caller passed them, and a renamed one
  failed them. They become one test over services/{design_systems,systems,
  rulebooks,snippets}.py: every public coroutine takes user_id, except eight
  named with the reason each needs none, and an exception for a function that
  is gone or now takes the caller fails too.
- test_routes_trash was four existence checks: blueprint name, registered,
  handlers callable, the service surface, delete's parameter names. It
  becomes one check that the three trash routes are on the app; what they do
  is proven by test_services_trash and test_mcp_tool_trash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:06:32 -05:00
bvandeusen 359766b370 Merge pull request 'Suite review, first batch: test groups smallest first, covers named before the sync reads them' (#238) from dev into main
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m5s
CI & Build / integration (push) Successful in 2m31s
CI & Build / Build & push image (push) Successful in 18s
2026-12-01 06:41:21 -05:00
bvandeusenandClaude Opus 5.5 f4f036c8a7 fix(8249): a redundant verdict can name a cover the sync has not read yet
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 2m7s
CI & Build / integration (push) Successful in 2m41s
CI & Build / Build & push image (push) Successful in 25s
A test is usually rewritten in the same change that removes the one it
replaces, so the cover is new to the ledger when the verdict is recorded,
and the next refresh retires the removed test. classify_shapes refused such
a cover as matching no live shape. With a bound `repo` the cover now
resolves the way the judged shape already does, as a provisional row the
next sync adopts; without one it is refused as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:58:35 -05:00
bvandeusenandClaude Opus 5.5 251f5cb286 Revert the deliberate break: the kind filter and the planning route are back
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python tests (push) Successful in 2m6s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 18s
The break (a16a0ef) went red exactly where it should, in CI run 11227:
- test_routes_planning::test_starting_a_plan_is_routed_on_the_app;
- test_integration_task_kind_list [issue] and [work]; the all-kinds case
  stayed green, as it must.
Nothing else failed (unit 1 failed / 3771 passed, database 2 failed / 478
passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:57:34 -05:00
bvandeusenandClaude Opus 5.5 a16a0ef3cd test(8249): DELIBERATE BREAK, the kind filter and the planning route removed to watch their tests fail
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m47s
CI & Build / integration (push) Failing after 2m44s
CI & Build / Build & push image (push) Skipped
Reverted by the next commit. CI must go red on test_integration_task_kind_list
(issue and work rows) and test_routes_planning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:51:13 -05:00
bvandeusenandClaude Opus 5.5 fc1e30588e test(8249): task kinds are proven by a listing, not by a signature
Review of the small test groups. Four tests pinned an argument list or a
function existing where the behaviour was untested or tested elsewhere:
- test_routes_planning: the signature check and the callable check become
  one check that POST /api/tasks/planning is routed on the app.
- test_routes_tasks_kind: both signature checks go; create_note and
  list_notes are called with task_kind by tests that would fail without it,
  and the blueprint check is covered by the planning route check.
- test_list_notes_filters_by_task_kind asserted only that the call did not
  raise. It is replaced by a database test that lists issues, work and all
  kinds and checks the rows and the count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:51:13 -05:00
bvandeusenandClaude Opus 5.5 7c7a1a7ab9 fix(8249): test groups come smallest first, and a big one is read as a feature area
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m14s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 35s
A group is the set of tests reaching the same code from different files. A
test that drives a feature through its one entry point reaches exactly that
entry point whatever it checks, so the largest groups are a feature tested
from many files, not copies. Listing them first buried the two- and
three-test groups where one-for-one duplicates are. The readout, the tool and
the panel now list smallest first; each group says copies or area and how
many files it spans, and the panel tells an area to fold its scattered cases
into one file. Plugin 2026.12.01.0748.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:49:06 -05:00
bvandeusen 9e6d6c4d67 Merge pull request 'Pointers once a session; the code index knows what each test guards; a reviewing-tests skill' (#237) from dev into main
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 35s
CI & Build / Python tests (push) Successful in 2m24s
CI & Build / integration (push) Successful in 2m27s
CI & Build / Build & push image (push) Successful in 18s
2026-11-30 23:24:22 -05:00
bvandeusenandClaude Opus 5.5 70ca2e8a11 feat(8248): the plugin ships a reviewing-tests skill: one verdict per test, deliberate breaks, every removal listed
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 36s
CI & Build / Python tests (push) Successful in 2m15s
CI & Build / integration (push) Successful in 2m11s
CI & Build / Build & push image (push) Successful in 23s
The skill is the subtraction pass a suite never gets. It reviews against the
project's own test standard when one is recorded, takes before numbers from a
real run, works area by area with keep / merge / rewrite / move / remove,
records removals in the ledger (redundant with covered_by, unused) and kept
groups with review_test_group, breaks three to five protected behaviours per
area to prove the survivors fail, and lands each area as its own change.
It reaches work.verify. Plugin 2026.12.01.0344.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:44:18 -05:00
bvandeusenandClaude Opus 5.5 dc9e88aa6d feat(8247): a test case is accounted for by what it guards, and the coverage line counts the suite by it
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m24s
CI & Build / integration (push) Successful in 2m22s
CI & Build / Build & push image (push) Successful in 43s
A refresh now stamps a test case `test` when it is linked to something it
guards, and withdraws the stamp when its links go; a judgment always wins. A
test case linked to nothing stays in the todo, because nothing says what it is
for. Specs written as it()/test() calls get one ledger row per file, read
whole. The coverage line and card count tests linked, guarding nothing found,
and redundant, and the end-of-turn question no longer asks the writer to call
a test case a one-off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:57:57 -05:00
bvandeusenandClaude Opus 5.5 ebd9d8fbb8 fix(8246): a test's weak signals stay out of the backup, as declared
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 16s
CI & Build / TypeScript typecheck (push) Successful in 36s
CI & Build / Python tests (push) Successful in 2m24s
CI & Build / integration (push) Successful in 2m17s
CI & Build / Build & push image (push) Successful in 34s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:26:04 -05:00
bvandeusenandClaude Opus 5.5 865465ce8f feat(8246): the code index links each test to what it guards, and can say redundant or unused
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python lint (push) Successful in 3s
CI & Build / TypeScript typecheck (push) Successful in 41s
CI & Build / Python tests (push) Failing after 2m8s
CI & Build / integration (push) Successful in 2m24s
CI & Build / Build & push image (push) Skipped
Every coverage refresh now reads, for each test in a bound repo, which product
shapes its body exercises: through module aliases and imports, following test
helpers, with mocked names left out and shapes most test files reach dropped as
hubs. Tests in different files that guard exactly the same set form a group.
The project page lists the groups and a person can mark one test redundant,
naming the test that covers it, or keep them all with a reason. Agents get
test_guard_groups and review_test_group, and classify_shapes takes the two new
removal verdicts, redundant (with covered_by) and unused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:17:48 -05:00
bvandeusenandClaude Opus 5.5 134dd68274 test(8241): the pointer test reuses the auto-inject menu harness instead of copying it
CI & Build / TypeScript typecheck (push) Successful in 36s
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m28s
CI & Build / integration (push) Successful in 2m16s
CI & Build / Build & push image (push) Successful in 20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:40:44 -05:00
bvandeusenandClaude Opus 5.5 9f6f04e898 fix(8241,8242): a pointer line names a record once a session, and a place delivery is booked once
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python tests (push) Successful in 2m5s
CI & Build / integration (push) Successful in 1m57s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Build & push image (push) Successful in 20s
The plugin ledger of what a session has seen holds only records given a line,
so a record named by id came back on every edit and message (one handoff note
35 times in a session). Every pointer line now goes through _point, which asks
the server delivery ledger what this session was already shown or pointed at
and leaves those out. Snippets beside an edited file were booked both pushed
(via record_surfaced) and pointed; record_surfaced now leaves write_path_place
to its door.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:33:13 -05:00
bvandeusen fedd3ff881 Merge pull request 'Fast exact search, cross-project knowledge, delivered rulings, short MCP instructions' (#236) from dev into main
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 16s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m15s
CI & Build / integration (push) Successful in 2m6s
CI & Build / Build & push image (push) Successful in 16s
2026-11-28 18:24:23 -05:00