Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CURRENT-STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ coordination branch. Detailed state belongs in each linked status file.
|---|---|---|---|---|---|
| `workflow-improvements` | 2026-08-09 | Improve the multiple-stream workflow from concrete dogfood findings during the recursive E2E cycle | active 2026-10-30; Pair Review Loop naming implemented and packaging verified for 0.3.0; mainline and release integration pending | `ws-workflow-improvements/v1` | [workstream status](engineering-docs/wip/2026-08-09-workflow-improvements/CURRENT-STATUS.md) |
| `project-management` | 2026-08-09 | Maintain project-wide priorities, sequencing, dependencies, and lifecycle coordination | paused 2026-10-11 at owner direction; consent and forced configuration before RC work; remaining diagnostics/image scope and release cut decisions retained | `ws-project-management/coordination` | [workstream status](engineering-docs/wip/2026-08-09-project-management/CURRENT-STATUS.md) |
| `maintenance` | 2026-09-18 | Own the defects no open workstream covers, on `main` and on maintained release lines, and drive maintenance releases | active 2026-11-04; #335 and #336 merged; first legacy test move, PR #337, awaits the owner's merge; 0.3.1 queue preserved | `ws-maintenance/base-consent-test`; earlier slice branches merged and closed; `release-0.3.0` closed and retained | [workstream status](engineering-docs/wip/2026-09-18-maintenance/CURRENT-STATUS.md) |
| `maintenance` | 2026-09-18 | Own the defects no open workstream covers, on `main` and on maintained release lines, and drive maintenance releases | active 2026-11-04; #335, #336 and #337 merged; seventeen capsule-reading tests marked expected to fail at the owner's direction, fix queued; 0.3.1 queue preserved | `ws-maintenance/base-consent-test`; earlier slice branches merged and closed; `release-0.3.0` closed and retained | [workstream status](engineering-docs/wip/2026-09-18-maintenance/CURRENT-STATUS.md) |
| `component-upgrades` | 2026-09-21 | Deliver component distribution channels, developer-owned version sets and proven upgrade rollback; Codex first | paused 2026-10-02; consent design ruled (D-0011 to D-0013), 0.2.16 consent slice next; R-UPGRADE-002 follow-up retained | `ws-component-upgrades/v1` | [workstream status](engineering-docs/wip/2026-09-21-component-upgrades/CURRENT-STATUS.md) |
| `sample-projects` | 2026-08-14 | Provide realistic sample projects as submodules that demonstrate ordinary adopter development inside DevCapsule | integrating 2026-10-22; AI Learning published; PR #252 reviewed and ready for human merge | `ws-sample-projects/ai-learning` | [workstream status](engineering-docs/wip/2026-08-14-sample-projects/CURRENT-STATUS.md) |
| `contained-display` | 2026-08-19 | Own the capsule supervisor core (container entry process, supervised children, explicit session end, headless mode) and the capsule's own display environment, closing the host-session credential exposure — supervisor first, display as its first consumer | active; **the contained display shipped in v0.2.12 on 2026-09-14** (recipe-9 base, contained desktop by default, X11 passthrough behind `host-x11`); the X11 credential bug is resolved; remaining threads are records and follow-ups (reconnect, WSL2 opener, sample locks) | `ws-contained-display/display-transport` | [workstream status](engineering-docs/wip/2026-08-19-contained-display/CURRENT-STATUS.md) |
Expand Down
1 change: 1 addition & 0 deletions devcapsule-src/devcapsule/legacy_refactoring/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Temporary target modules for legacy tests under refactoring; see each module's docstring. Deleted when empty."""
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_capability_commands_v2.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_capability_commands_v2.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/capability_commands_v2.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_capability_minimums.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_capability_minimums.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/capability_minimums.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
12 changes: 12 additions & 0 deletions devcapsule-src/devcapsule/legacy_refactoring/console_channel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_console_channel.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_console_channel.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/console_channel.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_environment_realization.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_environment_realization.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/environment_realization.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
12 changes: 12 additions & 0 deletions devcapsule-src/devcapsule/legacy_refactoring/home.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_home.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_home.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/home.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
12 changes: 12 additions & 0 deletions devcapsule-src/devcapsule/legacy_refactoring/project_init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_project_init.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_project_init.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/project_init.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_repository_manifest_compatibility.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_repository_manifest_compatibility.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/repository_manifest_compatibility.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
12 changes: 12 additions & 0 deletions devcapsule-src/devcapsule/legacy_refactoring/trust.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Temporary target module while the legacy tests of ``tests/test_trust.py`` are refactored.

This module serves only as the mirror target of
``tests/unit/devcapsule/legacy_refactoring/test_trust.py`` under *Unit Tests*
rule 1 of ``WORKFLOW-LOCAL.md``. It holds no code. The tests mirrored here are
the ones marked expected to fail on 2026-11-04 with the reason
``TODO: fix the wrong approach to testing``; each is rewritten against its
real unit as the maintenance workstream refactors it, and this module is
deleted when the last one leaves.
"""

__all__: list[str] = []

Check warning on line 12 in devcapsule-src/devcapsule/legacy_refactoring/trust.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Uncovered changed lines

Changed executable lines 12-12 are not covered by tests (advisory).
17 changes: 0 additions & 17 deletions devcapsule-src/tests/test_capability_commands_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,23 +179,6 @@ def test_run_choices_reach_plan_and_save_only_when_requested(project, matrix, sa
assert path.read_bytes() == before


@pytest.mark.parametrize("origin", ["project", "checkout", "run"])
def test_resolution_grants_no_consent_and_no_partial_save(project, matrix, tmp_path, origin):
assert config(project, "ide", "frontend-ide") == 0
assert config(project, "authorize", "base-image", "default") == 0
assert config(project, "add", "assistant") == 0
if origin == "project":
assert config(project, "recommend", "assistant", "claude-code") == 0
assert config(project, "use", "assistant", "default") == 0
elif origin == "checkout":
assert config(project, "use", "assistant", "claude-code") == 0
before = snapshot(tmp_path)
flags = RunFlags(providers=(("assistant", "claude-code"),) if origin == "run" else (), memory="6g", save=True)
with pytest.raises(DecisionPending, match="claude"):
prepare_launch(project, flags, interactive=False)
assert snapshot(tmp_path) == before


def test_changed_resolution_keeps_component_consent(project, matrix):
assert config(project, "ide", "frontend-ide") == 0
assert config(project, "authorize", "base-image", "default") == 0
Expand Down
13 changes: 0 additions & 13 deletions devcapsule-src/tests/test_capability_minimums.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,19 +287,6 @@ def test_every_owner_preview_leaves_all_files_unchanged(project: Path, tmp_path:
assert snapshot(tmp_path) == before


def test_offered_agent_still_needs_consent_and_can_be_omitted(project: Path, tmp_path: Path, capsys) -> None:
write_project(project, MANIFEST.replace('"python>=3.14", ', ''))
assert cli.main(["project", "--path", str(project), "init", "--ide", "frontend-ide", "--authorize", "base-image", "default"]) == 0
owner_commands.offer_tools(project, ["claude-code-agent"])
before = snapshot(tmp_path)
assert cli.main(["project", "--path", str(project), "run", "--print-command", "--no-update-check"]) == 3
assert "claude-code" in capsys.readouterr().err
assert snapshot(tmp_path) == before
assert cli.main(["project", "--path", str(project), "config", "omit", "claude-code-agent"]) == 0
prepared = prepare_launch(project, RunFlags(), interactive=False, print_only=True)
assert "claude-code" not in prepared.selected.lock["components"]


def test_owner_drop_recognizes_a_handwritten_component_alias(project: Path) -> None:
manifest_path, lock_path = write_project(project, MANIFEST.replace('"python>=3.14", ', ''))
lock_path.write_text(render_toml(generate_lock(CapabilityPolicy.read(load_toml(manifest_path)), MATRIX)))
Expand Down
32 changes: 0 additions & 32 deletions devcapsule-src/tests/test_console_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,35 +541,3 @@ def test_capability_requests_apply_without_host_confirmation(arguments):
@pytest.mark.parametrize("arguments", [["agent", "add", "codex"], ["tool", "omit", "browser-automation"]])
def test_deleted_channel_verbs_are_refused(arguments):
assert classify(arguments)[0] is Disposition.REFUSE


def test_channel_records_capability_choices_and_preserves_vendor_consent(project, tmp_path, capsys):
from devcapsule.configuration.capabilities import LocalCapabilities
assert config(project, "offer", "browser-automation") == 0
channel = tmp_path / "channel"
channel.mkdir()
def send(identifier, *arguments):
request(channel, identifier, *arguments)
assert sweep(channel, project, record_path(project)) == 1
return result(channel, identifier)
assert send("000001-add", "add", "claude-code-agent")["status"] == "recorded"
assert "claude-code-agent" in LocalCapabilities.read(load_toml(record_path(project))).selected
assert send("000002-omit", "omit", "browser-automation")["status"] == "recorded"
assert "browser-automation" in LocalCapabilities.read(load_toml(record_path(project))).without
assert send("000003-restore", "restore", "browser-automation")["status"] == "recorded"
assert "browser-automation" not in LocalCapabilities.read(load_toml(record_path(project))).without
assert send("000004-ide", "ide", "frontend-ide")["status"] == "recorded"
assert send("000005-use", "use", "frontend-ide", "vscode")["status"] == "recorded"
assert LocalCapabilities.read(load_toml(record_path(project))).providers == {"frontend-ide": "vscode"}
# Single-provider capabilities still refuse `use` through the same command path.
for index, (capability, component) in enumerate((("python-ide", "pycharm"), ("vscode-ide", "vscode")), start=6):
expected_status, expected_text = run_config(project, ["use", capability, component])
assert expected_status == 2 and "choice" in expected_text
refused = send(f"00000{index}-use", "use", capability, component)
assert refused["status"] == "refused" and expected_text.strip() in refused["text"]
capsys.readouterr()
assert config(project, "show", "--json") == 0
listing = json.loads(capsys.readouterr().out)
assert any(row["name"] == "claude-code-download" and row["pending"] for row in listing["rows"])
assert any(row["name"] == "vscode-download" and row["pending"] for row in listing["rows"])
assert deferred_requests(record_path(project)) == []
15 changes: 0 additions & 15 deletions devcapsule-src/tests/test_environment_realization.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,21 +223,6 @@ def test_realize_environment_requires_exact_locked_base_authorization(tmp_path:
materialize.assert_not_called()


def test_realize_environment_requires_explicit_claude_download_authorization(
tmp_path: Path,
) -> None:
selected = resolved_project(tmp_path)
select_claude_code(selected, authorized=False)
obtain = Mock()
materialize = Mock()

with pytest.raises(CliError, match="claude-code-download"):
realize_environment(selected, obtain_image=obtain, materialize=materialize)

obtain.assert_not_called()
materialize.assert_not_called()


def test_realize_environment_allows_terms_bound_claude_download_authorization(
tmp_path: Path,
) -> None:
Expand Down
20 changes: 0 additions & 20 deletions devcapsule-src/tests/test_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,23 +190,3 @@ def test_malformed_settings_stop_run_before_project_discovery(home: Path, conten
assert cli.main(["project", "run", "--print-command"]) == 2
assert str(path) in capsys.readouterr().err
assert list(home.iterdir()) == [path] and path.read_text() == content


@pytest.mark.parametrize("folder", ["devcapsule", "tests", "docs"])
def test_replaced_scope_word_is_absent(folder: str) -> None:
package = Path(__file__).resolve().parents[1]
root = package.parent / "docs" if folder == "docs" else package / folder
forbidden = "work" + "station"
failures = []
for path in root.rglob("*"):
if not path.is_file() or "__pycache__" in path.parts or ".pytest_cache" in path.parts:
continue
if path.is_relative_to(package / "tests" / "resources" / "compat"):
continue
try:
text = path.read_text()
except UnicodeError:
continue
if forbidden in text.lower():
failures.append(str(path.relative_to(root)))
assert failures == []
19 changes: 0 additions & 19 deletions devcapsule-src/tests/test_project_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,25 +345,6 @@ def test_require_tool_refuses_personal_and_unknown_names_without_touching_the_ma
assert manifest_path.read_text(encoding="utf-8") == before


def test_a_selected_agent_brings_its_own_acquisition_gate(tmp_path: Path, capsys) -> None:
project = tmp_path / "fresh-project"
project.mkdir()
with patch.dict(os.environ, isolated_env(tmp_path), clear=False):
assert cli.main(full_init_command(project)) == 0
capsys.readouterr()

# The agent is the developer's; resolving without its vendor's channel names the channel (D-0011).
assert cli.main(["project", "--path", str(project), "config", "add", "claude-code-agent"]) == 0
assert run_until_prepared(project) == 3
assert "home trust accept claude-code" in capsys.readouterr().err

assert cli.main(["project", "--path", str(project), "config", "authorize", "claude-code-download", "true"]) == 0
assert run_until_prepared(project) == 0
from devcapsule.configuration.storage import lock_for
lock = lock_for(project, read_toml(project / ".devcapsule" / "devcapsule.toml"))[1]
assert lock["components"]["claude-code"]["version"]


def test_init_repairs_a_deleted_checkout_config_tree(tmp_path: Path, capsys) -> None:
project = tmp_path / "fresh-project"
project.mkdir()
Expand Down
Loading
Loading