Reconcile legacy ContractClock receipt schema
This commit is contained in:
@@ -26,7 +26,7 @@ def test_full_stack_product_contract_card_and_manifest():
|
||||
frontend = (ROOT / "frontend" / "src" / "App.jsx").read_text(encoding="utf-8")
|
||||
a2a_client = (ROOT / "frontend" / "src" / "a2a.js").read_text(encoding="utf-8")
|
||||
|
||||
assert "version: 0.1.6" in manifest
|
||||
assert "version: 0.1.7" in manifest
|
||||
assert "public: false" in manifest
|
||||
assert "frontend:" in manifest and "mount: /app" in manifest
|
||||
assert "resources:" in manifest and "databases:" in manifest
|
||||
@@ -44,7 +44,7 @@ def test_full_stack_product_contract_card_and_manifest():
|
||||
assert migrations and all(path.read_text(encoding="utf-8").strip() for path in migrations)
|
||||
|
||||
card = load_local_project(ROOT).agent_cls().card()
|
||||
assert card.version == "0.1.6"
|
||||
assert card.version == "0.1.7"
|
||||
skill_names = {skill.name for skill in card.skills}
|
||||
assert {"analyze_contract", "get_contract_deadlines", "analyze_contract_upload_base64", "analyze_contract_file"} <= skill_names
|
||||
analyze_schema = next(skill.input_schema for skill in card.skills if skill.name == "analyze_contract")
|
||||
@@ -58,6 +58,13 @@ def test_full_stack_product_contract_card_and_manifest():
|
||||
assert databases[0].migrations.path == "db/migrations"
|
||||
assert card.mcp_endpoint == "/mcp"
|
||||
|
||||
reconciliation = (ROOT / "db" / "migrations" / "002_reconcile_execution_receipts.sql").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
assert "ADD COLUMN IF NOT EXISTS tool_name" in reconciliation
|
||||
assert "COALESCE(tool_name, skill_name)" in reconciliation
|
||||
assert "ALTER COLUMN input_hash SET NOT NULL" in reconciliation
|
||||
|
||||
|
||||
def test_explicit_date_only_success_and_failure():
|
||||
module = load_agent_module()
|
||||
|
||||
Reference in New Issue
Block a user