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 docs/observatory.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<link rel="stylesheet" href="styles/70-pixel-icons.css">
<link rel="stylesheet" href="styles/95-observatory-cuperos.css?v=20260717.2">
<link rel="stylesheet" href="styles/99-webmcp-mission.css?v=20260903.1">
<script src="observatory.js?v=20260717.1" defer></script>
<script src="observatory.js?v=20260903.1" defer></script>
<script src="webmcp-tools.js?v=20260903.1" defer></script>
<script src="webmcp-mission.js?v=20260903.1" defer></script>
</head>
Expand Down
13 changes: 13 additions & 0 deletions tests/test_webmcp_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

ROOT = Path(__file__).resolve().parents[1]
ADAPTER = ROOT / "docs" / "webmcp-tools.js"
OBSERVATORY_HTML = ROOT / "docs" / "observatory.html"

TOOL_ORDER = [
"get_observatory_state",
Expand Down Expand Up @@ -371,3 +372,15 @@ def test_adapter_documents_late_bound_bridge_and_human_only_approval() -> None:
assert "window.GPUStackMission.invoke(toolName, validatedArgs, { signal })" in source
assert "approval remains an explicit page-only human act" in source
assert "This never approves or commits it" in source


def test_observatory_load_order_and_cache_keys_include_the_bridge_release() -> None:
html = OBSERVATORY_HTML.read_text(encoding="utf-8")
scripts = [
'observatory.js?v=20260903.1',
'webmcp-tools.js?v=20260903.1',
'webmcp-mission.js?v=20260903.1',
]

assert all(script in html for script in scripts)
assert [html.index(script) for script in scripts] == sorted(html.index(script) for script in scripts)
Loading