docs: publish architecture and experiment portal
This commit is contained in:
+23
-2
@@ -149,6 +149,27 @@ def main() -> None:
|
||||
health.raise_for_status()
|
||||
assert health.json().get("status") is True
|
||||
|
||||
docs_entry = client.get("/doc", follow_redirects=False)
|
||||
assert docs_entry.status_code in {307, 308}
|
||||
assert docs_entry.headers["location"].endswith("/doc/")
|
||||
docs = client.get("/doc/")
|
||||
docs.raise_for_status()
|
||||
assert "K1412 Agent · 架构、实现与实验" in docs.text
|
||||
assert docs.headers["content-type"].startswith("text/html")
|
||||
docs_style = client.get("/doc/styles.css")
|
||||
docs_style.raise_for_status()
|
||||
assert "--green: #b8f23d" in docs_style.text
|
||||
docs_script = client.get("/doc/app.js")
|
||||
docs_script.raise_for_status()
|
||||
assert "safe-parallel-v1" in docs_script.text
|
||||
docs_experiments = client.get("/doc/experiments.json")
|
||||
docs_experiments.raise_for_status()
|
||||
assert {item["status"] for item in docs_experiments.json()} == {
|
||||
"baseline",
|
||||
"validated",
|
||||
"backlog",
|
||||
}
|
||||
|
||||
admin = _signin(client, ADMIN_EMAIL, ADMIN_PASSWORD)
|
||||
admin_token = admin["token"]
|
||||
|
||||
@@ -276,8 +297,8 @@ def main() -> None:
|
||||
assert legacy.status_code == 404, legacy.text
|
||||
|
||||
print(
|
||||
"E2E passed: auth approval, four Agent models, custom loop evidence, file downloads, "
|
||||
"and per-user workspace isolation."
|
||||
"E2E passed: public documentation, auth approval, four Agent models, custom loop "
|
||||
"evidence, file downloads, and per-user workspace isolation."
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user