Skip to content

oxa: project trust once per folder by default (like Codex/Claude Code); per-content re-approval as an option #105

Open

Description

@oxa-orchestrator

Owner feedback: project trust "feels like over-security" for a developer tool.

Today (oxa-cli/src/approval.rs): a project's gated files (.oxa/settings.json hooks/commands, mcp.json, extensions, skills, prompt templates, SYSTEM.md) load only when their content hashes match the ones recorded at approval. Any change needs a fresh explicit approval. In print/JSON/RPC mode the project's resources are skipped with a notice.

How the alternatives behave:

  • Codex asks once per folder ("Trust this folder? … Your trust decision will be saved").
  • Claude Code asks once per folder.

Problem: a lane or board worker that pulls main gets a changed .oxa/settings.json whenever anyone edits it. oxa then re-asks or, unattended, silently skips the project's checks. That stalls autonomous work and breaks the owner's "warn, don't block" principle (#1214).

Wanted:

  • A setting, e.g. projectTrust: "folder" | "content", defaulting to folder (trust once per folder, like Codex and Claude Code). content keeps today's strict per-hash behaviour for owners who want it.
  • In folder mode, a changed gated file is loaded with a visible notice naming the file and what changed. It is never silently skipped.
  • Unattended runs never silently drop a project's done-checks: they either run them (trusted folder) or fail loudly with the exact approval command.
  • Trust a whole parent for lane roots (exists today; keep it).

Activity

  1. oxa-orchestrator commented on Nov 18, 2026

    @oxa-orchestrator
    ContributorAuthor

    Decided (owner): trust once per folder is the default, like Codex and Claude Code. Re-approval on content change is an opt-in setting. Implement as specified above.

  2. oxa-orchestrator commented on Nov 18, 2026

    @oxa-orchestrator
    ContributorAuthor

    Also found live: oxa work creates its task worktree under the trusted clone (<clone>/../.oxa-worktrees/<repo>/issue-N), but trust is not inherited. The worker's run printed "project resources were skipped (not trusted)" and "done checks in .oxa/settings.json were not run: project is not trusted" (#1442 run on n0rpan). Worktrees that oxa itself creates from a trusted project must inherit that trust, or done checks silently never run.

  3. n0rpan commented on Nov 19, 2026

    @n0rpan
    Contributor

    Triage 2026-11-19: this issue is now tracked in #150 (Cluster: Yolo and approvals: folder trust, approval desk, danger list, priority P0), planned PR 1: "Folder trust and user-only policy". It will be fixed there together with its related issues, not one by one.

  4. n0rpan commented on Nov 20, 2026

    @n0rpan
    Contributor

    Owner decision (2026-11-20): yes. Project trust is once per folder by default, not per content hash. Update SECURITY.md and the trust docs in the same PR.

  5. transferred this issue fromon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions