Skip to content

fix: UI build, MCP test, and governance gate template drift - #89

Merged
chitcommit merged 1 commit into
mainfrom
fix/dev-cycle-cleanup
Apr 14, 2026
Merged

chitcommit merged 1 commit into
mainfrom
fix/dev-cycle-cleanup

Conversation

@chitcommit

@chitcommit chitcommit commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Issues addressed

Validation

  • npm run typecheck
  • npm test ✅ (15/15 pass)
  • npm run build (UI) ✅
  • npm audit --omit=dev — 0 vulnerabilities (both backend and UI)
  • Template and live reusable-governance-gates.yml are identical (diff returns empty)

Test plan

  • Verify CI governance gates pass with new audit_omit_dev: true
  • Verify UI builds successfully in Cloudflare Pages
  • Verify MCP tools/list returns 50 tools

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Enhanced governance workflow with configurable dependency audit options for build pipelines.
  • Documentation

    • Updated MCP server documentation reflecting expanded toolset with 50 tools across 12 domains.
  • Chores

    • Added react-is runtime dependency to user interface package.

- Add react-is dependency (recharts peer dep) to fix broken UI build
- Update MCP tool count test assertion from 48 to 50 to match actual
- Sync governance template regex to fix #86 (txt false-positive)
- Add audit_omit_dev input to reusable-governance-gates.yml for #88
- Enable audit_omit_dev for chittycommand (Worker repo)
- Update CLAUDE.md tool count references to 50

Closes #86, closes #88

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chitcommit
chitcommit enabled auto-merge (squash) April 14, 2026 04:39
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 14, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
chittycommand-ui a9dadad Apr 14 2026, 04:39 AM

@chitcommit
chitcommit merged commit 9ad45ea into main Apr 14, 2026
4 of 5 checks passed
@chitcommit
chitcommit deleted the fix/dev-cycle-cleanup branch April 14, 2026 04:39
@github-actions

Copy link
Copy Markdown
  1. @coderabbitai review
  2. @copilot review
  3. @codex review
  4. @claude review
    Adversarial review request: evaluate security, policy bypass paths, regression risk, and merge-gating bypass attempts.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@coderabbitai

coderabbitai Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 10c7664d-54bf-4a11-9f3c-7793b58a46b1

📥 Commits

Reviewing files that changed from the base of the PR and between 060a357 and a9dadad.

⛔ Files ignored due to path filters (1)
  • ui/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • .github/workflows/governance-gates.yml
  • .github/workflows/reusable-governance-gates.yml
  • CLAUDE.md
  • templates/governance-baseline/.github/workflows/reusable-governance-gates.yml
  • tests/mcp.test.ts
  • ui/package.json

📝 Walkthrough

Walkthrough

These changes address template synchronization and dependency audit behavior by adding an optional audit_omit_dev input to governance workflows, fixing a stale secret-scanning regex in the template, updating MCP tool count documentation and tests, and adding a React dependency.

Changes

Cohort / File(s) Summary
Governance Workflow Inputs
.github/workflows/governance-gates.yml, .github/workflows/reusable-governance-gates.yml
Added audit_omit_dev boolean input (default false) to the reusable workflow definition and wired it into the gates job, enabling optional omission of dev-dependencies from npm audit checks.
Governance Template Sync
templates/governance-baseline/.github/workflows/reusable-governance-gates.yml
Synchronized template to live version: updated secret-reference extraction regex to match ${{ secrets.X }} and bracket/quoted forms (fixing false-positive on literal .txt strings), added audit_omit_dev input, and implemented conditional --omit=dev flag for npm audit.
Documentation & Test Updates
CLAUDE.md, tests/mcp.test.ts
Updated MCP tool count from 48 to 50 across documentation description and test assertion.
Dependencies
ui/package.json
Added react-is ^19.2.5 as a runtime dependency.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Poem

🐰 Two workflows now dance in sync,
No more false secrets in the lint!
Dev tools whisper "omit me, please,"
While fifty tools move through the trees.
A React sibling joins the pack—
The governance gate's on track!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dev-cycle-cleanup

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 and usage tips.

@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: a9dadaddb8

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

set -euo pipefail
secrets_in_use="$(grep -RhoE 'secrets\.[A-Za-z_][A-Za-z0-9_]*' .github/workflows \
| sed -E 's/.*secrets\.([A-Za-z_][A-Za-z0-9_]*).*/\1/' \
secrets_in_use="$(grep -RhoE '\$\{\{\s*secrets(\.[A-Za-z_][A-Za-z0-9_]*|\['"'"'\"[A-Za-z_][A-Za-z0-9_]*'"'"'\"\])\s*\}\}' .github/workflows \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Detect secret references inside full GitHub expressions

The new grep regex only matches when secrets.<NAME> is the entire ${{ ... }} expression, because it requires the secret token to be followed directly by optional spaces and }}. That misses valid usages such as ${{ secrets.API_TOKEN != '' }} or ${{ someFn(secrets.API_TOKEN) }}, so disallowed secrets can bypass the allowlist check in repos generated from this template. The previous secrets\.<NAME> scan still caught those forms, so this change narrows policy coverage.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant