Skip to content

fix(router): bypass Genie when lifecycle adds no value - #2723

Merged
automagik-genie merged 2 commits into
automagik-si:devfrom
lirazsiri:fix/genie-bypass-policy
Jul 28, 2026
Merged

automagik-genie merged 2 commits into
automagik-si:devfrom
lirazsiri:fix/genie-bypass-policy

Conversation

@lirazsiri

Copy link
Copy Markdown
Contributor

What changed

  • add a lightweight value gate before Genie's lifecycle intent router
  • preserve Genie routing for explicit requests and work related to an existing wish or brainstorm
  • default unrelated ordinary work to the host agent workflow
  • use cheap read-only inspection when lifecycle value is unclear
  • keep canonical skills and the shipped plugin mirror byte-identical

Why

The router currently sends every clear feature, fuzzy request, or bug report into a durable Genie workflow. That imposes substantial token, latency, artifact, and orchestration costs even when ordinary agent execution is sufficient.

The new policy activates Genie only when the user asks for it, related lifecycle state exists, or the work demonstrably needs durable planning, unresolved product or architecture decisions, coordinated workstreams, or tracking across sessions or handoffs. Being a feature, bug, security-sensitive change, or multi-file edit is not enough by itself.

Impact

Simple and otherwise ordinary requests avoid Genie-specific artifacts, roles, announcements, and review gates. Existing wishes still resume through persisted state, and repository safety, worktree, validation, and review requirements continue to apply outside Genie.

Validation

  • bun scripts/sync-plugin-skills.ts --check
  • bun test scripts/release-docs.test.ts scripts/sync-plugin-skills.test.ts (26 passed)
  • git diff --check

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1b081cee-76ee-43e0-8419-38599da6f1e4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lirazsiri
lirazsiri force-pushed the fix/genie-bypass-policy branch from c0847ae to d8688e6 Compare July 28, 2026 09:50
@namastex888

Copy link
Copy Markdown
Contributor

can you rebase your PR`s to dev pls? :) @lirazsiri
ps: thanks for the contributions

lirazsiri and others added 2 commits July 28, 2026 18:51
…s exempt

Maintainer revision of the bypass policy, rebased onto dev:

- every bypass is announced in one line with a 'use genie' override
- security-sensitive changes keep lifecycle review gates by default;
  only an explicit user choice skips them
- bug reports (report), operational commands, and Genie questions are
  cheap and never bypassed — resolves the contradiction with the
  intent-classification table and skill catalog
- value-gate criteria get a worked example each; uncertainty inspection
  bounded to the two ls commands plus files the request names
- skill description keeps bug/question routing discoverable
- content-contract test pins policy invariants instead of full sentences
- mirrors regenerated via sync-plugin-skills --write
@automagik-genie
automagik-genie force-pushed the fix/genie-bypass-policy branch from d8688e6 to 836837f Compare July 28, 2026 22:12
@automagik-genie
automagik-genie changed the base branch from main to dev July 28, 2026 22:13
@automagik-genie
automagik-genie marked this pull request as ready for review July 28, 2026 22:13
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 836837f37d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread skills/genie/SKILL.md

Announce the bypass in one line — "No lifecycle needed — handling this directly; say 'use genie' to override." — then proceed. The bypass must not create or update `.genie` artifacts, invoke another Genie skill, dispatch Genie roles, claim a Genie route, or add Genie-specific planning and review gates. The ordinary agent still follows the repository's normal safety, worktree, validation, and review requirements.

This is a value gate, not a word or file-count heuristic. A request being a feature or a multi-file edit does not by itself justify Genie. Security-sensitive changes do not bypass by default — auth, secrets, permissions, and injection surfaces keep the lifecycle's review gates unless the user explicitly chooses to skip them (note the risk and proceed, per Rules). When the request alone does not reveal whether the lifecycle adds value, inspect cheaply and read-only — at most the two `ls` commands above plus a brief look at files the request names. Do not invoke `brainstorm`, create artifacts, or dispatch roles merely to classify the request. Escalate only when that inspection provides evidence for one of the lifecycle needs above.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use slug listings for the bypass probe

When lifecycle value is unclear, this caps inspection at the two earlier ls ... | wc -l commands from the bare-invocation block, which only return counts. In a repo with an existing related wish or brainstorm, the router needs the directory names to do the topic/slug comparison required just above; otherwise it can wrongly bypass instead of resuming persisted state. Point this at the state-detection listing command or otherwise allow listing the slugs.

Useful? React with 👍 / 👎.

@automagik-genie
automagik-genie merged commit fe84865 into automagik-si:dev Jul 28, 2026
17 checks passed
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.

3 participants