Skip to content

refactor(roadmap): the in-memory store leaves src - #3839

Merged
dan-petty merged 5 commits into
mainfrom
refactor/1335-roadmap-memory-store-leaves-src
Nov 6, 2026
Merged

dan-petty merged 5 commits into
mainfrom
refactor/1335-roadmap-memory-store-leaves-src

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

InMemoryRoadmapStore is a test double, but it shipped in the wheel from src/devops_cli/roadmap/. Fakes live in tests/support/ and never ship.

This change moves the fake to tests/support/fakes/roadmap_store.py and gives it a fault mode (fail_write, fail_listing). This replaces the two wrappers in tests/roadmap_faults.py, which is deleted. The gh fake and the store contract suite gain cases for a failed write.

The evaluation of intake duplicates needs only reads. It now plans over a read-only SeededRoadmap through the new IntakeReads Protocol, so the type checker shows that a plan writes nothing. Its verdicts do not change.

Part of #1335, under #1307.

Closes #3744

Change: openspec/changes/archive/2026-11-06-3744-roadmap-memory-store-leaves-src/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test and check results

  • Full uv run devops ci on the branch before the last rebase: 19937 passed, 2 failed. Both failures also fail on a scratch checkout of origin/main (host condition): test_mark_only_commands_under_global_dry_run and the popeye case of test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct] (with its teardown error).
  • After the last rebase (two new commits on main): ruff check, ruff format --check, and pytest tests/roadmap tests/invariants tests/support pass (5356 passed, 1 skipped).
  • Review findings fixed: the cast in the _write decorator of the fake; the seeded-roadmap test now checks that no write verb is offered, with no exact dir() set and no __class__ assert.
  • The rebase also moved test_roadmap_refine_failure and test_roadmap_refine_investigation (new on main) to the fake in tests/support/fakes/roadmap_store.py.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 19:57
@dan-petty
dan-petty force-pushed the refactor/1335-roadmap-memory-store-leaves-src branch from 21c61c9 to 7caa245 Compare November 6, 2026 20:04
@dan-petty

Copy link
Copy Markdown
Owner Author

Rebased again on main (four new commits, among them a new test, test_roadmap_implement_read_pipe, that used the old import path). Moved it to the fake in tests. Re-ran: ruff, and pytest tests/roadmap tests/invariants (5425 passed, 1 skipped).

Move InMemoryRoadmapStore from src to tests/support/fakes/roadmap_store.py.
The intake evaluation plans over a read-only SeededRoadmap that satisfies
the new IntakeReads protocol. The fake gets a fault mode (fail_write,
fail_listing) that replaces StoppingStore and ListingStore, and the
contract suite checks the write fault on both adapters.

Change: refactor of the roadmap store fake; no observable behavior changes.

Refs #3744
@dan-petty
dan-petty force-pushed the refactor/1335-roadmap-memory-store-leaves-src branch from 7caa245 to 5cafb51 Compare November 6, 2026 20:20
@dan-petty
dan-petty force-pushed the refactor/1335-roadmap-memory-store-leaves-src branch from 5cafb51 to b907ac4 Compare November 6, 2026 20:47
@dan-petty
dan-petty merged commit 558c5e0 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the refactor/1335-roadmap-memory-store-leaves-src branch November 6, 2026 21:38
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.73.0](v0.72.1...v0.73.0)
(2026-11-06)


### Features

* **pr:** check-readiness blocks a body that breaks the form
([#3849](#3849))
([6c973a5](6c973a5)),
closes [#3259](#3259)
* **roadmap:** Allow read pipes to a table of allowed programs
([#3838](#3838))
([89daf41](89daf41)),
closes [#3520](#3520)
* **roadmap:** size the runner Job resources from the plan
([#3848](#3848))
([32328b1](32328b1))


### Bug Fixes

* **ai:** fix MCP ai_benchmark models description
([#3840](#3840))
([26a0ef4](26a0ef4))
* **review:** catch findings.json validation errors
([#3841](#3841))
([bc5f241](bc5f241))
* **security:** Refuse Go, Yarn and uv env keys
([#3845](#3845))
([235a807](235a807))


### Performance Improvements

* **k8s:** use tag_digest HEAD for image pins
([#3843](#3843))
([a61d671](a61d671))


### Code Refactoring

* **roadmap:** the in-memory store leaves src
([#3839](#3839))
([558c5e0](558c5e0))

---
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/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(roadmap): the in-memory store leaves src

1 participant