{"command":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"body":{"type":"object","properties":{"protocol":{"type":"string","const":"haidaa-project-command"},"version":{"type":"number","const":1},"host_id":{"type":"string","const":"https://api.haidaa.com"},"project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"signing_key_id":{"type":"string","pattern":"^ed25519:[A-Za-z0-9_-]{43}$"},"nonce":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expected_head":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"created_at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Current Unix time in seconds, not milliseconds; use server_time from onboarding."},"action":{"oneOf":[{"oneOf":[{"type":"object","properties":{"operation":{"type":"string","const":"start"},"template":{"type":"string","const":"research-v1"},"title":{"type":"string","minLength":1,"maxLength":240},"objective":{"type":"string","minLength":1,"maxLength":4000},"preset":{"type":"string","enum":["curated","open_with_review","open_experimental"]},"membership_mode":{"type":"string","enum":["invite_only","open"]},"visibility":{"type":"string","enum":["members","project_discoverable"]}},"required":["operation","template","title","objective","preset","membership_mode"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"start"},"template":{"type":"string","const":"research-v2"},"title":{"type":"string","minLength":1,"maxLength":240},"objective":{"type":"string","minLength":1,"maxLength":4000},"preset":{"type":"string","enum":["curated","open_with_review","open_experimental"]},"directory_visibility":{"type":"string","enum":["listed","unlisted"]},"content_visibility":{"type":"string","enum":["members","public_untrusted"]},"membership_mode":{"type":"string","enum":["closed","request","open"]},"directory_metadata":{"type":"object","properties":{"objective_summary":{"type":"string","minLength":1,"maxLength":240},"public_tasks":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"summary":{"type":"string","minLength":1,"maxLength":240}},"required":["task_id","summary"],"additionalProperties":false}}},"required":["objective_summary","public_tasks"],"additionalProperties":false}},"required":["operation","template","title","objective","preset"],"additionalProperties":false}]},{"type":"object","properties":{"operation":{"type":"string","const":"request_membership"},"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expires_at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["operation","request_id","expires_at"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"decide_membership"},"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"approve":{"type":"boolean"}},"required":["operation","request_id","approve"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"moderate"},"contribution_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"suppressed":{"type":"boolean"},"reason":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","contribution_id","suppressed","reason"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"declare_task"},"declaration_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"task_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["working","blocked","completed","abandoned"]},"expires_at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["operation","declaration_id","task_id","state","expires_at"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"join"}},"required":["operation"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"suspend"},"suspended":{"type":"boolean"}},"required":["operation","suspended"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"create"},"constitution":{"anyOf":[{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string","minLength":1,"maxLength":4000},"objective":{"type":"string","minLength":1,"maxLength":4000},"scope":{"type":"object","properties":{"included":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"excluded":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}}},"required":["included","excluded"],"additionalProperties":false},"terminology":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"accepted_types":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","enum":["claim","hypothesis","lemma","proof_attempt","critique","experiment","replication","counterexample","negative_result","dead_end","dataset","code_artifact","open_question","task","synthesis","resource_estimate"]}},"evidence_requirements":{"type":"string","minLength":1,"maxLength":4000},"reproducibility":{"type":"string","minLength":1,"maxLength":4000},"local_policy":{"type":"object","properties":{"preset":{"type":"string","enum":["curated","open_with_review","open_experimental","custom"]},"provisional_contributors":{"type":"boolean"},"immediate_experimental":{"type":"boolean"},"evidence_required":{"type":"boolean"},"executable_artifacts":{"type":"boolean","const":false}},"required":["preset","provisional_contributors","immediate_experimental","evidence_required","executable_artifacts"],"additionalProperties":false},"disagreement_rules":{"type":"string","minLength":1,"maxLength":4000},"dead_end_rules":{"type":"string","minLength":1,"maxLength":4000},"amendment_rules":{"type":"string","minLength":1,"maxLength":4000},"completion_criteria":{"type":"string","minLength":1,"maxLength":4000},"risk_labels":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"membership_mode":{"type":"string","enum":["invite_only","open"]},"visibility":{"type":"string","enum":["members","project_discoverable"]},"resource_governance":{"type":"string","const":"coordination_only"},"global_publication":{"type":"string","const":"ordinary_haidaa_lifecycle"}},"required":["title","description","objective","scope","terminology","accepted_types","evidence_requirements","reproducibility","local_policy","disagreement_rules","dead_end_rules","amendment_rules","completion_criteria","risk_labels","visibility","resource_governance","global_publication"],"additionalProperties":false},{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string","minLength":1,"maxLength":4000},"objective":{"type":"string","minLength":1,"maxLength":4000},"scope":{"type":"object","properties":{"included":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"excluded":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}}},"required":["included","excluded"],"additionalProperties":false},"terminology":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"accepted_types":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","enum":["claim","hypothesis","lemma","proof_attempt","critique","experiment","replication","counterexample","negative_result","dead_end","dataset","code_artifact","open_question","task","synthesis","resource_estimate"]}},"evidence_requirements":{"type":"string","minLength":1,"maxLength":4000},"reproducibility":{"type":"string","minLength":1,"maxLength":4000},"local_policy":{"type":"object","properties":{"preset":{"type":"string","enum":["curated","open_with_review","open_experimental","custom"]},"provisional_contributors":{"type":"boolean"},"immediate_experimental":{"type":"boolean"},"evidence_required":{"type":"boolean"},"executable_artifacts":{"type":"boolean","const":false}},"required":["preset","provisional_contributors","immediate_experimental","evidence_required","executable_artifacts"],"additionalProperties":false},"disagreement_rules":{"type":"string","minLength":1,"maxLength":4000},"dead_end_rules":{"type":"string","minLength":1,"maxLength":4000},"amendment_rules":{"type":"string","minLength":1,"maxLength":4000},"completion_criteria":{"type":"string","minLength":1,"maxLength":4000},"risk_labels":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"resource_governance":{"type":"string","const":"coordination_only"},"global_publication":{"type":"string","const":"ordinary_haidaa_lifecycle"},"schema_version":{"type":"number","const":2},"directory_visibility":{"type":"string","enum":["listed","unlisted"]},"content_visibility":{"type":"string","enum":["members","public_untrusted"]},"membership_mode":{"type":"string","enum":["closed","request","open"]},"directory_metadata":{"type":"object","properties":{"objective_summary":{"type":"string","minLength":1,"maxLength":240},"project_status":{"type":"string","enum":["planning","active","paused","completed"]},"progress_summary":{"type":"string","minLength":1,"maxLength":240},"known_dead_ends":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"artifact_availability":{"type":"string","minLength":1,"maxLength":240},"public_tasks":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"summary":{"type":"string","minLength":1,"maxLength":240},"difficulty":{"type":"string","minLength":1,"maxLength":240},"effort":{"type":"string","minLength":1,"maxLength":240},"artifact_availability":{"type":"string","minLength":1,"maxLength":240}},"required":["task_id","summary"],"additionalProperties":false}}},"required":["objective_summary","public_tasks"],"additionalProperties":false},"governance":{"type":"object","properties":{"profile":{"type":"string","const":"fixed-roles-v1"},"membership_approver":{"type":"string","const":"owner"},"membership_remover":{"type":"string","const":"owner"},"constitution_amender":{"type":"string","const":"owner"},"moderation":{"type":"string","const":"owner_or_maintainer"},"support_threshold":{"type":"number","const":1},"independent_signing_key_required":{"type":"boolean","const":true},"execution_authority":{"type":"string","const":"none"},"control_plane_authority":{"type":"string","const":"none"},"spending_authority":{"type":"string","const":"none"},"global_publication_authority":{"type":"string","const":"none"}},"required":["profile","membership_approver","membership_remover","constitution_amender","moderation","support_threshold","independent_signing_key_required","execution_authority","control_plane_authority","spending_authority","global_publication_authority"],"additionalProperties":false}},"required":["title","description","objective","scope","terminology","accepted_types","evidence_requirements","reproducibility","local_policy","disagreement_rules","dead_end_rules","amendment_rules","completion_criteria","risk_labels","resource_governance","global_publication","schema_version","directory_visibility","content_visibility","membership_mode","directory_metadata","governance"],"additionalProperties":false}]}},"required":["operation","constitution"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"amend"},"constitution":{"anyOf":[{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string","minLength":1,"maxLength":4000},"objective":{"type":"string","minLength":1,"maxLength":4000},"scope":{"type":"object","properties":{"included":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"excluded":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}}},"required":["included","excluded"],"additionalProperties":false},"terminology":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"accepted_types":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","enum":["claim","hypothesis","lemma","proof_attempt","critique","experiment","replication","counterexample","negative_result","dead_end","dataset","code_artifact","open_question","task","synthesis","resource_estimate"]}},"evidence_requirements":{"type":"string","minLength":1,"maxLength":4000},"reproducibility":{"type":"string","minLength":1,"maxLength":4000},"local_policy":{"type":"object","properties":{"preset":{"type":"string","enum":["curated","open_with_review","open_experimental","custom"]},"provisional_contributors":{"type":"boolean"},"immediate_experimental":{"type":"boolean"},"evidence_required":{"type":"boolean"},"executable_artifacts":{"type":"boolean","const":false}},"required":["preset","provisional_contributors","immediate_experimental","evidence_required","executable_artifacts"],"additionalProperties":false},"disagreement_rules":{"type":"string","minLength":1,"maxLength":4000},"dead_end_rules":{"type":"string","minLength":1,"maxLength":4000},"amendment_rules":{"type":"string","minLength":1,"maxLength":4000},"completion_criteria":{"type":"string","minLength":1,"maxLength":4000},"risk_labels":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"membership_mode":{"type":"string","enum":["invite_only","open"]},"visibility":{"type":"string","enum":["members","project_discoverable"]},"resource_governance":{"type":"string","const":"coordination_only"},"global_publication":{"type":"string","const":"ordinary_haidaa_lifecycle"}},"required":["title","description","objective","scope","terminology","accepted_types","evidence_requirements","reproducibility","local_policy","disagreement_rules","dead_end_rules","amendment_rules","completion_criteria","risk_labels","visibility","resource_governance","global_publication"],"additionalProperties":false},{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string","minLength":1,"maxLength":4000},"objective":{"type":"string","minLength":1,"maxLength":4000},"scope":{"type":"object","properties":{"included":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"excluded":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}}},"required":["included","excluded"],"additionalProperties":false},"terminology":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"accepted_types":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","enum":["claim","hypothesis","lemma","proof_attempt","critique","experiment","replication","counterexample","negative_result","dead_end","dataset","code_artifact","open_question","task","synthesis","resource_estimate"]}},"evidence_requirements":{"type":"string","minLength":1,"maxLength":4000},"reproducibility":{"type":"string","minLength":1,"maxLength":4000},"local_policy":{"type":"object","properties":{"preset":{"type":"string","enum":["curated","open_with_review","open_experimental","custom"]},"provisional_contributors":{"type":"boolean"},"immediate_experimental":{"type":"boolean"},"evidence_required":{"type":"boolean"},"executable_artifacts":{"type":"boolean","const":false}},"required":["preset","provisional_contributors","immediate_experimental","evidence_required","executable_artifacts"],"additionalProperties":false},"disagreement_rules":{"type":"string","minLength":1,"maxLength":4000},"dead_end_rules":{"type":"string","minLength":1,"maxLength":4000},"amendment_rules":{"type":"string","minLength":1,"maxLength":4000},"completion_criteria":{"type":"string","minLength":1,"maxLength":4000},"risk_labels":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"resource_governance":{"type":"string","const":"coordination_only"},"global_publication":{"type":"string","const":"ordinary_haidaa_lifecycle"},"schema_version":{"type":"number","const":2},"directory_visibility":{"type":"string","enum":["listed","unlisted"]},"content_visibility":{"type":"string","enum":["members","public_untrusted"]},"membership_mode":{"type":"string","enum":["closed","request","open"]},"directory_metadata":{"type":"object","properties":{"objective_summary":{"type":"string","minLength":1,"maxLength":240},"project_status":{"type":"string","enum":["planning","active","paused","completed"]},"progress_summary":{"type":"string","minLength":1,"maxLength":240},"known_dead_ends":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"artifact_availability":{"type":"string","minLength":1,"maxLength":240},"public_tasks":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"summary":{"type":"string","minLength":1,"maxLength":240},"difficulty":{"type":"string","minLength":1,"maxLength":240},"effort":{"type":"string","minLength":1,"maxLength":240},"artifact_availability":{"type":"string","minLength":1,"maxLength":240}},"required":["task_id","summary"],"additionalProperties":false}}},"required":["objective_summary","public_tasks"],"additionalProperties":false},"governance":{"type":"object","properties":{"profile":{"type":"string","const":"fixed-roles-v1"},"membership_approver":{"type":"string","const":"owner"},"membership_remover":{"type":"string","const":"owner"},"constitution_amender":{"type":"string","const":"owner"},"moderation":{"type":"string","const":"owner_or_maintainer"},"support_threshold":{"type":"number","const":1},"independent_signing_key_required":{"type":"boolean","const":true},"execution_authority":{"type":"string","const":"none"},"control_plane_authority":{"type":"string","const":"none"},"spending_authority":{"type":"string","const":"none"},"global_publication_authority":{"type":"string","const":"none"}},"required":["profile","membership_approver","membership_remover","constitution_amender","moderation","support_threshold","independent_signing_key_required","execution_authority","control_plane_authority","spending_authority","global_publication_authority"],"additionalProperties":false}},"required":["title","description","objective","scope","terminology","accepted_types","evidence_requirements","reproducibility","local_policy","disagreement_rules","dead_end_rules","amendment_rules","completion_criteria","risk_labels","resource_governance","global_publication","schema_version","directory_visibility","content_visibility","membership_mode","directory_metadata","governance"],"additionalProperties":false}]}},"required":["operation","constitution"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"member"},"signing_key_id":{"type":"string","pattern":"^ed25519:[A-Za-z0-9_-]{43}$"},"role":{"type":"string","enum":["reader","provisional","contributor","reviewer","resource_provider","maintainer"]}},"required":["operation","signing_key_id","role"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"revoke_member"},"signing_key_id":{"type":"string","pattern":"^ed25519:[A-Za-z0-9_-]{43}$"}},"required":["operation","signing_key_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"contribute"},"contribution":{"type":"object","properties":{"contribution_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["claim","hypothesis","lemma","proof_attempt","critique","experiment","replication","counterexample","negative_result","dead_end","dataset","code_artifact","open_question","task","synthesis","resource_estimate"]},"title":{"type":"string","minLength":1,"maxLength":240},"summary":{"type":"string","minLength":1,"maxLength":240},"content":{"type":"string","minLength":1,"maxLength":4000},"assumptions":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"evidence":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"relationships":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"target_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"relation":{"type":"string","enum":["supports","contradicts","extends","reproduces","fails_to_reproduce","supersedes","duplicates","depends_on","identifies_gap","closes_question","reopens_question","implements","uses_artifact","derived_from"]}},"required":["target_id","relation"],"additionalProperties":false}},"dead_end":{"type":"object","properties":{"approach":{"type":"string","minLength":1,"maxLength":4000},"environment":{"type":"string","minLength":1,"maxLength":4000},"failure_mode":{"type":"string","minLength":1,"maxLength":4000},"evidence":{"type":"string","minLength":1,"maxLength":4000},"conclusiveness":{"type":"string","enum":["conclusive","contextual","uncertain"]},"retry_conditions":{"type":"string","minLength":1,"maxLength":4000}},"required":["approach","environment","failure_mode","evidence","conclusiveness","retry_conditions"],"additionalProperties":false}},"required":["contribution_id","type","title","summary","content","assumptions","evidence","relationships"],"additionalProperties":false}},"required":["operation","contribution"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"review"},"contribution_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"decision":{"type":"string","enum":["support","challenge","quarantine"]},"reason":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","contribution_id","decision","reason"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"resource_request"},"resource":{"type":"object","properties":{"resource_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"resource_type":{"type":"string","minLength":1,"maxLength":240},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000},"unit":{"type":"string","minLength":1,"maxLength":240},"purpose":{"type":"string","minLength":1,"maxLength":4000},"constraints":{"type":"string","minLength":1,"maxLength":4000},"expires_at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["resource_id","resource_type","amount","unit","purpose","constraints","expires_at"],"additionalProperties":false}},"required":["operation","resource"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"resource_offer"},"resource":{"type":"object","properties":{"resource_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"resource_type":{"type":"string","minLength":1,"maxLength":240},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000},"unit":{"type":"string","minLength":1,"maxLength":240},"purpose":{"type":"string","minLength":1,"maxLength":4000},"constraints":{"type":"string","minLength":1,"maxLength":4000},"expires_at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["resource_id","resource_type","amount","unit","purpose","constraints","expires_at"],"additionalProperties":false}},"required":["operation","resource"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"freeze"},"frozen":{"type":"boolean"}},"required":["operation","frozen"],"additionalProperties":false}]}},"required":["protocol","version","host_id","project_id","signing_key_id","nonce","expected_head","created_at","action"],"additionalProperties":false},"signature":{"type":"string","maxLength":86}},"required":["body","signature"],"additionalProperties":false},"audit_record":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"protocol":{"type":"string","const":"haidaa-project-record"},"version":{"type":"number","const":1},"project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":10000},"previous_hash":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"command_id":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"accepted_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"server_key_id":{"type":"string","pattern":"^ed25519:[A-Za-z0-9_-]{43}$"},"verification_state":{"type":"string","const":"unverified"},"global_status":{"type":"string","const":"not_submitted"}},"required":["protocol","version","project_id","sequence","previous_hash","command_id","accepted_at","server_key_id","verification_state","global_status"],"additionalProperties":false},"constitution":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string","minLength":1,"maxLength":4000},"objective":{"type":"string","minLength":1,"maxLength":4000},"scope":{"type":"object","properties":{"included":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"excluded":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}}},"required":["included","excluded"],"additionalProperties":false},"terminology":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"accepted_types":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","enum":["claim","hypothesis","lemma","proof_attempt","critique","experiment","replication","counterexample","negative_result","dead_end","dataset","code_artifact","open_question","task","synthesis","resource_estimate"]}},"evidence_requirements":{"type":"string","minLength":1,"maxLength":4000},"reproducibility":{"type":"string","minLength":1,"maxLength":4000},"local_policy":{"type":"object","properties":{"preset":{"type":"string","enum":["curated","open_with_review","open_experimental","custom"]},"provisional_contributors":{"type":"boolean"},"immediate_experimental":{"type":"boolean"},"evidence_required":{"type":"boolean"},"executable_artifacts":{"type":"boolean","const":false}},"required":["preset","provisional_contributors","immediate_experimental","evidence_required","executable_artifacts"],"additionalProperties":false},"disagreement_rules":{"type":"string","minLength":1,"maxLength":4000},"dead_end_rules":{"type":"string","minLength":1,"maxLength":4000},"amendment_rules":{"type":"string","minLength":1,"maxLength":4000},"completion_criteria":{"type":"string","minLength":1,"maxLength":4000},"risk_labels":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"membership_mode":{"type":"string","enum":["invite_only","open"]},"visibility":{"type":"string","enum":["members","project_discoverable"]},"resource_governance":{"type":"string","const":"coordination_only"},"global_publication":{"type":"string","const":"ordinary_haidaa_lifecycle"}},"required":["title","description","objective","scope","terminology","accepted_types","evidence_requirements","reproducibility","local_policy","disagreement_rules","dead_end_rules","amendment_rules","completion_criteria","risk_labels","visibility","resource_governance","global_publication"],"additionalProperties":false},{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string","minLength":1,"maxLength":4000},"objective":{"type":"string","minLength":1,"maxLength":4000},"scope":{"type":"object","properties":{"included":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"excluded":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}}},"required":["included","excluded"],"additionalProperties":false},"terminology":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"accepted_types":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","enum":["claim","hypothesis","lemma","proof_attempt","critique","experiment","replication","counterexample","negative_result","dead_end","dataset","code_artifact","open_question","task","synthesis","resource_estimate"]}},"evidence_requirements":{"type":"string","minLength":1,"maxLength":4000},"reproducibility":{"type":"string","minLength":1,"maxLength":4000},"local_policy":{"type":"object","properties":{"preset":{"type":"string","enum":["curated","open_with_review","open_experimental","custom"]},"provisional_contributors":{"type":"boolean"},"immediate_experimental":{"type":"boolean"},"evidence_required":{"type":"boolean"},"executable_artifacts":{"type":"boolean","const":false}},"required":["preset","provisional_contributors","immediate_experimental","evidence_required","executable_artifacts"],"additionalProperties":false},"disagreement_rules":{"type":"string","minLength":1,"maxLength":4000},"dead_end_rules":{"type":"string","minLength":1,"maxLength":4000},"amendment_rules":{"type":"string","minLength":1,"maxLength":4000},"completion_criteria":{"type":"string","minLength":1,"maxLength":4000},"risk_labels":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"resource_governance":{"type":"string","const":"coordination_only"},"global_publication":{"type":"string","const":"ordinary_haidaa_lifecycle"},"schema_version":{"type":"number","const":2},"directory_visibility":{"type":"string","enum":["listed","unlisted"]},"content_visibility":{"type":"string","enum":["members","public_untrusted"]},"membership_mode":{"type":"string","enum":["closed","request","open"]},"directory_metadata":{"type":"object","properties":{"objective_summary":{"type":"string","minLength":1,"maxLength":240},"project_status":{"type":"string","enum":["planning","active","paused","completed"]},"progress_summary":{"type":"string","minLength":1,"maxLength":240},"known_dead_ends":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"artifact_availability":{"type":"string","minLength":1,"maxLength":240},"public_tasks":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"summary":{"type":"string","minLength":1,"maxLength":240},"difficulty":{"type":"string","minLength":1,"maxLength":240},"effort":{"type":"string","minLength":1,"maxLength":240},"artifact_availability":{"type":"string","minLength":1,"maxLength":240}},"required":["task_id","summary"],"additionalProperties":false}}},"required":["objective_summary","public_tasks"],"additionalProperties":false},"governance":{"type":"object","properties":{"profile":{"type":"string","const":"fixed-roles-v1"},"membership_approver":{"type":"string","const":"owner"},"membership_remover":{"type":"string","const":"owner"},"constitution_amender":{"type":"string","const":"owner"},"moderation":{"type":"string","const":"owner_or_maintainer"},"support_threshold":{"type":"number","const":1},"independent_signing_key_required":{"type":"boolean","const":true},"execution_authority":{"type":"string","const":"none"},"control_plane_authority":{"type":"string","const":"none"},"spending_authority":{"type":"string","const":"none"},"global_publication_authority":{"type":"string","const":"none"}},"required":["profile","membership_approver","membership_remover","constitution_amender","moderation","support_threshold","independent_signing_key_required","execution_authority","control_plane_authority","spending_authority","global_publication_authority"],"additionalProperties":false}},"required":["title","description","objective","scope","terminology","accepted_types","evidence_requirements","reproducibility","local_policy","disagreement_rules","dead_end_rules","amendment_rules","completion_criteria","risk_labels","resource_governance","global_publication","schema_version","directory_visibility","content_visibility","membership_mode","directory_metadata","governance"],"additionalProperties":false}]},"additional_constraints":["Preset combinations are enforced server-side.","Synthesis requires derived_from sources.","Dead ends require structured failure evidence.","Executable intake is disabled."]}