8000 M11.15: one-step chat consent for one-way doors; test DB drops are two-way by adeelahmad · Pull Request #125 · adeelahmad/aloop · GitHub
[go: up one dir, main page]

Skip to content

M11.15: one-step chat c 8000 onsent for one-way doors; test DB drops are two-way - #125

Merged
adeelahmad merged 3 commits into
masterfrom
claude/project-thread-y2e217
Nov 20, 2026
Merged

adeelahmad merged 3 commits into
masterfrom
claude/project-thread-y2e217

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Why

In a field session, dropping 35 archived test DBs (dumps saved) took a second terminal and three tries. doors authorize printed a bare usage line, and the human's ! shell was refused because CLAUDECODE was set.

What

  1. Test-scoped DB drops are two-way. This covers dropdb x_test_…, psql/mysql -c "DROP DATABASE …_test_…" and destructive SQL inside a test-named DB, all on a local server. They run without a question and are logged as door.two_way (test-scoped). These stay one-way: a non-test name, a mix of names, a remote host (flag, PGHOST/MYSQL_HOST, URI), SQL read from a file, or a name the gate cannot read.
  2. One-step chat consent. Every ASK[door] now prints allow DOOR <code>, where the code names the door and that exact action. The human types it in chat. The gate reads it from the prompts captured by UserPromptSubmit (M9.17), records a human ledger row that cites the prompt, and lets the action through once. A reused, negated or forged line opens nothing, and walls take no line. An agent still cannot authorize itself.
  3. Clear errors. When doors authorize refuses, it prints the full command to paste, with the flags filled in (--once comes from the newest stopped action). From an agent's ! shell it also prints the chat line.

Evidence

  • New scripts/test/mission-doors-consent.test.py: 7 checks, red on master.
  • Passing: mission-doors (21), mission-doors-reclassify (5), mission-door-plan (6), plan-approval (22), events, mission-core, mission-principles, readme, site. doors check: 20 doors, every example proven, plus a new two-way example.
  • One existing assertion changed: the ASK text format (it now checks for both the terminal command and the chat line). No gate was weakened.

Generated by Claude Code

…s are two-way; authorize errors print the full command

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeZyj8Qh6y7gQw2GEKCy7D
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeZyj8Qh6y7gQw2GEKCy7D
@adeelahmad
adeelahmad marked this pull request as ready for review November 20, 2026 02:06
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeZyj8Qh6y7gQw2GEKCy7D
@adeelahmad
adeelahmad merged commit 4376702 into master Nov 20, 2026
5 checks passed
adeelahmad pushed a commit that referenced this pull request Nov 20, 2026
…nical URL is aloop.adeelahmad.net

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeZyj8wdhHQDM35jZMC9kX
adeelahmad pushed a commit that referenced this pull request Nov 20, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeZyj7etMNXP3NuHLWrd4u
adeelahmad pushed a commit that referenced this pull request Nov 20, 2026
…e door hook keeps M9.31's deadline, roles and question tools and takes M11.15's typed consent and test-scoped two-way drops, recorded after the alarm is disarmed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeZyj7etMNXP3NuHLWrd4u
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.

2 participants

0