Skip to content

fix(roadmap): the stage job plans on the commit it fetched from origin - #3607

Merged
dan-petty merged 1 commit into
mainfrom
fix/3301-stage-reads-the-base-commit
Nov 5, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/3301-stage-reads-the-base-commit

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job read the HEAD of its clone to choose the commit of a plan. The clone can be older than origin/main. The premise probe then reported a file as absent when the file exists at the plan base. A plan that used that answer was wrong.

The stage job now takes the default branch of origin, as fetched, as the staged commit. It moves the clone to that commit with git merge --ff-only. A clone that cannot fast-forward to that commit fails the run, and no item is staged. A new branch starts at the staged commit. The probe, the branch and the toolbox now use one commit.

The plan report and the dry run name the staged commit.

Closes #3301

Change: openspec/changes/archive/2026-11-05-3301-stage-reads-the-base-commit/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 5, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Finish notes for #3301

Local check: uv run devops ci, full run at e40f40c. Log: .data/agent/worktrees/w-3301/.data/agent/scratch/3301-full-ci.log.

  • Pytest: 18643 passed, 2 skipped, 4 failed, 1 error. All failures are the host-state failures of fix(ci): host state fails four tests and one case #3585:
    • tests/crypto/test_ssh.py::test_get_ssh_key_prefix_resolution
    • tests/telemetry/test_config_env_overrides.py::test_find_project_config_path_skips_directory
    • tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run
    • tests/ai/test_tool_executor_contract.py::test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct], with the host path guard, and its teardown error.
  • Coverage: 94.50% total. The threshold is 85.0%.
  • The other checks pass: lint, format, typecheck, audit, security, actionlint, zizmor, docs, uv-check, lockfile, build, outdated, deps, constructs, devcontainer, openspec, git, test-settings, k8s, test-tree, startup-imports, swallowed-failures. The coverage job reports fail only because the test job failed.
  • The test job took 6m 35s. The budget is 5 minutes. A comment on fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593 records this timing. fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593 is open.

Fail-to-pass: devops ci fail-to-pass --base origin/main. Log: .data/agent/worktrees/w-3301/.data/agent/scratch/3301-fail-to-pass.log.

  • 9 tests fail on the base. None errors. None carries the host path guard message.
  • All 9 tests are in the four changed test files.
  • 269 tests pass on the base.
  • The GitHub check gives the verdict.

Deviations:

  • The run log of docs(openspec): plan #3236 confine MCP tool path options #3248 was not read. The stale-clone cause is inferred from the code at origin/main d254410. The proposal states this in its Feasibility section.
  • Premise checks in this stage:
    • git cat-file -e 4571d5f3:src/devops_cli/ai/mcp/roles.py exits 0.
    • git cat-file -e 69234732^:src/devops_cli/ai/mcp/roles.py exits 128.
    • 6923473 is an ancestor of 4571d5f.
    • src/devops_cli/roadmap/refine.py line 598 reads rev-parse HEAD.
  • The branch already contained origin/main at d254410. The rebase did nothing, so no test run was repeated.

Open items:

@dan-petty

Copy link
Copy Markdown
Owner Author

Check status at e40f40c:

  • 22 of 23 GitHub checks pass. This includes Tests & Coverage (all four shards), Fail-to-Pass Check, Semantic PR title, Changed-Test Independence and Service Image.
  • DevContainer Image fails in all three attempts of run 41998148650. The failures come from devcontainer features that download from the internet during the image build: the keyserver hkp://keyserver.pgp.com (attempts 1 and 3) and an empty docker-compose.sha256sum (attempt 2). The change does not touch .devcontainer/. Recent pull request runs of the same workflow passed.
  • Service Image failed once with a registry digest mismatch. It passed on the first re-run.
  • The failure is tracked in fix(ci): devcontainer image build fails on a feature download #3612. This pull request stays a draft until the DevContainer Image check passes and the owner decides to mark it ready.

@dan-petty
dan-petty force-pushed the fix/3301-stage-reads-the-base-commit branch from e40f40c to acb0c1f Compare November 5, 2026 12:57
@dan-petty
dan-petty marked this pull request as ready for review November 5, 2026 13:04
@dan-petty
dan-petty marked this pull request as draft November 5, 2026 13:14
@dan-petty
dan-petty force-pushed the fix/3301-stage-reads-the-base-commit branch from acb0c1f to a1b50ba Compare November 5, 2026 13:45
The stage job read the default branch of the local checkout. A local
branch that was behind origin gave a plan a base that was out of date.
The job now reads the commit that it fetched from origin, and it
moves the clone to that commit. The ahead-clone case is refused.

Closes #3301

Change: openspec/changes/archive/2026-11-05-3301-stage-reads-the-base-commit
@dan-petty
dan-petty force-pushed the fix/3301-stage-reads-the-base-commit branch from a1b50ba to 7a8a884 Compare November 5, 2026 14:07
@dan-petty
dan-petty marked this pull request as ready for review November 5, 2026 14:17
@dan-petty
dan-petty merged commit db4e67e into main Nov 5, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3301-stage-reads-the-base-commit branch November 5, 2026 14:17
dan-petty pushed a commit that referenced this pull request Nov 5, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.62.4](v0.62.3...v0.62.4)
(2026-11-05)


### Bug Fixes

* **roadmap:** the stage job plans on the commit it fetched from origin
([#3607](#3607))
([db4e67e](db4e67e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the premise probe reports a file as absent that exists at the plan base

1 participant