Implement canon conformance and maintenance optimizations
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a06e82-3e08-7042-a79d-438ac6eed8db
This commit is contained in:
parent
a2e7f22d8d
commit
b081d39da1
64 changed files with 4491 additions and 373 deletions
|
|
@ -25,11 +25,11 @@ def test_inspect_canon_counts_artifact_kinds() -> None:
|
|||
|
||||
assert payload["ok"] is True
|
||||
assert payload["infospace"]["slug"] == "canon"
|
||||
assert payload["infospace"]["artifact_count"] == 71
|
||||
assert payload["infospace"]["artifact_count"] == 76
|
||||
assert payload["infospace"]["kinds"] == {
|
||||
"access-descriptor-set": 1,
|
||||
"alignment-review-kit": 1,
|
||||
"assimilation": 1,
|
||||
"assimilation": 2,
|
||||
"alignment-review-schema": 1,
|
||||
"alignment-review-workflow": 1,
|
||||
"alignment-scorecard": 1,
|
||||
|
|
@ -47,11 +47,11 @@ def test_inspect_canon_counts_artifact_kinds() -> None:
|
|||
"consumer-workplan-template": 1,
|
||||
"evaluation-pack": 1,
|
||||
"evaluation-question-set": 1,
|
||||
"example": 1,
|
||||
"example": 2,
|
||||
"extension-candidate-set": 1,
|
||||
"interface-card-expectation": 1,
|
||||
"kernel": 2,
|
||||
"mapping": 2,
|
||||
"mapping": 3,
|
||||
"mapping-expectation": 1,
|
||||
"model": 12,
|
||||
"model-extension": 1,
|
||||
|
|
@ -63,15 +63,15 @@ def test_inspect_canon_counts_artifact_kinds() -> None:
|
|||
"practice-pattern-scheme": 1,
|
||||
"profile-alignment": 1,
|
||||
"profile": 1,
|
||||
"profile-artifact": 13,
|
||||
"standard": 3,
|
||||
"profile-artifact": 14,
|
||||
"standard": 4,
|
||||
"visualization-example-set": 1,
|
||||
}
|
||||
|
||||
|
||||
def test_model_and_standard_lists_are_filtered() -> None:
|
||||
assert list_models()["count"] == 12
|
||||
assert list_standards()["count"] == 3
|
||||
assert list_standards()["count"] == 4
|
||||
|
||||
|
||||
def test_review_kit_exports_workflow_and_template() -> None:
|
||||
|
|
@ -99,14 +99,14 @@ def test_validate_canon_passes_scaffold() -> None:
|
|||
assert payload["ok"] is True
|
||||
assert payload["errors"] == []
|
||||
assert "warnings" in payload
|
||||
assert payload["details"]["artifact_count"] == 71
|
||||
assert payload["details"]["artifact_count"] == 76
|
||||
|
||||
|
||||
def test_graph_exports_relationship_summary() -> None:
|
||||
payload = artifact_graph()
|
||||
|
||||
assert payload["ok"] is True
|
||||
assert payload["graph"]["node_count"] == 71
|
||||
assert payload["graph"]["node_count"] == 76
|
||||
assert payload["graph"]["edge_count"] > 15
|
||||
|
||||
|
||||
|
|
@ -180,6 +180,21 @@ def test_small_saas_profile_graph_exports_slice() -> None:
|
|||
assert "small-saas/service/billing-portal" in payload["graph"]["nodes"]
|
||||
|
||||
|
||||
def test_small_saas_capability_requirements_meet_maturity_floors() -> None:
|
||||
path = (
|
||||
DEFAULT_INFOSPACE_ROOT
|
||||
/ "profiles"
|
||||
/ "small-saas"
|
||||
/ "artifacts"
|
||||
/ "capability-requirements.yaml"
|
||||
)
|
||||
payload = review_capability_record(path)
|
||||
|
||||
assert payload["ok"] is True
|
||||
assert {item["status"] for item in payload["requirements"]} == {"met"}
|
||||
assert len(payload["provisions"]) == 4
|
||||
|
||||
|
||||
def test_generators_write_expected_assets(tmp_path) -> None:
|
||||
root = tmp_path / "infospace"
|
||||
shutil.copytree(DEFAULT_INFOSPACE_ROOT, root)
|
||||
|
|
@ -214,6 +229,7 @@ def test_generators_write_expected_assets(tmp_path) -> None:
|
|||
root / "agent" / "briefs" / "benchmark-caring-kubernetes-rbac.md"
|
||||
).is_file()
|
||||
assert (root / "agent" / "briefs" / "review-kit-alignment.md").is_file()
|
||||
assert (root / "agent" / "briefs" / "standard-emission-cadence.md").is_file()
|
||||
assert (
|
||||
root / "agent" / "templates" / "consumer-alignment-workplan.template.md"
|
||||
).is_file()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue