Skip to content

FAQ

People define the classification rules and decide which changes need review. Wayglass applies those rules to code it reads from Artifacts. AI can write the code and, when policy permits it, review a change. The author cannot choose the authoritative tags or grant itself approval.

That still leaves a serious question: can an agent write dangerous code that the rules fail to recognize? Yes. Server-side classification prevents a client from supplying its own verdict; it does not make the detectors complete.

Can I try Wayglass on the hosted Worker without an account?

Section titled “Can I try Wayglass on the hosted Worker without an account?”

No. api.wayglass.dev serves nothing by URL alone. The web app and the audit view sit behind Cloudflare Access, and every key route answers 401 without a Wayglass key. There is no self-service way to request a key.

To look around without a Worker, run wayglass watch --demo-data or wayglass review --demo-data on built-in sample data; add --json to see what an agent would get. To run the real flow, deploy your own Worker with the self-hosting guide, or ask the admin of an existing Worker for a key.

What do I need to self-host, and how long does it take?

Section titled “What do I need to self-host, and how long does it take?”

A Cloudflare account on the Workers Paid plan (Artifacts requires it), an API token that can edit Artifacts, Workers Scripts and Queues, and git 2.40+, Go 1.25.8+, Node 22.12+, Bash, curl and openssl on the machine. scripts/selfhost.sh creates the Artifacts namespace and the events queue, writes a git-ignored Wrangler config, generates an admin key, deploys the Worker, then logs you in and runs wayglass doctor. It shows its plan and asks before creating anything; --dry-run creates nothing.

The deploy takes about five minutes; the full evaluation path with agents takes 45 to 60 minutes. --eu-namespace adds an EU namespace so --jurisdiction eu works. --access puts the web app behind Cloudflare Access for the people you list, which needs an existing Zero Trust organization. --uninstall removes the queue, the Worker and the Access apps; it never deletes namespaces or repositories.

How do I install the CLI, and where are the releases?

Section titled “How do I install the CLI, and where are the releases?”

No release is tagged yet, so build from a clone with Go 1.25.8 or later:

Terminal window
go build -o bin/wayglass ./cmd/wayglass

scripts/install.sh and the Windows ZIPs are for tagged releases and fail until one exists. Once a release is tagged, the installer verifies the archive against checksums.txt and installs to ~/.local/bin. wayglass version --json prints the version and commit; a source build reports dev.

Which key should an agent use, and what can it not do?

Section titled “Which key should an agent use, and what can it not do?”

There are three kinds. The admin key is the Worker’s secret: it can do everything, including minting keys and deleting throwaway projects, it names itself with WAYGLASS_AGENT, and it counts as a person. Agent keys from wayglass keys create --agent <name> are bound to one name on every route. Human keys come from --human on that command, or from an Access sign-in, which issues a 12-hour key tied to the email.

An agent key can declare, push, propose and land its own intents, decide agent_review changes by other authors, and read projects and audit logs. It cannot manage keys, decide a change routed to a person (needs_human, exit 4), approve its own change, land or restack another author’s intent, or delete projects. wayglass login stores the key in ~/.config/wayglass/credentials.yaml with mode 0600; WAYGLASS_KEY and WAYGLASS_URL override it. Keys are long-lived and not scoped to a project; a revocation takes effect on the key’s next request.

Exactly one envelope on stdout: {"v":1,"ok":true,"data":{...}} or {"v":1,"ok":false,"error":{"code":"...","message":"..."}}. With --json, or without a terminal, there is no colour, spinner or prompt. Exit codes are 0 ok, 1 error, 2 usage, 3 blocked or rejected by policy, 4 a person must act. wayglass propose prints an ok: true envelope and then exits 3 or 4 when the decision is not the agent’s to make.

intent declare --json and push --json carry data.overlaps[], each with a suggested re-plan and the command that carries it out. wayglass agent setup writes the loop an agent should follow into AGENTS.md between marker comments. Agents lists the error codes to branch on.

What can the desktop and web apps do, and are they built?

Section titled “What can the desktop and web apps do, and are they built?”

The web app is served by the Worker: an audit view at / and a review console at /console/, where a signed-in person approves or rejects with a reason, or asks the AI reviewer for advice or a verdict. Approving and landing from the console ran live on a test project.

The desktop app shows the swarm, the queue of changes that need you, overlaps, the audit timeline and notifications, and takes approvals with a reason. Its read views, its refusal of a stale proposal, AI advice and an approval from its window ran live on October 14, and the card follows a new proposal within a poll. macOS builds are signed and notarized; Windows builds are unsigned and have not been run on Windows; Linux amd64 is built. See Desktop and Web audit view.

Are Workers AI and AI Gateway still planned?

Section titled “Are Workers AI and AI Gateway still planned?”

The built-in reviewer is implemented. wayglass ai-review <intent-id> calls the Worker’s Workers AI binding, with calls routed through AI_GATEWAY_ID when configured. Its approval, injection escalation, human-gate refusal and advice paths passed a live test on October 14 at Worker revision ce3bb14. The component status records that evidence.

Provider selection, advisory answers and per-project daily call budgets are implemented. The hosted Worker uses Workers AI in manual mode. Anthropic and OpenAI support has local tests; live third-party calls remain unverified. The AI review guide covers the implemented path and its configuration.

Which parts use AI, and which parts follow rules?

Section titled “Which parts use AI, and which parts follow rules?”
Step Who or what does it AI’s authority
Set the goal and policy People responsible for the project An agent can draft a policy change; changes under .wayglass/ require human approval at minimum.
Declare an intent and write code A person or an external coding agent The author describes the work and edits its fork. Its description is untrusted input.
Classify the proposed change Deterministic code running in the Worker No model chooses the authoritative tags.
Route the change The policy evaluator, using the trunk’s policy No model chooses which policy rule wins.
Review an agent_review change Another coding agent, a person, or the optional built-in AI reviewer A permitted reviewer can approve. The built-in AI reviewer can approve or escalate to a person.
Decide a human-routed change A caller with a human or admin credential An agent credential cannot approve or reject it.
Land an approved change The CLI and Worker The Worker checks the decision and issues a temporary trunk token; the CLI runs git.
Record the explanation Worker audit records and git notes Agent-written explanations remain claims that readers need to assess.

The classification and routing steps work with the built-in AI reviewer disabled. External agents such as Claude Code or Codex use the ordinary CLI or API; Wayglass does not need to call a model to let them work.

Isn’t data classification something people should own?

Section titled “Isn’t data classification something people should own?”

Yes. People decide what counts as sensitive in their project, where those concerns occur, and what authority is needed to change them. The classify: section of .wayglass/policy.yaml expresses the detectors; rules: expresses the action to take when tags match.

For example, a team can classify every change under its customer export directory as pii, even if the diff contains no recognizable personal data. It can then require a person to review that class. An agent can help draft those rules, but the team remains responsible for their meaning and coverage.

The tag pii means that a configured detector matched. It does not certify that Wayglass has understood every way the application handles personal data. See Tags and the policy reference.

Yes. Use human_approve as the default, remove enforcing rules that permit automatic approval or agent review, and keep sensitive classes blocked or quarantined where appropriate. A human default does not override an earlier permissive rule: the first matching enforcing rule wins.

Setting AI_REVIEW=off disables the built-in model reviewer only. If the policy still routes changes to agent_review, another agent can approve them through the ordinary review API.

Does auto_merge mean an AI judged the change safe?

Section titled “Does auto_merge mean an AI judged the change safe?”

No. It means the deterministic policy approved the change without review. The author still runs wayglass land to put it on the trunk. That approval carries no claim that a model read the code, tests passed, or the change is correct.

Git repositories, synchronization, and familiar tools

Section titled “Git repositories, synchronization, and familiar tools”

Which workflow fits the repository I already have?

Section titled “Which workflow fits the repository I already have?”
Starting point or task Current workflow
A repository already on your disk Run wayglass init in that checkout to create an Artifacts trunk from its current branch’s history.
A public repository available over HTTPS Use wayglass init --from https://host/owner/repo.git, or clone it yourself and initialize the checkout.
A private repository you can already clone locally init --from clones with your own Git credentials (SSH agent or credential helper) and says so when it starts; or initialize your existing checkout. Either way the code is copied into Artifacts.
A local repository without a hosted remote Initialize it in place. GitHub, GitLab, and a remote named origin are optional.
An existing Wayglass project on another machine Use wayglass clone <project> after logging in to its Worker.
Watch another agent’s fork Use wayglass clone <project> --intent <intent-id>, then fetch or pull in that read-only checkout.
Bring the latest Wayglass trunk into your intent Run wayglass sync, resolve any conflicts, then push and propose again.
Send landed work to an external Git host Use wayglass publish, or configure an outbound mirror for wayglass land.
Bring changes from an external host into Wayglass Fetch and merge those changes in an intent, then push, propose, and land after approval.
Have Wayglass continuously synchronize a hosted repository, public or private Not available yet. It is on the roadmap as a GitHub App, public repositories first; private repositories wait on the privacy questions.

The existing repositories guide has the command details. A Wayglass project has a trunk in Artifacts and a separate fork for each intent; the external host remains a separate repository with its own permissions and review rules.

Is importing or syncing limited to public HTTPS URLs?

Section titled “Is importing or syncing limited to public HTTPS URLs?”

Artifacts’ server-side import is the public-HTTPS-only path. The current Wayglass CLI does not use that service for init --from; it runs Git locally, then pushes the cloned history to the new Artifacts trunk.

The CLI accepts HTTPS, SSH URLs, and the usual git@host:owner/repo.git form. Local source paths require --allow-local. It refuses plain HTTP, git://, unsafe Git remote helpers, and credentials embedded in the URL. Use your existing SSH agent or credential helper for authentication.

Import is also different from ongoing synchronization. A successful initial copy does not establish a background connection that keeps the repositories identical.

Why isn’t private Git synchronization available yet?

Section titled “Why isn’t private Git synchronization available yet?”

Continuous synchronization is not implemented for any host. It is planned as a GitHub App, public repositories first. Private repositories wait on the privacy questions around repository access, credential handling, and copying private code and history into another service. It is on the roadmap; there is no release date.

The local CLI path already works with repositories your Git installation can access. Your machine performs the clone and any outbound publish using your credentials; the Worker does not acquire your Git-host login. That local capability should not be read as a managed private-repository integration with repository-scoped access, background synchronization, or a complete privacy policy for your organization.

Using a private source does not keep the copy solely on your machine. Initialization uploads committed history to Artifacts, where access follows the Wayglass Worker’s permissions. Current Wayglass agent keys are not scoped per project. Choose the Worker and its authorized users before importing private code, and keep public audit access disabled unless you intend to share that information.

Can I start with a local repository and no GitHub account?

Section titled “Can I start with a local repository and no GitHub account?”

Yes. Run wayglass init inside an existing Git repository on a branch. No external hosted remote is required. If you have only a directory of files, create and review its Git history first.

Initialization writes and commits the Wayglass configuration files, then pushes the current branch’s committed history to Artifacts. It leaves unrelated uncommitted work in your checkout. This is a cloud-backed workflow; a local source does not make Wayglass an entirely offline system.

To make a new checkout from a local repository instead of initializing it in place, use wayglass init --from /path/to/repo new-checkout --allow-local.

Will initialization move my repository, rewrite history, or change its visibility?

Section titled “Will initialization move my repository, rewrite history, or change its visibility?”

It adds a separate Artifacts trunk and a local remote named wayglass. Existing remotes stay configured. It adds a setup commit rather than rewriting the existing history, and does not change the original host’s public/private setting.

The Artifacts trunk branch is main. For an in-place initialization, the current branch is pushed there even if its local name differs. With --from, the cloned local branch is renamed to main unless a main branch already exists, in which case init warns and keeps the name. Tags are uploaded only with --tags; this is not a mirror of every local branch and ref.

--public controls opt-in access to Wayglass’s public audit view, subject to the Worker’s settings. It does not make the source repository public. Omit it for a private project.

What happens to large files, Git LFS, and submodules?

Section titled “What happens to large files, Git LFS, and submodules?”

Initialization checks the history for files that exceed Artifacts’ per-file limit and refuses before creating the project when it finds one. Removing a large file from the current checkout alone does not remove its historical blob.

LFS pointers and submodule gitlinks travel with the Git history; Wayglass does not fetch or classify the external contents they refer to. Pushes run with --no-verify, so a Git LFS pre-push hook does not run and LFS objects are not uploaded to Artifacts; the pointer file is what gets classified. Review those sources separately. A pointer change’s classification is not an inspection of the referenced asset or repository.

Does wayglass sync synchronize with GitHub or GitLab?

Section titled “Does wayglass sync synchronize with GitHub or GitLab?”

No. wayglass sync merges the current Artifacts trunk into the intent’s local checkout. It is the recovery path when other work or policy changes have landed while the intent was in progress.

Terminal window
wayglass sync
# Resolve and commit any merge conflicts before continuing.
wayglass push
wayglass propose

Sync merges rather than rebasing, preserving the identities of commits already pushed to the fork. If there is a conflict, it leaves the merge in progress for you to resolve with your usual Git tools. A stacked intent must wait for its parent to land before syncing from trunk.

How do I send approved work back to my usual remote?

Section titled “How do I send approved work back to my usual remote?”

Run wayglass publish to fetch the landed trunk from Artifacts and push it, with its why-notes, to origin. Use --remote and --branch when the destination differs:

Terminal window
wayglass publish
wayglass publish --remote github --branch main

The destination push uses your local Git credentials. It does not export an Artifacts write token to the external host. The command publishes the landed trunk, so unapproved work in your current checkout is not its source.

For automatic outbound publishing after a land, initialize with --mirror origin or set mirror: <remote> in .wayglass/config.yaml. The remote must exist in the checkout performing the land, and that machine must have permission to push to it. wayglass land --no-mirror skips it for one land. There is no independent background mirror when the client is not running.

What if someone merges a hotfix or pull request on GitHub first?

Section titled “What if someone merges a hotfix or pull request on GitHub first?”

Fetch it into an intent’s checkout, inspect it, and merge the external branch there. Then use the usual wayglass push, wayglass propose, and approved wayglass land flow. The change gets its own classification and decision before reaching the Artifacts trunk.

An external pull-request approval does not automatically count as a Wayglass approval. Likewise, wayglass sync does not fetch that external branch. The upstream changes procedure covers this case.

What if both repositories have changed, or publishing fails?

Section titled “What if both repositories have changed, or publishing fails?”

Publishing never force-pushes the trunk branch. If the destination contains commits the Artifacts trunk lacks, it refuses with publish_rejected; bring those commits through an intent and publish after they land. Resolve content conflicts in the intent, then propose the result for a fresh decision.

Authentication failures, network failures, and the destination’s branch-protection rules can also stop an outbound push. A branch-protection refusal is reported as publish_rejected too; read git’s message to tell the two apart. A failure publishing to the external remote does not undo a change already landed in Artifacts. Inspect both sides, fix the cause, and retry wayglass publish once their histories can be reconciled. Do not assume the branch and notes refs updated together after a partial failure.

Can I keep using ordinary git, tig, and lazygit?

Section titled “Can I keep using ordinary git, tig, and lazygit?”

Yes. The checkouts are ordinary Git repositories. Use your usual tools to inspect status and history, compare diffs, stage hunks, make commits, and resolve merges. Wayglass does not require its TUI for those tasks.

The supported write workflow still uses wayglass push for an intent’s fork, wayglass propose for the server’s policy decision, and wayglass land for the approved trunk update. A push button in another Git tool is not a substitute for those steps. A checkout made with wayglass clone or wayglass init has a read-only credential helper for the Artifacts remote, so ordinary fetch and pull work; a plain push does not gain write permission from that helper.

Initialization adds the trunk remote as wayglass; a checkout made with wayglass clone has the Artifacts trunk or fork as origin. Check git remote -v before a fetch, pull, or push instead of assuming origin always means GitHub or always means the Artifacts trunk.

Can I use gh for issues, pull requests, checks, and releases?

Section titled “Can I use gh for issues, pull requests, checks, and releases?”

Yes, for the GitHub repository. Wayglass does not replace GitHub issues, pull requests, Actions, release management, or the gh commands you use for them. Artifacts itself is a Git remote, not a GitHub repository, so point gh at the GitHub repo explicitly when the checkout’s default remote points to Artifacts, for example gh issue list --repo OWNER/REPO.

The two review systems have separate authority. Merging a GitHub pull request does not create a Wayglass decision, and a Wayglass approval does not bypass GitHub branch protection. If your GitHub branch requires a pull request, publish the landed trunk to an appropriate branch and use your usual PR workflow. If that workflow adds or rewrites commits, bring the resulting upstream history back through an intent before the next publish.

Can I see the why-notes in my usual Git tools?

Section titled “Can I see the why-notes in my usual Git tools?”

wayglass clone fetches refs/notes/wayglass and configures note display. git log --show-notes=wayglass reads them directly. How much of the note appears in tig, lazygit, or another viewer depends on that tool’s notes support and configuration; wayglass why also checks the note against the Worker’s record.

After publishing to an external host, fetch the notes explicitly in another checkout if it does not already have the ref configured:

Terminal window
git fetch origin '+refs/notes/wayglass:refs/notes/wayglass'
git log --show-notes=wayglass

Publishing sends Git history and why-notes. It does not synchronize issues, PR comments, CI settings, or the Worker’s full audit database.

Can I keep working offline or move to another machine?

Section titled “Can I keep working offline or move to another machine?”

Offline, you can edit, commit, inspect history, and read any notes you have already fetched. New authoritative proposals, approvals, fork tokens, and landing need the Worker and Artifacts.

On another machine, log in to the same Worker and use wayglass clone for a trunk or read-only review checkout. To continue an agent’s work with its recorded context and a new intent, use session fork. Uncommitted files and local-only commits do not appear on another machine until you deliberately transfer or push them.

What is pinned to the EU for an eu project?

Section titled “What is pinned to the EU for an eu project?”

wayglass init --jurisdiction eu creates the trunk in the EU Artifacts namespace, and every fork, notes ref and repository token for that project stays there. The project’s Worker state (intents, decisions, approvals, lands, sessions, the audit log and cost meters) lives in a Durable Object created with the EU jurisdiction. The jurisdiction cannot be changed later, and nothing moves a project between namespaces.

Global: the directory that maps a project name to its jurisdiction, the keys, Worker compute, queue transit and Access sign-in at the edge, and short public caches. A self-hosted Worker needs --eu-namespace for eu to exist. Projects created before the pinning on October 14 keep their state in a global object until an admin runs wayglass project migrate-residency. The tests substitute a fake pinned namespace because the local runtime has no jurisdictions; the deployed Worker uses the real one.

What does a project cost in Artifacts operations?

Section titled “What does a project cost in Artifacts operations?”

A project is one trunk repository. Each intent adds one fork, a 15-minute write token at declare and a fresh one on every push, short read tokens for diff and clone, and a 5-minute trunk token at land. Each plain git fetch through the credential helper mints a 60-second read token. The measured golden path (five intents, one land) made 6 repositories, 10 tokens and 107 Worker-side binding calls; the 100-agent run averaged about 40 metered operations per agent.

GET /v1/cost?project= and wayglass intent show report the Worker’s count and an estimate at $0.15 per 1,000 operations, with 10,000 operations and 1 GB per month included on Workers Paid; billing started on October 14, 2026. The count is an upper bound for the Worker side and does not see the client’s git traffic to forks. Forks are kept on abandon rather than deleted, and the AI reviewer is capped at 200 calls per project per day.

Why does landing happen on my machine and not on the Worker?

Section titled “Why does landing happen on my machine and not on the Worker?”

Artifacts has no diff, merge or commit-write API, and Workers cannot run git. So the CLI shells out to the system git for every repository command, wayglass land merges in a temporary worktree on the client with a 5-minute trunk token and pushes, and wayglass sync and wayglass intent restack merge on the client too. The Worker reads repositories to classify a change and to verify a land; it never writes to them.

This is also why there is no branch protection: a trunk push that skips wayglass land is recorded by the push subscription but not prevented. See Landing and Known limits.

What if I give an agent my own login or admin key?

Section titled “What if I give an agent my own login or admin key?”

The Worker enforces the authority attached to the credential it receives. It cannot tell whether a person or an automated process is operating a human credential. An agent with your human key can exercise that key’s review permissions; an agent with the admin key can exercise administrative authority.

Give each agent its own agent key. Keep human and admin credentials outside its environment and accessible files. Merely telling an agent not to use a credential is not an access boundary. The security model describes the available key types.

Is a fork a sandbox for the agent’s computer?

Section titled “Is a fork a sandbox for the agent’s computer?”

No. A fork token limits writes to one Artifacts repository. It does not restrict the agent’s shell, network access, filesystem, cloud credentials, or ability to execute a malicious build script.

An agent can cause damage on its machine before it ever proposes a change. Its runtime permissions and execution isolation need to be configured separately. Wayglass’s review flow governs changes reaching the project trunk through Wayglass.

Who controls the first commit and initial policy?

Section titled “Who controls the first commit and initial policy?”

The person or process bootstrapping the project establishes the starting point. wayglass init receives a temporary trunk write token (15 minutes) and pushes the repository’s existing branch history and the starting policy with it. That bootstrap is part of the trust boundary; it does not receive the same review as a later proposed change.

Review the starting code and policy before handing the project to agents. Importing an existing repository does not certify its history or remove secrets already in it.

What if an agent says it is fixing documentation but changes authentication?

Section titled “What if an agent says it is fixing documentation but changes authentication?”

The declared goal and paths remain on the record, but the Worker classifies the pushed code. Calling a change “documentation” does not turn an authentication file into documentation.

Declared paths help coordinate work; they are not a filesystem allowlist. An agent can write outside them in its fork. Wayglass exposes declared and observed paths and overlap warnings, and wayglass propose lists the undeclared paths, but an out-of-scope edit is not automatically blocked solely because it was undeclared. The actual change still has to pass classification and policy, and the reviewer needs to compare it with the stated intent.

Can an agent change another agent’s fork or push straight to trunk?

Section titled “Can an agent change another agent’s fork or push straight to trunk?”

Its ordinary fork token grants write access to its own repository. It does not grant a trunk write or access to a different fork. Refreshing an intent’s fork token is restricted to its author.

There are separate credentials for bootstrap and approved landing. The temporary trunk token used during landing has an important limitation discussed under landing.

What happens if agents work on the same files?

Section titled “What happens if agents work on the same files?”

Wayglass compares declared and observed paths across active intents and reports overlaps. The CLI can suggest landing one change first, stacking the work, or splitting it. Those are suggestions; a person or agent must carry out the re-plan (wayglass intent restack does the stack case in one step).

An overlap warning does not lock files or prove that the edits conflict. Equally, changes in different files can conflict in behavior without a path overlap. Tests and review still need to check how the changes interact. See Overlaps.

Does Wayglass re-plan overlaps on its own?

Section titled “Does Wayglass re-plan overlaps on its own?”

No. The Worker detects and records overlaps at declare and on every push, and never blocks a push or a proposal because of one. The re-plan is computed on the client and always marked suggested: land one first when only one side has edits, stack when both pushed edits to a contested file, split when only the declared globs collide. wayglass overlaps lists the pairs; an intent with no push for 24 hours is marked stale, never abandoned.

The one automatic case is abandonment: when a parent intent is abandoned, its children are re-stacked onto its base and the move is audited. wayglass intent restack <id> --on <other> --reason "..." carries out the stack case: the Worker forks the other intent’s fork, the CLI merges the intent’s commits onto it in a temporary worktree (a conflict changes nothing), and the existing decision becomes superseded, so the intent must be proposed again and lands after its parent.

What if the agent pushes with plain git and skips wayglass push?

Section titled “What if the agent pushes with plain git and skips wayglass push?”

Fork pushes are not subscribed to events, so a plain git push updates nothing in the Worker. The intent’s observed paths, overlap warnings and staleness check only move on the next wayglass push or wayglass propose.

At proposal time the Worker reads the fork head and computes the change from Artifacts. Skipping the push command does not make the Worker’s proposal decision trust an agent-supplied diff.

Can a rogue agent send fake tags or a fake approval from a modified client?

Section titled “Can a rogue agent send fake tags or a fake approval from a modified client?”

It can send them, but they do not decide the proposal. The Worker reads the repository, derives the diff, loads policy from trunk, and runs the classifier and evaluator itself. Client tags and actions are retained as a preview for comparison.

The CLI uses the same Go evaluator locally that the Worker runs as WebAssembly. If their results differ, the server’s decision controls the workflow; JSON proposal output includes agrees: false. A local “approved” preview does not authorize a trunk token.

Can a rogue agent still get sensitive code classified incorrectly?

Section titled “Can a rogue agent still get sensitive code classified incorrectly?”

Yes. The current detectors match changed paths and regular expressions on added text lines. They do not perform a full semantic analysis of the program or trace data from input to output.

Suppose the PII detector recognizes ssn and date_of_birth. An agent could add a customer export using generic names that match neither expression. Unless a path rule or another detector catches it, the proposal can lack the pii tag. If the policy then permits agent review or automatic approval, that weaker route can apply.

Server-side evaluation protects the inputs and execution of the rules. The quality of the rules remains a separate responsibility. Protect known sensitive directories, review newly introduced data flows, and keep the default restrictive where the detectors cannot justify unattended approval.

What does an empty data_classes list mean?

Section titled “What does an empty data_classes list mean?”

It means none of the configured data-class detectors matched the scanned change. It does not mean the change contains no sensitive data or introduces no security risk.

Classification is about the proposed diff. It is not a scan of all existing code, stored application data, or every historical commit. A proposal can use a sensitive function already on trunk without adding the text that would have triggered a detector.

What if the dangerous change is a deletion?

Section titled “What if the dangerous change is a deletion?”

Removed lines contribute to the size calculation, and the changed path can still match an area or data class. The content detectors inspect added lines only; they do not inspect removed text.

Deleting an authorization check can therefore be dangerous without triggering a content pattern. Path rules for security boundaries and human review are useful here. A low line count does not establish low impact.

What if the agent hides content in a binary, archive, or encoded string?

Section titled “What if the agent hides content in a binary, archive, or encoded string?”

Binary content is listed under unscanned. A binary outside binary.allow receives at least human review through builtin:unscanned-binary. The default allowlist includes common image and font extensions, and an allowed binary still appears as unscanned.

The allowlist matches filenames; it does not prove that an image is harmless or inspect an archive’s contents. Setting binary: { allow: [] } sends all added or changed binaries to a person at minimum. Encoded text that is read as text can also evade content expressions; there is no general decoding and deobfuscation stage.

Can an agent disguise executable code as documentation?

Section titled “Can an agent disguise executable code as documentation?”

Area classification follows the path globs people configure. If your docs area includes all Markdown files, an agent instruction file with a .md extension may qualify. Documentation can also influence build tools or downstream agents.

The example policy’s docs auto-approval is a project choice, not proof that all Markdown is harmless. Give instruction files and executable documentation their own restrictive rules, or narrow the paths eligible for auto-approval. Use only_area for permissive rules so a README edit bundled with unrelated code does not qualify merely because it touches docs.

No. The current risk tag uses configured size thresholds: changed lines, changed files, and binary bytes. It is not a probability of harm, an assessment of test quality, or proof of a small operational impact.

A one-line permission change can be consequential. Rules for authentication, infrastructure, and sensitive paths can route it to a person even when its size is low. Splitting a dangerous change into small proposals is another reason not to rely on size alone.

What happens when the Worker cannot read the whole change?

Section titled “What happens when the Worker cannot read the whole change?”

When the diff is explicitly marked truncated, builtin:diff-truncated requires human approval at minimum. It cannot lower an existing quarantine or block. Other failures, such as being unable to read required repository objects, can stop the request with an error.

A human review floor does not make missing evidence available. The reviewer still needs to obtain and inspect the complete change before approving it, or have the author split it into reviewable proposals.

Can an agent claim the project is in a different jurisdiction?

Section titled “Can an agent claim the project is in a different jurisdiction?”

The Worker takes the jurisdiction from the project’s configured Artifacts namespace, ignoring the client’s claimed tag. A proposal cannot label an EU project as US to avoid an EU rule.

The tag describes repository placement. It does not establish where an external coding agent sends source code, where a model processes a prompt, or where the finished application sends customer data. Those flows need their own controls; a jurisdiction tag is not a compliance certificate.

What if the agent weakens the policy in the same change?

Section titled “What if the agent weakens the policy in the same change?”

The Worker evaluates the change using .wayglass/policy.yaml on the current trunk. The fork’s edited policy does not judge its own proposal. Any change under .wayglass/ receives at least human review through builtin:protect-policy.

After an authorized person approves and lands a policy change, it affects later proposals. A decision made under the old policy is not landed under the new one: wayglass land stops with policy_changed, and the author syncs, pushes and proposes again. The system cannot protect a project from a policy its authorized administrators intentionally weaken.

What if a permissive rule comes before the sensitive-data rule?

Section titled “What if a permissive rule comes before the sensitive-data rule?”

The first matching enforcing rule wins. An earlier permissive rule can prevent a later block or quarantine rule from deciding. The evaluator does not automatically select the strictest matching user rule.

Place sensitive-data and security-boundary rules before broad allowances, and test mixed changes. Built-in guards impose their own minimum review requirements, but they do not repair arbitrary mistakes in rule order. See Policy.

The evaluator routes a change to human approval when the policy is missing or invalid. It does not silently substitute an allow-all policy. A policy file larger than 256 KiB, an unavailable repository, or an evaluator failure can instead stop the request.

Correct the policy through the reviewed workflow. An invalid-policy fallback provides a human gate, but it cannot supply the classification coverage that a working policy would have provided.

No. A rule with mode: shadow records what it would have done and whether it would have changed the outcome. It does not enforce its action. A shadow quarantine rule does not hold a proposal that the enforcing policy approves.

Use wayglass policy test and shadow results to inspect proposed rules. Historical replay only covers the changes you replay; it cannot establish that a detector will catch every future evasion.

Give it mode: shadow and land it. Every later decision records which shadow rules matched and whether they would have changed the action, without changing it. wayglass policy test replays recent first-parent commits through the local policy file, shadow rules included, and prints what each would have decided; it records nothing and does not contact the Worker. --file tries an unlanded policy, -n and --since pick the commits, and commits that carry a why note show the recorded decision beside the replay. wayglass propose --dry-run decides the current change locally.

What is the difference between block and quarantine?

Section titled “What is the difference between block and quarantine?”
Action What happens next
block That decision cannot be approved or landed. The author must address the cause and make a new proposal, or an authorized person must change policy through its own reviewed change.
quarantine The decision is held for a person. An eligible human or admin credential, other than the author, can approve its release or reject it with a reason.

Quarantine prevents an ordinary Wayglass land while the decision remains quarantined. It does not remove the code from the fork, revoke every reader’s access, erase existing copies, or isolate the agent’s machine. A reason such as “DPO review” documents the policy’s intent; the current human-key gate does not verify a particular job title or department.

Can an agent approve itself under another name?

Section titled “Can an agent approve itself under another name?”

An agent key is bound to its identity. The Worker ignores another name supplied in a header or request body, and rejects self-approval. Renaming the caller in a command is not enough. The admin key is the exception: it is not bound to a name, so keep it with the person who runs the Worker and give every agent its own key.

That protection assumes credentials are kept separate. An agent that obtains another reviewer’s key can act as that reviewer. A model-family requirement compares self-reported families, so it does not prove that independent models performed the work.

An agent_review rule authorizes another eligible agent to decide the change. The Worker can enforce a different identity, a required reason, and a configured different-family requirement. It cannot prove that the reviewer did careful work or that separate agents are independent.

Obvious placeholder and filler reasons are rejected. A plausible but false explanation can still pass those checks. Use human review for decisions where another agent’s judgment is insufficient.

What does the built-in AI reviewer actually do?

Section titled “What does the built-in AI reviewer actually do?”

When enabled, it reads the intent and the diff for a pending agent_review decision and asks the configured model (Workers AI on the hosted Worker) for an approve or escalate verdict. It submits approval through the same decision path with person: false, under the identity <provider>:<model>. Escalation changes the decision to human_approve with status pending_human and records the reason and concerns.

It cannot reject a change, release quarantine, satisfy a human approval, or replace the policy’s classification. The modes are off by default, manual for explicit wayglass ai-review requests and for the reviews or advice a policy rule asks for (reviewer: ai, ai: { advise: true }), and auto to attempt review after every eligible proposal. An unavailable or refused review does not grant approval.

The current implementation uses the Workers AI binding. When AI_GATEWAY_ID is configured, the model call uses that gateway. The enabled providers are selected with AI_PROVIDERS; AI_REVIEW_MODEL configures the Workers AI model. Policy can request a model and confidence floor. See AI review for the modes, command and recorded outcome.

What if the AI reviewer is wrong or confidently misses a problem?

Section titled “What if the AI reviewer is wrong or confidently misses a problem?”

It can approve an unsafe change that policy has delegated to agent review. Its confidence is self-reported, and a threshold is not a measured guarantee of correctness. Deterministic classification does not make model review deterministic or reliable in every case.

The implementation escalates on model-call errors, malformed answers, unusable reasons, detected reviewer-directed instructions, an incomplete diff, a rendered diff over 60 KiB (61,440 bytes), or an exhausted daily call budget. An approval below the confidence threshold also escalates. These checks narrow the circumstances in which it approves; they do not eliminate mistaken approvals.

What if a comment tells the reviewer to ignore policy and approve?

Section titled “What if a comment tells the reviewer to ignore policy and approve?”

The built-in reviewer marks the intent text and diff as untrusted, checks for some reviewer-directed instructions before calling the model, and escalates if the model reports such instructions. The model is given no tools at all; it returns only a JSON verdict.

These are limited prompt-injection defenses. They do not prove every attack is detected. An external reviewer agent has its own prompt and tool environment, outside these built-in checks. Its ability to approve is still limited by the credential it uses and the policy route.

Can AI advice silently become human approval?

Section titled “Can AI advice silently become human approval?”

The human gate still requires a human or admin credential. The AI reviewer has no credential of its own: its verdict is recorded with person: false, and the Worker refuses to run it on a change routed to a person before any model call, regardless of the wording of its answer.

The ai-advice route and wayglass ai-advice record a summary, risks and questions while leaving the decision pending for a person. The live auth-change test confirmed that advice did not approve it. Clients label advice separately from a verdict.

Yes. The built-in reviewer sends the intent’s goal and reason, declared paths, decision context, and rendered diff to the configured model. External coding and reviewing agents may send code through their own model providers independently of this setting.

An EU repository tag does not constrain those model requests. Turning off the built-in reviewer stops its calls but does not control external agents. Review the model and gateway configuration, including logging and retention, before enabling it for sensitive projects. The diff cap is 60 KiB. AI_DAILY_REVIEWS defaults to 200 calls per project per UTC day; reservations enforce it across concurrent requests and fallback calls. At the limit, reviews escalate and advice is skipped, with audit records.

Does multi_approve prove that several people reviewed it?

Section titled “Does multi_approve prove that several people reviewed it?”

It counts distinct recorded approver identities with human authority. Repeated admin-key approvals count as the single identity admin, even if the caller supplies different display names. Further approvals require other eligible identities.

Credentials cannot prove that different people were present, read the diff, or exercised independent judgment. Sharing keys or controlling several human identities defeats that organizational assumption.

No. Classification and policy do not provide a general CI attestation gate. The reviewer needs to inspect test evidence, and a deployment or release pipeline needs to enforce its own required checks.

The built-in model reviewer reads a diff; it does not execute the project’s tests. Test files in a proposal are code to inspect, not proof that the tests ran successfully.

Does Wayglass run my tests or read CI status?

Section titled “Does Wayglass run my tests or read CI status?”

No. No test result, check run or CI status enters a decision: the policy inputs are the policy file, the classified change and the jurisdiction, and the risk tag uses size thresholds only. A failing pipeline on your Git host does not block a Wayglass decision, and nothing in Wayglass talks to GitHub checks. Reviewer agents are told to run the tests themselves, and your deployment pipeline must enforce its own checks after wayglass publish.

What if the agent changes the code after approval?

Section titled “What if the agent changes the code after approval?”

The Worker checks that the fork head still matches the approved decision before issuing a land token. A different head must be proposed again. Approval of one commit does not approve everything the agent pushes later.

If the trunk’s policy has changed, landing fails with policy_changed. The author syncs, pushes, and proposes under the current policy. See Landing and why notes.

What if trunk moves or the merge has conflicts?

Section titled “What if trunk moves or the merge has conflicts?”

The CLI checks the trunk head, uses a temporary worktree for a merge, and stops if it cannot land the approved change within the decision’s scope. Conflicts require the author to sync and resolve them, then push and propose the resulting change again.

A clean git merge can still produce a behavioral bug when changes interact. Merge verification does not replace integration tests or review of the combined behavior.

What if an agent misuses the trunk token during landing?

Section titled “What if an agent misuses the trunk token during landing?”

This is a current enforcement limit. A successful land reservation issues a short-lived write token for the trunk repository. That token is not restricted to a single approved commit by Artifacts branch protection.

An agent holding it could push something other than the approved change. The Worker verifies the reported land and records land.mismatch when the trunk does not match its checks. Configured trunk push subscriptions record every trunk push in the audit log, so a push with no matching land event can be found; the Worker does not flag it by itself. These checks happen after a write; they cannot prevent that write or guarantee an automatic rollback.

The token expires after 300 seconds and is revoked when the client reports the land, whether the check passes or not, and on abort. Short lifetimes reduce exposure but do not turn detection into prevention. A trusted landing service that keeps trunk credentials away from author agents would be an additional design, not a guarantee of today’s client-side landing flow.

What if the Worker or model is unavailable?

Section titled “What if the Worker or model is unavailable?”

Without a reachable Worker, the normal CLI flow cannot obtain a new authoritative decision or a new land token. A local preview is insufficient. An already issued token remains a credential until it expires or is revoked; an outage does not retroactively withdraw it.

If a built-in model call fails, the reviewer attempts to record an escalation. If the AI feature is off or unavailable before a call, the request is refused and the pending change still needs an eligible reviewer. Neither path grants approval because a service failed.

What if the client crashes halfway through landing?

Section titled “What if the client crashes halfway through landing?”

Inspect the trunk and the Worker record before assuming the operation failed. A git push may have succeeded before the client lost its connection or reported completion. The normal CLI error path aborts an issued land and revokes its token; a hard crash may prevent that cleanup, leaving expiry as the limit. A landed report that arrives after the token expired is still verified and recorded.

Do not treat a missing completion message as proof that no code landed. The audit log and trunk state provide the evidence needed to reconcile the attempt.

What if a secret is blocked after it was pushed?

Section titled “What if a secret is blocked after it was pushed?”

Blocking stops the ordinary landing workflow for that decision. The secret may already exist in the fork, its history, a clone, or an agent transcript. Blocking or quarantining does not erase those copies or revoke the exposed credential. The fork and its write token stay live until the intent is abandoned or the token expires.

Handle the credential exposure separately. Detector evidence records paths and patterns without copying matched text, but that protection does not sanitize repository contents, free-form reasons, or session notes.

Audit, sessions, and investigating a mistake

Section titled “Audit, sessions, and investigating a mistake”

Can an agent forge a convincing explanation for a change?

Section titled “Can an agent forge a convincing explanation for a change?”

It can write a misleading goal, reason, or handoff note. Keeping that text gives reviewers a record of the claim; it does not make the claim true. Compare the explanation with the diff and the review evidence.

Git notes can also be modified by someone with permission to push the notes ref. wayglass why checks them against the Worker’s decision and reports verified: worker, mismatch, or unchecked. A Worker-verified note establishes agreement with that record, not the correctness of the review.

Is the audit log immutable against everyone?

Section titled “Is the audit log immutable against everyone?”

The application appends events and exposes no route to edit individual entries, and the database refuses updates and deletes of audit rows. That makes past decisions inspectable through the normal API. It is not an independently witnessed or cryptographically tamper-proof record against the infrastructure administrator. The admin key can delete a project whose name starts with demo-test- or eu-demo-test-; that erases the project’s audit log with it, and the deletion is recorded only in the Worker’s own logs.

Some refused operations are audited, including review-gate refusals, but not every request or rejection produces an event. An absent audit entry does not prove an action was never attempted.

Does forking a session inherit approval or trust?

Section titled “Does forking a session inherit approval or trust?”

A session fork creates a new intent and its own repository access. It carries context and prior history, but new work goes through a new proposal. Stacked work must satisfy the parent relationship before landing; the source’s old approval does not approve the continuation’s additions.

Treat handoff notes as untrusted author text, including any instructions that claim permission to skip checks. See Session fork for what the snapshot contains and how a moved source head is reported.

Who can read the code and the audit trail?

Section titled “Who can read the code and the audit trail?”

Write isolation does not imply read isolation. Current agent keys are long-lived and are not scoped to a single project on their Worker. Authenticated read routes can expose project and review context, and public audit views are available where the operator explicitly enables them.

Do not put secrets in goals, reasons, or session notes. Use separate Workers or another access boundary when projects must be isolated from each other’s agents; project-scoped agent keys are a current gap. See Security and Web audit view.

When do I use wayglass clone, and when session fork?

Section titled “When do I use wayglass clone, and when session fork?”

wayglass clone <project> checks out the trunk, or an intent’s fork with --intent, with a read-only token and the why-notes, and configures a credential helper so plain git fetch keeps working. Nothing but the checkout is written to disk, and git push is refused. Use it to review, follow or land.

wayglass session share from a pushed checkout freezes a snapshot on the Worker (goal, reason, paths, decisions, overlaps, audit history, handoff notes and the fork head) and prints a URL. wayglass session fork <url> on any machine logged in to the same Worker creates a new intent you own, stacked on the source, with a write token for the new fork only; wayglass session show prints the context. Use it to continue an agent’s work.

Can I delete a project, and what goes with it?

Section titled “Can I delete a project, and what goes with it?”

Only with the admin key, and only projects whose names start with demo-test- or eu-demo-test-. wayglass project delete <name> --confirm <name> deletes the trunk and every recorded fork in the project’s namespace, revokes live tokens, removes the push subscription and wipes the project’s intents, decisions and audit log in the Worker. Running it again on a deleted project succeeds with existed: false, and a failed repository delete keeps the state so a retry finishes.

Every other project keeps its repositories and audit log; the Worker refuses with 403. Removing one needs the Cloudflare dashboard or API for the repositories and leaves the Worker state in place. There is no way to move a project to another jurisdiction.

How do I investigate a change that was routed incorrectly?

Section titled “How do I investigate a change that was routed incorrectly?”
  1. Find the intent and decision with wayglass intent show, wayglass log, or wayglass why for a landed line. Record the commit, authoritative tags, evidence, matched rule, policy revision, and reviewer identity.
  2. Decide whether the detector missed the concern, the policy routed a correct tag incorrectly, or a reviewer approved despite the evidence. These need different fixes.
  3. Inspect the actual diff and any incomplete-scan markers. Compare client preview tags with the server tags if the local result was misleading.
  4. Reproduce the rule behavior with a local policy replay and representative examples. Include a case that should match and a harmless case that should not.
  5. Review and land the policy or detector correction. Address any unsafe landed code in a separate reviewed change, and handle exposed credentials or data separately.

The earlier audit record remains a record of what happened under the earlier policy. Updating a rule does not retroactively undo a landed change.

Which hypothetical failures should I try before relying on this?

Section titled “Which hypothetical failures should I try before relying on this?”

Use a disposable private project with synthetic data and separate credentials. The evaluation guide has a broader procedure. These cases distinguish the implemented gates from gaps a policy owner must address:

Try Expected behavior or limitation
Send an auto_merge preview for a change that trunk policy routes to a person The server computes its own decision and requires human review.
Weaken policy inside the same fork The current trunk policy applies; the .wayglass/ edit has a human-review floor.
Approve a human-routed change with an agent key The Worker refuses with needs_human.
Approve an agent’s own change under a different claimed name using the same key The bound identity still makes it self-approval, which is refused.
Add innocently named sensitive behavior outside configured sensitive paths It can evade tagging. This demonstrates a coverage gap to fix or route conservatively.
Add an unallowlisted binary It is marked unscanned and requires a person at minimum.
Put a quarantine rule in shadow mode It records the hypothetical result without enforcing quarantine.
Push another commit after approval The old decision cannot authorize landing the changed fork head.
Ask the built-in AI reviewer to decide a human-routed change It cannot approve it; when enabled, the review route refuses with needs_human.
Change a local why note The Worker comparison can report a mismatch; without a reachable Worker, it is unchecked.

Keep the results with the exact policy and build you tested. A successful check of one detector or gate supports that behavior; it does not establish complete detection of malicious code.