Skip to main content

Simple controller gate for AI assistants: TALK/PLAN/BUILD with approval-token enforcement.

Project description

dreamer-oracle-gate

Minimal control-plane gate for AI assistants.

Purpose: keep assistants in TALK / PLAN / BUILD modes so questions get answered without surprise coding, and edits only happen with explicit approval.

Why

This package is built for operator-first workflows (like Champion Council), where one assistant plans/audits and another executes. It prevents the common failure mode:

  • user asks a question
  • assistant starts coding anyway

Core model

Three modes:

  • TALK: answer only, no execution
  • PLAN: propose steps, ask for operator opinion
  • BUILD: execute work

By default, BUILD requires approval token:

APPROVE BUILD: ...

Optional code_only_mode can relax this if policy allows.

Install

pip install dreamer-oracle-gate

Quick start (Python)

from dreamer_oracle_gate import OracleGate

gate = OracleGate()

decision = gate.evaluate("can you explain why this failed?")
print(decision.mode)               # TALK
print(decision.should_execute)     # False

decision = gate.evaluate("fix clipboard relay windows decode")
print(decision.mode)               # PLAN

decision = gate.evaluate(
    "fix clipboard relay windows decode",
    approval_token="APPROVE BUILD: clipboard relay decode"
)
print(decision.mode)               # BUILD
print(decision.should_execute)     # True

CLI

dreamer-oracle policy show
dreamer-oracle decide --message "can you explain this?"
dreamer-oracle decide --message "implement patch" --approval "APPROVE BUILD: patch"

Continuity receipts

Each decision is logged as JSONL to:

  • %USERPROFILE%\.dreamer-oracle\continuity.jsonl (Windows)
  • ~/.dreamer-oracle/continuity.jsonl (Unix)

You can override with DREAMER_ORACLE_HOME or --continuity-path. If the home path is blocked, the CLI falls back to ./.dreamer-oracle/continuity.jsonl.

License

Apache-2.0

Gift note:

Gift to the community (and to Google DeepMind): thanks for Dreamer.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dreamer_oracle_gate-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dreamer_oracle_gate-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file dreamer_oracle_gate-0.1.0.tar.gz.

File metadata

  • Download URL: dreamer_oracle_gate-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for dreamer_oracle_gate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0eba8fc6860dc3685b1c580f2d1cac03e7b8af09b4ad02386c1bc967c9fbde51
MD5 9f7b1f86233c1822a2991850dfa420c0
BLAKE2b-256 12adcd14ad8220d610d2ea232dbc60c1d1db5b11e5906bc3a5553a4e7160a31e

See more details on using hashes here.

File details

Details for the file dreamer_oracle_gate-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dreamer_oracle_gate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07e4a5250ba7973afe3367e76f7b78309db7559b31134db76a4dbf4b1dd88f70
MD5 f53b155c7232f82d3662969e52711da4
BLAKE2b-256 4800fe0658e190c70a861a1306db553562c1992545e31da0a01c5e435a168103

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page