Skip to content

chore(repo): bootstrap codex os guardrails#11

Open
saagar210 wants to merge 4 commits intomainfrom
codex/chore/bootstrap-codex-os
Open

chore(repo): bootstrap codex os guardrails#11
saagar210 wants to merge 4 commits intomainfrom
codex/chore/bootstrap-codex-os

Conversation

@saagar210
Copy link
Owner

What

  • Bootstraps global Codex Git/performance guardrails for this repository
  • Adds manifest, policy-aligned CI workflows, hooks, and perf baseline scaffolding

Why

  • Enforces consistent commit hygiene and proactive performance regression prevention by default

Testing

  • Bootstrap scaffolding only (structural validation)

Risk / Notes

  • Review any .codex/bootstrap-conflicts/*.new files and merge intentionally
  • Functional/perf budgets enforce during normal CI after merge

- add lean Tauri dev launcher using temporary Rust and Vite caches

- add targeted and full local cleanup scripts for reproducible artifacts

- document normal vs lean workflow and cleanup tradeoffs

- make Vite cache directory configurable for ephemeral cache routing

Tests: npm run build
- install global git and performance baseline payload
- add codex-os manifest and verification contracts
- align repo with global policies under /Users/d/.codex/policies

Tests: not run (bootstrap scaffolding only)
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link

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

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: 3820fb13a4

ℹ️ 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".

with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile

Choose a reason for hiding this comment

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

P1 Badge Stop requiring frozen pnpm lockfile without pnpm-lock.yaml

This step uses pnpm install --frozen-lockfile, but this commit still keeps npm as the package manager (package-lock.json is present and pnpm-lock.yaml is absent), so the install fails immediately with ERR_PNPM_NO_LOCKFILE before any perf checks run; the same install pattern appears across both perf workflows, so these jobs will fail on every PR until the lockfile strategy is made consistent.

Useful? React with 👍 / 👎.

process.exit(2);
}

const ratio = (c - b) / b;

Choose a reason for hiding this comment

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

P1 Badge Handle zero baselines before computing regression ratio

The regression ratio is computed as (c - b) / b without guarding b === 0, and this commit seeds .perf-baselines/build-time.json and .perf-baselines/bundle.json with zero values, so any positive metric produces an infinite ratio and always fails the enforced threshold check (while serializing as null in JSON), effectively blocking production-profile perf gates by default.

Useful? React with 👍 / 👎.

cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build || pnpm build:ui
- run: pnpm perf:lhci:prod || pnpm perf:lhci

Choose a reason for hiding this comment

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

P1 Badge Define Lighthouse perf scripts before invoking them

This command falls back from pnpm perf:lhci:prod to pnpm perf:lhci, but neither script is defined in package.json, so when PERF_PROFILE == 'production' the perf-lighthouse job fails unconditionally with ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL instead of evaluating Lighthouse results.

Useful? React with 👍 / 👎.

@codacy-production
Copy link

codacy-production bot commented Feb 17, 2026

Codacy's Analysis Summary

100 new issues (≤ 0 issue)
7 new security issues
22 complexity
0 duplications

Review Pull Request in Codacy →

AI Reviewer available: add the codacy-review label to get contextual insights without leaving GitHub.

command: "npm_execpath run build",
},
null,
2,

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: ES2017 trailing commas in parameter/argument lists are forbidden.

Suggested change
2,
2

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.

1 participant