Skip to content

weft#2: append guard denials to configurable agentry stream - #8

Merged
dioptx merged 1 commit into
mainfrom
work/2-codex-1
Nov 13, 2026
Merged

dioptx merged 1 commit into
mainfrom
work/2-codex-1

Conversation

@dioptx

@dioptx dioptx commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Plan

Do the first half of dioptx/weft issue 2: when a guard denies a command, append one guard line to the agentry events stream (~/.local/state/agentry/events.jsonl) carrying the tool, the refused input, the rule that fired, and build_id and task read from the AGENT_P_TAGS environment variable. Do not do the second half (MCP tool inputs). Read the issue text in this brief only; keep the change small, add a test that fails without it, and write the stream path as an overridable setting so the test does not touch the real file.

Output (added by the work queue)

Finish with exactly: git add -A && git commit -q -m "weft#2: <what changed>" and then git format-patch -1 -o ../../patches. Do not push. Your patch is your only output.
If you cannot meet "Done when", commit nothing and write why in ../../patches/BLOCKED-weft-2.md.

Patch by a Codex lane (seat 1), applied and checked by the work queue.

@dioptx

dioptx commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner Author

Face read at 201ad63: merge (event 2984). pytest -q at this head: 471 passed. The guard line goes to AGENTRY_EVENTS_PATH or ~/.local/state/agentry/events.jsonl under an fcntl lock; an OSError warns and the command is still denied, which is the right order. The merge-tree onto main is clean. One leftover, not blocking: AGENT_P_TAGS that is not valid JSON, or JSON that is not an object, gives build_id and task as null with no warning; a test for the malformed value would pin that.

@dioptx
dioptx merged commit fb4565a into main Nov 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant