Skip to content

fix(check): drop the unverified notice for --anonymous with no runtime rules - #733

Merged
aibex-agent[bot] merged 2 commits into
mainfrom
aibex/t_Z5OK6rPZmZOMQ88ZmAa3fNj6
Dec 2, 2026
Merged

aibex-agent[bot] merged 2 commits into
mainfrom
aibex/t_Z5OK6rPZmZOMQ88ZmAa3fNj6

Conversation

@aibex-agent

@aibex-agent aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown

check --anonymous printed Notice: Rules were not verified: --anonymous was set ... Run check without --anonymous to verify them. on every run. For a project that runs local rules only, that is the state it chose, and the line landed in every local and CI log looking like a warning, with no way to turn it off.

--anonymous already records "do not verify", so this takes option 1 from the issue rather than adding a taskless.json setting: when --anonymous is set and the project has no runtime rules, planCheck returns a plan with no notice. Static rules still run unverified, exactly as before.

What keeps the notice:

  • --anonymous with runtime rules: those rules were skipped, and the notice is what says so.
  • Every other unverified cause (no token, no repository URL, a reconcile that cannot complete): the person did not ask for an unverified run, so the notice still names the fix.

The cli-check spec delta restates both affected requirements in full. I checked the archive by scenario count, 117 before and 118 after: the one added scenario, nothing dropped.

The two smaller items in the issue get their own PRs, both Refs #732.

Fixes #732

@aibex-agent

aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown
Author

@claude /review

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @aibex-agent[bot]'s task in 1m 54s —— View job


Review complete

  • Read prior review data (.prior-review.json) — no prior threads/reviews found, this is the first review
  • Fetch PR diff and metadata
  • Read changed files in full context
  • Review correctness, tests, spec consistency
  • Post findings

Review mode: incremental — read 0 prior review thread(s) before reviewing. .prior-review.json contains reviewThreads: [], reviews: [], and a single top-level comment that is just the @claude /review trigger itself — no prior findings exist to classify as addressed/open. This is the first substantive review of this PR; the whole diff was assessed fresh.

Assessment

The change is small, correctly scoped, and well-tested.

  • packages/cli/src/rules/plan-check.ts:138-150 — the new early return (discovered.length === 0 under --anonymous) is the right place for this: discovered is already computed once at the top of planCheck from the snapshot, so the check is cheap and consistent with how the rest of the function already uses that value (unverifiedNotice already branched on runtimeRules === 0 for wording, just not for suppressing the notice entirely). Returning empty directly (rather than unverified(...)) correctly leaves execute: [], skipped: [], notices: [], which is a no-op since there were no runtime rules to execute or skip anyway — static-rule execution lives in the snapshot/engine path untouched by this branch.
  • Downstream serialization (packages/cli/src/commands/check.ts:530, :607) — confirmed plan.skipped.length > 0 and runNotices.length > 0 gates mean an empty array from this new branch is correctly omitted from both human stderr output and the --json notices/skipped fields, matching the new test expectations.
  • Tests (packages/cli/test/runtime-check.test.ts:385-407) — cover both the human-output and --json cases for --anonymous with no runtime rules, and the existing --anonymous with runtime rules test was extended to assert the notice still fires and names the skip count. The pre-existing "logged out with no runtime rules" test (not touched) continues to assert the notice does print for that cause, which is the correct contrast case confirming this is --anonymous-specific, not a general "no runtime rules" shortcut.
  • Spec delta (openspec/specs/cli-check/spec.md, mirrored into the archived change folder) — both modified requirements are restated in full per the repo's OpenSpec convention, the new scenario text in the live spec matches the archived delta verbatim, and the claimed scenario count (118 #### Scenario headings post-change) checks out against the current file.
  • Changeset — patch bump is appropriate for this non-breaking output change.

No correctness, security, or test-coverage issues found. No inline comments to post.

@aibex-agent
aibex-agent Bot merged commit 8b6a478 into main Dec 2, 2026
11 checks passed
@aibex-agent
aibex-agent Bot deleted the aibex/t_Z5OK6rPZmZOMQ88ZmAa3fNj6 branch December 2, 2026 07:35
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.

check --anonymous: a way to acknowledge local-only use, so the "Rules were not verified" notice stops printing on every run

1 participant