Skip to content

fix: move affected verification to the GitHub runner - #4677

Merged
Sinity merged 15 commits into
masterfrom
feature/packet/polylogue-vgytk
Sep 5, 2026
Merged

Sinity merged 15 commits into
masterfrom
feature/packet/polylogue-vgytk

Conversation

@Sinity

@Sinity Sinity commented Sep 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Make lane publication quick-only, run affected pytest in the required GitHub workflow, keep complete verification scheduled-only, and bound descriptor-only verification to explicit routing contracts.

Why

Pre-publication affected verification duplicated the required PR check, blocked PR creation behind corpus-scale work, and depended on the workstation queue runner being visible inside GitHub Actions.

Verification

  • Descriptor contract: 1 passed
  • Runner and cgroup contracts: 26 passed
  • Quick gate: 13/13 passed

Residual risk

The GitHub workflow check must pass on this head before merge. Full-corpus verification remains a separate master checkpoint.

@Sinity

Sinity commented Sep 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 11da723a-d378-41fd-9e5a-eaddb1fd761e


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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-05T01:45:54.436296Z 7c814e5 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 71b51a43e0

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

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

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

Comment thread .agentctl/project.toml Resolved
Comment thread .agentctl/project.toml Resolved
Comment thread devtools/verify.py Resolved
Sinity and others added 3 commits September 4, 2026 19:58
A GitHub Actions workflow job is its own serialisation domain: one
self-hosted runner executes one job at a time, under the job plane's
slice. It runs pytest in place instead of queueing through the
workstation's pytest slot, which required the workstation's queue runner
on the runner's PATH.

Co-Authored-By: Claude Opus 5 <[email protected]>
`verify_all` declares `pool = "pytest"` but was absent from the operation
fallback, so its worker re-queued into the single-slot group it already
occupied whenever the runner did not export `SINNIXD_QUEUE_POOL`. The
declarations are now the test's own fixture, so a new pytest-pool operation
cannot drift out of the classifier.

The slot tests also read whatever the workstation had deployed: the declared
worker's assertion held only because the run sat inside the deployed pytest
cgroup, and queueing resolved the real `sinnixd-queue-run` from PATH. The
cgroup is stubbed and both queue tools are fakes that are the whole PATH, so
the unreachable-queue test now reaches the pueue check it is named for.

Co-Authored-By: Claude Opus 5 <[email protected]>
@Sinity Sinity changed the title fix: Keep full corpus out of per-lane publication verification fix: move affected verification to the GitHub runner Sep 4, 2026
@Sinity

Sinity commented Sep 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

1 similar comment
@Sinity

Sinity commented Sep 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

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

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

Comment thread devtools/pytest_slot.py Resolved
Comment thread devtools/verify.py Resolved
@Sinity

Sinity commented Sep 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: 2be36f35c7

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

Comment thread tests/unit/devtools/test_verify.py Resolved
@Sinity
Sinity marked this pull request as draft September 4, 2026 20:07
Sinity and others added 3 commits September 5, 2026 01:00
verify_all's absence from per-lane publication rests on it being
default-checkout-only and scheduled; assert both alongside the
publication list so restoring it to a lane fails here.

Co-Authored-By: Claude Opus 5 <[email protected]>
pueue kills the queue runner with SIGKILL, so the workload it started
survives in the transient systemd scope pueue cannot see: a reaped
waiter left pytest running against the checkout while the slot showed
free. `agentctl job cancel` stops the task and then empties that scope.

The launch file carries the resolved environment and belongs to whoever
ends the run, so it is deleted only when the cancellation succeeded --
a task still on the queue reads it when it starts.

Co-Authored-By: Claude Opus 5 <[email protected]>
#4531 untracked `.lane/`; #4649 re-added `.lane/title` with it, so every
lane that writes its own subject dirties a tracked file and trips the
worktree identity check. `.gitignore` already covers the directory.

Co-Authored-By: Claude Opus 5 <[email protected]>
@Sinity
Sinity marked this pull request as ready for review September 5, 2026 00:49
@Sinity

Sinity commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review

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

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

Comment thread .github/workflows/verify.yml Resolved
@Sinity

Sinity commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: ba262cee49

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

… better

A usable local graph accumulates fingerprints the seed lacks; replacing it
every run re-executed the corpus whenever the seed recorded an older
package set. Seed only an absent or broken graph, or one that would
re-execute everything while the seed would select.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
@Sinity
Sinity enabled auto-merge (squash) September 5, 2026 01:44

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

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

Comment thread devtools/testmon_provision.py Resolved
@Sinity
Sinity merged commit 900f179 into master Sep 5, 2026
4 checks passed
@Sinity
Sinity deleted the feature/packet/polylogue-vgytk branch September 5, 2026 01:45
Sinity added a commit that referenced this pull request Sep 5, 2026
#4682)

## Summary
The corpus and the runner's affected tier run at one fixed width of
eight workers, sized to the pytest pool's 12 GiB cgroup ceiling. The
descriptor no longer overrides the width, the pytest slot launch timeout
is 7,200 s, and the selection gate reads the width from the constant.

## Problem
`CORPUS_MAX_WORKERS = 2` made a full corpus run take about seven hours
(measured 2026-09-05: 5% after 40 minutes), and the runner's affected
tier could not finish a stale-graph run inside its 3,600 s slot timeout,
so every pull request's required `verify` check timed out (runs 3669329
and 600822, both at 38%).

## Solution
Width 8 (47 minutes for 20,860 tests, measured uncontended 2026-09-03),
one constant for both tiers, timeout 7,200 s.

## Verification
- `devtools verify --quick`: all gates ok, including `testmon-selection`
reporting `workers=8`.
- Descriptor contract and slot tests updated for the new timeout.

## Residual risk
Bead polylogue-m3018 asked for a modest width after eight workers plus
lane-side pytest runs drove oomd kills on 2026-09-04; lane-side pytest
is now refused (#4540, #4677) and the pool ceiling bounds the run.
Browser responsiveness during a corpus run is the receipt m3018 still
wants.

Beads: polylogue-m3018

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sinity added a commit that referenced this pull request Sep 22, 2026
…scriptor

`.agentctl/project.toml` gained `checkout = "candidate"` on
`[operations.verify_all]` in #5405, which changed no test. Two contracts in
`tests/unit/devtools/test_verify.py` still pinned the previous shape and
fail deterministically at HEAD:

    assert "checkout" not in complete
    "checkout": "any",     # the parser's default for an undeclared key

Separately, `schedule = "*-*-* 03:00"` -- the declaration of the sole nightly
complete-corpus run -- is asserted nowhere in the corpus. A descriptor-only
diff runs these contracts INSTEAD of Testmon
(`_selection_for_changes` -> "descriptor"), so deleting the schedule would
publish green while silently disabling that run. That was the finding raised
on #4677 and it is still open.

Assert the declared value on both the TOML and agentctl-parser sides, and add
the schedule invariant, each with the mutation that makes it red.

    devtools verify --quick     # 22 gates ok; gate atlas inherited-red

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy
@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at ef10e59):

Resolving the fixed, stale and refuted threads; tracked threads stay open.

@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 78.F056 / P1: stale at the checked revision: The pinned verify_all descriptor is an explicit complete-corpus operation, not the former scheduled nightly operation. Its candidate checkout is now asserted at tests/unit/devtools/test_verify.py:643, and AGENTS.md:162-163 requires an explicit request for complete-corpus runs; there is no verify_all schedule left for the reviewed mutation to delete.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 54.F027 / P1: fixed-already at the checked revision: The self-hosted workflow invokes managed verification without an isolated-runner override (.github/workflows/verify.yml:65). Slot ownership is determined by the held-slot marker or the enclosing pytest pool, not GitHub workflow markers (devtools/pytest_slot.py:468).
  • 54.F048 / P1: fixed-already at the checked revision: sync_testmon_graph calls the same should_seed predicate as explicit provisioning before replacing the destination (devtools/testmon_provision.py:369). A newer-mtime seed cannot bypass the local-graph quality guard during verification.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 50.F015 / P1: refuted at the checked revision: The pin deliberately declares hosted candidate verification and a separately selected focused pytest profile in .agentctl/project.toml:41. AGENTS.md:164-166 explicitly distinguishes behavioral evidence from the hosted candidate checks, so requiring the retired verification_operations array to run affected tests on every publication contradicts the current verification contract.
  • 50.F016 / P1: fixed-already at the checked revision: verify_affected now runs in the pytest pool, not the normal pool (.agentctl/project.toml:54-58). refuse_verify_tier explicitly admits inside_pytest_pool before returning its tier refusal (devtools/agent_env.py:137-142), removing the reported outer-worker rejection.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 56.F026 / P1: stale at the checked revision: The reported workspace.verification_operations publication contract has been replaced. .agentctl/project.toml:41 makes hosted CircleCI quick-gate the candidate authority and pytest_focused the focused authority; verify_affected is a separately declared manual operation, not the omitted publication requirement described by the finding.
  • 56.F027 / P1: fixed-already at the checked revision: Worker ownership no longer depends on membership in PYTEST_WORKER_OPERATIONS. devtools/agent_env.py:114 recognizes the runtime's pytest cgroup even without a pool environment variable, and devtools/pytest_slot.py:468 takes the already-held path for that process, preventing the reported operation-name-dependent self-requeue.

Only the rows listed above are dispositioned. Held findings remain open.

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