Skip to content

Commit 156d53f

Browse files
Delegate fork updates to repository owners
1 parent 210c635 commit 156d53f

4 files changed

Lines changed: 45 additions & 21 deletions

File tree

‎config/ulysses/runtime-management.json‎

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,16 @@
113113
"launch": ["env", "BROWSER_IDLE_TIMEOUT_MS=0", "bash", "start.sh"],
114114
"tmux_session": "diogenes-camofox-browser",
115115
"git_update": true,
116-
"source_url": "https://github.com/jo-inc/camofox-browser",
117-
"source_remote": "upstream",
116+
"source_url": "https://github.com/CommanderTurtle/archive--camofox-browser.git",
117+
"source_remote": "fork",
118118
"source_branch": "master",
119119
"build_script": "build",
120120
"bun_install_mode": "foreign_lock",
121+
"owner_scripts": {
122+
"update": {"path": "update.sh"},
123+
"integrate": {"path": "integrate.sh"},
124+
"doctor": {"path": "doctor.sh"}
125+
},
121126
"setup": {
122127
"kind": "bun_script",
123128
"value": "fetch-bin"
@@ -188,9 +193,9 @@
188193
"package_json": "package.json",
189194
"env_files": [],
190195
"git_update": true,
191-
"source_url": "https://github.com/ildunari/context-mode.git",
192-
"source_remote": "ildunari",
193-
"source_branch": "feat/hermes-native-support",
196+
"source_url": "https://github.com/CommanderTurtle/context-mode.git",
197+
"source_remote": "fork",
198+
"source_branch": "main",
194199
"build_script": "build",
195200
"bun_install_mode": "frozen",
196201
"owner_scripts": {
@@ -217,8 +222,8 @@
217222
"package_json": "package.json",
218223
"env_files": [],
219224
"git_update": true,
220-
"source_url": "https://github.com/redf0x1/camofox-mcp.git",
221-
"source_remote": "upstream",
225+
"source_url": "https://github.com/CommanderTurtle/archive--camofox-mcp.git",
226+
"source_remote": "fork",
222227
"source_branch": "main",
223228
"build_script": "build",
224229
"bun_install_mode": "frozen",
@@ -348,8 +353,8 @@
348353
"launch": ["bash", "start.sh"],
349354
"tmux_session": "diogenes-hermes-workspace",
350355
"git_update": true,
351-
"source_url": "https://github.com/outsourc-e/hermes-workspace.git",
352-
"source_remote": "upstream",
356+
"source_url": "https://github.com/CommanderTurtle/archive--hermes-workspace.git",
357+
"source_remote": "fork",
353358
"source_branch": "main",
354359
"build_script": "build",
355360
"bun_install_mode": "pnpm_lock",

‎src/diogenes_dependency_action.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,6 @@ def _update(item: dict[str, Any]) -> None:
558558
cwd=root,
559559
timeout=7200,
560560
)
561-
if item.get("integration"):
562-
from src.diogenes_dependency_integration import integrate
563-
564-
integrate(str(item["id"]))
565561
print(
566562
f"{item['label']}: repository-owned update and verification completed."
567563
)

‎tests/test_diogenes_dependency_integration.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def test_owner_doctor_result_is_the_contract_gate(monkeypatch, tmp_path: Path) -
301301
assert integration._owner_doctor_current(item) is True
302302

303303

304-
def test_update_action_delegates_to_owner_then_refreshes_receipt(
304+
def test_update_action_delegates_entirely_to_owner_without_duplicate_integration(
305305
monkeypatch,
306306
tmp_path: Path,
307307
) -> None:
@@ -319,7 +319,6 @@ def test_update_action_delegates_to_owner_then_refreshes_receipt(
319319
},
320320
}
321321
commands: list[list[str]] = []
322-
receipts: list[str] = []
323322
monkeypatch.setattr(
324323
dependency_action,
325324
"_run",
@@ -328,10 +327,9 @@ def test_update_action_delegates_to_owner_then_refreshes_receipt(
328327
monkeypatch.setattr(
329328
integration,
330329
"integrate",
331-
lambda runtime_id: receipts.append(runtime_id),
330+
lambda _runtime_id: pytest.fail("owner update must not be integrated twice"),
332331
)
333332

334333
dependency_action._update(item)
335334

336335
assert commands == [["bash", str(update), "--all"]]
337-
assert receipts == ["owner.mcp"]

‎tests/test_ulysses_runtime_management.py‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,35 @@ def test_fork_backed_catalog_declares_source_remotes(tmp_path: Path) -> None:
770770
)
771771
}
772772

773-
assert items["camofox.browser"]["source_remote"] == "upstream"
774-
assert items["camofox.mcp"]["source_remote"] == "upstream"
775-
assert items["hermes.workspace"]["source_remote"] == "upstream"
776-
assert items["context.mode.mcp"]["source_remote"] == "ildunari"
773+
expected_sources = {
774+
"camofox.browser": (
775+
"https://github.com/CommanderTurtle/archive--camofox-browser.git",
776+
"master",
777+
),
778+
"camofox.mcp": (
779+
"https://github.com/CommanderTurtle/archive--camofox-mcp.git",
780+
"main",
781+
),
782+
"hermes.workspace": (
783+
"https://github.com/CommanderTurtle/archive--hermes-workspace.git",
784+
"main",
785+
),
786+
"context.mode.mcp": (
787+
"https://github.com/CommanderTurtle/context-mode.git",
788+
"main",
789+
),
790+
}
791+
for runtime_id, (source_url, source_branch) in expected_sources.items():
792+
item = items[runtime_id]
793+
assert item["source_url"] == source_url
794+
assert item["source_remote"] == "fork"
795+
assert item["source_branch"] == source_branch
796+
expected_owner_scripts = (
797+
{"update"}
798+
if runtime_id == "hermes.workspace"
799+
else {"update", "integrate", "doctor"}
800+
)
801+
assert set(item["owner_scripts"]) == expected_owner_scripts
777802
assert items["camofox.browser"]["launch"][:2] == [
778803
"env",
779804
"BROWSER_IDLE_TIMEOUT_MS=0",

0 commit comments

Comments
 (0)