dev → main: wrong-session check, path-trigger holds on writes, query alias #243

Merged
bvandeusen merged 3 commits from dev into main 2026-12-06 00:35:13 -05:00
3 Commits
Author SHA1 Message Date
bvandeusenandClaude Opus 5.5 9cfa07a884 feat: a tool that takes its search term as q also takes it as query
CI & Build / TypeScript typecheck (push) Successful in 14s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python tests (push) Successful in 1m58s
CI & Build / integration (push) Successful in 2m45s
CI & Build / Build & push image (push) Successful in 44s
query was the most common misnamed argument in the live logs, and on a
tool that declares q it cannot mean anything else. Passing both is still
refused by the unknown-argument check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-06 00:21:20 -05:00
bvandeusenandClaude Opus 5.5 58991038d8 feat(8815): a message that reads as another project's work asks the session to check before acting
CI & Build / TypeScript typecheck (push) Successful in 10s
CI & Build / Python lint (push) Successful in 1s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python tests (push) Successful in 1m55s
CI & Build / integration (push) Successful in 2m57s
CI & Build / Build & push image (push) Successful in 35s
An operator running one session per project can type into the wrong
window, and nothing caught it: the message usually asks for work the
session can do in its own repo, so the project fence never fires.

The prompt lookup (/api/plugin/retrieve) now ranks the operator's own
words against every project's records (services/project_check.py). When
another project's records clearly win (best match >= 0.78, ahead of this
project's by 0.05, with at least 3 of the 12 nearest), a line leads the
payload, ahead of every rule, telling the session to ask the operator
whether the message was meant for it. Naming the other project halves the
margin but never flags alone; naming this project rules a flag out. A
message with no subject, or a session with no project, is not checked.

Each flag is a new `project_check` gate stop with both scores, asked once
per session per other project, read back in retrieval_telemetry's gates
block and in the web UI's gate readout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 22:21:49 -05:00
bvandeusenandClaude Opus 5.5 72ef1bb45d fix(8816): a hold rule holds the first write to a file its own path trigger names
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 1m51s
CI & Build / TypeScript typecheck (push) Successful in 10s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / integration (push) Successful in 2m24s
CI & Build / Build & push image (push) Successful in 24s
A rule set to hold never held a file edit, so rule 198 (services run on
the orchestrator's defaults), even at hold, could only sit beside the
compose-file edit that broke it. The trigger board now names the rules
whose path trigger matched the act, and a write is held only for those:
a mount or a keyword alone still lets a write through. Tool descriptions
and the using-grimoire skill say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 22:17:30 -05:00