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
Owner
  • A message that reads as another project's work tells the session to check with the operator before acting. The check is recorded under a new project_check gate and shown on the gate-stops panel.
  • A hold rule now holds the first write to a file that its own path trigger names. An enforced rule still refuses. Any other write still goes ahead.
  • A tool whose search argument is q also accepts query.
  • The plugin version is bumped so installs pick up the new hook text.

dev CI runs 1026, 1027 and 1028 are green.

🤖 Generated with Claude Code

- A message that reads as another project's work tells the session to check with the operator before acting. The check is recorded under a new `project_check` gate and shown on the gate-stops panel. - A hold rule now holds the first write to a file that its own path trigger names. An enforced rule still refuses. Any other write still goes ahead. - A tool whose search argument is `q` also accepts `query`. - The plugin version is bumped so installs pick up the new hook text. dev CI runs 1026, 1027 and 1028 are green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 3 commits 2026-12-06 00:35:11 -05:00
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
72ef1bb45d
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>
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
58991038d8
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>
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
9cfa07a884
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>
bvandeusen merged commit 33cf773c19 into main 2026-12-06 00:35:13 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledGrimoire#243