Skip to content

feat(automation): add bounded overnight lint loop - #11

Merged
przeprogramowani merged 1 commit into
claude/context-loops-bootstrapfrom
codex/night-loop-runner-20260728
Jul 27, 2026
Merged

feat(automation): add bounded overnight lint loop#11
przeprogramowani merged 1 commit into
claude/context-loops-bootstrapfrom
codex/night-loop-runner-20260728

Conversation

@mkczarkowski

Copy link
Copy Markdown
Collaborator

What changed

Adds a local, macOS-only overnight runner for config-only oxlint ratchets. Each iteration runs Codex in an isolated worktree, opens one reviewable PR, and never merges it.

Safety boundary

  • hard local deadline (default next 07:30)
  • one pinned base SHA and one agent at a time
  • Codex workspace-write sandbox with network disabled
  • only one additive, already-passing error rule in .oxlintrc.json; no source/test changes
  • exact pinned lint/test differential gate
  • 1 MiB exact-patch cap, binary/secret-pattern rejection, and pre-commit hash recheck
  • maximum two repair turns; persistent failures create an automation issue
  • iteration and reported-token ceilings, exclusive process lock, signal cleanup, persistent local state
  • no self-merge path

Characterization and examples loops are deliberately excluded until their proof/executable-config surfaces can be gated mechanically.

Validation

  • bun run typecheck
  • bun run lint — exactly 2 pinned warnings / 0 errors
  • bun test tests/*.test.ts — 469 pass / 0 fail
  • bun run build
  • bun run build:binary
  • bun test tests/smoke/ — 9 pass / 0 fail
  • bun run examples:catalog:check
  • bun run repo-map:check
  • committed dry run to the explicit 2026-07-28 07:30 Europe/Madrid deadline
  • independent safety review: no remaining blockers

After review/merge, run the documented command in context/night-loop.md; keep the Mac awake and online.

@mkczarkowski mkczarkowski added the automation Automated maintenance and analysis changes label Jul 27, 2026 — with ChatGPT Codex Connector
@przeprogramowani
przeprogramowani marked this pull request as ready for review July 27, 2026 23:45
@przeprogramowani
przeprogramowani merged commit f67d3cc into claude/context-loops-bootstrap Jul 27, 2026
9 checks passed
mkczarkowski pushed a commit that referenced this pull request Jul 28, 2026
…green suite

Overnight loop iteration 5.
- @types/bun 1.3.12 -> 1.3.14 (the one safe patch from context/deps-analysis.md).
  Full gate green: typecheck OK, oxlint 2 warnings / 0 errors, bun test 491 pass /
  0 fail.
- Docs told a stale truth after PR #12 made the unit suite fully green: AGENTS.md
  and both loop-engineering skills now say "suite is green; any new failure is
  yours" instead of "8 pinned failures". deps-analysis marks the bump done.
- Skipped the planned codex-loop.yml draft — superseded by scripts/night-loop.mjs
  (PRs #11/#12); duplicating automation is loop waste.
- Verified external merges before building on them: full gate on a9e4416 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GpGAGRG6UpHpCzxzgqXgMt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation Automated maintenance and analysis changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants