Skip to content

fix: Keep full Sinex workspace verification - #2652

Open
Sinity wants to merge 1 commit into
masterfrom
feature/packet/sinex-ff2u
Open

fix: Keep full Sinex workspace verification#2652
Sinity wants to merge 1 commit into
masterfrom
feature/packet/sinex-ff2u

Conversation

@Sinity

@Sinity Sinity commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

Declare a truthful Sinex quick verification operation while retaining the full workspace verifier for lane publication.

Problem

The merged descriptor routed workspace verification through a flake-format-only command, dropping compilation, tests, schema checks, and forbidden-pattern checks from the publication gate.

Solution

verify_quick runs nix fmt -- --check flake.nix in the normal pool without development-service setup. check_default remains the workspace verification operation, so compilation, tests, schema checks, and forbidden-pattern checks remain on the workspace publication path. The descriptor test asserts the operation command, pool, and workspace binding.

Verification

  • agentctl job start sinex verify_quick --workspace /realm/worktrees/sinex-feature-packet-sinex-ff2u --wait: succeeded, 0 / 1 would have been reformatted.
  • SINNIXD_PRINCIPAL=agent-control SINNIXD_OPERATION=verify_quick nix develop --accept-flake-config --command xtask test -p xtask -E 'test(dev_services_cache_identity_excludes_allocated_ports)': 1 passed, 15 skipped.
  • git fetch origin master && git rebase origin/master: up to date.

Residual risk: the full check_default gate was not rerun in this lane because shared normal-pool capacity was occupied by unrelated jobs. It remains the publication verifier.

@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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: e99cbadd-77a1-42a7-9e35-b8dd3a10a682


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-04T11:25:28.376166Z 4fed24d Manual request
ℹ️ 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 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: c3552ec47d

ℹ️ 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 Outdated
identity_check = ["git", "diff", "--quiet", "--", "Cargo.toml", "Cargo.lock", "flake.nix", "flake.lock"]
checkpoint_untracked = true
verification_operations = ["verify_quick"]
verification_operations = ["check_default"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Start the database lease before selecting check_default

In a fresh AgentCTL workspace without an existing dev_services job, this makes automatic workspace verification invoke xtask check, whose ensure_compile_ready path requires live PostgreSQL and deliberately errors rather than starting it; check_default has no dependency that creates the lease. Consequently, publication verification now fails before compilation unless an operator happened to start the matching service job manually, whereas the previous verify_quick operation was self-contained. Add a supported service dependency/start mechanism or select a verifier that does not require the database.

AGENTS.md reference: AGENTS.md:L226-L230

Useful? React with 👍 / 👎.

Comment thread .agentctl/project.toml Outdated
identity_check = ["git", "diff", "--quiet", "--", "Cargo.toml", "Cargo.lock", "flake.nix", "flake.lock"]
checkpoint_untracked = true
verification_operations = ["verify_quick"]
verification_operations = ["check_default"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Run the declared broad verification commands

When the PostgreSQL lease is already available and this verifier runs successfully, check_default executes only plain xtask check; xtask/src/commands/check.rs:3-10 defines that default as compile-only, with formatting, linting, forbidden-pattern checks, and Nix checks enabled only by additional flags, and it compiles test targets without executing them. Therefore behavioral test failures and forbidden architecture patterns can still pass the sole automatic publication verifier despite this change's goal of restoring full verification. Configure the publication path to run the broad check and all-test commands rather than the fast check alone.

AGENTS.md reference: AGENTS.md:L212-L214

Useful? React with 👍 / 👎.

@Sinity
Sinity force-pushed the feature/packet/sinex-ff2u branch from c3552ec to 5871590 Compare September 4, 2026 11:00
@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: 58715902c2

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

.map(|value| value.as_str().expect("operation name"))
.collect::<Vec<_>>(),
vec!["verify_quick"]
vec!["check_default"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Match the assertion to the configured verifier

The descriptor still sets workspace.verification_operations = ["verify_quick"], but this changed assertion expects check_default. Consequently, dev_services_cache_identity_excludes_allocated_ports now fails deterministically whenever the xtask test suite runs, preventing the repository's required broad test gate from passing. Either retain the verify_quick expectation or update the descriptor in the same change.

AGENTS.md reference: AGENTS.md:L212-L214

Useful? React with 👍 / 👎.

@Sinity
Sinity force-pushed the feature/packet/sinex-ff2u branch from 5871590 to 4fed24d Compare September 4, 2026 11:20
@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: 4fed24da15

ℹ️ 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
description = "Check the Nix flake format without starting development services"
exec = ["nix", "fmt", "--", "--check", "flake.nix"]
description = "Run database-free compile, lint, format, pattern, and Nix checks"
exec = ["xtask", "check", "--full", "--skip-preflight"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Start dev_services before compiling

When AgentCTL verifies a fresh worktree where dev_services has not already been started, the new --skip-preflight argument bypasses ensure_compile_ready (xtask/src/commands/check.rs:504-510) and proceeds to compilation that expands live SQLx macros. The fresh evidence relative to the earlier review is this newly added hidden flag: it changes the failure path but cannot make compilation database-free, so automatic publication still fails unless the matching service happens to exist; arrange a supported dev_services dependency/start before this operation.

AGENTS.md reference: AGENTS.md:L226-L230

Useful? React with 👍 / 👎.

Comment thread .agentctl/project.toml
description = "Check the Nix flake format without starting development services"
exec = ["nix", "fmt", "--", "--check", "flake.nix"]
description = "Run database-free compile, lint, format, pattern, and Nix checks"
exec = ["xtask", "check", "--full", "--skip-preflight"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the behavioral test gate

When this remains the sole workspace verifier via verification_operations = ["verify_quick"], the new --full argument enables formatting, linting, forbidden-pattern, and Nix checks and compiles test targets, but CheckCommand::execute never runs the tests. The fresh evidence is that the replacement command still contains no xtask test operation, so behavioral failures that compile cleanly can pass the only automatic publication gate; include the required broad test operation alongside this check.

AGENTS.md reference: AGENTS.md:L212-L214

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