mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2516] [MERGED] ci(bunny-review): retarget review brain to the web monorepo #5634
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5634
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2516
Author: @Romuromylus
Created: 6/7/2026
Status: ✅ Merged
Merged: 6/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:ci/bunny-review-web-retarget📝 Commits (1)
4e0db2fci(bunny-review): retarget review brain to the web monorepo📊 Changes
3 files changed (+127 additions, -51 deletions)
View changed files
📝
.github/bunny-review/bunny_review.py(+9 -9)📝
.github/bunny-review/reviewer-prompt.md(+13 -10)📝
.github/bunny-review/rules.json(+105 -32)📄 Description
Linked issue
No dedicated tracking issue exists yet for the Bunny rewrite. This builds directly on the base-ref enablement work in #2513 (added
stagingas an allowed Bunny base ref) and #2514 (the staging to main carry of the same), where @Promansis noted that the tooling itself would still need a rewrite because it was authored against the refactor layout. Happy to open a tracking issue if you would prefer one, @Promansis, since this is your component.Closes #
Why this change
The Bunny review tooling was built for the refactor (Tauri) tree, so its review brain still describes a codebase that does not exist on
staging.rules.jsonpath rules and the reviewer prompt point atsrc/engine,src/features,src/shared/api,src-tauri, the Rust capability layer, rawinvokeTauri, and the in-repo discipline skills (marinara-architecture-guard,marinara-mode-separation,marinara-bugfix-discipline,marinara-getting-started). None of those paths or guidance files are present on the web monorepo (packages/server,packages/client,packages/sharedon Fastify + React + Vite), so onstaging-based PRs Bunny loads dead path rules and points at guidance docs that are not in the tree.#2513 / #2514 enabled Bunny to run on
staging-based PRs. This PR is the brain retarget @Promansis flagged as the remaining work: it swaps the refactor-specific architecture out of Bunny's review guidance and points it at the web stack and the repo's own docs. I have done the bulk of the rewrite so it is reviewable as a concrete starting point, but the intent is for @Promansis to review, adjust, and own it, since the design (persona, pass structure, output contract) is theirs.What changed
rules.json— replaced the four refactor path groups with eight web path groups: shared contract, client conventions, server conventions, mode separation, generation/prompt/parser pipeline, storage/migrations/import-export, build/CI/deployment, and docs/version-truth/agent-guidance. The path globs now matchpackages/shared/**,packages/client/**,packages/server/src/**,Dockerfile/Dockerfile.lite,packages/server/src/db/**, and the prompt/parser/generation hot paths. Per-pathguidancenow points at the repo's own docs (CLAUDE.md,packages/client/.instructions.md,CONTRIBUTING.md,docs/ARCHITECTURE_MAP.md,docs/FRONTEND.md,docs/FILE_STORAGE_MIGRATION.md, the mode docs,docs/installation/containers.md). Theseverity_policy,nitpick_policy,control_warn_types, and the import/persistence invariant checks (parent-from-child population, pre-scan vs write-loop eligibility, rollback consistency) are kept as-is, since they are codebase-neutral and were the strongest part of the original.reviewer-prompt.md— retargeted the Setup guidance pointers and the high-signal concerns list to the web stack: package boundaries (shared stays runtime-agnostic), the server Pino-logger rule vs the clientconsole.*rule, the@/lib/api-clientwrapper vs rawfetch(), the Zustand / React Query split, mode ownership as it exists here, storage/migration/import safety, and the SSE token/event contract. The Bunny / Dottore reviewer voice, the three-pass structure (broad, skeptical specialist, judge), theFINAL_REVIEWJSON output contract, and the bounded-packet protocol are unchanged.bunny_review.py— minimal retarget only. Therules.json-absent guidance fallback markers now match the web packages and point at web docs, and the stale-CI text heuristic now keys offpnpm/buildinstead ofcargo/rust check. No behavior change beyond path and term retargeting; the produce/render/post/status-state machinery is untouched.ci-checks.json— left unchanged. It already lists the real web gating checks (pnpm-validate,container-build-test), which I confirmed against the actual check-run names on a recentstaging-based PR.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
This PR only touches the Bunny review tooling under
.github/bunny-review/, so the app-build checkboxes above are not the relevant validation surface and I have left them unticked. What I actually verified:python -m py_compile .github/bunny-review/bunny_review.pysucceeds.rules.jsonandci-checks.jsonparse as valid JSON;rules.jsondeserializes to 8 path groups with the expected schema (name/prefixes/guidance/checks).ci-checks.jsonnames (pnpm-validate,container-build-test) match the real check-run names produced on a recentstaging-based PR viagh api .../commits/<sha>/check-runs..github/bunny-review/directory for residual refactor vocabulary (tauri,src-tauri,cargo,rust,src/engine, the discipline-skill paths, the refactor CI check names): none remain.rules.jsonand prompt exists onstaging.What I could not do: I cannot exercise Bunny end-to-end before merge. The reviewer run needs the workflow secrets (
OPENAI_API_KEY,LLM_BASE_URL) and the trusted dispatcher, which copies the review brain from the base branch. So the retargeted brain only takes effect once this lands onstaging. The safest way to smoke-test it is to merge and watch Bunny's firststaging-based review, or run a throwaway PR afterward. I would value @Promansis confirming the guidance and path groups match how Bunny is meant to weight them.One follow-up I left for you, @Promansis: the trusted
bunny-review.ymlworkflow still has a hardcoded fallbackci-checks.jsonheredoc with the three refactor check names ("Frontend, Architecture, and Organization", "Rust Capability Layer", "Browser Smoke and Performance"). It is dormant onstagingbecauseci-checks.jsonis present and non-empty, so the fallback never fires. I deliberately did not touch any workflow file here to keep this diff to the review brain only (and to avoid aworkflow-scope change on your dispatchers), but you may want to update that fallback in a separate pass.Docs and release impact
UI evidence (if applicable)
Not applicable; this PR changes CI review tooling only, with no user-facing UI.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.