Skip to content

Owner empty commit still fails after ORB-22407 - #8656

Closed
orbit-agent-01 wants to merge 1 commit into
agent-mainfrom
orbit/ORB-23169-b3e7a0a2
Closed

orbit-agent-01 wants to merge 1 commit into
agent-mainfrom
orbit/ORB-23169-b3e7a0a2

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

Task

ORB-23169 — Owner empty commit still fails after ORB-22407

Description

ORB-22407 (ba163140d46388d9cd7db60a731c04d8356d20e7) stops a claimed leaf from failing when the implementer found the work already done. The owner commit_batch_changes path still returns empty_stage_error when the stage is empty. A run on a binary that contains that commit failed the same way.

commit_batch_changes in crates/orbit-engine/src/executor/automation/vcs/commit/actions.rs returns Ok(already_committed_result) only when HEAD moved. The ORB-22407 branch runs only when verify_already_landed is set, the leaf is claimed, neither no-diff artifact is present, and already_resolved::evidence_from_implementation returns evidence. Otherwise the function returns empty_stage_error from diagnostics.rs, which formats commit_batch_changes: nothing to commit.

Evidence

field value
signature commit_batch_changes:nothing_to_commit step:commit
job task_pr_pipeline (the post-fix occurrence); one more 7-day occurrence on task_claimed_pr_pipeline predates the fix
7-day occurrences 3 on task_pr_pipeline, 1 of them on a build that contains the fix
30-day occurrences 11 across owner and follower hosts
distinct runs (7-day, owner) 3
share of task_pr_pipeline folded failures 3/85 = 0.035
hosts dk-server-2 for the owner runs
first seen (30-day) 2026-10-10
last seen 2026-11-08T00:42:10Z
new since cursor 2026-11-08T00:30:39Z 1
runs jrun-20261108-0030-c38, jrun-20261105-0227-c9, jrun-20261105-0133-c3

jrun-20261108-0030-c38 finished on build b59b14cd76a8, which contains ba163140. Observed: 0 staged, 0 unstaged, 0 untracked, HEAD equal to the pinned base. The two earlier runs are on 04c348854e74, which does not contain the fix.

Category

Product defect, regression of ORB-22407. Nature incomplete: the landed settlement does not cover the owner empty stage whose HEAD equals the pinned base. Escape unclassified.

Change

When the owner stage is empty, HEAD equals the pinned base, and the step input carries already-resolved evidence, return that checkpoint instead of empty_stage_error. Keep the error when that evidence is absent.

Effect

Stops the post-fix owner occurrences of this signature (1 in the last week, on the installed line). The two pre-fix runs are not a reason to expect the same drop until that path is deployed.

Checkout 966bb480315242117218e646aba7c76e24fa0c19.

Acceptance Criteria

  • A test calls commit_batch_changes for an owner task whose HEAD equals the pinned base, whose status is empty, and whose step input carries already-resolved evidence, and the call returns the already-resolved checkpoint instead of empty_stage_error.
  • An empty stage with no already-resolved evidence still returns the nothing-to-commit error.
  • The claimed verify_already_landed path added by ORB-22407 still returns its checkpoint.
  • Those tests pass on this host.

Execution Summary

Click to expand

Outcome: success

Changes:

  • Owner and claimed empty stages at the pinned base now return verified_already_resolved when admitted implementation selectors exist and both clean-tree reports are definitely absent. Missing selectors still produce the nothing-to-commit error.
  • Moved the evidence fallback into checkpoint verification so invalid reports and unknown artifact reads retain authority without an extra fallback read.
  • Shared recovery of the current run's checkpointed implement_one output with summary recovery. Explicit step input wins. This supplies evidence for real owner pipelines without adding templates that would fail when implementation is skipped on resume.
  • Updated already-resolved and installed git_commit documentation. Extended the existing public deterministic-action regression scenario across owner local/PR and claimed local/PR paths; retained invalid-report and unknown-read refusals with implementation evidence present.

Assessment: All four acceptance criteria are satisfied. The regression failed before production edits with an empty status and HEAD equal to the pinned base; the final candidate passes all focused behavior checks and required local gates.

Criteria:

  1. Passed: commit_verifier::commit_evidence_contracts_3 calls the public git_commit action (scope all -> commit_batch_changes) for owner tasks at clean pinned HEAD and checks the already-resolved checkpoint, selectors, committed=false and unchanged HEAD. Current-run checkpoint evidence returns the same result.
  2. Passed: summary-only output and absent selectors still return nothing to commit for owner and claimed tasks.
  3. Passed: both claimed verify_already_landed pipeline variants retain their checkpoint under WorkerInvocation.
  4. Passed on this host: all six commit-verifier test families; one summary-recovery regression; one initialized-catalog check. None ignored or failed.

Validation — final candidate, all passed:

  • make ci-guards
  • cargo fmt --all -- --check
  • rustfmt --check --edition 2024 crates/orbit-engine/tests/engine/commit_verifier.rs
  • scripts/build-budget.py -- cargo test -p orbit-engine --test engine commit_verifier:: -- --nocapture
  • scripts/build-budget.py -- cargo test -p orbit-engine --test engine v2_cli_agent::no_diff::returned_summary_delivers_no_diff_task_and_missing_summaries_still_refuse -- --exact --nocapture
  • scripts/build-budget.py -- cargo clippy -p orbit-engine --lib --bins -- -D warnings -D clippy::disallowed_methods
  • scripts/build-budget.py -- cargo clippy -p orbit-engine --all-targets -- -D warnings -A clippy::disallowed_methods
  • RUSTDOCFLAGS="-D warnings" scripts/build-budget.py -- cargo doc --no-deps -p orbit-engine
  • scripts/build-budget.py -- cargo clippy -p orbit-core --lib --bins -- -D warnings -D clippy::disallowed_methods
  • scripts/build-budget.py -- cargo clippy -p orbit-core --all-targets -- -D warnings -A clippy::disallowed_methods
  • RUSTDOCFLAGS="-D warnings" scripts/build-budget.py -- cargo doc --no-deps -p orbit-core
  • scripts/build-budget.py -- cargo test -p orbit-core --test runtime default_catalog::published_lists_cover_initialized_defaults_and_owner_pinned_routines -- --exact --nocapture
  • git diff --check

Earlier outcomes: The new regression failed as expected on the unmodified production base (exit 101). An intermediate broader verifier run exposed repeated unknown-artifact reads; moving the fallback repaired it. An initial production Clippy run failed for a now-unused import, which was removed. All final commands above were rerun after the last source repair and passed.

Not run: full workspace CI/blanket affected tests (not a local gate under AGENTS.md); make goldens (no golden surface changed); local CodeQL (not required by the task tags or changed paths). Separate manual CLI/UI QA was not run because the public deterministic API scenarios already exercise real Git success and failure paths under isolated child-process homes. No UI or screenshot evidence is applicable. No final_validation_commands were supplied and no validation was deferred.

Evidence: examination-checks.json contains the before-fix failure, all final command outputs and exit codes, criterion mapping and worktree reconciliation.

Scope and reconciliation:

  • Starting and final HEAD: 966bb48. Starting git status --short was empty.
  • Six intended modified tracked files remain: crates/orbit-core/assets/activities/git_commit.yaml; crates/orbit-engine/src/executor/automation/vcs/commit/{actions,already_resolved,checkpoint,summary}.rs; crates/orbit-engine/tests/engine/commit_verifier.rs.
  • Beyond the original selectors, checkpoint.rs owns report precedence, summary.rs supplies owner checkpoint evidence, and already_resolved.rs plus the activity YAML document the expanded behavior. Their selectors were added while preserving all existing selectors. The local/PR pipeline selectors remain as inspected context; both pipeline files are unchanged.
  • No staged changes, untracked delivery paths, deletions, renames or pre-existing edits. git diff --check passed. Scratch scripts and logs remain only under ignored .orbit/tmp/; ignored build output was left alone. No cleanup leftovers.
  • Changes remain uncommitted; delivery and lifecycle transitions remain with the pipeline.

Risks/deviations: Reused the existing already-resolved checkpoint and handoff verifiers, which already admit owner tasks. Required companion output recovery and documentation widened the original two-file scope; no new dependency or delivery policy was introduced.

Validation

  • Not reported

Branch Freshness

  • Base ref: origin/agent-main
  • Head ref: orbit/ORB-23169-b3e7a0a2
  • Behind base: 0
  • Ahead of base: 1

Fixes: ba16314 ("fix: An implementer that finds the defect already fixed ends in a nothi… [ORB-22407] (#8259)")
Regression-From: ORB-22407
Regression: incomplete; escape=unclassified; severity=medium
@danieljhkim

Copy link
Copy Markdown
Member

Superseded by #8657, which landed ORB-23169 (877b6e4). Closed by on-call ORB-23110.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants