Skip to content

chore(repo): bootstrap codex os guardrails#26

Open
saagar210 wants to merge 3 commits intomasterfrom
codex/chore/bootstrap-codex-os
Open

chore(repo): bootstrap codex os guardrails#26
saagar210 wants to merge 3 commits intomasterfrom
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 a lean dev entrypoint that uses temporary cache paths and cleans up on exit
- Add targeted and full cleanup scripts for reproducible local artifacts
- Make Vite/Tauri dev port and Vite cache path configurable for safe local overrides
- Document normal vs lean dev flow and cleanup tradeoffs in README

Tests: npm run lint && 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
Contributor

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: 1a3af60352

ℹ️ 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 Use lockfile-compatible install mode in perf workflows

This step will fail in this repository because the tree contains package-lock.json but no pnpm-lock.yaml; pnpm install --frozen-lockfile aborts with ERR_PNPM_NO_LOCKFILE, so the perf jobs stop before any metric collection. I checked the same command path in both .github/workflows/perf-foundation.yml and .github/workflows/perf-enforced.yml, and pnpm install --help also documents that --frozen-lockfile is a fail-fast mode rather than generating a lockfile.

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 Guard against zero baseline before ratio regression check

The regression ratio is computed as (c - b) / b without handling b === 0, and this commit seeds baselines at zero, so the first non-zero measurement produces Infinity/non-finite output and fails the threshold gate immediately. In practice this makes enforced perf checks fail as soon as PERF_PROFILE=production is enabled, even when teams are only trying to establish an initial baseline.

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

Development

Successfully merging this pull request may close these issues.

1 participant