Skip to content

fix(no-mistakes): drop disable_project_settings so Cursor/Composer can gate - #122

Merged
Pibomeister merged 2 commits into
mainfrom
fm/gs-003-allow-cursor-gate
Nov 3, 2026
Merged

Pibomeister merged 2 commits into
mainfrom
fm/gs-003-allow-cursor-gate

Conversation

@Pibomeister

Copy link
Copy Markdown
Owner

Removes disable_project_settings: true from .no-mistakes.yaml so that no-mistakes can use Cursor's agent (acp:cursor, Composer 2.5) as the gate agent. This was the captain's decision ("Remove disable_project_settings and use Cursor with Composer").

no-mistakes refuses acp:cursor while this setting is true, because Cursor has no verified way to neutralize AGENTS.md/CLAUDE.md. The accepted trade-off is that gate agents may now load AGENTS.md. bin/fm-gate-refuse-lib.sh (the fleet-lifecycle refusals) and the HEAD-continuity guard stay in place, and the docs now describe their scope accurately.

Changes:

  • .no-mistakes.yaml: drops the setting and its comment block.
  • docs/architecture.md ("No-mistakes gate authority boundary"): describes the remaining boundary and the deliberate trade-off.
  • bin/fm-gate-refuse-lib.sh and tests/fm-gate-refuse.test.sh: header comments only; no behavior change.

Bootstrap note: no-mistakes reads this setting from main, so Cursor can't gate this PR itself, and "PR must be raised via no-mistakes" will be red here until the captain decides how to land it.

Tests: bin/fm-lint.sh, tests/fm-gate-refuse.test.sh, tests/fm-documentation-audiences.test.sh and tests/fm-nm-test-contract.test.sh pass. The only failures are ones main already has.

Task: GS-003-firstmate.

cursoragent and others added 2 commits November 3, 2026 01:52
no-mistakes refuses acp:cursor while the default-branch config sets
disable_project_settings, because Cursor has no verified neutralization
knob for AGENTS.md/CLAUDE.md. Remove that flag and document
fm-gate-refuse-lib.sh plus the HEAD-continuity guard as the remaining
authority boundary.

Co-authored-by: Eduardo Picazo <[email protected]>
The library only refuses fleet-lifecycle callers, and HEAD-continuity
only catches HEAD/branch drift. Record that other gate-agent commands
are uncontained once AGENTS.md loads, and that disable_project_settings
must not return unless the gate agent changes.

Co-authored-by: Eduardo Picazo <[email protected]>
@Pibomeister

Copy link
Copy Markdown
Owner Author

AgentKit super-review — PR #122

  • Mode: full (pass 1) · Head: 5a47c654cbda7ce74cc9cb0896ab8215bab04efe (checked with gh pr view) · Base: main a7b84ef8
  • Catalog: agent-kit origin/main d9f7dac (skills/super-review, roles/code-review/*)
  • Reviewer: a fresh reviewer that did not write the change. It was given only the diff and the repo, not the author's narrative.

Seats run (lean panel, chosen by declared risk)

Seat State Why it was selected
code-review/correctness covered Always runs
code-review/project-standards covered Repo has declared standards: AGENTS.md, CONTRIBUTING.md, docs/configuration.md
code-review/security covered The change touches a trust boundary: gate-agent instruction neutralization
code-review/adversarial covered Activated by the same trust-boundary evidence
testing / maintainability / agent-native / learnings skipped No behavior change (config and comments only), and the diff is under the size guidance

Verdict: approve (no blocking findings)

Findings (all non-blocking)

  1. correctness / project-standards (docs accuracy). Non-blocking. bin/fm-gate-refuse-lib.sh:12-24, docs/architecture.md:365
    • The header now says the library "owns ... exact caller list" and is "sourced by those five fleet-lifecycle entrypoints". At this head, 10 bin scripts source it.
      • 5 call fm_refuse_if_gate_agent: spawn, send, teardown, control, approval-failover.
      • 5 more use other helpers: fm-sessionstart-nudge.sh:22 and fm-sessionstart-run.sh:92 (fm_is_gate_agent → stand down), fm-watch-arm.sh:141, fm-claude-trust.sh:336, fm-lab-home.sh:82.
    • architecture.md says "fm-spawn, fm-send, fm-teardown, and similar", which doesn't match the header's "exact" list.
    • Fix: say "five entrypoints call fm_refuse_if_gate_agent", and say other scripts source the library for detection or lab helpers. Make the architecture.md list match.
  2. security / adversarial. Non-blocking, accepted risk. .no-mistakes.yaml:1-5 (the disable_project_settings: true line is removed)
    • Gate agents now load the AGENTS.md fleet-captain identity. Containment is now only the 5-entrypoint refusal, the SessionStart stand-down and the HEAD-continuity guard. gh and git from a gate agent are uncontained.
    • The PR documents this as a captain-accepted trade-off (architecture.md:363-367), and that matches the captain's recorded decision ("Remove disable_project_settings and use Cursor with Composer").
    • Suggestion: mention the SessionStart stand-down hooks (fm_is_gate_agent) as a remaining containment layer. Right now the docs say "anything else ... is no longer contained", which understates the containment that is still there.
  3. project-standards. Non-blocking, info. tests/fm-gate-refuse.test.sh:33-35
    • The removed header line promised an assertion on disable_project_settings, but the test body never had one at base either. The header now matches the body. No action needed.

Checks at head

Every check is green except PR must be raised via no-mistakes. Under the captain's standing rule, that is the one check allowed to stay red.

Protocol steps that couldn't run

  • The ak CLI was not used: no snapshot hash or run artifacts were frozen through the runner, and no Firstmate binding grant was cited. The snapshot is pinned by head SHA instead.
  • The seats were not independent model instances. One fresh reviewer applied each seat's lens separately, in sequence.
  • No findings were posted as fingerprinted finding.schema.json artifacts. They are listed above.
  • Requirements by id were not available, so the spec lane was unavailable. The intent was taken from the PR title and the captain's decision.

@Pibomeister
Pibomeister merged commit f2cdff1 into main Nov 3, 2026
26 of 27 checks passed
cursor Bot pushed a commit that referenced this pull request Nov 3, 2026
Bring in #122, #124, #123, and #121. No textual conflicts; keep the
published-head resync owner on main's driving-block signature,
freshen_spawn_worktree_base, and t3code skip.

Co-authored-by: Eduardo Picazo <[email protected]>
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