Skip to content

context: land as soon as a change cannot block others; slow checks run async on main - #815

Merged
kixelated merged 2 commits into
mainfrom
context/merge-fast
Nov 22, 2026
Merged

kixelated merged 2 commits into
mainfrom
context/merge-fast

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Rewrites the CI line in assets/CONTEXT.md (and docs/context.md, which mirrors what quest context prints) to state the maintainer's merge policy.

Before:

Keep CI fast, so bold changes can be tried and thrown away cheaply: every test runs in CI, but the merge gate holds only fast, high-signal ones, and slow or expensive ones, such as other platforms, run nightly. A PR that slows the gate says by how much and why it is worth it.

After:

Land a change as soon as it cannot block other agents or PRs, so bold changes are cheap to try: every PR check is required and fails fast and hard, such as a build or a deterministic test, and soft or slow checks, such as benchmarks and other platforms, run asynchronously on the default branch, coalesced, instead of gating a merge. A PR that slows the gate says by how much and why it is worth it.

Decisions

From the maintainer on 2026-11-22, during /quest-plan of the /quest-run follow-ups:

  • "We MUST NOT HAVE OPTIONAL CHECKS. Every PR check MUST BE REQUIRED or moved to an async run (ex. nightly)."
  • "We want to merge PRs as soon as possible provided they won't block other agents/PRs. We want fast and hard failures. Soft or slow (ex. benchmarks) go into async runs that operate on main (coalesced)." This matches kixel-ai/kixel.quest's optimize epic: "only gate on hard failures… perf stuff… async and event driven… release gates but absolutely not merge gates".
  • Where: ✅ rewrite the existing CONTEXT.md line (rejected: this repository's AGENTS.md, which covers only moq-dev/quest; only a repo-settings check in kixel-ai/dotfiles, which can enforce required checks but not where slow checks run). Replacing the line adds no new rule, and CONTEXT.md stays within its limit at 9,515 of 10,000 characters.

Also aligns assets/audits/cost.md, found by review: it moves a slow step off the gate to a coalesced run on the default branch rather than a scheduled one, and looks for any PR check that is optional or not a hard failure. The rule now also says async checks file work when they fail.

What changed in meaning: "run nightly" becomes asynchronous, coalesced runs on the default branch, and "every PR check is required" is new. quest/m0/required-checks.md (moq-dev/quest#814) brings this repository in line. The kixel-ai/dotfiles follow-up there has repo-settings check enforce it everywhere.

Validation

  • just check and just test pass. test/rules.test.ts checks that docs/context.md equals quest context's output, and test/skills.test.ts checks that CONTEXT.md stays within CONTEXT_LIMIT.
  • No behavior change beyond the rule text agents load.

Public API and wire impact: none.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

Review

Rewritten by quest review after each round.

  • Head: 6a5cd09

  • Base: origin/main at 6fe411b

  • Risk: high, it changes assets/CONTEXT.md, which is always high: every agent session in every repository using Quest loads these rules, including when it may write remotely or merge

  • Classified: high by the always-high paths

  • Reviewer: Codex, gpt-6.1-sol, medium effort

  • Session: 01a204ac-18a6-7840-8c09-fc38132aa59f, round 2

  • Score: 10/10, The incremental changes consistently align the cost audit with the reviewed CI policy and require follow-up work for asynchronous failures, with no actionable findings.

  • Rounds: 2; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

  • Reviewer: Codex, gpt-6.1-sol, high effort, shadow

  • Session: 01a204ac-18a6-73d0-8fdd-0fe59bd34bf4, round 2

  • Score: 10/10, The incremental changes align the cost audit with the policy, and verified follow-up ownership resolves the earlier scope objection.

  • Rounds: 2; first round 1 (medium 1); findings 1 (medium 1): fixed 0, refuted 1, open 0

  • Findings: none

  • The last round's findings, at 631e126:

    • Refuted: medium, assets/CONTEXT.md:14: Move existing slow PR checks onto the asynchronous path; Commit 1d1177ca11 (#814), quest/m0/required-checks.md:13, records the maintainer's decision and separately scopes the existing workflow changes, confirming this PR states an agreed policy whose implementation is independently tracked.
  • Reviewer: Claude Code, claude-sonnet-5-5, medium effort, second

  • Session: 79d96f54-bb0c-47b3-99f7-324b96e02531, round 2

  • Score: 9/10, The head fixes the cost-audit conflicts and the rule now names the response to async failures, and a test enforces that the two copies of the rule match.

  • Rounds: 2; first round 4 (medium 2, low 2); findings 4 (medium 2, low 2): fixed 3, refuted 1, open 0

  • Findings: none

  • The last round's findings, at 631e126:

    • Fixed: medium, assets/audits/cost.md:20: Cost audit still says to move slow steps to a scheduled run; assets/audits/cost.md now says to move a step off the gate to a coalesced run on the default branch.
    • Fixed: medium, assets/audits/cost.md:9: Audit's gate framing ignores the new async-on-main category; The cost audit's gate bullet now also looks for any PR check that is optional or not a hard failure.
    • Fixed: low, assets/CONTEXT.md:14: New rule drops the every-test-runs-in-CI guarantee and names no owner for async failures; The rule now says async checks file work when they fail, which names the response, and the checks still run, only on the default branch.
    • Refuted: low, docs/context.md:14: The rule is duplicated by hand in docs/context.md; test/rules.test.ts:313 checks that docs/context.md matches what `quest context` prints, so the two copies cannot drift unnoticed, and both copies carry the same edit.

…n async on main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as draft November 22, 2026 19:11
…sync failures file work

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog 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.

✅ No new issues found.

Approach: sound. It rewrites the single existing CI rule to state the merge policy and keeps the cost audit consistent with it.

Reviewed changes

Reviewed the full diff of both commits.

  • assets/CONTEXT.md and docs/context.md: the CI rule now says every PR check is required and fails fast, and that slow or soft checks run async and coalesced on the default branch and file work on failure. The two copies are identical, and the growth stays well under CONTEXT_LIMIT.
  • assets/audits/cost.md: the gate audit now also flags optional or non-hard PR checks, and "scheduled run" becomes "coalesced run on the default branch", matching the new rule.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated marked this pull request as ready for review November 22, 2026 19:16
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b8cdce31-1a58-4358-ae32-fe01d6d4baed
Commits

Reviewing files that changed from the base of the PR and between 6fe411b and 6a5cd09.

Files selected for processing: 3

  • assets/CONTEXT.md
  • assets/audits/cost.md
  • docs/context.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@pullfrog pullfrog 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.

✅ No new issues found.

Approach: sound — it rewrites the existing CI rule in place instead of adding a new one, and the cost audit follows the same policy.

Reviewed changes: both commits, covering the full diff.

  • CI rule rewrite: assets/CONTEXT.md and docs/context.md carry an identical new bullet. Every PR check is required and fails hard, and slow or soft checks run asynchronously on the default branch and file work on failure.
  • Cost audit alignment: assets/audits/cost.md now flags optional or non-hard PR checks, and says to move slow steps to a coalesced run on the default branch instead of a scheduled one.

I did not run just check or just test. The PR body says test/rules.test.ts checks that the two copies match and test/skills.test.ts enforces the CONTEXT.md length limit.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit fa1621d Nov 22, 2026
25 checks passed
@kixelated
kixelated deleted the context/merge-fast branch November 22, 2026 19:23
kixelated added a commit that referenced this pull request Nov 22, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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