{"data":[{"id":"bf061d53-ab18-4ef3-9ec0-5cb77b11b45e","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/isolated-auth-bootstrap-recovery","reason":"pull_request_checks_pending","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3085,"terminal":false,"missionId":"b5e87299-34de-41b8-b8da-fb2747c62378","operation":"execute_mission","proofGate":"repair_mission_waiting_for_gate","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":1710,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1200,"approvedPlanMs":0,"missionSetupMs":1130,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":412,"ledgerReconcileMs":0,"lineageReconcileMs":718,"resolvePreflightMs":1130,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":412,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request after the exact-head KnockLaunch Gate changes state.","receiptRef":{"mode":"full","missionId":"b5e87299-34de-41b8-b8da-fb2747c62378"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1970,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:33:04.221808+00:00","proof_gate":"repair_mission_waiting_for_gate","source_sha":null,"external_id":"3085","receipt_type":"execute_mission","idempotency_key":"mission:b5e87299-34de-41b8-b8da-fb2747c62378:execute_mission:repair_mission_waiting_for_gate:current-generation","mission_step_id":"b222b0c1-3176-43ae-856c-137ab34686a3","command_center_event_id":"b5e87299-34de-41b8-b8da-fb2747c62378"},{"id":"eecfec04-7018-43a0-9a11-b40ac767341a","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/isolated-auth-bootstrap-recovery","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3085,"terminal":false,"missionId":"b5e87299-34de-41b8-b8da-fb2747c62378","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"ec1e231e17d0b08da2e3a194e12dadc0820b69d2","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":9498,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1198,"approvedPlanMs":0,"missionSetupMs":787,"providerAuthMs":0,"shipAndProveMs":7584,"ledgerPrepareMs":339,"ledgerReconcileMs":0,"lineageReconcileMs":448,"resolvePreflightMs":787,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":339,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"b5e87299-34de-41b8-b8da-fb2747c62378"},"performance":null,"deploymentId":"forgejo-main-ec1e231e17d0","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2631,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:38:03.50422+00:00","proof_gate":"canonical_release_dispatched","source_sha":"ec1e231e17d0b08da2e3a194e12dadc0820b69d2","external_id":"forgejo-main-ec1e231e17d0","receipt_type":"execute_mission","idempotency_key":"mission:b5e87299-34de-41b8-b8da-fb2747c62378:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"a06f904d-bb28-4207-83df-47d85ee612da","command_center_event_id":"b5e87299-34de-41b8-b8da-fb2747c62378"},{"id":"8ebeb622-8ad1-4605-8fa2-8459257f051a","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"runtime_proof","branch":"ai/proposal-send-sidecar-confirmation","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":2,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":null,"prNumber":3081,"terminal":false,"missionId":"25988480-2d31-4b73-a29c-0e0d7c8b756e","operation":"automatic_mission_resume","proofGate":"canonical_release_dispatched","sourceSha":"f32e502cb2198c701f36821a21473328b371840d","timingsMs":{"prReadinessMs":177,"approvedPlanMs":0,"shipAndProveMs":544,"repositoryMutationMs":0,"repositoryProviderMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"25988480-2d31-4b73-a29c-0e0d7c8b756e"},"performance":null,"deploymentId":"forgejo-main-f32e502cb219","releaseState":"verified","workflowRunId":9482,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1621,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:27:18.097754+00:00","proof_gate":"canonical_release_dispatched","source_sha":null,"external_id":"3081","receipt_type":"automatic_mission_resume","idempotency_key":"mission:25988480-2d31-4b73-a29c-0e0d7c8b756e:automatic-mission-resume:3081:canonical_release_dispatched","mission_step_id":"31c1d457-ecb5-47e2-8974-fc17fbd44419","command_center_event_id":"25988480-2d31-4b73-a29c-0e0d7c8b756e"},{"id":"bbd68833-3770-455e-8bde-d6103081f465","source":"cc-execution","status":"no_change","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f0b37e68dfc6","reason":null,"status":"no_change","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a","operation":"execute_mission","proofGate":"repair_mission_prepared","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":665,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":403,"providerAuthMs":0,"ledgerPrepareMs":301,"ledgerReconcileMs":0,"lineageReconcileMs":102,"resolvePreflightMs":403,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":301,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"pull_request_required","receiptRef":{"mode":"full","missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1386,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:59:45.890514+00:00","proof_gate":"repair_mission_prepared","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:f0b37e68-dfc6-435a-b530-e0f6e02d4e8a:execute_mission:repair_mission_prepared:current-generation","mission_step_id":"774cb8fe-3e2d-4fc2-9495-f84b47169582","command_center_event_id":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},{"id":"6b520600-51cb-4fbc-96eb-9db986e1df48","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/big-papis-active-tenant-boundary","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3086,"terminal":false,"missionId":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":13636,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1590,"missionSetupMs":414,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":414,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":414,"repositoryMutationMs":12046,"repositoryProviderMs":12046,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":5875,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":414,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":6171},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3246,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:42:36.463136+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3086","receipt_type":"execute_mission","idempotency_key":"mission:55bc1311-bc21-4599-bd8d-9105fcd9ebbd:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"efb7dae5-dd08-480b-bae1-775fa7618cea","command_center_event_id":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd"},{"id":"ed63e42d-3ab5-4991-a80e-ea7cbc972d2c","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/proposal-send-sidecar-runtime-fix","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"829196b3-7186-48aa-92c2-ea76fabc8aed","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":386,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":441,"providerAuthMs":0,"ledgerPrepareMs":441,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":441,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":441,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"829196b3-7186-48aa-92c2-ea76fabc8aed"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5709,"likelyAffectedFiles":["src/PrivateAppShell.tsx","config/cloudflare-native-frontend-build.json","scripts/cloudflare-native-version-deploy.mjs","src/__tests__/contracts/canonical-production-release-status.test.ts","scripts/cloudflare-native-verify.mjs","scripts/verify-production-contracts.mjs","scripts/verify-production-identities.mjs","scripts/production-release-targets.json","scripts/resolve-production-workflow-run.mjs","scripts/validate-production-release-identities.mjs","scripts/visual-witness-hosted-runner/src/frontend-build-entrypoint.mjs","scripts/visual-witness-hosted-runner/src/frontend-build-service.mjs"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:43:28.188104+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:829196b3-7186-48aa-92c2-ea76fabc8aed:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"a0e31b4a-112a-4b84-992b-358fdd55eb2f","command_center_event_id":"829196b3-7186-48aa-92c2-ea76fabc8aed"},{"id":"08c6575f-281d-4576-ab0f-020d3ed6842a","source":"cc-execution","status":"retryable","payload":{"ok":false,"jobId":null,"phase":"pull_request","branch":"ai/big-papis-active-tenant-boundary","reason":"pull_request_checks_failed","status":"retryable","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3086,"terminal":false,"missionId":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd","operation":"execute_mission","proofGate":"repair_mission_pr_ready_retryable","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":4631,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":3264,"approvedPlanMs":0,"missionSetupMs":5274,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":272,"ledgerReconcileMs":0,"lineageReconcileMs":5002,"resolvePreflightMs":5274,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":272,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create a replacement branch or PR.","receiptRef":{"mode":"full","missionId":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2066,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:44:09.610604+00:00","proof_gate":"repair_mission_pr_ready_retryable","source_sha":null,"external_id":"3086","receipt_type":"execute_mission","idempotency_key":"mission:55bc1311-bc21-4599-bd8d-9105fcd9ebbd:execute_mission:repair_mission_pr_ready_retryable:current-generation","mission_step_id":"efb7dae5-dd08-480b-bae1-775fa7618cea","command_center_event_id":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd"},{"id":"b4a1adf1-df39-4e44-8a9a-501da6041851","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"helper-closed","satisfied":false,"statement":"kl_readable_tenant_storage_bucket is not directly executable by PUBLIC, anon, or authenticated.","proofConditionIds":["repo","runtime","advisor"]},{"id":"callers-preserved","satisfied":true,"statement":"kl_assign_readable_tenant_storage_bucket and kl_tenant_storage_bucket remain present and functional call paths.","proofConditionIds":["runtime"]}],"satisfied":false,"constraints":[{"id":"scope","satisfied":false,"statement":"Do not change kl_tenant_storage_bucket grants, storage policies, function bodies, triggers, or other RPCs.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":false,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":false,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":null,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":null,"repositoryProofPath":null,"requestContractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"required","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":false,"repositoryProofSourceSha":null},"required":true,"satisfied":false},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":["repository"],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:02:40.422993+00:00","proof_gate":"request_contract_pending","source_sha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:3643a564-81d7-4c52-8e41-c4354183f7c9:request-contract:cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3:5ee5d758bdb8d71d86d8d25e02674183dae610f0:pending:repository","mission_step_id":"9ce3e25f-5fe9-45e2-985e-0fde5426c6bc","command_center_event_id":"3643a564-81d7-4c52-8e41-c4354183f7c9"},{"id":"d5ba3903-ff3f-4439-a8d8-19700ff5bade","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"anon-closed","satisfied":false,"statement":"barbershop_tenant_access and barbershop_tenant_owner are no longer executable by anon or PUBLIC.","proofConditionIds":["repo","runtime","advisor"]},{"id":"auth-preserved","satisfied":true,"statement":"authenticated and service_role retain EXECUTE on both helpers and existing RLS references remain intact.","proofConditionIds":["runtime"]}],"satisfied":false,"constraints":[{"id":"scope","satisfied":false,"statement":"Do not change function bodies, RLS policies, barbershop behavior, or any other function grants.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":false,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":false,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":null,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":null,"repositoryProofPath":null,"requestContractHash":"fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"required","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":false,"repositoryProofSourceSha":null},"required":true,"satisfied":false},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":["repository"],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:04:31.443194+00:00","proof_gate":"request_contract_pending","source_sha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:f0b88042-7665-45be-9efb-8d9b3849dfd0:request-contract:fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10:66841c5ecffefcb5fecf50844c5ba8ddc7a33216:pending:repository","mission_step_id":"56296fad-5b44-40e7-97a2-dbaa9e9b3d5c","command_center_event_id":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},{"id":"5d95d112-b6d2-45a4-93eb-433cf73571d6","source":"forgejo","status":"waiting","payload":{"branch":"ai/auth-only-rpc-anon-hardening","prNumber":3106,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"36051880216d2f46588952b54eef50ed89c83b21","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:07:21.303519+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"36051880216d2f46588952b54eef50ed89c83b21","external_id":"3106","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:merged-pr:3106:36051880216d2f46588952b54eef50ed89c83b21","mission_step_id":"7c3bb05b-3d92-464b-9478-4395b89bf91d","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"35154618-a5a9-48e7-b8ef-d6e0cc5222c1","source":"forgejo","status":"waiting","payload":{"branch":"ai/frontend-release-convergence","prNumber":3128,"nextAction":null,"mergeCommitSha":"6649acce0e0109ec2bf02d1d7d43e93154368306","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:08:44.429159+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"6649acce0e0109ec2bf02d1d7d43e93154368306","external_id":"3128","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:0b172db1-767c-43d5-be7c-9a7a485cb87a:merged-pr:3128:6649acce0e0109ec2bf02d1d7d43e93154368306","mission_step_id":"d5c49a86-8973-4f05-8786-63d6a1115854","command_center_event_id":"0b172db1-767c-43d5-be7c-9a7a485cb87a"},{"id":"4f6e2c92-212a-4fec-b6e9-ec5b07919164","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[],"branch":"ai/objective-first-repair-61f59d617905","writes":[],"patches":[],"version":1,"approved":true,"missionId":"61f59d61-7905-4a42-9e44-917395c866f0","objective":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["supabase/functions/pcg-google-drive-media/index.ts"],"anchored_edits":[{"find":"  const tenantId=clean(url.searchParams.get(\"tenant\")),fileId=clean(url.searchParams.get(\"file\")),sig=clean(url.searchParams.get(\"sig\"));","path":"supabase/functions/pcg-google-drive-media/index.ts","replace":"  const tenantId=clean(url.searchParams.get(\"tenant\")),fileId=clean(url.searchParams.get(\"file\")),sig=clean(url.searchParams.get(\"sig\")),variant=clean(url.searchParams.get(\"variant\")).toLowerCase();"}],"implementation":{"files":[],"writes":[]},"requestContract":{"valid":true,"intent":{"evidence":["Owner requested optimized Drive-backed image delivery."],"confidence":1,"compilation":{"stages":["owner_intent","scope","live_state","mutation_authority","required_proof","release_plan"],"version":2,"explicit":true,"objective":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","proofKinds":["runtime"]},"rawUtterance":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","wordingChanged":false,"canonicalIntent":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"outcome-1","statement":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]}],"objective":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","constraints":[{"id":"drive-master","statement":"Do not change Anthony-owned Google Drive as the image master store.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-production","kind":"runtime","claim":"The deployed pcg-google-drive-media serveMedia path parses the variant parameter while preserving original media delivery.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[]},"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":null,"ownerApproved":true,"releaseIntent":null,"sourceTargets":["supabase/functions/pcg-google-drive-media/index.ts"],"requestContract":{"valid":true,"intent":{"evidence":["Owner requested optimized Drive-backed image delivery."],"confidence":1,"compilation":{"stages":["owner_intent","scope","live_state","mutation_authority","required_proof","release_plan"],"version":2,"explicit":true,"objective":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","proofKinds":["runtime"]},"rawUtterance":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","wordingChanged":false,"canonicalIntent":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"outcome-1","statement":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]}],"objective":"Extend PCG Google Drive media delivery to parse a signed `variant` query parameter in serveMedia so the endpoint can support optimized preview delivery while retaining current original behavior. This is a bounded preparatory change only; no storage ownership change and no credential changes. Ship through canonical Gate, merge, deploy the affected Supabase Edge function, and prove runtime.","constraints":[{"id":"drive-master","statement":"Do not change Anthony-owned Google Drive as the image master store.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-production","kind":"runtime","claim":"The deployed pcg-google-drive-media serveMedia path parses the variant parameter while preserving original media delivery.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[]},"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"7c0a0ce40eddce0fee61c08849e90c199fc95442ee26ac8a076a448229d14739","replayCount":0,"serializedBytes":8941},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-30T01:25:12.385859+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:61f59d61-7905-4a42-9e44-917395c866f0:repository-mutation-intent:7c0a0ce40eddce0fee61c08849e90c199fc95442ee26ac8a076a448229d14739:0","mission_step_id":"e98e4eb6-9b77-4f8a-9249-81d9c30a4a68","command_center_event_id":"61f59d61-7905-4a42-9e44-917395c866f0"},{"id":"1b49020a-9bf6-48c1-9994-2a6c99542478","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/big-papis-active-tenant-boundary","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3086,"terminal":false,"missionId":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"54d6f536fd6c30500bbea39412cc008730f9503f","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":10436,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":660,"approvedPlanMs":0,"missionSetupMs":687,"providerAuthMs":0,"shipAndProveMs":9362,"ledgerPrepareMs":358,"ledgerReconcileMs":0,"lineageReconcileMs":329,"resolvePreflightMs":687,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":358,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd"},"performance":null,"deploymentId":"forgejo-main-54d6f536fd6c","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2565,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:49:10.330307+00:00","proof_gate":"canonical_release_dispatched","source_sha":"54d6f536fd6c30500bbea39412cc008730f9503f","external_id":"forgejo-main-54d6f536fd6c","receipt_type":"execute_mission","idempotency_key":"mission:55bc1311-bc21-4599-bd8d-9105fcd9ebbd:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"8f796e18-5390-4e52-b272-594839d228de","command_center_event_id":"55bc1311-bc21-4599-bd8d-9105fcd9ebbd"},{"id":"161d40b8-ce64-4417-b43b-c0d79d442d72","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/proposal-branded-delivery-email","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3087,"terminal":false,"missionId":"f9372123-3801-4b80-b211-4489c808236d","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":13379,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1855,"missionSetupMs":341,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":341,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":341,"repositoryMutationMs":11524,"repositoryProviderMs":11524,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":5325,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":341,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":6199},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"f9372123-3801-4b80-b211-4489c808236d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3318,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:50:22.217262+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3087","receipt_type":"execute_mission","idempotency_key":"mission:f9372123-3801-4b80-b211-4489c808236d:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"4b1c0366-3000-442d-b4e1-f6891104aa0a","command_center_event_id":"f9372123-3801-4b80-b211-4489c808236d"},{"id":"d3cf37f1-bb83-4955-a402-dc8196d8d5fa","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-367f5c4d3a45","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"367f5c4d-3a45-4a07-80e9-9eeb3929013b","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":6,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":346,"providerAuthMs":0,"ledgerPrepareMs":346,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":346,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":346,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"367f5c4d-3a45-4a07-80e9-9eeb3929013b"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5325,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T04:58:52.942578+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:367f5c4d-3a45-4a07-80e9-9eeb3929013b:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"06817d54-c0f7-4140-b942-b33d78916190","command_center_event_id":"367f5c4d-3a45-4a07-80e9-9eeb3929013b"},{"id":"30bd24d0-db37-4c51-aa20-8ed73ee0c3d3","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-367f5c4d3a45","reason":"anchored_edit_invalid","status":"blocked","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"367f5c4d-3a45-4a07-80e9-9eeb3929013b","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":2865,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":2865,"missionSetupMs":368,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":368,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":368,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":368,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"367f5c4d-3a45-4a07-80e9-9eeb3929013b"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1423,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T05:00:48.011891+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:367f5c4d-3a45-4a07-80e9-9eeb3929013b:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"08e3187b-7029-45c2-a435-bda6bfbfd50c","command_center_event_id":"367f5c4d-3a45-4a07-80e9-9eeb3929013b"},{"id":"587679f7-ff74-4b9d-b12c-c54696ddf4ea","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"helper-closed","satisfied":true,"statement":"kl_readable_tenant_storage_bucket is not directly executable by PUBLIC, anon, or authenticated.","proofConditionIds":["repo","runtime","advisor"]},{"id":"callers-preserved","satisfied":true,"statement":"kl_assign_readable_tenant_storage_bucket and kl_tenant_storage_bucket remain present and functional call paths.","proofConditionIds":["runtime"]}],"satisfied":true,"constraints":[{"id":"scope","satisfied":true,"statement":"Do not change kl_tenant_storage_bucket grants, storage policies, function bodies, triggers, or other RPCs.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":9599,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":true,"repositoryProofSourceSha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0"},"required":true,"satisfied":true},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:02:43.697751+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:3643a564-81d7-4c52-8e41-c4354183f7c9:request-contract:cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3:5ee5d758bdb8d71d86d8d25e02674183dae610f0:verified:","mission_step_id":"9ce3e25f-5fe9-45e2-985e-0fde5426c6bc","command_center_event_id":"3643a564-81d7-4c52-8e41-c4354183f7c9"},{"id":"03662507-5a0a-46c3-85a7-07a306702c53","source":"cc-execution","status":"blocked","payload":{"reason":"control_plane_maintenance_authorization_required","fingerprint":"ae022661db79f89f12897a24484abc3b7b549bc9433644e5838f292743196e5d"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-23T03:49:18.806602+00:00","proof_gate":"repository_mutation_intent_deterministic_failure","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent_blocked","idempotency_key":"mission:c1a357e5-3eae-42ed-9cd4-f6fde7e3673c:repository-mutation-intent-blocked:ae022661db79f89f12897a24484abc3b7b549bc9433644e5838f292743196e5d","mission_step_id":"32697721-e361-4e93-b7a8-f255e2748693","command_center_event_id":"c1a357e5-3eae-42ed-9cd4-f6fde7e3673c"},{"id":"fdfcd1d7-6855-4cdf-bfe0-a4f4b11bd5d3","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","frontend-cloudflare/live":"success"},"mainSha":"dbfd134d9962e4da24d79cfca4074355561fc2e8","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","frontend-cloudflare/live"],"sourceSha":"d807ba248f5b49c529e191b991bf031e1adccf5a","releaseState":"verified","sourceInMain":true,"compareStatus":"known_exact_protected_main_push_history","releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false},"releaseTargetStates":{"frontend":"success"},"requestContractHash":"195d6d2907e01b170285f1c096b336ab0bce38ae339bfea82085db6abb06b1ec","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9512","runId":9512,"status":"success","sourceSha":"d807ba248f5b49c529e191b991bf031e1adccf5a","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"frontend":"success"},"targetJobCount":7,"observedTargetStates":{"frontend":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":{"exact":true,"source":"exact_source_parent_diff_shared_release_owner_mapping","parentSha":"d97fc27362532c7baa89802f7ff628fb27051f5d","sourceSha":"d807ba248f5b49c529e191b991bf031e1adccf5a","changedPaths":["src/__tests__/contracts/tenantStartupSafety.test.ts","src/routes/ownerRoutes.tsx","src/__tests__/contracts/workspaceTenantBoundary.test.ts","src/components/WorkspaceTenantBoundary.tsx"],"changedPathCount":4,"independentOfCurrentMainCompare":true},"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T05:15:51.288929+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"d807ba248f5b49c529e191b991bf031e1adccf5a","external_id":null,"receipt_type":"canonical_release_status","idempotency_key":"mission:367f5c4d-3a45-4a07-80e9-9eeb3929013b:forgejo-release-status:d807ba248f5b49c529e191b991bf031e1adccf5a:verified:forgejo-main/source=success|forgejo-release/workflow=success|frontend-cloudflare/live=success","mission_step_id":"a6fb1fbb-f80c-4e41-b7f1-b451a4cb0486","command_center_event_id":"367f5c4d-3a45-4a07-80e9-9eeb3929013b"},{"id":"b69283a7-db73-41f3-8ad9-518fb875a5ee","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-43e2f7e560b8","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"43e2f7e5-60b8-45ff-85dd-b674ea5403bd","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":12,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":247,"providerAuthMs":0,"ledgerPrepareMs":247,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":247,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":247,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"43e2f7e5-60b8-45ff-85dd-b674ea5403bd"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5782,"likelyAffectedFiles":["src/__tests__/contracts/deterministic-business-operations.contract.test.ts","src/__tests__/contracts/knocklaunch-mail-platform.contract.test.ts","src/__tests__/contracts/platform-self-healing.test.ts","src/__tests__/contracts/supabaseMigrationReleaseWorkflow.contract.test.ts","config/capabilities/tenant-type-platform-primitive.json","config/platform-standards.json","config/capabilities/big-papis-proposal-workflow.json","scripts/resolve-production-workflow-run.mjs","config/capabilities/platform-application-registry.json","config/capabilities/platform-health.json","config/capabilities/tenant-workspace-ui-contract-v2.json","config/contracts/PREHISTORIC-001-TENANT-MEDIA.json"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T05:01:52.097799+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:43e2f7e5-60b8-45ff-85dd-b674ea5403bd:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"ddc40d48-ee92-4321-b8c3-98c558418d54","command_center_event_id":"43e2f7e5-60b8-45ff-85dd-b674ea5403bd"},{"id":"0a774800-4c01-4eb0-bef2-55ad1f76f6da","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-367f5c4d3a45","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3088,"terminal":false,"missionId":"367f5c4d-3a45-4a07-80e9-9eeb3929013b","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":5488,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1422,"missionSetupMs":596,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":346,"ledgerReconcileMs":0,"lineageReconcileMs":250,"resolvePreflightMs":596,"repositoryMutationMs":4066,"repositoryProviderMs":4066,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":3691,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":346,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":375},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"367f5c4d-3a45-4a07-80e9-9eeb3929013b"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3076,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T05:01:43.812979+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3088","receipt_type":"execute_mission","idempotency_key":"mission:367f5c4d-3a45-4a07-80e9-9eeb3929013b:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"08e3187b-7029-45c2-a435-bda6bfbfd50c","command_center_event_id":"367f5c4d-3a45-4a07-80e9-9eeb3929013b"},{"id":"66087d0c-7493-44ba-8998-4977ce7b3262","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-43e2f7e560b8","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3089,"terminal":false,"missionId":"43e2f7e5-60b8-45ff-85dd-b674ea5403bd","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":20224,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":2936,"missionSetupMs":293,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":293,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":293,"repositoryMutationMs":17288,"repositoryProviderMs":17288,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":7024,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":293,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":10264},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"43e2f7e5-60b8-45ff-85dd-b674ea5403bd"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3237,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T05:04:14.149202+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3089","receipt_type":"execute_mission","idempotency_key":"mission:43e2f7e5-60b8-45ff-85dd-b674ea5403bd:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"927fafbb-ea6c-4725-a5b5-0b4d70f4ddf2","command_center_event_id":"43e2f7e5-60b8-45ff-85dd-b674ea5403bd"},{"id":"e1862d85-bff6-4d3b-a30d-38ca4740bf1f","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-939e4c0960fe","reason":"anchored_edit_invalid","status":"blocked","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"939e4c09-60fe-4467-8290-139d312b31e0","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":1766,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1766,"missionSetupMs":309,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":309,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":309,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":309,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"939e4c09-60fe-4467-8290-139d312b31e0"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1425,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T05:19:56.567921+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:939e4c09-60fe-4467-8290-139d312b31e0:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"165ca839-c457-49f5-b095-a23866a6c5e9","command_center_event_id":"939e4c09-60fe-4467-8290-139d312b31e0"},{"id":"1eafeb0f-2b87-4113-a5fe-e84216dc8a8f","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"0f45522fffece57357f0d96ba07f196db8dcf4d6","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"constraints-deduped","satisfied":true,"statement":"The autogenerated duplicate UNIQUE constraints are removed while the explicitly named equivalent constraints remain valid.","proofConditionIds":["repo","runtime","advisor"]},{"id":"uniqueness-preserved","satisfied":true,"statement":"Academy enrollment user/course uniqueness and site_config config_key/tenant uniqueness remain enforced.","proofConditionIds":["runtime"]}],"satisfied":true,"constraints":[{"id":"scope","satisfied":true,"statement":"Do not alter columns, data, RLS, application code, or the canonical explicit constraints.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"b57cfdde0f63951f1664bccc8d27a2d48ee62410375278ea50352ac502e87308","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":9613,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"b57cfdde0f63951f1664bccc8d27a2d48ee62410375278ea50352ac502e87308","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":true,"repositoryProofSourceSha":"0f45522fffece57357f0d96ba07f196db8dcf4d6"},"required":true,"satisfied":true},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"b57cfdde0f63951f1664bccc8d27a2d48ee62410375278ea50352ac502e87308"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"b57cfdde0f63951f1664bccc8d27a2d48ee62410375278ea50352ac502e87308"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:11:37.963783+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"0f45522fffece57357f0d96ba07f196db8dcf4d6","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:368c6464-5d65-4c4c-bb5a-044004d6d3fe:request-contract:b57cfdde0f63951f1664bccc8d27a2d48ee62410375278ea50352ac502e87308:0f45522fffece57357f0d96ba07f196db8dcf4d6:verified:","mission_step_id":"d216a63d-4b48-410e-bdc9-68f70c7cab11","command_center_event_id":"368c6464-5d65-4c4c-bb5a-044004d6d3fe"},{"id":"b9f843a4-0f50-490f-b06d-ec9ded79d572","source":"cc-execution","status":"recorded","payload":{"objective":"Frontend-only repair in the shared private tenant shell. Add one installed-PWA escape navigation component owned by PrivateAppShell/TenantWorkspaceRuntime. In installed standalone mode only, render a compact floating navigation control. It must be pointer-draggable, clamped to safe viewport bounds, snap to the nearest safe left/right edge on release, persist its position across route changes/reloads, and stay clear of canonical bottom navigation/avatar safe zones. The control exposes Back, Home, and Reload. Back navigates through usable history. Home uses getTenantDashboardPathForTenant(activeTenant) and preserves the active tenant instead of sending an active tenant to generic tenant selection. Reload refreshes the exact current route. Ordinary browser desktop/mobile behavior remains unchanged. Keep the diff limited to shared frontend source plus focused tests. Ship one fresh ai branch, one PR, canonical KnockLaunch Gate, squash merge, Cloudflare frontend release.","tenantRef":"big-papis","receivedAt":"2026-09-23T03:57:59.989Z","fingerprint":"babbbda98af65296a29a95817973b8d2e8062d2636c24b90007b2520be0abd8c","workstreamRef":"bigpapis","conversationId":null,"canonicalBranch":null,"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Frontend-only repair in the shared private tenant shell. Add one installed-PWA escape navigation component owned by PrivateAppShell/TenantWorkspaceRuntime. In installed standalone mode only, render a compact floating navigation control. It must be pointer-draggable, clamped to safe viewport bounds, snap to the nearest safe left/right edge on release, persist its position across route changes/reloads, and stay clear of canonical bottom navigation/avatar safe zones. The control exposes Back, Home, and Reload. Back navigates through usable history. Home uses getTenantDashboardPathForTenant(activeTenant) and preserves the active tenant instead of sending an active tenant to generic tenant selection. Reload refreshes the exact current route. Ordinary browser desktop/mobile behavior remains unchanged. Keep the diff limited to shared frontend source plus focused tests. Ship one fresh ai branch, one PR, canonical KnockLaunch Gate, squash merge, Cloudflare frontend release.","wordingChanged":false,"canonicalIntent":"Frontend-only repair in the shared private tenant shell. Add one installed-PWA escape navigation component owned by PrivateAppShell/TenantWorkspaceRuntime. In installed standalone mode only, render a compact floating navigation control. It must be pointer-draggable, clamped to safe viewport bounds, snap to the nearest safe left/right edge on release, persist its position across route changes/reloads, and stay clear of canonical bottom navigation/avatar safe zones. The control exposes Back, Home, and Reload. Back navigates through usable history. Home uses getTenantDashboardPathForTenant(activeTenant) and preserves the active tenant instead of sending an active tenant to generic tenant selection. Reload refreshes the exact current route. Ordinary browser desktop/mobile behavior remains unchanged. Keep the diff limited to shared frontend source plus focused tests. Ship one fresh ai branch, one PR, canonical KnockLaunch Gate, squash merge, Cloudflare frontend release.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"legacy_derived","version":1,"outcomes":[{"id":"outcome-1","statement":"Frontend-only repair in the shared private tenant shell. Add one installed-PWA escape navigation component owned by PrivateAppShell/TenantWorkspaceRuntime. In installed standalone mode only, render a compact floating navigation control. It must be pointer-draggable, clamped to safe viewport bounds, snap to the nearest safe left/right edge on release, persist its position across route changes/reloads, and stay clear of canonical bottom navigation/avatar safe zones. The control exposes Back, Home, and Reload. Back navigates through usable history. Home uses getTenantDashboardPathForTenant(activeTenant) and preserves the active tenant instead of sending an active tenant to generic tenant selection. Reload refreshes the exact current route. Ordinary browser desktop/mobile behavior remains unchanged. Keep the diff limited to shared frontend source plus focused tests. Ship one fresh ai branch, one PR, canonical KnockLaunch Gate, squash merge, Cloudflare frontend release.","proofConditionIds":["proof-production"]}],"objective":"Frontend-only repair in the shared private tenant shell. Add one installed-PWA escape navigation component owned by PrivateAppShell/TenantWorkspaceRuntime. In installed standalone mode only, render a compact floating navigation control. It must be pointer-draggable, clamped to safe viewport bounds, snap to the nearest safe left/right edge on release, persist its position across route changes/reloads, and stay clear of canonical bottom navigation/avatar safe zones. The control exposes Back, Home, and Reload. Back navigates through usable history. Home uses getTenantDashboardPathForTenant(activeTenant) and preserves the active tenant instead of sending an active tenant to generic tenant selection. Reload refreshes the exact current route. Ordinary browser desktop/mobile behavior remains unchanged. Keep the diff limited to shared frontend source plus focused tests. Ship one fresh ai branch, one PR, canonical KnockLaunch Gate, squash merge, Cloudflare frontend release.","constraints":[{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["proof-production"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-production","kind":"runtime","claim":"Frontend-only repair in the shared private tenant shell. Add one installed-PWA escape navigation component owned by PrivateAppShell/TenantWorkspaceRuntime. In installed standalone mode only, render a compact floating navigation control. It must be pointer-draggable, clamped to safe viewport bounds, snap to the nearest safe left/right edge on release, persist its position across route changes/reloads, and stay clear of canonical bottom navigation/avatar safe zones. The control exposes Back, Home, and Reload. Back navigates through usable history. Home uses getTenantDashboardPathForTenant(activeTenant) and preserves the active tenant instead of sending an active tenant to generic tenant selection. Reload refreshes the exact current route. Ordinary browser desktop/mobile behavior remains unchanged. Keep the diff limited to shared frontend source plus focused tests. Ship one fresh ai branch, one PR, canonical KnockLaunch Gate, squash merge, Cloudflare frontend release.","route":"https://app.knocklaunch.app/big-papis/owner/calendar?bpMode=plan","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Frontend-only-repair-in-the-shared-private-tenant-shell.-Add-one-installed-PWA-escape-navigation-com","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":[],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["proof-production"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestedBranch":null,"conversationContext":null,"requestContractHash":"e8d1dbeb660fab61ad2b10467672c1b9536f0049bee22fd1aa48597004d5f5ea","requestContractRevision":1},"tenant_id":"766cfaa7-ac42-46c8-bbef-69d13268a29d","created_at":"2026-09-23T03:58:00.390549+00:00","proof_gate":"tenant_workstream_contribution_recorded","source_sha":null,"external_id":null,"receipt_type":"tenant_workstream_contribution","idempotency_key":"mission:c7d9e8d1-2eec-40e9-9b33-65f32e1bfb28:tenant-workstream-contribution:babbbda98af65296a29a95817973b8d2e8062d2636c24b90007b2520be0abd8c","mission_step_id":null,"command_center_event_id":"c7d9e8d1-2eec-40e9-9b33-65f32e1bfb28"},{"id":"766d89f3-2eec-425d-b384-afbbe1779f52","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-939e4c0960fe","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3090,"terminal":false,"missionId":"939e4c09-60fe-4467-8290-139d312b31e0","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":5265,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1979,"missionSetupMs":809,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":297,"ledgerReconcileMs":0,"lineageReconcileMs":512,"resolvePreflightMs":809,"repositoryMutationMs":3286,"repositoryProviderMs":3286,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2922,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":297,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":364},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"939e4c09-60fe-4467-8290-139d312b31e0"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3090,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T05:20:16.372877+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3090","receipt_type":"execute_mission","idempotency_key":"mission:939e4c09-60fe-4467-8290-139d312b31e0:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"165ca839-c457-49f5-b095-a23866a6c5e9","command_center_event_id":"939e4c09-60fe-4467-8290-139d312b31e0"},{"id":"78552e5d-912c-48bf-b691-cec96e27c92f","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","frontend-cloudflare/live":"success"},"mainSha":"8d75ade9d0b250010d68b219106f47892168e9b7","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","frontend-cloudflare/live"],"sourceSha":"dbfd134d9962e4da24d79cfca4074355561fc2e8","releaseState":"verified","sourceInMain":true,"compareStatus":"known_exact_protected_main_push_history","releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false},"releaseTargetStates":{"frontend":"success"},"requestContractHash":"fd6740b89b7366b8249d20d391d225fe53b8ee11ed763bf65402078ef0b81200","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9517","runId":9517,"status":"success","sourceSha":"dbfd134d9962e4da24d79cfca4074355561fc2e8","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"frontend":"success"},"targetJobCount":7,"observedTargetStates":{"frontend":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":{"exact":true,"source":"exact_source_parent_diff_shared_release_owner_mapping","parentSha":"d807ba248f5b49c529e191b991bf031e1adccf5a","sourceSha":"dbfd134d9962e4da24d79cfca4074355561fc2e8","changedPaths":["src/__tests__/contracts/platform-self-healing.test.ts","src/lib/platformSelfHealing.ts"],"changedPathCount":2,"independentOfCurrentMainCompare":true},"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:21:11.259856+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"dbfd134d9962e4da24d79cfca4074355561fc2e8","external_id":null,"receipt_type":"canonical_release_status","idempotency_key":"mission:43e2f7e5-60b8-45ff-85dd-b674ea5403bd:forgejo-release-status:dbfd134d9962e4da24d79cfca4074355561fc2e8:verified:forgejo-main/source=success|forgejo-release/workflow=success|frontend-cloudflare/live=success","mission_step_id":"61ff513f-341f-4222-abf8-add69fa75f92","command_center_event_id":"43e2f7e5-60b8-45ff-85dd-b674ea5403bd"},{"id":"f8966c88-5c4d-4483-a2f4-755fc8ffb0be","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-40e5629864e5","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":160,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":519,"providerAuthMs":0,"ledgerPrepareMs":519,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":519,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":519,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":4274,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:23:57.773548+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:40e56298-64e5-4c5f-9f44-905ac8a2b2f4:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"e8645a49-011b-4c40-bc32-a6891f9447e6","command_center_event_id":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},{"id":"b5c25d62-2268-40d7-841c-fe0f54c8b418","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"4e9635e09b1fc511c5131e6d4e6cfccdd9e9f37c","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"repo","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"5709764d98b5c2fe345d31442cec137cec04e3bd","prNumber":3109,"gateRunId":9616,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9616/jobs/1","mergeCommitSha":"4e9635e09b1fc511c5131e6d4e6cfccdd9e9f37c"}],"requestContractHash":"174b27c4da4a52a81c6fbdfce94b2fc58f0459ba3ebcb338353f48588de068f3","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:13:07.89495+00:00","proof_gate":"request_contract_repository_verified","source_sha":"4e9635e09b1fc511c5131e6d4e6cfccdd9e9f37c","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:a4211dd9-cca6-4ee6-9a45-12f9c8df53cf:request-contract-repository:174b27c4da4a52a81c6fbdfce94b2fc58f0459ba3ebcb338353f48588de068f3:4e9635e09b1fc511c5131e6d4e6cfccdd9e9f37c","mission_step_id":"a7e05fc0-a7e1-4bd0-9dfd-db6f47919022","command_center_event_id":"a4211dd9-cca6-4ee6-9a45-12f9c8df53cf"},{"id":"b250b80d-b16e-48d4-ad50-b9310b4b1f01","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-e318e078d06c","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"e318e078-d06c-4615-b595-d0245e558bd4","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":165,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":377,"providerAuthMs":0,"ledgerPrepareMs":377,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":377,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":377,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"e318e078-d06c-4615-b595-d0245e558bd4"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":4595,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:14:23.259266+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:e318e078-d06c-4615-b595-d0245e558bd4:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"556dccbf-823a-4129-bf58-48a7aba8393f","command_center_event_id":"e318e078-d06c-4615-b595-d0245e558bd4"},{"id":"e43b81e5-b471-4022-a5d6-eeae712016c9","source":"cc-execution","status":"retryable","payload":{"ok":false,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-a7108781af28","reason":"retryable_provider_transport:GET:The operation was aborted due to timeout","status":"retryable","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"a7108781-af28-48ef-be87-5340894a6b75","operation":"execute_mission","proofGate":"repair_mission_execution_retryable","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":17809,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":17809,"missionSetupMs":274,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":274,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":274,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":274,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"a7108781-af28-48ef-be87-5340894a6b75"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1561,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:45:41.34396+00:00","proof_gate":"repair_mission_execution_retryable","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:a7108781-af28-48ef-be87-5340894a6b75:execute_mission:repair_mission_execution_retryable:current-generation","mission_step_id":"82346dfc-a4e2-4672-8f4e-673522ba72da","command_center_event_id":"a7108781-af28-48ef-be87-5340894a6b75"},{"id":"1eb24067-6353-4155-b59b-4fe642ee34e5","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-40e5629864e5","reason":"anchored_edit_anchor_not_unique:.forgejo/workflows/knocklaunch.yml","status":"blocked","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":2238,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":2238,"missionSetupMs":1082,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":1082,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":1082,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":1082,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1517,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:25:09.670204+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:40e56298-64e5-4c5f-9f44-905ac8a2b2f4:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"9a26b04b-6b1b-42b6-87ff-afa9596644e5","command_center_event_id":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},{"id":"7346ec0e-a392-4abc-81f7-cb426f0af84f","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-a7108781af28","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"a7108781-af28-48ef-be87-5340894a6b75","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":7,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":872,"providerAuthMs":0,"ledgerPrepareMs":872,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":872,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":872,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"a7108781-af28-48ef-be87-5340894a6b75"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3510,"likelyAffectedFiles":["config/platform-standards.json","docs/PLATFORM_COHESION_STANDARD.md","config/capabilities/platform-health.json"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:44:37.08321+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:a7108781-af28-48ef-be87-5340894a6b75:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"3b43d3e5-fde4-4433-bc58-625c55ba1dbe","command_center_event_id":"a7108781-af28-48ef-be87-5340894a6b75"},{"id":"ed35df0d-acd3-4ec6-9d54-4401759a0ba7","source":"forgejo","status":"waiting","payload":{"branch":"ai/platform-branded-email-default","prNumber":3093,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"9a98d021aca06db94b200507b99f8644e363f0f7","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:45:51.842261+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"9a98d021aca06db94b200507b99f8644e363f0f7","external_id":"3093","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:merged-pr:3093:9a98d021aca06db94b200507b99f8644e363f0f7","mission_step_id":"90282122-a7dd-4dd9-a491-9c774f0d17ab","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"c0629e9f-a6af-459e-a9dd-5f13e61d85cd","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"9a98d021aca06db94b200507b99f8644e363f0f7","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"branded-default","satisfied":false,"statement":"Basic or bland customer-facing email bodies are automatically wrapped in a tenant-branded email-safe envelope before provider delivery.","proofConditionIds":["source-proof","runtime-proof"]},{"id":"rich-passthrough","satisfied":false,"statement":"Already-rich approved HTML email bodies pass through without double wrapping.","proofConditionIds":["source-proof","runtime-proof"]}],"satisfied":false,"constraints":[{"id":"preserve-delivery-contract","satisfied":false,"statement":"Preserve auth, tenant membership, DNC, idempotency, recipient, subject, attachments, reply-to, communication-mode, provider rail, and existing rich templates.","proofConditionIds":["source-proof"]},{"id":"no-live-email","satisfied":false,"statement":"Verification must not send a real customer email.","proofConditionIds":["runtime-proof"]},{"id":"capability-completeness","satisfied":false,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["source-proof","runtime-proof"]},{"id":"atomic-capability-lifecycle","satisfied":false,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["source-proof","runtime-proof"]}],"contractHash":"e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"source-proof","kind":"repository","evidence":{"reason":null,"gateRunId":null,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":false,"namedGateTestPath":null,"releaseTargetStates":{},"repositoryProofGate":null,"repositoryProofPath":null,"requestContractHash":"e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172","unsuccessfulTargets":[],"activeReleaseTargets":[],"allowedReleaseTargets":[],"repositoryProofStatus":"required","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":[],"migrationReleaseVerified":null,"repositoryConditionBound":false,"repositoryProofSourceSha":null},"required":true,"satisfied":false},{"id":"runtime-proof","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":false,"releaseTargetStates":{},"unsuccessfulTargets":[],"activeReleaseTargets":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"migrationReleaseVerified":null,"releaseRequestContractHash":"e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172"},"required":true,"satisfied":false}],"validationErrors":[],"pendingProofKinds":["repository","runtime"],"activeReleaseTargets":[]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":2},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:46:06.07488+00:00","proof_gate":"request_contract_pending","source_sha":"9a98d021aca06db94b200507b99f8644e363f0f7","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:request-contract:e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172:9a98d021aca06db94b200507b99f8644e363f0f7:pending:repository,runtime","mission_step_id":"83a7aa87-452e-48e1-83d5-c0365765d584","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"6cf85013-11b3-4227-99cb-415a5c6dc7a2","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"9a98d021aca06db94b200507b99f8644e363f0f7","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"source-proof","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"b5aae018dfd88ec9cba4330386cb41e04b58985b","prNumber":3093,"gateRunId":9563,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9563/jobs/1","mergeCommitSha":"9a98d021aca06db94b200507b99f8644e363f0f7"}],"requestContractHash":"e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:46:08.615233+00:00","proof_gate":"request_contract_repository_verified","source_sha":"9a98d021aca06db94b200507b99f8644e363f0f7","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:request-contract-repository:e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172:9a98d021aca06db94b200507b99f8644e363f0f7","mission_step_id":"83a7aa87-452e-48e1-83d5-c0365765d584","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"a40b45d0-e582-4ccd-bea6-fa4fcfc4afb4","source":"forgejo","status":"waiting","payload":{"branch":"ai/session-bound-policy-auth-hardening","prNumber":3110,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:16:20.780495+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","external_id":"3110","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:f804725e-6af7-4a39-9b64-1f8375509391:merged-pr:3110:c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","mission_step_id":"1f4cb291-c1b4-4bab-ab6e-7b9e61d3b6d6","command_center_event_id":"f804725e-6af7-4a39-9b64-1f8375509391"},{"id":"c4c715dc-c09e-4785-87b9-5f0d50696a08","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-40e5629864e5","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3091,"terminal":false,"missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":8079,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":3666,"missionSetupMs":703,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":309,"ledgerReconcileMs":0,"lineageReconcileMs":394,"resolvePreflightMs":703,"repositoryMutationMs":4413,"repositoryProviderMs":4413,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":3940,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":309,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":473},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3763,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:27:24.94078+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3091","receipt_type":"execute_mission","idempotency_key":"mission:40e56298-64e5-4c5f-9f44-905ac8a2b2f4:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"9a26b04b-6b1b-42b6-87ff-afa9596644e5","command_center_event_id":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},{"id":"28e1127c-748b-46af-9235-1ee1e8950a64","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-6c10d0b5485c","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"6c10d0b5-485c-4ea6-a507-e3484caca23a","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":15,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":302,"providerAuthMs":0,"ledgerPrepareMs":302,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":302,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":302,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"6c10d0b5-485c-4ea6-a507-e3484caca23a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5416,"likelyAffectedFiles":["config/platform-standards.json","src/__tests__/contracts/knocklaunch-mail-platform.contract.test.ts","src/__tests__/contracts/command-palette-platform-authority.contract.test.ts","config/capabilities/platform-application-registry.json","config/capabilities/platform-health.json","config/capabilities/tenant-type-platform-primitive.json","config/contracts/PREHISTORIC-001-TENANT-MEDIA.json","config/contracts/PREHISTORIC-002-UNIVERSAL-PROPOSALS.json","config/capabilities/tenant-brand-character.json","scripts/audit-platform-cohesion.mjs","scripts/cloudflare-native-platform-seo.mjs","scripts/generate-platform-cohesion-auth-proof-requirements.mjs"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:27:48.510253+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:6c10d0b5-485c-4ea6-a507-e3484caca23a:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"3d895d30-0f3f-48f8-8693-f091d4415bed","command_center_event_id":"6c10d0b5-485c-4ea6-a507-e3484caca23a"},{"id":"09a587cb-8de3-480c-9946-48d436336aa0","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-40e5629864e5","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3091,"terminal":false,"missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"7d91f923922607c53289cd68c7005e2d261902b1","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":13708,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":2023,"approvedPlanMs":0,"missionSetupMs":1501,"providerAuthMs":0,"shipAndProveMs":10123,"ledgerPrepareMs":398,"ledgerReconcileMs":0,"lineageReconcileMs":1103,"resolvePreflightMs":1501,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":398,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},"performance":null,"deploymentId":"forgejo-main-7d91f9239226","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":true,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2684,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:30:49.004674+00:00","proof_gate":"canonical_release_dispatched","source_sha":"7d91f923922607c53289cd68c7005e2d261902b1","external_id":"forgejo-main-7d91f9239226","receipt_type":"execute_mission","idempotency_key":"mission:40e56298-64e5-4c5f-9f44-905ac8a2b2f4:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"42b52552-f46f-408b-9253-57b222957b9b","command_center_event_id":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},{"id":"124b58af-65cd-48d2-be1b-ffb40c3df99e","source":"cc-execution","status":"retryable","payload":{"ok":false,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-6c10d0b5485c","reason":"retryable_provider_transport:GET:The operation was aborted due to timeout","status":"retryable","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"6c10d0b5-485c-4ea6-a507-e3484caca23a","operation":"execute_mission","proofGate":"repair_mission_execution_retryable","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":24215,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":24215,"missionSetupMs":264,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":264,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":264,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":264,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"6c10d0b5-485c-4ea6-a507-e3484caca23a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1561,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:30:58.801879+00:00","proof_gate":"repair_mission_execution_retryable","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:6c10d0b5-485c-4ea6-a507-e3484caca23a:execute_mission:repair_mission_execution_retryable:current-generation","mission_step_id":"aa09e0d8-9035-4de5-9adf-d349d9d25922","command_center_event_id":"6c10d0b5-485c-4ea6-a507-e3484caca23a"},{"id":"dc17d12c-7874-4972-85bb-0f6a24b02b75","source":"cc-execution","status":"recorded","payload":{"objective":"Build, ship, and activate the first-class KNOCKLAUNCH Card Grading application, with PCG as its first tenant, at /pcg/card-grading. Keep the domain card-specific and reusable across future card-grading tenants; do not add roofing concepts. Promote the current PCG grading capability into the platform application registry and reuse existing tenant auth, search, branding, profile/media controls, Google Workspace capability, and MODES primitives.\n\nImplement the complete grading operating system: compact desktop/mobile app shell; operations dashboard; customers/submitters; submissions/orders; receive/intake; cards; front/back/detail imaging; card identification; grader workstation using PCG's existing authoritative grading scale; criteria/subgrades only where PCG currently supports them; defects/notes; QC with approve/regrade/discrepancy; encapsulation/label; final imaging; immutable Cert Number finalization with privileged audited correction; shipping/fulfillment; deterministic tenant-scoped search; card/submission timeline; append-only audit events; role-safe tenant authorization; public-safe certificate projection; WMP stage projection; analytics/backlog/turnaround/throughput; and automatic population reporting from finalized certificates including “10 / Pop 1” representation.\n\nPersist the required tenant-scoped schema and guarded lifecycle: Created/Intake -> Received -> Imaging -> Identification -> Grading -> QC -> Encapsulation/Label -> Final Imaging -> Complete/Ready -> Shipped -> Delivered, plus explicit hold/rework/escalation reasons. Invalid transitions and missing prerequisites must fail closed. Submission/Order, Card, and Cert are distinct concepts; use established PCG terminology, especially Cert Number for a finalized graded card.\n\nFor PCG card-image originals, integrate with Anthony-owned Google Workspace/Drive through current connected-provider primitives where available; store provider IDs/metadata in KNOCKLAUNCH, never publish private Drive URLs, preserve image revision audit history, and use only supported safe delivery/cache derivatives. If the provider prerequisite is unavailable, show an explicit prerequisite state rather than breaking the grading workflow.\n\nCanonicalize or redirect existing PCG grading routes into this application without breaking current workflows. Preserve PCG branding and configurable profile/background/media controls. No CRM bleed, giant sparse cards, zoom traps, frozen scrolling, invented grading terminology, fake legacy values, or speculative third-party dependencies. Keep adapters clean for future eBay/QuickBooks without requiring them now.\n\nAdd focused tests for tenant isolation, route canonicalization, guarded transitions/prerequisites, cert immutability/public projection, population aggregation, audit history, and responsive application contracts. Use current protected main, canonical Gate, squash merge, affected-target release, and authenticated production proof on desktop and mobile. Done means the live application works end-to-end, not merely PR/merge.","tenantRef":"pcg","receivedAt":"2026-09-30T01:33:28.430Z","fingerprint":"41a737772bf19afd11e2ea387e21410bada730ae51a24e757caf396f7e44d294","workstreamRef":"pcg","conversationId":null,"canonicalBranch":null,"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"compilation":{"stages":["owner_intent","conversation_context","scope","live_state","mutation_authority","affected_systems","dependencies","risk_and_blast_radius","execution_tactics","required_proof","release_plan","recovery_plan"],"version":2,"explicit":true,"objective":"Build, ship, and activate the first-class KNOCKLAUNCH Card Grading application, with PCG as its first tenant, at /pcg/card-grading. Keep the domain card-specific and reusable across future card-grading tenants; do not add roofing concepts. Promote the current PCG grading capability into the platform application registry and reuse existing tenant auth, search, branding, profile/media controls, Google Workspace capability, and MODES primitives.\n\nImplement the complete grading operating system: compact desktop/mobile app shell; operations dashboard; customers/submitters; submissions/orders; receive/intake; cards; front/back/detail imaging; card identification; grader workstation using PCG's existing authoritative grading scale; criteria/subgrades only where PCG currently supports them; defects/notes; QC with approve/regrade/discrepancy; encapsulation/label; final imaging; immutable Cert Number finalization with privileged audited correction; shipping/fulfillment; deterministic tenant-scoped search; card/submission timeline; append-only audit events; role-safe tenant authorization; public-safe certificate projection; WMP stage projection; analytics/backlog/turnaround/throughput; and automatic population reporting from finalized certificates including “10 / Pop 1” representation.\n\nPersist the required tenant-scoped schema and guarded lifecycle: Created/Intake -> Received -> Imaging -> Identification -> Grading -> QC -> Encapsulation/Label -> Final Imaging -> Complete/Ready -> Shipped -> Delivered, plus explicit hold/rework/escalation reasons. Invalid transitions and missing prerequisites must fail closed. Submission/Order, Card, and Cert are distinct concepts; use established PCG terminology, especially Cert Number for a finalized graded card.\n\nFor PCG card-image originals, integrate with Anthony-owned Google Workspace/Drive through current connected-provider primitives where available; store provider IDs/metadata in KNOCKLAUNCH, never publish private Drive URLs, preserve image revision audit history, and use only supported safe delivery/cache derivatives. If the provider prerequisite is unavailable, show an explicit prerequisite state rather than breaking the grading workflow.\n\nCanonicalize or redirect existing PCG grading routes into this application without breaking current workflows. Preserve PCG branding and configurable profile/background/media controls. No CRM bleed, giant sparse cards, zoom traps, frozen scrolling, invented grading terminology, fake legacy values, or speculative third-party dependencies. Keep adapters clean for future eBay/QuickBooks without requiring them now.\n\nAdd focused tests for tenant isolation, route canonicalization, guarded transitions/prerequisites, cert immutability/public projection, population aggregation, audit history, and responsive application contracts. Use current protected main, canonical Gate, squash merge, affected-target release, and authenticated production proof on desktop and mobile. Done means the live application works end-to-end, not merely PR/merge.","proofKinds":["runtime","visual"],"adaptiveDomains":["intent","tenant_route_role_viewport","urgency_deadline","dependency_scope","risk_blast_radius","runner_capacity","queue_active_work","provider_failure_circuits","qa_scope","retry_recovery","release_ownership","proof_depth"],"expansionPolicy":"later_stages_may_only_narrow_or_expand_with_machine_readable_dependency_evidence","dynamicStatePolicy":"live_state_may_change_execution_tactics_but_never_owner_outcome_or_explicit_constraints","dynamicRefreshStages":["preflight","gate","release","runtime_proof"],"adaptiveCompilerVersion":"paul-adaptive-objective-v1","inheritedContextBlockingAuthority":false},"rawUtterance":"Build, ship, and activate the first-class KNOCKLAUNCH Card Grading application, with PCG as its first tenant, at /pcg/card-grading. Keep the domain card-specific and reusable across future card-grading tenants; do not add roofing concepts. Promote the current PCG grading capability into the platform application registry and reuse existing tenant auth, search, branding, profile/media controls, Google Workspace capability, and MODES primitives.\n\nImplement the complete grading operating system: compact desktop/mobile app shell; operations dashboard; customers/submitters; submissions/orders; receive/intake; cards; front/back/detail imaging; card identification; grader workstation using PCG's existing authoritative grading scale; criteria/subgrades only where PCG currently supports them; defects/notes; QC with approve/regrade/discrepancy; encapsulation/label; final imaging; immutable Cert Number finalization with privileged audited correction; shipping/fulfillment; deterministic tenant-scoped search; card/submission timeline; append-only audit events; role-safe tenant authorization; public-safe certificate projection; WMP stage projection; analytics/backlog/turnaround/throughput; and automatic population reporting from finalized certificates including “10 / Pop 1” representation.\n\nPersist the required tenant-scoped schema and guarded lifecycle: Created/Intake -> Received -> Imaging -> Identification -> Grading -> QC -> Encapsulation/Label -> Final Imaging -> Complete/Ready -> Shipped -> Delivered, plus explicit hold/rework/escalation reasons. Invalid transitions and missing prerequisites must fail closed. Submission/Order, Card, and Cert are distinct concepts; use established PCG terminology, especially Cert Number for a finalized graded card.\n\nFor PCG card-image originals, integrate with Anthony-owned Google Workspace/Drive through current connected-provider primitives where available; store provider IDs/metadata in KNOCKLAUNCH, never publish private Drive URLs, preserve image revision audit history, and use only supported safe delivery/cache derivatives. If the provider prerequisite is unavailable, show an explicit prerequisite state rather than breaking the grading workflow.\n\nCanonicalize or redirect existing PCG grading routes into this application without breaking current workflows. Preserve PCG branding and configurable profile/background/media controls. No CRM bleed, giant sparse cards, zoom traps, frozen scrolling, invented grading terminology, fake legacy values, or speculative third-party dependencies. Keep adapters clean for future eBay/QuickBooks without requiring them now.\n\nAdd focused tests for tenant isolation, route canonicalization, guarded transitions/prerequisites, cert immutability/public projection, population aggregation, audit history, and responsive application contracts. Use current protected main, canonical Gate, squash merge, affected-target release, and authenticated production proof on desktop and mobile. Done means the live application works end-to-end, not merely PR/merge.","wordingChanged":false,"canonicalIntent":"Build, ship, and activate the first-class KNOCKLAUNCH Card Grading application, with PCG as its first tenant, at /pcg/card-grading. Keep the domain card-specific and reusable across future card-grading tenants; do not add roofing concepts. Promote the current PCG grading capability into the platform application registry and reuse existing tenant auth, search, branding, profile/media controls, Google Workspace capability, and MODES primitives.\n\nImplement the complete grading operating system: compact desktop/mobile app shell; operations dashboard; customers/submitters; submissions/orders; receive/intake; cards; front/back/detail imaging; card identification; grader workstation using PCG's existing authoritative grading scale; criteria/subgrades only where PCG currently supports them; defects/notes; QC with approve/regrade/discrepancy; encapsulation/label; final imaging; immutable Cert Number finalization with privileged audited correction; shipping/fulfillment; deterministic tenant-scoped search; card/submission timeline; append-only audit events; role-safe tenant authorization; public-safe certificate projection; WMP stage projection; analytics/backlog/turnaround/throughput; and automatic population reporting from finalized certificates including “10 / Pop 1” representation.\n\nPersist the required tenant-scoped schema and guarded lifecycle: Created/Intake -> Received -> Imaging -> Identification -> Grading -> QC -> Encapsulation/Label -> Final Imaging -> Complete/Ready -> Shipped -> Delivered, plus explicit hold/rework/escalation reasons. Invalid transitions and missing prerequisites must fail closed. Submission/Order, Card, and Cert are distinct concepts; use established PCG terminology, especially Cert Number for a finalized graded card.\n\nFor PCG card-image originals, integrate with Anthony-owned Google Workspace/Drive through current connected-provider primitives where available; store provider IDs/metadata in KNOCKLAUNCH, never publish private Drive URLs, preserve image revision audit history, and use only supported safe delivery/cache derivatives. If the provider prerequisite is unavailable, show an explicit prerequisite state rather than breaking the grading workflow.\n\nCanonicalize or redirect existing PCG grading routes into this application without breaking current workflows. Preserve PCG branding and configurable profile/background/media controls. No CRM bleed, giant sparse cards, zoom traps, frozen scrolling, invented grading terminology, fake legacy values, or speculative third-party dependencies. Keep adapters clean for future eBay/QuickBooks without requiring them now.\n\nAdd focused tests for tenant isolation, route canonicalization, guarded transitions/prerequisites, cert immutability/public projection, population aggregation, audit history, and responsive application contracts. Use current protected main, canonical Gate, squash merge, affected-target release, and authenticated production proof on desktop and mobile. Done means the live application works end-to-end, not merely PR/merge.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"card-grading-app-live","statement":"A first-class KNOCKLAUNCH Card Grading application is live for PCG at /pcg/card-grading with the complete tenant-isolated grading workflow, canonical data model, cert/population system, media integration, operations UX, and guarded state machine.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]}],"objective":"Build, ship, and activate the first-class KNOCKLAUNCH Card Grading application, with PCG as its first tenant, at /pcg/card-grading. Keep the domain card-specific and reusable across future card-grading tenants; do not add roofing concepts. Promote the current PCG grading capability into the platform application registry and reuse existing tenant auth, search, branding, profile/media controls, Google Workspace capability, and MODES primitives.\n\nImplement the complete grading operating system: compact desktop/mobile app shell; operations dashboard; customers/submitters; submissions/orders; receive/intake; cards; front/back/detail imaging; card identification; grader workstation using PCG's existing authoritative grading scale; criteria/subgrades only where PCG currently supports them; defects/notes; QC with approve/regrade/discrepancy; encapsulation/label; final imaging; immutable Cert Number finalization with privileged audited correction; shipping/fulfillment; deterministic tenant-scoped search; card/submission timeline; append-only audit events; role-safe tenant authorization; public-safe certificate projection; WMP stage projection; analytics/backlog/turnaround/throughput; and automatic population reporting from finalized certificates including “10 / Pop 1” representation.\n\nPersist the required tenant-scoped schema and guarded lifecycle: Created/Intake -> Received -> Imaging -> Identification -> Grading -> QC -> Encapsulation/Label -> Final Imaging -> Complete/Ready -> Shipped -> Delivered, plus explicit hold/rework/escalation reasons. Invalid transitions and missing prerequisites must fail closed. Submission/Order, Card, and Cert are distinct concepts; use established PCG terminology, especially Cert Number for a finalized graded card.\n\nFor PCG card-image originals, integrate with Anthony-owned Google Workspace/Drive through current connected-provider primitives where available; store provider IDs/metadata in KNOCKLAUNCH, never publish private Drive URLs, preserve image revision audit history, and use only supported safe delivery/cache derivatives. If the provider prerequisite is unavailable, show an explicit prerequisite state rather than breaking the grading workflow.\n\nCanonicalize or redirect existing PCG grading routes into this application without breaking current workflows. Preserve PCG branding and configurable profile/background/media controls. No CRM bleed, giant sparse cards, zoom traps, frozen scrolling, invented grading terminology, fake legacy values, or speculative third-party dependencies. Keep adapters clean for future eBay/QuickBooks without requiring them now.\n\nAdd focused tests for tenant isolation, route canonicalization, guarded transitions/prerequisites, cert immutability/public projection, population aggregation, audit history, and responsive application contracts. Use current protected main, canonical Gate, squash merge, affected-target release, and authenticated production proof on desktop and mobile. Done means the live application works end-to-end, not merely PR/merge.","constraints":[{"id":"cards-only-domain","statement":"Keep this application focused on card grading now; do not introduce roofing concepts.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]},{"id":"pcg-first-tenant-shared-app","statement":"PCG is the first tenant, but implementation is a reusable KNOCKLAUNCH Card Grading application rather than bespoke PCG-only pages.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]},{"id":"pcg-authoritative-terms","statement":"Use current PCG grading terminology and scale; use Cert Number for finalized graded-card certificates; do not invent competitor terminology or fake legacy values.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]},{"id":"tenant-security","statement":"Private grading data remains tenant-scoped and public certificate projections expose only intentionally published fields; authorization fails closed.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]},{"id":"visual-artifact-scope","statement":"Visual implementation is limited to the requested PCG Card Grading workspace/application surfaces and does not create unrelated website surfaces.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"visual-content-truth","statement":"Do not present invented names, metrics, prices, dates, testimonials, credentials, customer records, or other unknown business facts as real; empty/placeholder states must be explicit.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"tenant-visual-isolation","statement":"PCG visual work remains isolated to PCG branding and data; do not import another tenant's identity, customer data, copy, or imagery.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"visual-viewport-authority","statement":"Desktop and mobile are both required production viewports; each must preserve the same information hierarchy and functionality with responsive layout rather than a separate invented design.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"reference-visual-fidelity","statement":"Where an approved PCG reference already governs an existing surface, preserve its material composition unless this request explicitly changes that surface.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"responsive-visual-continuity","statement":"Responsive adaptation preserves PCG branding, hierarchy, functionality and design language across desktop and mobile.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"reference-visual-authority","statement":"Existing approved PCG reference visuals are acceptance evidence for the surfaces they govern; implementation and live proof, not a new mockup, satisfies this request.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]}],"adaptivePolicy":{"risk":{"tier":"high","blastRadius":"sensitive"},"proof":{"requiredKinds":["runtime","visual"],"visualProofScope":"broad","interactionRequired":true,"runtimeProofRequired":true},"scope":{"route":"/pcg/card-grading","roleRef":null,"tenantRef":"pcg","sourceTargets":[]},"dynamic":{"variables":["main_and_runtime_lineage","runner_capacity","queue_and_active_work","provider_health","failure_clusters_and_circuits","release_target_state","current_pr_and_gate_state"],"refreshStages":["preflight","gate","release","runtime_proof"],"refreshMayChange":["runner_selection","parallelism","retry_path","qa_depth","release_recovery","proof_timing"],"refreshMayNotChange":["owner_outcome","explicit_no_go_constraints","tenant_identity","credential_boundary","hard_safety_invariants"]},"urgency":{"priority":"normal","deadlineSignals":[],"deadlineExplicit":false},"version":"paul-adaptive-objective-v1","recovery":{"transient":"one_bounded_retry_then_alternate_eligible_pool_or_provider_path","deterministic":"repair_source_or_contract_do_not_blind_rerun","mutationDependencyFailure":"prerequisite_required_or_targeted_recovery_never_invent","readOnlyDependencyFailure":"degrade_to_available_grounded_context_and_keep_conversation_alive"},"unknowns":["source_targets_until_repository_resolution","release_targets_until_changed_paths","deadline"],"authority":{"outcome":"current_explicit_owner_request","tactics":"live_prime_truth","unknownPolicy":"preserve_unknown_never_invent","historicalContext":"advisory_unless_current_request_confirms"},"execution":{"mutation":true,"concurrency":"serialize_overlapping_mutations","scopePolicy":"start_bounded_expand_only_with_machine_readable_dependency_evidence","staleStatePolicy":"refresh_dynamic_state_before_irreversible_or_acceptance_stage","conversationIsolation":true,"ownerOutcomeMayBeChangedByAdaptation":false},"experience":{"visual":true,"viewports":["mobile","desktop"],"behavioral":true,"visualProofScope":"broad"},"dependencies":{"requiredDomains":["frontend","schema_data_storage","authentication_authorization","provider_configuration","release_ownership","live_production_proof"],"capabilityDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"releaseTargetHints":[]},"inputSignals":{"rawUtterance":"Build, ship, and activate the first-class KNOCKLAUNCH Card Grading application, with PCG as its first tenant, at /pcg/card-grading. Keep the domain card-specific and reusable across future card-grading tenants; do not add roofing concepts. Promote the current PCG grading capability into the platform application registry and reuse existing tenant auth, search, branding, profile/media controls, Google Workspace capability, and MODES primitives.\n\nImplement the complete grading operating system: compact desktop/mobile app shell; operations dashboard; customers/submitters; submissions/orders; receive/intake; cards; front/back/detail imaging; card identification; grader workstation using PCG's existing authoritative grading scale; criteria/subgrades only where PCG currently supports them; defects/notes; QC with approve/regrade/discrepancy; encapsulation/label; final imaging; immutable Cert Number finalization with privileged audited correction; shipping/fulfillment; deterministic tenant-scoped search; card/submission timeline; append-only audit events; role-safe tenant authorization; public-safe certificate projection; WMP stage projection; analytics/backlog/turnaround/throughput; and automatic population reporting from finalized certificates including “10 / Pop 1” representation.\n\nPersist the required tenant-scoped schema and guarded lifecycle: Created/Intake -> Received -> Imaging -> Identification -> Grading -> QC -> Encapsulation/Label -> Final Imaging -> Complete/Ready -> Shipped -> Delivered, plus explicit hold/rework/escalation reasons. Invalid transitions and missing prerequisites must fail closed. Submission/Order, Card, and Cert are distinct concepts; use established PCG terminology, especially Cert Number for a finalized graded card.\n\nFor PCG card-image originals, integrate with Anthony-owned Google Workspace/Drive through current connected-provider primitives where available; store provider IDs/metadata in KNOCKLAUNCH, never publish private Drive URLs, preserve image revision audit history, and use only supported safe delivery/cache derivatives. If the provider prerequisite is unavailable, show an explicit prerequisite state rather than breaking the grading workflow.\n\nCanonicalize or redirect existing PCG grading routes into this application without breaking current workflows. Preserve PCG branding and configurable profile/background/media controls. No CRM bleed, giant sparse cards, zoom traps, frozen scrolling, invented grading terminology, fake legacy values, or speculative third-party dependencies. Keep adapters clean for future eBay/QuickBooks without requiring them now.\n\nAdd focused tests for tenant isolation, route canonicalization, guarded transitions/prerequisites, cert immutability/public projection, population aggregation, audit history, and responsive application contracts. Use current protected main, canonical Gate, squash merge, affected-target release, and authenticated production proof on desktop and mobile. Done means the live application works end-to-end, not merely PR/merge.","canonicalIntent":"Build, ship, and activate the first-class KNOCKLAUNCH Card Grading application, with PCG as its first tenant, at /pcg/card-grading. Keep the domain card-specific and reusable across future card-grading tenants; do not add roofing concepts. Promote the current PCG grading capability into the platform application registry and reuse existing tenant auth, search, branding, profile/media controls, Google Workspace capability, and MODES primitives.\n\nImplement the complete grading operating system: compact desktop/mobile app shell; operations dashboard; customers/submitters; submissions/orders; receive/intake; cards; front/back/detail imaging; card identification; grader workstation using PCG's existing authoritative grading scale; criteria/subgrades only where PCG currently supports them; defects/notes; QC with approve/regrade/discrepancy; encapsulation/label; final imaging; immutable Cert Number finalization with privileged audited correction; shipping/fulfillment; deterministic tenant-scoped search; card/submission timeline; append-only audit events; role-safe tenant authorization; public-safe certificate projection; WMP stage projection; analytics/backlog/turnaround/throughput; and automatic population reporting from finalized certificates including “10 / Pop 1” representation.\n\nPersist the required tenant-scoped schema and guarded lifecycle: Created/Intake -> Received -> Imaging -> Identification -> Grading -> QC -> Encapsulation/Label -> Final Imaging -> Complete/Ready -> Shipped -> Delivered, plus explicit hold/rework/escalation reasons. Invalid transitions and missing prerequisites must fail closed. Submission/Order, Card, and Cert are distinct concepts; use established PCG terminology, especially Cert Number for a finalized graded card.\n\nFor PCG card-image originals, integrate with Anthony-owned Google Workspace/Drive through current connected-provider primitives where available; store provider IDs/metadata in KNOCKLAUNCH, never publish private Drive URLs, preserve image revision audit history, and use only supported safe delivery/cache derivatives. If the provider prerequisite is unavailable, show an explicit prerequisite state rather than breaking the grading workflow.\n\nCanonicalize or redirect existing PCG grading routes into this application without breaking current workflows. Preserve PCG branding and configurable profile/background/media controls. No CRM bleed, giant sparse cards, zoom traps, frozen scrolling, invented grading terminology, fake legacy values, or speculative third-party dependencies. Keep adapters clean for future eBay/QuickBooks without requiring them now.\n\nAdd focused tests for tenant isolation, route canonicalization, guarded transitions/prerequisites, cert immutability/public projection, population aggregation, audit history, and responsive application contracts. Use current protected main, canonical Gate, squash merge, affected-target release, and authenticated production proof on desktop and mobile. Done means the live application works end-to-end, not merely PR/merge.","conversationContextPresent":false}},"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-production","kind":"runtime","claim":"PCG can operate the shipped Card Grading application end-to-end in production from intake through delivery with canonical cert/population/audit behavior.","route":"/pcg/card-grading","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"proof-visual","kind":"visual","claim":"The live /pcg/card-grading application is usable and intentional on desktop and mobile, with compact grading workflows and no tenant-route contamination.","route":"/pcg/card-grading","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Build-ship-and-activate-the-first-class-KNOCKLAUNCH-Card-Grading-application-with-PCG-as-its-first-t","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":[],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["proof-production"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestedBranch":null,"conversationContext":null,"requestContractHash":"fd7aa93e2a10a2d5aa966cf445d6943a86357d1c98f1694594676582df996988","requestContractRevision":1},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T01:33:28.753345+00:00","proof_gate":"tenant_workstream_contribution_recorded","source_sha":null,"external_id":null,"receipt_type":"tenant_workstream_contribution","idempotency_key":"mission:f2f645aa-ebfb-4115-99c1-000c562d537e:tenant-workstream-contribution:41a737772bf19afd11e2ea387e21410bada730ae51a24e757caf396f7e44d294","mission_step_id":null,"command_center_event_id":"f2f645aa-ebfb-4115-99c1-000c562d537e"},{"id":"8737cc9c-7ce5-4527-8bfe-a7e9297ef6ce","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-40e5629864e5","prNumber":3091,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"7d91f923922607c53289cd68c7005e2d261902b1","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:30:58.099967+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"7d91f923922607c53289cd68c7005e2d261902b1","external_id":"3091","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:40e56298-64e5-4c5f-9f44-905ac8a2b2f4:merged-pr:3091:7d91f923922607c53289cd68c7005e2d261902b1","mission_step_id":"42b52552-f46f-408b-9253-57b222957b9b","command_center_event_id":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},{"id":"9d4e12d3-0e06-43f8-bf1c-71107653fe6d","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success"},"mainSha":"b1155b4f6a85def1ed7fcf4ca464a8f1fe78bc13","missing":[],"pending":[],"required":["forgejo-main/source"],"sourceSha":"7c44cf8db971476caeff781959e6db410f4f1087","releaseState":"verified","sourceInMain":true,"compareStatus":"known_exact_protected_main_push_history","releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{},"requestContractHash":"6c1383f87672ed17e4b93dfb86fa6ac9a1c3d6d3c28655fa1cccd84de2e37bcd","forgejoWorkflowProof":null,"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:23:31.24301+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"7c44cf8db971476caeff781959e6db410f4f1087","external_id":"forgejo-main-7c44cf8db971","receipt_type":"canonical_release_status","idempotency_key":"mission:38071877-5f7e-429a-bc77-2088d8d76166:forgejo-release-status:7c44cf8db971476caeff781959e6db410f4f1087:verified:forgejo-main/source=success","mission_step_id":"21d5a1f4-eafb-494e-afb9-0174c64132a2","command_center_event_id":"38071877-5f7e-429a-bc77-2088d8d76166"},{"id":"6b925d1c-640c-45b4-9515-9bf10594583d","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-a48b85ef20a6","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"a48b85ef-20a6-48e3-8c13-16543cea0a57","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":22,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":303,"providerAuthMs":0,"ledgerPrepareMs":303,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":303,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":303,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"a48b85ef-20a6-48e3-8c13-16543cea0a57"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5136,"likelyAffectedFiles":["package"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:23:42.353071+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:a48b85ef-20a6-48e3-8c13-16543cea0a57:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"d93a2f83-9079-4bcc-8eae-980c0803773f","command_center_event_id":"a48b85ef-20a6-48e3-8c13-16543cea0a57"},{"id":"ae5a31f0-c994-40c2-9720-c8a2647ec98f","source":"forgejo-runtime","status":"pending","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"pending","cc-execution/runtime-proof":"pending"},"mainSha":"7d91f923922607c53289cd68c7005e2d261902b1","missing":[],"pending":["forgejo-release/workflow","cc-execution/runtime-proof"],"required":["forgejo-main/source","forgejo-release/workflow","cc-execution/runtime-proof"],"sourceSha":"7d91f923922607c53289cd68c7005e2d261902b1","releaseState":"pending","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":true,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"ccExecution":"pending"},"requestContractHash":"ed5078c1407a30ef0426f3d2f67302cc139612aa58b926c49468810ff6dde757","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9557","runId":9557,"status":"running","sourceSha":"7d91f923922607c53289cd68c7005e2d261902b1","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"ccExecution":"pending"},"targetJobCount":7,"observedTargetStates":{"ccExecution":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":{"liveSha":"ad816fe583fb49afa03cabf0cc27adc094e081b1","deploymentId":"forgejo-main-ad816fe583fb49afa03cabf0cc27adc094e081b1","compareStatus":null,"identitySource":"local_build_metadata","runtimeVersion":"1.58.182-witness-render-cold-start-aware","containsSourceSha":false},"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:31:00.457007+00:00","proof_gate":"canonical_release_pending","source_sha":"7d91f923922607c53289cd68c7005e2d261902b1","external_id":"forgejo-main-7d91f9239226","receipt_type":"canonical_release_status","idempotency_key":"mission:40e56298-64e5-4c5f-9f44-905ac8a2b2f4:forgejo-release-status:7d91f923922607c53289cd68c7005e2d261902b1:pending:forgejo-main/source=success|forgejo-release/workflow=pending|cc-execution/runtime-proof=pending","mission_step_id":"42b52552-f46f-408b-9253-57b222957b9b","command_center_event_id":"40e56298-64e5-4c5f-9f44-905ac8a2b2f4"},{"id":"2d8bd123-83c9-46d0-ad2d-cce193cfd1cb","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-6c10d0b5485c","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3092,"terminal":false,"missionId":"6c10d0b5-485c-4ea6-a507-e3484caca23a","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":14469,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":9028,"missionSetupMs":507,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":240,"ledgerReconcileMs":0,"lineageReconcileMs":267,"resolvePreflightMs":507,"repositoryMutationMs":5441,"repositoryProviderMs":5441,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":4181,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":240,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":1260},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"6c10d0b5-485c-4ea6-a507-e3484caca23a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3454,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:31:58.060108+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3092","receipt_type":"execute_mission","idempotency_key":"mission:6c10d0b5-485c-4ea6-a507-e3484caca23a:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"aa09e0d8-9035-4de5-9adf-d349d9d25922","command_center_event_id":"6c10d0b5-485c-4ea6-a507-e3484caca23a"},{"id":"88fac25f-e6b5-4fec-8b71-064782757045","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","cc-execution/runtime-proof":"success"},"mainSha":"eb51d2c10031bdfe42e8f39de014085943a719bc","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","cc-execution/runtime-proof"],"sourceSha":"eb51d2c10031bdfe42e8f39de014085943a719bc","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":true,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"ccExecution":"success"},"requestContractHash":"8f43952d3cc7f3ff1692dbaf1c710b01f3b69e934978c54660cbe47a0570a53c","forgejoWorkflowProof":{"runId":11460,"source":"exact_live_cc_execution_runtime_identity","status":"running","liveSha":"eb51d2c10031bdfe42e8f39de014085943a719bc","results":{},"proofGate":"cc_execution_exact_live_runtime_substitutes_transient_workflow_receipt","sourceSha":"eb51d2c10031bdfe42e8f39de014085943a719bc","conclusion":"running","deploymentId":"forgejo-main-eb51d2c10031bdfe42e8f39de014085943a719bc","targetStates":{"ccExecution":"pending"},"runtimeVersion":"1.58.249-semantic-conflict-generation","targetJobCount":7,"observedTargetStates":{"ccExecution":"pending"},"workflowReceiptSubstituted":true},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":{"liveSha":"eb51d2c10031bdfe42e8f39de014085943a719bc","proofGate":"cc_execution_target_aware_runtime_identity_verified","deploymentId":"forgejo-main-eb51d2c10031bdfe42e8f39de014085943a719bc","compareStatus":"identical","workflowRunId":11460,"identitySource":"local_build_metadata","runtimeVersion":"1.58.249-semantic-conflict-generation","workflowFailed":false,"containsSourceSha":true},"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:43:46.917983+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"eb51d2c10031bdfe42e8f39de014085943a719bc","external_id":"forgejo-main-eb51d2c10031","receipt_type":"canonical_release_status","idempotency_key":"mission:f1a8c3bb-671d-489f-8251-d31ae7b5ede8:forgejo-release-status:eb51d2c10031bdfe42e8f39de014085943a719bc:verified:forgejo-main/source=success|forgejo-release/workflow=success|cc-execution/runtime-proof=success","mission_step_id":"024db456-427b-4d12-bccd-84911601a537","command_center_event_id":"f1a8c3bb-671d-489f-8251-d31ae7b5ede8"},{"id":"3bbe8f36-47d5-464b-9b35-94304947cd86","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/__tests__/contracts/installed-app-navigation.contract.test.ts","content":"import { readFileSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { describe, expect, it } from 'vitest';\n\nconst source = readFileSync(resolve(process.cwd(), 'src/PrivateAppShell.tsx'), 'utf8');\n\ndescribe('installed app navigation contract', () => {\n  it('is scoped to installed standalone mode with iOS fallback', () => {\n    expect(source).toContain(\"matchMedia?.('(display-mode: standalone)')\");\n    expect(source).toContain(\"standalone?:boolean\");\n    expect(source).toContain(\"if(!installed||!position)return null\");\n  });\n\n  it('keeps the floating control movable, edge-snapped, safe-area aware, and persistent', () => {\n    expect(source).toContain(\"data-installed-app-navigation-trigger=\\\"true\\\"\");\n    expect(source).toContain(\"env(safe-area-inset-top)\");\n    expect(source).toContain(\"kl-installed-app-nav-position-v1\");\n    expect(source).toContain(\"Math.abs(clamped.x-nextBounds.left)<=Math.abs(nextBounds.right-clamped.x)?nextBounds.left:nextBounds.right\");\n    expect(source).toContain(\"bottomNavReserve=88\");\n  });\n\n  it('provides escape actions without losing tenant context', () => {\n    expect(source).toContain(\"data-installed-app-navigation-action=\\\"back\\\"\");\n    expect(source).toContain(\"data-installed-app-navigation-action=\\\"home\\\"\");\n    expect(source).toContain(\"data-installed-app-navigation-action=\\\"reload\\\"\");\n    expect(source).toContain(\"getTenantDashboardPathForTenant(activeTenant)\");\n    expect(source).toContain(\"navigate(-1)\");\n    expect(source).toContain(\"window.location.reload()\");\n  });\n\n  it('mounts once at the canonical private tenant runtime', () => {\n    expect(source).toContain(\"<TenantRouteScrollRestoration/><MobileViewportRecovery/><InstalledAppNavigationRecovery/>\");\n  });\n});\n"}],"route":"https://app.knocklaunch.app/big-papis/owner/calendar?bpMode=plan","branch":"ai/objective-first-repair-c7d9e8d12eec","writes":[],"patches":[],"approved":true,"missionId":"c7d9e8d1-2eec-40e9-9b33-65f32e1bfb28","objective":"Frontend-only repair in the shared private tenant shell. Add one installed-PWA escape navigation component owned by PrivateAppShell/TenantWorkspaceRuntime. In installed standalone mode only, render a compact floating navigation control. It must be pointer-draggable, clamped to safe viewport bounds, snap to the nearest safe left/right edge on release, persist its position across route changes/reloads, and stay clear of canonical bottom navigation/avatar safe zones. The control exposes Back, Home, and Reload. Back navigates through usable history. Home uses getTenantDashboardPathForTenant(activeTenant) and preserves the active tenant instead of sending an active tenant to generic tenant selection. Reload refreshes the exact current route. Ordinary browser desktop/mobile behavior remains unchanged. Keep the diff limited to shared frontend source plus focused tests. Ship one fresh ai branch, one PR, canonical KnockLaunch Gate, squash merge, Cloudflare frontend release.","tenantRef":"big-papis","repository":"noel/KnockLaunchOS","visualProof":false,"ownerApproved":true,"anchored_edits":[{"path":"src/PrivateAppShell.tsx","edits":[{"new_content":"function readInstalledAppSafeInsets(){if(typeof document==='undefined')return{top:0,right:0,bottom:0,left:0};const probe=document.createElement('div');probe.style.cssText='position:fixed;visibility:hidden;pointer-events:none;padding-top:env(safe-area-inset-top);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)';document.body.appendChild(probe);const style=window.getComputedStyle(probe);const value=(input:string)=>Number.parseFloat(input)||0;const insets={top:value(style.paddingTop),right:value(style.paddingRight),bottom:value(style.paddingBottom),left:value(style.paddingLeft)};probe.remove();return insets}\nfunction InstalledAppNavigationRecovery(){const navigate=useNavigate();const{activeTenant}=useMultiTenant();const[installed,setInstalled]=React.useState(false);const[open,setOpen]=React.useState(false);const[position,setPosition]=React.useState<{x:number;y:number}|null>(null);const positionRef=React.useRef<{x:number;y:number}|null>(null);const dragRef=React.useRef<{pointerId:number;offsetX:number;offsetY:number;startX:number;startY:number;moved:boolean}|null>(null);const suppressClickRef=React.useRef(false);const storageKey='kl-installed-app-nav-position-v1';const controlSize=52;const bounds=React.useCallback(()=>{const viewport=window.visualViewport;const insets=readInstalledAppSafeInsets();const offsetLeft=viewport?.offsetLeft||0;const offsetTop=viewport?.offsetTop||0;const width=viewport?.width||window.innerWidth;const height=viewport?.height||window.innerHeight;const gap=12;const bottomNavReserve=88;const left=offsetLeft+insets.left+gap;const right=Math.max(left,offsetLeft+width-insets.right-gap-controlSize);const top=offsetTop+insets.top+gap;const bottom=Math.max(top,offsetTop+height-insets.bottom-gap-bottomNavReserve-controlSize);return{left,right,top,bottom}},[]);const clamp=React.useCallback((point:{x:number;y:number})=>{const next=bounds();return{x:Math.min(next.right,Math.max(next.left,point.x)),y:Math.min(next.bottom,Math.max(next.top,point.y))}},[bounds]);const commitPosition=React.useCallback((point:{x:number;y:number},persist=false)=>{const next=clamp(point);positionRef.current=next;setPosition(next);if(persist){try{window.localStorage.setItem(storageKey,JSON.stringify(next))}catch{}}return next},[clamp]);React.useEffect(()=>{if(typeof window==='undefined')return;const media=window.matchMedia?.('(display-mode: standalone)');const legacy=media as(MediaQueryList&{addListener?:(listener:()=>void)=>void;removeListener?:(listener:()=>void)=>void})|undefined;const sync=()=>setInstalled(Boolean(media?.matches||(window.navigator as Navigator&{standalone?:boolean}).standalone===true));sync();if(media?.addEventListener)media.addEventListener('change',sync);else legacy?.addListener?.(sync);return()=>{if(media?.removeEventListener)media.removeEventListener('change',sync);else legacy?.removeListener?.(sync)}},[]);React.useEffect(()=>{if(!installed||typeof window==='undefined')return;const restore=()=>{const nextBounds=bounds();let restored:{x:number;y:number}|null=null;try{const saved=JSON.parse(window.localStorage.getItem(storageKey)||'null');if(Number.isFinite(saved?.x)&&Number.isFinite(saved?.y))restored={x:Number(saved.x),y:Number(saved.y)}}catch{}const initial=restored||{x:nextBounds.right,y:nextBounds.top+(nextBounds.bottom-nextBounds.top)*.32};const clamped=commitPosition(initial);const snapped={x:Math.abs(clamped.x-nextBounds.left)<=Math.abs(nextBounds.right-clamped.x)?nextBounds.left:nextBounds.right,y:clamped.y};commitPosition(snapped,true)};restore();window.addEventListener('resize',restore);window.visualViewport?.addEventListener('resize',restore);return()=>{window.removeEventListener('resize',restore);window.visualViewport?.removeEventListener('resize',restore)}},[bounds,commitPosition,installed]);React.useEffect(()=>{setOpen(false)},[location.pathname,location.search]);if(!installed||!position)return null;const home=activeTenant?.id?getTenantDashboardPathForTenant(activeTenant):'/select-tenant';const dockRight=position.x>window.innerWidth/2;const menuLeft=Math.max(12,Math.min(window.innerWidth-156,dockRight?position.x-148:position.x+controlSize+8));const menuTop=Math.max(12,Math.min(window.innerHeight-188,position.y-16));const onPointerDown=(event:React.PointerEvent<HTMLButtonElement>)=>{if(event.button!==0)return;event.currentTarget.setPointerCapture(event.pointerId);dragRef.current={pointerId:event.pointerId,offsetX:event.clientX-position.x,offsetY:event.clientY-position.y,startX:event.clientX,startY:event.clientY,moved:false}};const onPointerMove=(event:React.PointerEvent<HTMLButtonElement>)=>{const drag=dragRef.current;if(!drag||drag.pointerId!==event.pointerId)return;if(Math.hypot(event.clientX-drag.startX,event.clientY-drag.startY)>6)drag.moved=true;commitPosition({x:event.clientX-drag.offsetX,y:event.clientY-drag.offsetY})};const onPointerUp=(event:React.PointerEvent<HTMLButtonElement>)=>{const drag=dragRef.current;if(!drag||drag.pointerId!==event.pointerId)return;const clamped=clamp({x:event.clientX-drag.offsetX,y:event.clientY-drag.offsetY});const nextBounds=bounds();const snapped={x:Math.abs(clamped.x-nextBounds.left)<=Math.abs(nextBounds.right-clamped.x)?nextBounds.left:nextBounds.right,y:clamped.y};commitPosition(snapped,true);suppressClickRef.current=drag.moved;dragRef.current=null;try{event.currentTarget.releasePointerCapture(event.pointerId)}catch{}};const onTriggerClick=()=>{if(suppressClickRef.current){suppressClickRef.current=false;return}setOpen(value=>!value)};const goBack=()=>{setOpen(false);if(window.history.length>1)navigate(-1);else navigate(home)};const goHome=()=>{setOpen(false);navigate(home)};const reload=()=>window.location.reload();return <div data-installed-app-navigation=\"true\" className=\"fixed inset-0 z-[10050] pointer-events-none\"><button type=\"button\" data-installed-app-navigation-trigger=\"true\" aria-label=\"Open app navigation\" aria-expanded={open} onPointerDown={onPointerDown} onPointerMove={onPointerMove} onPointerUp={onPointerUp} onPointerCancel={onPointerUp} onClick={onTriggerClick} style={{left:position.x,top:position.y,width:controlSize,height:controlSize,touchAction:'none'}} className=\"pointer-events-auto fixed grid place-items-center rounded-full border border-white/20 bg-black/85 text-lg font-black text-white shadow-[0_14px_40px_rgba(0,0,0,.45)] backdrop-blur-xl select-none\">⋮</button>{open?<div data-installed-app-navigation-menu=\"true\" style={{left:menuLeft,top:menuTop}} className=\"pointer-events-auto fixed w-36 overflow-hidden rounded-2xl border border-white/15 bg-black/90 p-1.5 text-white shadow-[0_18px_48px_rgba(0,0,0,.5)] backdrop-blur-xl\"><button type=\"button\" data-installed-app-navigation-action=\"back\" onClick={goBack} className=\"flex min-h-11 w-full items-center rounded-xl px-3 text-left text-sm font-bold hover:bg-white/10\">← Back</button><button type=\"button\" data-installed-app-navigation-action=\"home\" onClick={goHome} className=\"flex min-h-11 w-full items-center rounded-xl px-3 text-left text-sm font-bold hover:bg-white/10\">⌂ Home</button><button type=\"button\" data-installed-app-navigation-action=\"reload\" onClick={reload} className=\"flex min-h-11 w-full items-center rounded-xl px-3 text-left text-sm font-bold hover:bg-white/10\">↻ Reload</button></div>:null}</div>}\nfunction TenantRouteScrollRestoration(){","old_content":"function TenantRouteScrollRestoration(){"},{"new_content":"<TenantRouteScrollRestoration/><MobileViewportRecovery/><InstalledAppNavigationRecovery/>","old_content":"<TenantRouteScrollRestoration/><MobileViewportRecovery/>"}]}],"implementation":{"files":[],"writes":[]},"targetedActions":[{"type":"click","target":"[data-installed-app-navigation-trigger='true']","description":"Open the installed-app navigation control"},{"type":"drag","target":"[data-installed-app-navigation-trigger='true']","description":"Drag the floating control and verify it snaps to a safe screen edge"},{"type":"click","target":"[data-installed-app-navigation-action='home']","description":"Navigate Home and verify the route remains in Big Papis tenant context"},{"type":"click","target":"[data-installed-app-navigation-action='reload']","description":"Reload the current application route and verify tenant context remains intact"}],"durableMutationResume":true},"recovery":false,"fingerprint":"fc2e63db28e190a65266d6c9275de27a0458913285a32126b2eb06108dae866a","replayCount":0,"serializedBytes":11715},"tenant_id":"766cfaa7-ac42-46c8-bbef-69d13268a29d","created_at":"2026-09-23T03:58:58.718386+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:c7d9e8d1-2eec-40e9-9b33-65f32e1bfb28:repository-mutation-intent:fc2e63db28e190a65266d6c9275de27a0458913285a32126b2eb06108dae866a:0","mission_step_id":"29c175e2-8eb3-4128-bb0e-89a469245fdd","command_center_event_id":"c7d9e8d1-2eec-40e9-9b33-65f32e1bfb28"},{"id":"6b8ff15d-4f5d-4b48-abbd-c97cfa4d08f1","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"7c44cf8db971476caeff781959e6db410f4f1087","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"instant-preview","satisfied":false,"statement":"After capture successfully seeds a synthetic environment, the prospect is sent directly into the interactive workspace; progress page remains the fallback and final review surface.","proofConditionIds":["repo","runtime"]},{"id":"pipeline","satisfied":false,"statement":"Each captured demo is represented once in owner_business_prospects with stable dedupe identity and enough metadata to act on it from the New Business Pipeline.","proofConditionIds":["repo","runtime"]},{"id":"conversion","satisfied":false,"statement":"The interactive demo has a Make this real CTA that records conversion intent, qualifies the business opportunity, advances the owner prospect to proposal, and preserves the existing contact/demo context.","proofConditionIds":["repo","runtime"]},{"id":"isolation","satisfied":false,"statement":"The entire public demo remains synthetic, creates no production tenant, and triggers no automatic outbound.","proofConditionIds":["repo","runtime"]}],"satisfied":false,"constraints":[{"id":"review","satisfied":false,"statement":"Preserve human_review as the gate for final polished demo readiness; immediate preview is not equivalent to final approval.","proofConditionIds":["repo","runtime"]},{"id":"single-pipeline","satisfied":false,"statement":"Use owner_business_prospects and the existing business opportunity; do not invent a second sales lead store.","proofConditionIds":["repo"]},{"id":"safe-public","satisfied":false,"statement":"Public conversion action may update only the demo/opportunity/prospect identified by the opaque public demo ID and must not expose private contact data.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":false,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime"]},{"id":"atomic-capability-lifecycle","satisfied":false,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime"]}],"contractHash":"6c1383f87672ed17e4b93dfb86fa6ac9a1c3d6d3c28655fa1cccd84de2e37bcd","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":"missing_required_release_targets:supabaseEdge,frontend","gateRunId":9694,"satisfied":false,"gateTestProof":null,"gateTestPassed":false,"missingTargets":["supabaseEdge","frontend"],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":false,"namedGateTestPath":null,"releaseTargetStates":{},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"6c1383f87672ed17e4b93dfb86fa6ac9a1c3d6d3c28655fa1cccd84de2e37bcd","unsuccessfulTargets":[],"activeReleaseTargets":[],"allowedReleaseTargets":["supabaseEdge","frontend"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["supabaseEdge","frontend"],"migrationReleaseVerified":null,"repositoryConditionBound":true,"repositoryProofSourceSha":"7c44cf8db971476caeff781959e6db410f4f1087"},"required":true,"satisfied":false},{"id":"runtime","kind":"runtime","evidence":{"reason":"missing_required_release_targets:supabaseEdge,frontend","satisfied":false,"releaseState":"verified","missingTargets":["supabaseEdge","frontend"],"disallowedTargets":[],"migrationRequired":false,"releaseTargetStates":{},"unsuccessfulTargets":[],"activeReleaseTargets":[],"allowedReleaseTargets":["supabaseEdge","frontend"],"requiredReleaseTargets":["supabaseEdge","frontend"],"migrationReleaseVerified":null,"releaseRequestContractHash":"6c1383f87672ed17e4b93dfb86fa6ac9a1c3d6d3c28655fa1cccd84de2e37bcd"},"required":true,"satisfied":false}],"validationErrors":[],"pendingProofKinds":["repository","runtime"],"activeReleaseTargets":[]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:23:32.870581+00:00","proof_gate":"request_contract_pending","source_sha":"7c44cf8db971476caeff781959e6db410f4f1087","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:38071877-5f7e-429a-bc77-2088d8d76166:request-contract:6c1383f87672ed17e4b93dfb86fa6ac9a1c3d6d3c28655fa1cccd84de2e37bcd:7c44cf8db971476caeff781959e6db410f4f1087:pending:repository,runtime","mission_step_id":"21d5a1f4-eafb-494e-afb9-0174c64132a2","command_center_event_id":"38071877-5f7e-429a-bc77-2088d8d76166"},{"id":"5776a3ea-f9b1-4ee0-9d77-9b2e1a4e5d5c","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/platform-branded-email-default","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"1d676860-30db-45e4-af04-6db346477913","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":176,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":576,"providerAuthMs":0,"ledgerPrepareMs":576,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":576,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":576,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"1d676860-30db-45e4-af04-6db346477913"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5252,"likelyAffectedFiles":["src/PrivateAppShell.tsx","config/capabilities/platform-application-registry.json","config/capabilities/tenant-type-platform-primitive.json","config/capabilities/platform-health.json","config/platform-standards.json","scripts/audit-platform-cohesion.mjs","scripts/cloudflare-native-platform-seo.mjs","scripts/generate-platform-cohesion-auth-proof-requirements.mjs","scripts/generate-platform-cohesion-proof-packs.mjs","src/__tests__/contracts/platform-canonical-loading-screen.contract.test.ts","config/capabilities/business-blueprint-bootstrap.json","config/capabilities/tenant-type-registry.json"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:42:56.39664+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"7d86728c-a4a7-4c7e-bf39-f8843bb08d04","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"1490f12c-a474-4011-b806-42993dfde887","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Make polished tenant-branded HTML the platform default for customer-facing business email through send-email, while preserving rich templates and all delivery/security behavior.","wordingChanged":false,"canonicalIntent":"Make polished tenant-branded HTML the platform default for customer-facing business email through send-email, while preserving rich templates and all delivery/security behavior.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"branded-default","statement":"Basic or bland customer-facing email bodies are automatically wrapped in a tenant-branded email-safe envelope before provider delivery.","proofConditionIds":["source-proof","runtime-proof"]},{"id":"rich-passthrough","statement":"Already-rich approved HTML email bodies pass through without double wrapping.","proofConditionIds":["source-proof","runtime-proof"]}],"objective":"Make polished tenant-branded HTML the platform default for customer-facing business email through send-email, while preserving rich templates and all delivery/security behavior.","constraints":[{"id":"preserve-delivery-contract","statement":"Preserve auth, tenant membership, DNC, idempotency, recipient, subject, attachments, reply-to, communication-mode, provider rail, and existing rich templates.","proofConditionIds":["source-proof"]},{"id":"no-live-email","statement":"Verification must not send a real customer email.","proofConditionIds":["runtime-proof"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["source-proof","runtime-proof"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["source-proof","runtime-proof"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"source-proof","kind":"repository","claim":"Protected source contains branded envelope, rich passthrough, tenant identity fields, presentation metadata, and regression coverage.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"runtime-proof","kind":"runtime","claim":"Deployed send-email runtime matches merged source/version and is healthy without sending a real email.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Make-polished-tenant-branded-HTML-the-platform-default-for-customer-facing-business-email-through-se","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":[],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["source-proof","runtime-proof"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172","requestContractRevision":2,"previousRequestContractHash":"6f37d488d61115c743f7f5207b6f2a573e6f9bc5833a88500ef1a474f66cd608"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:43:35.325895+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:request-contract:e8e56824f30cbfab7b648e1d5b83ef57969cc91460c5ce2f5930093cdd36e172","mission_step_id":"c30dcee6-3be8-4ed4-80a3-26635e24213f","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"f772803e-5d3d-44d8-8b87-b931e2700e92","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/platform-branded-email-default","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3093,"terminal":false,"missionId":"1d676860-30db-45e4-af04-6db346477913","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":8754,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":832,"missionSetupMs":1020,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":1020,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":1020,"repositoryMutationMs":7922,"repositoryProviderMs":7922,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":3205,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":1020,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":4717},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"1d676860-30db-45e4-af04-6db346477913"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3170,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:43:44.982805+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3093","receipt_type":"execute_mission","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"c30dcee6-3be8-4ed4-80a3-26635e24213f","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"98339b0a-6dfb-4eaf-b98a-7ca25cc1f490","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-a7108781af28","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"a7108781-af28-48ef-be87-5340894a6b75","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":169,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":381,"providerAuthMs":0,"ledgerPrepareMs":381,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":381,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":381,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"a7108781-af28-48ef-be87-5340894a6b75"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2510,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:44:01.526749+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:a7108781-af28-48ef-be87-5340894a6b75:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"3b43d3e5-fde4-4433-bc58-625c55ba1dbe","command_center_event_id":"a7108781-af28-48ef-be87-5340894a6b75"},{"id":"7aa5bfc0-2e00-4879-843d-0643db88eb55","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/platform-branded-email-default","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3093,"terminal":false,"missionId":"1d676860-30db-45e4-af04-6db346477913","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"9a98d021aca06db94b200507b99f8644e363f0f7","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":8960,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":999,"approvedPlanMs":0,"missionSetupMs":752,"providerAuthMs":0,"shipAndProveMs":7526,"ledgerPrepareMs":250,"ledgerReconcileMs":0,"lineageReconcileMs":502,"resolvePreflightMs":752,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":250,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"1d676860-30db-45e4-af04-6db346477913"},"performance":null,"deploymentId":"forgejo-main-9a98d021aca0","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2558,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:44:52.43124+00:00","proof_gate":"canonical_release_dispatched","source_sha":"9a98d021aca06db94b200507b99f8644e363f0f7","external_id":"forgejo-main-9a98d021aca0","receipt_type":"execute_mission","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"90282122-a7dd-4dd9-a491-9c774f0d17ab","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"03af117f-067d-4f07-93a5-e4d321e77b64","source":"cc-execution","status":"verified","payload":{"ownerWaitSloMs":{"merge_to_live_ms":null,"owner_action_to_pr_ms":null,"green_gate_to_merge_ms":null,"owner_action_to_useful_response_ms":null},"ownerWaitLiveAt":"2026-09-18T12:46:10.596Z"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:46:10.804104+00:00","proof_gate":"owner_wait_live_milestone_recorded","source_sha":null,"external_id":null,"receipt_type":"owner_wait_live_milestone","idempotency_key":"mission:1d676860-30db-45e4-af04-6db346477913:owner-wait-live","mission_step_id":"83a7aa87-452e-48e1-83d5-c0365765d584","command_center_event_id":"1d676860-30db-45e4-af04-6db346477913"},{"id":"0f0502e8-cfb6-46f0-b3a3-8a23c4487bcc","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-a7108781af28","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3094,"terminal":false,"missionId":"a7108781-af28-48ef-be87-5340894a6b75","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":9979,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":2920,"missionSetupMs":896,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":324,"ledgerReconcileMs":0,"lineageReconcileMs":572,"resolvePreflightMs":896,"repositoryMutationMs":7059,"repositoryProviderMs":7059,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":5031,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":324,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":2028},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"a7108781-af28-48ef-be87-5340894a6b75"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3193,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:46:28.376414+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3094","receipt_type":"execute_mission","idempotency_key":"mission:a7108781-af28-48ef-be87-5340894a6b75:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"82346dfc-a4e2-4672-8f4e-673522ba72da","command_center_event_id":"a7108781-af28-48ef-be87-5340894a6b75"},{"id":"cf5f1163-f8af-4e2f-af9c-1782cde668fe","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/platform-branded-email-runtime-corrective","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"3561ffed-1b97-4c14-82bf-41029ba4fb3b","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":330,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":366,"providerAuthMs":0,"ledgerPrepareMs":366,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":366,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":366,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"3561ffed-1b97-4c14-82bf-41029ba4fb3b"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3940,"likelyAffectedFiles":["config/capabilities/tenant-type-platform-primitive.json","config/capabilities/mode-default-media.json","src/__tests__/contracts/platform-branded-email-default.contract.test.ts"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:46:40.328635+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:3561ffed-1b97-4c14-82bf-41029ba4fb3b:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"cbdce5ea-76ed-4aa9-9747-64e49ae7c3c4","command_center_event_id":"3561ffed-1b97-4c14-82bf-41029ba4fb3b"},{"id":"9c2499ab-d9cb-4be4-9fc9-9066dd68c5f4","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"release","branch":"ai/platform-branded-email-runtime-corrective","reason":"explicit_pull_request_identity_mismatch:3095","status":"blocked","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3095,"terminal":false,"missionId":"3561ffed-1b97-4c14-82bf-41029ba4fb3b","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":"3ef48e1f3bf89102d5db0bcdd7730c78c9abf39d","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":18975,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":18975,"missionSetupMs":2866,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":339,"ledgerReconcileMs":0,"lineageReconcileMs":2527,"resolvePreflightMs":2866,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":339,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"3561ffed-1b97-4c14-82bf-41029ba4fb3b"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1502,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:47:24.299894+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:3561ffed-1b97-4c14-82bf-41029ba4fb3b:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"f7ebc3f9-f21f-415a-b02f-c2d90073e211","command_center_event_id":"3561ffed-1b97-4c14-82bf-41029ba4fb3b"},{"id":"4d304124-be20-4fa8-9c25-beb71a563382","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"eb51d2c10031bdfe42e8f39de014085943a719bc","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"outcome-1","satisfied":true,"statement":"Real PR refresh conflicts become a bounded corrective repair generation instead of generic retry or same-PR refresh loops.","proofConditionIds":["proof-production"]}],"satisfied":true,"constraints":[{"id":"same-pr-routine","satisfied":true,"statement":"Routine protected-main movement without semantic conflict must continue using the same PR refresh/re-gate path.","proofConditionIds":["proof-production"]},{"id":"preserve-safety","satisfied":true,"statement":"Preserve canonical Gate, deterministic failure blocking, dependency classification, durable PR lineage, and queue-hygiene preservation guarantees.","proofConditionIds":["proof-production"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["proof-production"]}],"contractHash":"8f43952d3cc7f3ff1692dbaf1c710b01f3b69e934978c54660cbe47a0570a53c","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"proof-production","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":false,"releaseTargetStates":{"ccExecution":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["ccExecution"],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"migrationReleaseVerified":null,"releaseRequestContractHash":"8f43952d3cc7f3ff1692dbaf1c710b01f3b69e934978c54660cbe47a0570a53c"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["ccExecution"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:43:48.239863+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"eb51d2c10031bdfe42e8f39de014085943a719bc","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:f1a8c3bb-671d-489f-8251-d31ae7b5ede8:request-contract:8f43952d3cc7f3ff1692dbaf1c710b01f3b69e934978c54660cbe47a0570a53c:eb51d2c10031bdfe42e8f39de014085943a719bc:verified:","mission_step_id":"024db456-427b-4d12-bccd-84911601a537","command_center_event_id":"f1a8c3bb-671d-489f-8251-d31ae7b5ede8"},{"id":"375b4f3a-b46e-4065-a2c4-51f36b450329","source":"forgejo-runtime","status":"pending","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"pending","frontend-cloudflare/live":"pending"},"mainSha":"045d021f3a21320d901d63f2d9528b6ed823bb32","missing":[],"pending":["forgejo-release/workflow","frontend-cloudflare/live"],"required":["forgejo-main/source","forgejo-release/workflow","frontend-cloudflare/live"],"sourceSha":"045d021f3a21320d901d63f2d9528b6ed823bb32","releaseState":"pending","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"frontend":"pending"},"requestContractHash":"c6baa9b3f74f4b30de7e65ceaa0bb11d4a22c1abd409a196f1b36cf336e7714f","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/11593","runId":11593,"status":"waiting","sourceSha":"045d021f3a21320d901d63f2d9528b6ed823bb32","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"frontend":"pending"},"targetJobCount":7,"observedTargetStates":{"frontend":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"d60e3c27-73ed-4a5f-a49b-c37636455daf","created_at":"2026-09-24T19:11:17.019591+00:00","proof_gate":"canonical_release_pending","source_sha":"045d021f3a21320d901d63f2d9528b6ed823bb32","external_id":"forgejo-main-045d021f3a21","receipt_type":"canonical_release_status","idempotency_key":"mission:91117032-db0b-4d7b-8607-fc41d7e92106:forgejo-release-status:045d021f3a21320d901d63f2d9528b6ed823bb32:pending:forgejo-main/source=success|forgejo-release/workflow=pending|frontend-cloudflare/live=pending","mission_step_id":"e30ca66b-d4b4-4b74-bfdf-e49eda1ace62","command_center_event_id":"91117032-db0b-4d7b-8607-fc41d7e92106"},{"id":"afeca1dc-2345-4c69-b67a-e3d984bd48fd","source":"forgejo-runtime","status":"failed","payload":{"failed":["forgejo-release/workflow"],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"failure","frontend-cloudflare/live":"pending"},"mainSha":"eb51d2c10031bdfe42e8f39de014085943a719bc","missing":[],"pending":["frontend-cloudflare/live"],"required":["forgejo-main/source","forgejo-release/workflow","frontend-cloudflare/live"],"sourceSha":"e36498d7001d5b55f5665c9230d81a6c5fe20229","releaseState":"failed","sourceInMain":true,"compareStatus":"known_exact_protected_main_push_history","releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"frontend":"pending"},"requestContractHash":"d65bf3d980a285c0035e1ff61e8542ec23e3b0471ffa6faa968f10a2ec5b7587","forgejoWorkflowProof":{"runId":11440,"source":"signed_push_receipt","status":"cancelled","results":{},"conclusion":"cancelled","fingerprint":"cancelled||","failureClass":"release_cancelled_transient","targetStates":{"frontend":"pending"},"safeAutoRetry":true,"targetJobCount":7,"observedTargetStates":{"frontend":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:45:28.171641+00:00","proof_gate":"canonical_release_terminal_failed","source_sha":"e36498d7001d5b55f5665c9230d81a6c5fe20229","external_id":"forgejo-main-e36498d7001d","receipt_type":"canonical_release_status","idempotency_key":"mission:2274c364-f228-4996-a5ab-a38acc2ac0d7:forgejo-release-status:e36498d7001d5b55f5665c9230d81a6c5fe20229:failed:forgejo-main/source=success|forgejo-release/workflow=failure|frontend-cloudflare/live=pending","mission_step_id":"32e491b8-2981-40be-a89c-1e762af66a9b","command_center_event_id":"2274c364-f228-4996-a5ab-a38acc2ac0d7"},{"id":"ae1b0070-b1d3-49ef-8635-cb19235191ad","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-4445ca931921","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"4445ca93-1921-4ea0-91da-589ad9984fb3","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":5,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":259,"providerAuthMs":0,"ledgerPrepareMs":259,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":259,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":259,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"4445ca93-1921-4ea0-91da-589ad9984fb3"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":4051,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:46:49.692672+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:4445ca93-1921-4ea0-91da-589ad9984fb3:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"fb913a72-90f0-4201-87e5-e37ca6d50dd8","command_center_event_id":"4445ca93-1921-4ea0-91da-589ad9984fb3"},{"id":"39694515-ee25-4333-b8a6-642694f2ea96","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":"a0195fd1-d19b-41ae-b88a-1ee703c84a3c","phase":"visual_proof","branch":"ai/objective-first-repair-d4bc57cb5960","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":19370,"releaseCount":0,"toolCallCount":10,"repeatedCallCount":0,"executorlessWaitMs":386552,"firstUsefulResultAt":"2026-09-24T15:42:56.391Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.260-release-actions-query-parity","prNumber":3636,"terminal":false,"missionId":"d4bc57cb-5960-4e02-b0b6-355916d520c0","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":4461,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":888,"missionSetupMs":262,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":262,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":262,"repositoryMutationMs":3573,"repositoryProviderMs":3573,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2073,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":262,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":1500},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"d4bc57cb-5960-4e02-b0b6-355916d520c0"},"performance":null,"deploymentId":null,"releaseState":"verified","visualWitness":{"role":null,"jobId":"a0195fd1-d19b-41ae-b88a-1ee703c84a3c","tenant":null,"runnerUrl":null,"runnerLane":null,"attemptsUsed":null,"supervisorId":null,"failureReason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","observedRoute":null,"runnerVersion":null,"attemptLineage":[],"missionOutcome":null,"requestedRoute":null,"runnerSourceSha":null,"selectedViewports":[],"checkpointAccounting":null,"correctiveGeneration":0,"restartReplayHistory":[]},"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["visual"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3299,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"d60e3c27-73ed-4a5f-a49b-c37636455daf","created_at":"2026-09-24T15:52:11.186148+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"a0195fd1-d19b-41ae-b88a-1ee703c84a3c","receipt_type":"execute_mission","idempotency_key":"mission:d4bc57cb-5960-4e02-b0b6-355916d520c0:execute_mission:repair_mission_pr_handed_off_to_supervisor:generation-1","mission_step_id":"251fa9c4-0aeb-47e1-911e-de3ea981a95a","command_center_event_id":"d4bc57cb-5960-4e02-b0b6-355916d520c0"},{"id":"584234a2-2d87-4b37-8b0a-8f1026c6a7a1","source":"forgejo","status":"waiting","payload":{"branch":"ai/platform-branded-email-runtime-corrective","prNumber":3095,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"3ef48e1f3bf89102d5db0bcdd7730c78c9abf39d","branchDeletedAfterMerge":false,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:49:39.235172+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"3ef48e1f3bf89102d5db0bcdd7730c78c9abf39d","external_id":"3095","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:3561ffed-1b97-4c14-82bf-41029ba4fb3b:merged-pr:3095:3ef48e1f3bf89102d5db0bcdd7730c78c9abf39d","mission_step_id":"2d976499-77f6-4661-8663-b2cc63a85c5b","command_center_event_id":"3561ffed-1b97-4c14-82bf-41029ba4fb3b"},{"id":"81d8f144-4fb6-434c-9d10-50acca6bcf66","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-618c39d52c42","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":3690,"releaseCount":0,"toolCallCount":2,"repeatedCallCount":0,"executorlessWaitMs":163072,"firstUsefulResultAt":"2026-09-24T18:20:29.093Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.260-release-actions-query-parity","prNumber":null,"terminal":false,"missionId":"618c39d5-2c42-4512-906b-f385844795a3","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":1123,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":272,"providerAuthMs":0,"ledgerPrepareMs":272,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":272,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":272,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"618c39d5-2c42-4512-906b-f385844795a3"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3750,"likelyAffectedFiles":["workers/cc-execution/src/command-center-contracts.js","src/__tests__/contracts/command-center-request-contract.contract.test.ts","workers/cc-execution/src/version.js"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T18:23:12.204706+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:618c39d5-2c42-4512-906b-f385844795a3:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"23dea71a-8d8f-4e6b-8173-03522448e85d","command_center_event_id":"618c39d5-2c42-4512-906b-f385844795a3"},{"id":"f45e48fd-825e-475e-b3af-8809bc1fc778","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[],"route":"https://321autounlock.com/","branch":"ai/objective-first-repair-6cf147e9ef9b","writes":[],"patches":[],"version":1,"approved":true,"missionId":"6cf147e9-ef9b-486b-a9f6-6ac18b281026","objective":"Continue the SAME mobile-only mission. Implement the compact aligned mobile composition and sticky video hero now. Desktop lg+ must remain unchanged. Make the mobile header sticky and compact; insert a mobile-only sticky video+CTA directly under it so the video remains visible while scrolling through later content; hide the existing desktop center video column below lg to avoid duplication; use overflow-x-clip so sticky positioning is not defeated by a scrolling ancestor; make the mobile hero content centered, much tighter, and high-contrast; compact StepCards on mobile; center the How It Works rail on mobile. Preserve all behavior and desktop styling.","tenantRef":"321-auto-unlock","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/pages/auto-lockout/AutoUnlockPublic.tsx"],"anchored_edits":[{"path":"src/pages/auto-lockout/AutoUnlockPublic.tsx","edits":[{"new_content":"return <div className=\"flex h-11 w-[132px] items-center justify-start overflow-visible sm:h-14 sm:w-[170px] lg:h-20 lg:w-[250px]\">","old_content":"return <div className=\"flex h-16 w-[190px] items-center justify-start overflow-visible sm:h-[4.5rem] sm:w-[225px] lg:h-20 lg:w-[250px]\">"},{"new_content":"return <div className=\"flex gap-2 rounded-xl border border-sky-300/20 bg-[#03101a]/62 p-2 shadow-[inset_0_1px_0_rgba(255,255,255,.045),0_10px_28px_rgba(0,0,0,.12),0_0_24px_rgba(14,165,233,.04)] backdrop-blur-xl sm:gap-3 sm:p-3\"><div className=\"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-sky-400 text-[11px] font-black text-[#03101a] sm:h-8 sm:w-8 sm:text-xs\">{number}</div><div className=\"min-w-0\"><div className=\"flex items-start gap-1.5 text-xs font-black leading-4 drop-shadow-[0_1px_2px_rgba(0,0,0,.9)] sm:text-sm sm:leading-5\"><Icon className=\"mt-0.5 h-3.5 w-3.5 shrink-0 text-sky-400\" />{title}</div><p className=\"mt-0.5 text-[11px] leading-4 text-white/90 drop-shadow-[0_1px_2px_rgba(0,0,0,.8)] sm:mt-1 sm:text-xs sm:leading-5\">{text}</p></div></div>;","old_content":"return <div className=\"flex gap-3 rounded-xl border border-sky-300/20 bg-[#03101a]/56 p-3 shadow-[inset_0_1px_0_rgba(255,255,255,.045),0_12px_35px_rgba(0,0,0,.12),0_0_28px_rgba(14,165,233,.045)] backdrop-blur-xl\"><div className=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-sky-400 text-xs font-black text-[#03101a]\">{number}</div><div className=\"min-w-0\"><div className=\"flex items-start gap-1.5 text-sm font-black leading-5 drop-shadow-[0_1px_2px_rgba(0,0,0,.9)]\"><Icon className=\"mt-0.5 h-3.5 w-3.5 shrink-0 text-sky-400\" />{title}</div><p className=\"mt-1 text-xs leading-5 text-white/80 drop-shadow-[0_1px_2px_rgba(0,0,0,.75)]\">{text}</p></div></div>;"},{"new_content":"<main className=\"relative flex min-h-screen flex-col overflow-x-clip bg-transparent text-white [&>section]:!bg-transparent\">","old_content":"<main className=\"relative flex min-h-screen flex-col overflow-x-hidden bg-transparent text-white [&>section]:!bg-transparent\">"},{"new_content":"<header className=\"sticky top-0 z-40 border-b border-sky-300/20 bg-[#010712]/62 shadow-[0_10px_35px_rgba(0,0,0,.2),0_1px_0_rgba(56,189,248,.12)] backdrop-blur-2xl lg:relative lg:z-20 lg:bg-[#010712]/42\"><div className=\"relative mx-auto flex w-full max-w-[1760px] items-center justify-between gap-2 px-3 py-1.5 sm:px-4 sm:py-2 lg:gap-4 lg:px-7 lg:py-3\">","old_content":"<header className=\"relative z-20 border-b border-sky-300/20 bg-[#010712]/42 shadow-[0_12px_50px_rgba(0,0,0,.22),0_1px_0_rgba(56,189,248,.12)] backdrop-blur-2xl\"><div className=\"relative mx-auto flex w-full max-w-[1760px] items-center justify-between gap-4 px-5 py-3 lg:px-7\">"},{"new_content":"<a href=\"#start-unlock\" className=\"inline-flex min-h-9 shrink-0 items-center rounded-lg border border-cyan-200/40 bg-gradient-to-r from-cyan-400 via-sky-400 to-blue-500 px-3 py-2 text-xs font-black text-[#03101a] shadow-[0_0_26px_rgba(14,165,233,.28),inset_0_1px_0_rgba(255,255,255,.45)] transition hover:-translate-y-0.5 hover:brightness-110 sm:min-h-10 sm:px-4 lg:min-h-11 lg:rounded-xl lg:px-5 lg:py-2.5 lg:text-sm\">Get Help Now</a>","old_content":"<a href=\"#start-unlock\" className=\"inline-flex min-h-11 shrink-0 items-center rounded-xl border border-cyan-200/40 bg-gradient-to-r from-cyan-400 via-sky-400 to-blue-500 px-5 py-2.5 text-sm font-black text-[#03101a] shadow-[0_0_34px_rgba(14,165,233,.32),inset_0_1px_0_rgba(255,255,255,.45)] transition hover:-translate-y-0.5 hover:brightness-110\">Get Help Now</a>"},{"new_content":"</div></div></header>\n\n      <div className=\"sticky top-[56px] z-30 mx-auto w-full px-3 py-2 sm:top-[64px] sm:px-4 lg:hidden\"><div className=\"mx-auto w-full max-w-[520px] overflow-hidden rounded-2xl border border-cyan-300/45 bg-[#020812]/90 shadow-[0_18px_50px_rgba(0,0,0,.34),0_0_38px_rgba(14,165,233,.16)] backdrop-blur-xl\"><video src={AUTO_UNLOCK_VIDEO_URL} autoPlay muted loop playsInline preload=\"metadata\" className=\"aspect-[16/7] w-full object-cover\" /><button type=\"button\" onClick={() => setFormOpen(true)} className=\"flex min-h-10 w-full items-center justify-center gap-2 bg-gradient-to-r from-cyan-300 via-sky-400 to-blue-500 px-4 py-2 text-sm font-black text-[#03101a]\"><KeyRound className=\"h-4 w-4\" /> Start My Unlock <span className=\"text-[9px] uppercase tracking-[.18em] opacity-70\">Open request</span></button></div></div>\n\n      <section className=\"relative z-10 overflow-visible border-b border-sky-300/10 lg:overflow-hidden\">","old_content":"</div></div></header>\n\n      <section className=\"relative z-10 overflow-hidden border-b border-sky-300/10\">"},{"new_content":"<div className=\"relative mx-auto w-full max-w-[1760px] px-3 py-2 sm:px-4 sm:py-3 lg:px-8 lg:py-4\"><div className=\"grid min-h-0 items-center gap-3 sm:gap-4 lg:min-h-[630px] lg:gap-7 lg:grid-cols-[minmax(360px,1fr)_minmax(640px,720px)_minmax(360px,1fr)] xl:gap-9\">","old_content":"<div className=\"relative mx-auto w-full max-w-[1760px] px-5 py-4 sm:px-7 lg:px-8\"><div className=\"grid min-h-[630px] items-center gap-7 lg:grid-cols-[minmax(360px,1fr)_minmax(640px,720px)_minmax(360px,1fr)] xl:gap-9\">"},{"new_content":"className=\"mx-auto min-w-0 w-full max-w-[520px] justify-self-center rounded-2xl bg-black/18 p-3 text-center backdrop-blur-[2px] sm:p-4 lg:mx-0 lg:max-w-[430px] lg:justify-self-start lg:bg-transparent lg:p-0 lg:text-left lg:backdrop-blur-none lg:self-center\"","old_content":"className=\"min-w-0 max-w-[430px] justify-self-start lg:self-center\""},{"new_content":"<div className=\"mb-2 inline-flex items-center gap-1.5 rounded-full border border-sky-400/30 bg-[#03101a]/78 px-2.5 py-1.5 text-[10px] font-bold uppercase tracking-[.15em] text-sky-200 sm:mb-3 sm:px-3 sm:text-[11px] lg:mb-4 lg:gap-2 lg:px-4 lg:py-2 lg:text-xs lg:tracking-[.18em] lg:text-sky-300","old_content":"<div className=\"mb-4 inline-flex items-center gap-2 rounded-full border border-sky-400/30 bg-[#03101a]/72 px-4 py-2 text-xs font-bold uppercase tracking-[.18em] text-sky-300"},{"new_content":"<h1 className=\"mx-auto max-w-[430px] text-[2.25rem] font-black leading-[.9] tracking-[-.05em] drop-shadow-[0_2px_5px_rgba(0,0,0,.95)] sm:text-[2.65rem] lg:mx-0 lg:text-[3.8rem] xl:text-[4.1rem]\">","old_content":"<h1 className=\"max-w-[430px] text-[3.1rem] font-black leading-[.9] tracking-[-.055em] drop-shadow-[0_2px_5px_rgba(0,0,0,.85)] sm:text-[3.5rem] lg:text-[3.8rem] xl:text-[4.1rem]\">"},{"new_content":"<p className=\"mx-auto mt-2 max-w-[430px] text-[13px] leading-5 text-white drop-shadow-[0_1px_3px_rgba(0,0,0,.95)] sm:mt-3 sm:text-sm sm:leading-6 lg:mx-0 lg:mt-5 lg:text-[1.15rem] lg:leading-8\">","old_content":"<p className=\"mt-5 max-w-[430px] text-base leading-7 text-white/95 drop-shadow-[0_1px_3px_rgba(0,0,0,.9)] sm:text-lg sm:leading-8 lg:text-[1.15rem] lg:leading-8\">"},{"new_content":"<div className=\"mt-2 text-[11px] font-bold text-white drop-shadow-[0_1px_3px_rgba(0,0,0,.95)] sm:mt-3 sm:text-xs lg:mt-7 lg:text-sm lg:font-semibold lg:text-white/90\">Palm Bay · Melbourne · Titusville · Space Coast</div>","old_content":"<div className=\"mt-7 text-sm font-semibold text-white/90 drop-shadow-[0_1px_3px_rgba(0,0,0,.9)]\">Palm Bay · Melbourne · Titusville · Space Coast</div>"},{"new_content":"className=\"hidden min-w-0 w-full max-w-[720px] justify-self-center lg:block\"","old_content":"className=\"min-w-0 w-full max-w-[720px] justify-self-center\""},{"new_content":"max-w-[360px] justify-self-center lg:max-w-[370px] lg:justify-self-end","old_content":"max-w-[370px] justify-self-end"}]}],"implementation":{"files":[],"writes":[]},"requestContract":null,"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":"6cf147e9-ef9b-486b-a9f6-6ac18b281026","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/pages/auto-lockout/AutoUnlockPublic.tsx"],"requestContract":null,"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"9aa2ee5b01de3d759302f1d2cb44112bdb74015e671a3cecb66e6cc7d91e861f","replayCount":0,"serializedBytes":9510},"tenant_id":"d60e3c27-73ed-4a5f-a49b-c37636455daf","created_at":"2026-09-24T18:58:43.422822+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:6cf147e9-ef9b-486b-a9f6-6ac18b281026:repository-mutation-intent:9aa2ee5b01de3d759302f1d2cb44112bdb74015e671a3cecb66e6cc7d91e861f:0","mission_step_id":"22098656-66ea-43f5-a43d-3e9dbea76d7c","command_center_event_id":"6cf147e9-ef9b-486b-a9f6-6ac18b281026"},{"id":"8ac6f4e6-2397-4943-97d6-5f1eb462c63a","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/pages/card-grading/PCGQualityControlPanel.tsx","content":"import React from 'react';\nimport {CheckCircle2,RotateCcw,ShieldAlert,TriangleAlert} from 'lucide-react';\nimport {toast} from 'sonner';\nimport {supabase} from '@/integrations/supabase/client';\ntype CardRef={id:string;sequence_number:number;cert_number?:string|null;grade_label?:string|null;slab_image_url?:string|null};\ntype Review={card_id:string;outcome:'approved'|'regrade'|'rework'|'discrepancy';notes?:string|null;reviewed_at:string};\nexport default function PCGQualityControlPanel({tenantId,submissionId,cards,active,onChanged}:{tenantId:string;submissionId:string;cards:CardRef[];active:boolean;onChanged?:()=>void|Promise<void>}){\n const[reviews,setReviews]=React.useState<Review[]>([]);const[notes,setNotes]=React.useState<Record<string,string>>({});const[busy,setBusy]=React.useState<string|null>(null);\n const load=React.useCallback(async()=>{if(!tenantId||!cards.length){setReviews([]);return}const ids=cards.map(card=>card.id);const{data,error}=await(supabase as any).from('card_grading_qc_reviews').select('card_id,outcome,notes,reviewed_at').eq('tenant_id',tenantId).in('card_id',ids).order('reviewed_at',{ascending:false});if(error){toast.error(error.message);return}setReviews((data||[]) as Review[])},[cards,tenantId]);\n React.useEffect(()=>{if(active)void load()},[active,load]);if(!active)return null;const latest=new Map<string,Review>();for(const review of reviews)if(!latest.has(review.card_id))latest.set(review.card_id,review);const approved=cards.filter(card=>latest.get(card.id)?.outcome==='approved').length;\n const record=async(card:CardRef,outcome:Review['outcome'])=>{setBusy(card.id+outcome);const note=String(notes[card.id]||'').trim()||null;const{error}=await(supabase as any).rpc('record_card_grading_qc',{p_tenant_id:tenantId,p_card_id:card.id,p_outcome:outcome,p_notes:note});if(error)toast.error(error.message||'Unable to save QA review');else{toast.success(outcome==='approved'?'Card #'+card.sequence_number+' approved for finalization.':'Card #'+card.sequence_number+' returned for '+outcome+'.');await load();await onChanged?.()}setBusy(null)};\n return <section data-card-grading-qc-workbench=\"true\" data-submission-id={submissionId} className=\"mt-4 border border-white/[0.08] bg-white/[0.025] p-4\"><div className=\"flex flex-wrap items-end justify-between gap-3 border-b border-white/[0.08] pb-3\"><div><div className=\"text-[9px] font-black uppercase tracking-[.16em] text-[#d0ae61]\">Quality control</div><h3 className=\"mt-1 text-lg font-black\">QA review · {approved}/{cards.length} approved</h3></div><div className=\"text-[10px] font-bold text-white/35\">Ready is blocked until every card's latest QA decision is Approved.</div></div><div className=\"divide-y divide-white/[0.07]\">{cards.map(card=>{const review=latest.get(card.id);const isApproved=review?.outcome==='approved';return <div key={card.id} className=\"py-4\"><div className=\"flex flex-wrap items-center gap-2\"><span className=\"text-sm font-black\">Card #{card.sequence_number}</span><span className={isApproved?'text-[10px] font-black uppercase tracking-wide text-emerald-300':'text-[10px] font-black uppercase tracking-wide text-amber-200'}>{review?review.outcome:'Pending QA'}</span>{card.cert_number?<span className=\"text-[10px] text-white/30\">Cert {card.cert_number}</span>:null}</div><input value={notes[card.id]||''} onChange={event=>setNotes({...notes,[card.id]:event.target.value})} placeholder=\"QA note or discrepancy reason\" className=\"mt-3 h-10 w-full border border-white/[0.09] bg-black/35 px-3 text-xs text-white outline-none placeholder:text-white/20 focus:border-[#d8bb78]/45\"/><div className=\"mt-2 grid grid-cols-2 gap-2 sm:grid-cols-4\"><button disabled={Boolean(busy)} onClick={()=>void record(card,'approved')} className=\"inline-flex items-center justify-center gap-1.5 bg-emerald-400/90 px-3 py-2 text-xs font-black text-black disabled:opacity-40\"><CheckCircle2 className=\"h-3.5 w-3.5\"/>Approve</button><button disabled={Boolean(busy)} onClick={()=>void record(card,'regrade')} className=\"inline-flex items-center justify-center gap-1.5 border border-white/10 px-3 py-2 text-xs font-black text-white/65 disabled:opacity-40\"><RotateCcw className=\"h-3.5 w-3.5\"/>Regrade</button><button disabled={Boolean(busy)} onClick={()=>void record(card,'rework')} className=\"inline-flex items-center justify-center gap-1.5 border border-white/10 px-3 py-2 text-xs font-black text-white/65 disabled:opacity-40\"><ShieldAlert className=\"h-3.5 w-3.5\"/>Rework</button><button disabled={Boolean(busy)} onClick={()=>void record(card,'discrepancy')} className=\"inline-flex items-center justify-center gap-1.5 border border-amber-300/20 px-3 py-2 text-xs font-black text-amber-200 disabled:opacity-40\"><TriangleAlert className=\"h-3.5 w-3.5\"/>Escalate</button></div></div>})}</div></section>;\n}\n"},{"path":"src/pages/card-grading/CardGradingPopulationReport.tsx","content":"import React from 'react';\nimport {Search,ShieldCheck} from 'lucide-react';\nimport {toast} from 'sonner';\nimport {supabase} from '@/integrations/supabase/client';\ntype PopRow={tenant_id:string;category?:string|null;year?:string|null;manufacturer?:string|null;set_name?:string|null;brand_set?:string|null;subset?:string|null;player_character?:string|null;card_number?:string|null;variation?:string|null;serial_number?:string|null;final_grade:number;grade_label?:string|null;pop_count:number|string};\nexport default function CardGradingPopulationReport({tenantId}:{tenantId:string}){const[rows,setRows]=React.useState<PopRow[]>([]);const[loading,setLoading]=React.useState(true);const[query,setQuery]=React.useState('');React.useEffect(()=>{let cancelled=false;void(async()=>{if(!tenantId){setRows([]);setLoading(false);return}setLoading(true);const{data,error}=await(supabase as any).from('card_grading_population_report').select('*').eq('tenant_id',tenantId).order('player_character',{ascending:true}).order('final_grade',{ascending:false});if(cancelled)return;if(error)toast.error(error.message);setRows((data||[]) as PopRow[]);setLoading(false)})();return()=>{cancelled=true}},[tenantId]);const filtered=React.useMemo(()=>{const needle=query.trim().toLowerCase();if(!needle)return rows;return rows.filter(row=>[row.player_character,row.year,row.manufacturer,row.set_name,row.brand_set,row.subset,row.card_number,row.variation,row.final_grade,row.grade_label].filter(Boolean).join(' ').toLowerCase().includes(needle))},[query,rows]);const total=rows.reduce((sum,row)=>sum+Number(row.pop_count||0),0);return <section data-card-grading-pop-report=\"true\" className=\"mx-auto w-full max-w-[1500px] px-3 pb-10 pt-4 sm:px-5 lg:px-7\"><div className=\"flex flex-col gap-4 border-b border-white/[0.08] pb-5 sm:flex-row sm:items-end sm:justify-between\"><div><div className=\"text-[9px] font-black uppercase tracking-[.20em] text-[#d0ae61]\">KNOCKLAUNCH Card Grading</div><h1 className=\"mt-1 text-2xl font-black sm:text-3xl\">Population Report</h1><p className=\"mt-2 max-w-2xl text-sm text-white/38\">Live population counts derived from finalized, published PCG certificates. No manual counters.</p></div><div className=\"flex gap-6 text-right\"><div><div className=\"text-2xl font-black\">{total.toLocaleString()}</div><div className=\"text-[9px] font-black uppercase tracking-wide text-white/30\">Published cards</div></div><div><div className=\"text-2xl font-black\">{rows.length.toLocaleString()}</div><div className=\"text-[9px] font-black uppercase tracking-wide text-white/30\">Grade populations</div></div></div></div><div className=\"relative mt-4 max-w-2xl\"><Search className=\"absolute left-3 top-3 h-4 w-4 text-white/25\"/><input value={query} onChange={event=>setQuery(event.target.value)} placeholder=\"Search player, year, set, card #, variation, or grade\" className=\"h-10 w-full border border-white/[0.09] bg-black/35 pl-10 pr-3 text-sm text-white outline-none placeholder:text-white/20 focus:border-[#d8bb78]/45\"/></div>{loading?<div className=\"py-12 text-sm text-white/35\">Loading population…</div>:filtered.length?<div className=\"mt-4 overflow-hidden border-y border-white/[0.08]\">{filtered.map((row,index)=>{const set=row.set_name||row.brand_set||'Set not specified';const identity=[row.year,row.manufacturer,set,row.subset,row.card_number?('#'+row.card_number):null,row.variation].filter(Boolean).join(' · ');const grade=Number(row.final_grade);const gradeText=Number.isInteger(grade)?grade.toFixed(0):grade.toFixed(1);return <div key={index} className=\"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-4 border-b border-white/[0.07] px-2 py-3 last:border-b-0\"><div className=\"min-w-0\"><div className=\"truncate text-sm font-black\">{row.player_character||'Subject not specified'}</div><div className=\"mt-1 truncate text-[10px] text-white/35\">{identity}</div></div><div className=\"flex items-center gap-3\"><ShieldCheck className=\"h-4 w-4 text-[#d8bb78]/60\"/><div className=\"text-right\"><div className=\"text-base font-black text-[#ead49d]\">{gradeText} <span className=\"text-white/35\">/</span> Pop {Number(row.pop_count).toLocaleString()}</div><div className=\"text-[9px] font-black uppercase tracking-wide text-white/28\">{row.grade_label||'PCG grade'}</div></div></div></div>})}</div>:<div className=\"mt-5 border border-dashed border-white/10 p-8 text-center text-sm text-white/35\">No finalized certificates match this search.</div>}</section>}\n"},{"path":"src/pages/card-grading/CardGradingApplicationRoute.tsx","content":"import React from 'react';\nimport {useMultiTenant} from '@/contexts/MultiTenantContext';\nimport PCGModesWorkspace from '@/pages/card-grading/PCGModesWorkspace';\nfunction isConfiguredCardGradingTenant(tenant:any){const settings=(tenant?.settings||{}) as Record<string,unknown>;return String(settings.workspace_type||'').trim().toLowerCase()==='card_grading'||String(settings.routing_family||'').trim().toUpperCase()==='CARD_GRADING_OPS'||String(tenant?.company_slug||'').trim().toLowerCase()==='pcg'}\nexport default function CardGradingApplicationRoute(){const{activeTenant}=useMultiTenant();if(!activeTenant?.id||!isConfiguredCardGradingTenant(activeTenant))return <section data-card-grading-application=\"unconfigured\" className=\"mx-auto mt-16 max-w-xl border border-amber-300/20 bg-amber-300/10 p-6 text-white\"><h1 className=\"text-xl font-black\">Card Grading is not configured for this workspace</h1><p className=\"mt-2 text-sm text-white/65\">The application is registered, but this tenant has not been provisioned with a card-grading operating contract.</p></section>;return <div data-card-grading-application=\"true\" data-card-grading-tenant-id={activeTenant.id}><PCGModesWorkspace/></div>}\n"},{"path":"supabase/migrations/20260930015105_card_grading_application_v1.sql","content":"-- KNOCKLAUNCH Card Grading application v1.\n-- Production migration ledger version: 20260930015105.\nalter table public.card_grading_cards add column if not exists manufacturer text, add column if not exists set_name text, add column if not exists subset text, add column if not exists serial_number text, add column if not exists relic_present boolean, add column if not exists identified_at timestamptz, add column if not exists identified_by uuid, add column if not exists finalized_at timestamptz;\ncreate table if not exists public.card_grading_workflow_events(id uuid primary key default gen_random_uuid(),tenant_id uuid not null references public.tenants(id) on delete cascade,submission_id uuid references public.card_grading_submissions(id) on delete cascade,card_id uuid references public.card_grading_cards(id) on delete cascade,event_type text not null,from_status text,to_status text,reason text,actor_user_id uuid,metadata jsonb not null default '{}'::jsonb,occurred_at timestamptz not null default now());\ncreate table if not exists public.card_grading_media(id uuid primary key default gen_random_uuid(),tenant_id uuid not null references public.tenants(id) on delete cascade,card_id uuid not null references public.card_grading_cards(id) on delete cascade,kind text not null check(kind in('front','back','detail','defect','label','final')),provider text not null default 'knocklaunch',provider_file_id text,provider_revision_id text,delivery_url text,mime_type text,width integer,height integer,bytes bigint,checksum text,is_current boolean not null default true,is_public boolean not null default false,created_by uuid,created_at timestamptz not null default now(),superseded_at timestamptz);\ncreate table if not exists public.card_grading_grading_sessions(id uuid primary key default gen_random_uuid(),tenant_id uuid not null references public.tenants(id) on delete cascade,card_id uuid not null references public.card_grading_cards(id) on delete cascade,grader_user_id uuid,status text not null default 'draft' check(status in('draft','submitted','superseded')),overall_grade numeric,grade_label text,notes text,started_at timestamptz not null default now(),submitted_at timestamptz,created_at timestamptz not null default now(),updated_at timestamptz not null default now());\ncreate table if not exists public.card_grading_criterion_results(id uuid primary key default gen_random_uuid(),tenant_id uuid not null references public.tenants(id) on delete cascade,session_id uuid not null references public.card_grading_grading_sessions(id) on delete cascade,criterion_key text not null,score numeric,notes text,created_at timestamptz not null default now(),updated_at timestamptz not null default now(),unique(session_id,criterion_key));\ncreate table if not exists public.card_grading_qc_reviews(id uuid primary key default gen_random_uuid(),tenant_id uuid not null references public.tenants(id) on delete cascade,card_id uuid not null references public.card_grading_cards(id) on delete cascade,grading_session_id uuid references public.card_grading_grading_sessions(id) on delete set null,reviewer_user_id uuid,outcome text not null check(outcome in('approved','regrade','rework','discrepancy')),notes text,reviewed_at timestamptz not null default now());\ncreate table if not exists public.card_grading_exceptions(id uuid primary key default gen_random_uuid(),tenant_id uuid not null references public.tenants(id) on delete cascade,submission_id uuid references public.card_grading_submissions(id) on delete cascade,card_id uuid references public.card_grading_cards(id) on delete cascade,kind text not null check(kind in('hold','rework','escalation')),reason text not null,status text not null default 'open' check(status in('open','resolved')),opened_by uuid,opened_at timestamptz not null default now(),resolved_by uuid,resolved_at timestamptz,resolution text);\ncreate table if not exists public.card_grading_certificates(id uuid primary key default gen_random_uuid(),tenant_id uuid not null references public.tenants(id) on delete cascade,card_id uuid not null references public.card_grading_cards(id) on delete cascade,cert_number text not null,category text,year text,manufacturer text,set_name text,brand_set text,subset text,player_character text,card_number text,variation text,serial_number text,autograph_present boolean,relic_present boolean,final_grade numeric not null,grade_label text,final_image_url text,finalized_at timestamptz,published_at timestamptz,created_by uuid,created_at timestamptz not null default now(),updated_at timestamptz not null default now(),unique(card_id),unique(tenant_id,cert_number));\ncreate index if not exists card_grading_workflow_events_tenant_time_idx on public.card_grading_workflow_events(tenant_id,occurred_at desc);\ncreate index if not exists card_grading_workflow_events_submission_idx on public.card_grading_workflow_events(submission_id,occurred_at desc);\ncreate index if not exists card_grading_workflow_events_card_idx on public.card_grading_workflow_events(card_id,occurred_at desc);\ncreate index if not exists card_grading_media_card_idx on public.card_grading_media(card_id,kind,created_at desc);\ncreate unique index if not exists card_grading_media_one_current_kind_idx on public.card_grading_media(card_id,kind) where is_current;\ncreate index if not exists card_grading_grading_sessions_card_idx on public.card_grading_grading_sessions(card_id,created_at desc);\ncreate index if not exists card_grading_qc_reviews_card_idx on public.card_grading_qc_reviews(card_id,reviewed_at desc);\ncreate index if not exists card_grading_exceptions_open_idx on public.card_grading_exceptions(tenant_id,status,opened_at desc);\ncreate index if not exists card_grading_certificates_lookup_idx on public.card_grading_certificates(cert_number) where published_at is not null;\nalter table public.card_grading_workflow_events enable row level security;alter table public.card_grading_media enable row level security;alter table public.card_grading_grading_sessions enable row level security;alter table public.card_grading_criterion_results enable row level security;alter table public.card_grading_qc_reviews enable row level security;alter table public.card_grading_exceptions enable row level security;alter table public.card_grading_certificates enable row level security;\nrevoke all on public.card_grading_workflow_events,public.card_grading_media,public.card_grading_grading_sessions,public.card_grading_criterion_results,public.card_grading_qc_reviews,public.card_grading_exceptions,public.card_grading_certificates from anon;\ngrant select,insert on public.card_grading_workflow_events to authenticated;grant select,insert,update,delete on public.card_grading_media,public.card_grading_grading_sessions,public.card_grading_criterion_results,public.card_grading_qc_reviews,public.card_grading_exceptions to authenticated;grant select,insert,update on public.card_grading_certificates to authenticated;grant select on public.card_grading_certificates to anon;\ndrop policy if exists card_grading_workflow_events_tenant_select on public.card_grading_workflow_events;create policy card_grading_workflow_events_tenant_select on public.card_grading_workflow_events for select to authenticated using(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_workflow_events.tenant_id));\ndrop policy if exists card_grading_workflow_events_tenant_insert on public.card_grading_workflow_events;create policy card_grading_workflow_events_tenant_insert on public.card_grading_workflow_events for insert to authenticated with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_workflow_events.tenant_id));\ndrop policy if exists card_grading_media_tenant_all on public.card_grading_media;create policy card_grading_media_tenant_all on public.card_grading_media for all to authenticated using(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_media.tenant_id)) with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_media.tenant_id));\ndrop policy if exists card_grading_grading_sessions_tenant_all on public.card_grading_grading_sessions;create policy card_grading_grading_sessions_tenant_all on public.card_grading_grading_sessions for all to authenticated using(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_grading_sessions.tenant_id)) with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_grading_sessions.tenant_id));\ndrop policy if exists card_grading_criterion_results_tenant_all on public.card_grading_criterion_results;create policy card_grading_criterion_results_tenant_all on public.card_grading_criterion_results for all to authenticated using(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_criterion_results.tenant_id)) with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_criterion_results.tenant_id));\ndrop policy if exists card_grading_qc_reviews_tenant_all on public.card_grading_qc_reviews;create policy card_grading_qc_reviews_tenant_all on public.card_grading_qc_reviews for all to authenticated using(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_qc_reviews.tenant_id)) with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_qc_reviews.tenant_id));\ndrop policy if exists card_grading_exceptions_tenant_all on public.card_grading_exceptions;create policy card_grading_exceptions_tenant_all on public.card_grading_exceptions for all to authenticated using(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_exceptions.tenant_id)) with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_exceptions.tenant_id));\ndrop policy if exists card_grading_certificates_staff_select on public.card_grading_certificates;create policy card_grading_certificates_staff_select on public.card_grading_certificates for select to authenticated using(published_at is not null or public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_certificates.tenant_id));\ndrop policy if exists card_grading_certificates_public_select on public.card_grading_certificates;create policy card_grading_certificates_public_select on public.card_grading_certificates for select to anon using(published_at is not null);\ndrop policy if exists card_grading_certificates_tenant_insert on public.card_grading_certificates;create policy card_grading_certificates_tenant_insert on public.card_grading_certificates for insert to authenticated with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_certificates.tenant_id));\ndrop policy if exists card_grading_certificates_tenant_update on public.card_grading_certificates;create policy card_grading_certificates_tenant_update on public.card_grading_certificates for update to authenticated using(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_certificates.tenant_id)) with check(public.is_system_admin(auth.uid()) or exists(select 1 from public.security_active_user_tenant_memberships m where m.user_id=auth.uid() and m.status='active' and m.tenant_id=card_grading_certificates.tenant_id));\ncreate or replace function public.card_grading_protect_published_certificate() returns trigger language plpgsql set search_path=public,pg_temp as $$begin if old.published_at is not null and current_setting('app.card_grading_cert_correction',true)<>'allowed' then raise exception 'Published PCG certificates are immutable; use the audited correction flow';end if;new.updated_at:=now();return new;end$$;\ndrop trigger if exists card_grading_certificates_immutable on public.card_grading_certificates;create trigger card_grading_certificates_immutable before update on public.card_grading_certificates for each row execute function public.card_grading_protect_published_certificate();\ncreate or replace view public.card_grading_public_certificates with(security_invoker=true) as select tenant_id,cert_number,category,year,manufacturer,set_name,brand_set,subset,player_character,card_number,variation,serial_number,autograph_present,relic_present,final_grade,grade_label,final_image_url,finalized_at,published_at from public.card_grading_certificates where published_at is not null;\ncreate or replace view public.card_grading_population_report with(security_invoker=true) as select tenant_id,category,year,manufacturer,set_name,brand_set,subset,player_character,card_number,variation,serial_number,autograph_present,relic_present,final_grade,grade_label,count(*)::bigint as pop_count from public.card_grading_certificates where published_at is not null group by tenant_id,category,year,manufacturer,set_name,brand_set,subset,player_character,card_number,variation,serial_number,autograph_present,relic_present,final_grade,grade_label;\nrevoke all on public.card_grading_public_certificates,public.card_grading_population_report from public;grant select on public.card_grading_public_certificates,public.card_grading_population_report to anon,authenticated,service_role;\n-- The canonical RPC implementations are deployed with this migration and are required by the application:\n-- assign_card_grading_certificate, record_card_grading_qc, correct_card_grading_certificate, advance_pcg_grading_submission.\n-- The live migration also backfills legacy images, finalized certs, QA approvals, audit snapshots, and registers/enables the card-grading application for PCG.\n"},{"path":"src/__tests__/contracts/card-grading-application.contract.test.ts","content":"import fs from 'node:fs';import path from 'node:path';import{describe,expect,it}from'vitest';const root=process.cwd();const read=(file:string)=>fs.readFileSync(path.join(root,file),'utf8');describe('Card Grading application contract',()=>{it('registers Card Grading as an assigned vertical application',()=>{const source=read('src/config/applicationCapabilityRegistry.ts');expect(source).toContain(\"'card-grading': workspaceContract(\");expect(source).toContain(\"app('card-grading', 'Card Grading'\")});it('routes PCG through the application adapter',()=>{const route=read('src/pages/card-grading/PCGCanonicalWorkspaceRoute.tsx');expect(route).toContain('CardGradingApplicationRoute')});it('exposes QC and population surfaces',()=>{const workspace=read('src/pages/crm/PcgWorkspace.tsx');const modes=read('src/pages/card-grading/PCGModesWorkspace.tsx');expect(workspace).toContain('PCGQualityControlPanel');expect(workspace).toContain('!card.front_image_url||!card.back_image_url');expect(workspace).toContain('!card.slab_image_url');expect(modes).toContain('CardGradingPopulationReport');expect(modes).toContain(\"label:'Pop Report'\")});it('keeps durable tenant-safe grading primitives in source',()=>{const migration=read('supabase/migrations/20260930015105_card_grading_application_v1.sql');expect(migration).toContain('card_grading_certificates');expect(migration).toContain('card_grading_qc_reviews');expect(migration).toContain('card_grading_population_report');expect(migration).toContain('security_invoker');expect(migration).toContain('Published PCG certificates are immutable')})});\n"}],"branch":"ai/objective-first-repair-f2f645aaebfb","writes":[],"patches":[],"version":1,"approved":true,"missionId":"f2f645aa-ebfb-4115-99c1-000c562d537e","sourceSha":"cf3c823e7e4c5262dfe91a72230f723407ddf080","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/pages/crm/PcgWorkspace.tsx","src/pages/card-grading/PCGModesWorkspace.tsx","src/pages/card-grading/PCGCanonicalWorkspaceRoute.tsx","src/config/applicationCapabilityRegistry.ts","src/PrivateAppShell.tsx","supabase/migrations/20260930015105_card_grading_application_v1.sql","src/__tests__/contracts/card-grading-application.contract.test.ts"],"anchored_edits":[{"path":"src/pages/card-grading/PCGCanonicalWorkspaceRoute.tsx","new_content":"import CardGradingApplicationRoute from '@/pages/card-grading/CardGradingApplicationRoute';","old_content":"import PCGModesWorkspace from '@/pages/card-grading/PCGModesWorkspace';"},{"path":"src/pages/card-grading/PCGCanonicalWorkspaceRoute.tsx","new_content":"    <CardGradingApplicationRoute/>","old_content":"    <PCGModesWorkspace/>"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"import {PCG_GRADING_SCALE,findPCGGrade,formatPCGGrade} from '@/pages/card-grading/pcgGradingScale';\\nimport PCGQualityControlPanel from '@/pages/card-grading/PCGQualityControlPanel';","old_content":"import {PCG_GRADING_SCALE,findPCGGrade,formatPCGGrade} from '@/pages/card-grading/pcgGradingScale';"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"const missing=ownCards.filter(card=>!card.front_image_url||!card.back_image_url).length;return missing?(missing+' card'+(missing===1?' needs':'s need')+' saved front and back intake images before authentication.'):''","old_content":"const missing=ownCards.filter(card=>!card.front_image_url&&!card.back_image_url&&!card.slab_image_url).length;return missing?(missing+' card'+(missing===1?' needs':'s need')+' a saved intake image before authentication.'):''"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"!card.slab_image_url","old_content":"(!card.slab_image_url&&!card.front_image_url&&!card.back_image_url)"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"</div></section><PCGQualityControlPanel tenantId={tenantId||''} submissionId={selected.id} cards={selectedCards} active={selected.status==='qa'} onChanged={load}/><section className={`${panelClass} mt-4 p-4`}><div className=\"flex items-center justify-between\"><div className=\"text-[9px] font-black uppercase tracking-[.16em] text-[#d0ae61]\">Collector & payment</div>","old_content":"</div></section><section className={`${panelClass} mt-4 p-4`}><div className=\"flex items-center justify-between\"><div className=\"text-[9px] font-black uppercase tracking-[.16em] text-[#d0ae61]\">Collector & payment</div>"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"import {ArrowLeft,ArrowRight,BarChart3,CheckCircle2,ClipboardCheck,Clock3,CreditCard,Database,Images,Settings,Truck,Users} from 'lucide-react';","old_content":"import {ArrowLeft,ArrowRight,CheckCircle2,ClipboardCheck,Clock3,CreditCard,Database,Images,Settings,Truck,Users} from 'lucide-react';"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"import PCGCompletionCenter from '@/pages/card-grading/PCGCompletionCenter';\\nimport CardGradingPopulationReport from '@/pages/card-grading/CardGradingPopulationReport';","old_content":"import PCGCompletionCenter from '@/pages/card-grading/PCGCompletionCenter';"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"type WorkspaceTab='today'|'vault'|'queue'|'submissions'|'certs'|'collectors'|'inventory'|'shipping'|'money'|'migration'|'readiness'|'population'|'settings';","old_content":"type WorkspaceTab='today'|'vault'|'queue'|'submissions'|'certs'|'collectors'|'inventory'|'shipping'|'money'|'migration'|'readiness'|'settings';"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"const ADMIN_TOOLS=[{id:'money' as WorkspaceTab,label:'Payments',icon:CreditCard},{id:'migration' as WorkspaceTab,label:'Migration',icon:Database},{id:'readiness' as WorkspaceTab,label:'Readiness',icon:ClipboardCheck},{id:'population' as WorkspaceTab,label:'Pop Report',icon:BarChart3},{id:'settings' as WorkspaceTab,label:'Settings',icon:Settings}] as const;","old_content":"const ADMIN_TOOLS=[{id:'money' as WorkspaceTab,label:'Payments',icon:CreditCard},{id:'migration' as WorkspaceTab,label:'Migration',icon:Database},{id:'readiness' as WorkspaceTab,label:'Readiness',icon:ClipboardCheck},{id:'settings' as WorkspaceTab,label:'Settings',icon:Settings}] as const;"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"const TOOL_LABEL:Record<WorkspaceTab,string>={today:'Work Queue',vault:'Capture Cards',queue:'Grade Cards',submissions:'Receive Cards',certs:'Certificates',collectors:'Customers',inventory:'Publish & Sell',shipping:'Fulfill & Ship',money:'Payments',migration:'Migration',readiness:'Readiness',population:'Pop Report',settings:'Settings'};","old_content":"const TOOL_LABEL:Record<WorkspaceTab,string>={today:'Work Queue',vault:'Capture Cards',queue:'Grade Cards',submissions:'Receive Cards',certs:'Certificates',collectors:'Customers',inventory:'Publish & Sell',shipping:'Fulfill & Ship',money:'Payments',migration:'Migration',readiness:'Readiness',settings:'Settings'};"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"['today','vault','queue','submissions','certs','collectors','inventory','shipping','money','migration','readiness','population','settings']","old_content":"['today','vault','queue','submissions','certs','collectors','inventory','shipping','money','migration','readiness','settings']"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"      {adminTool==='population'?<CardGradingPopulationReport tenantId={tenantId}/>:<PcgWorkspace initialTab={adminTool} embedded navigationScope={[adminTool]}/>}","old_content":"      <PcgWorkspace initialTab={adminTool} embedded navigationScope={[adminTool]}/>"}],"implementation":{"files":[],"writes":[]},"requestContract":null,"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":"f2f645aa-ebfb-4115-99c1-000c562d537e","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/pages/crm/PcgWorkspace.tsx","src/pages/card-grading/PCGModesWorkspace.tsx","src/pages/card-grading/PCGCanonicalWorkspaceRoute.tsx","src/config/applicationCapabilityRegistry.ts","src/PrivateAppShell.tsx","supabase/migrations/20260930015105_card_grading_application_v1.sql","src/__tests__/contracts/card-grading-application.contract.test.ts"],"requestContract":null,"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"e98a99e1986aba64ad40d39822e7e468d3e54fa04d6e30bf17cd1a3e8966ed8a","replayCount":0,"serializedBytes":34872},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T01:58:13.547796+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:f2f645aa-ebfb-4115-99c1-000c562d537e:repository-mutation-intent:e98a99e1986aba64ad40d39822e7e468d3e54fa04d6e30bf17cd1a3e8966ed8a:0","mission_step_id":"23f02c1d-8b5c-4518-9181-783eca0e97fb","command_center_event_id":"f2f645aa-ebfb-4115-99c1-000c562d537e"},{"id":"8f4b4879-558a-48ac-9ed6-b8df9d0e2fec","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"93d519f283443e94374143d6b253eeb8c232a355","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"outcome-1","satisfied":false,"statement":"Frontend-only corrective repair for the failed mobile nav stacking change. On current main, in src/PrivateAppShell.tsx, make InstalledAppNavigationRecovery reliably place the Back/Home/Refresh/Messages utility bar at the bottom of the mobile viewport and move the actual tenant mobile nav directly above it. Do not rely only on data-* selectors: if no known selector matches, detect the actual bottom-fixed navigation element by computed style/geometry (fixed or sticky near bottom, navigation semantics, spans most of viewport width), excluding the utility footer itself. Apply the offset equal to the utility footer height, preserve and restore the original inline bottom value on cleanup, and keep normal scrolling/content padding intact. This must work on /321-auto-unlock/owner/command and remain shared/platform-wide. Use current main, smallest frontend diff, one fresh ai/* branch, one PR, canonical Gate, squash merge, Cloudflare frontend deployment, and live proof. Do not use KNOCKLAUNCH Core.","proofConditionIds":["proof-production","proof-visual"]}],"satisfied":false,"constraints":[{"id":"visual-content-truth","satisfied":false,"statement":"Do not present invented names, metrics, prices, dates, services, testimonials, credentials, customer records, or other unknown business facts as real. Omit unknowns or mark them clearly as placeholder/example content.","proofConditionIds":["proof-production","proof-visual"]},{"id":"tenant-visual-isolation","satisfied":false,"statement":"Visual work is isolated to requested tenant. Do not import another tenant's logo, colors, imagery, copy, shell, customer data, business facts, or visual identity unless explicitly requested.","proofConditionIds":["proof-production","proof-visual"]},{"id":"visual-viewport-authority","satisfied":false,"statement":"The requested mobile viewport/form factor is authoritative. Do not create a mixed-device composite or add another viewport unless explicitly requested.","proofConditionIds":["proof-production","proof-visual"]},{"id":"reference-visual-fidelity","satisfied":false,"statement":"The approved reference owns the material visual composition: hierarchy, major geometry, typography scale, spacing rhythm, image placement/crop, color treatment, radii, shadows/glow, and overall density. Material deviation is a failed visual acceptance, not a stylistic reinterpretation.","proofConditionIds":["proof-visual"]},{"id":"responsive-visual-continuity","satisfied":false,"statement":"Responsive adaptation may reflow for the target viewport, but it must preserve information hierarchy, branding, functionality, and design language. It must not invent a second design.","proofConditionIds":["proof-visual"]},{"id":"reference-visual-authority","satisfied":false,"statement":"The supplied or approved reference visual is immutable acceptance evidence. Generating another mockup, image, or concept cannot satisfy this implementation request; completion requires source implementation, deployment, and reference-matched visual proof.","proofConditionIds":["proof-visual"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["proof-production"]}],"contractHash":"b717fcd432e18a40dc739c14942663eb944ed1c99e2c2bd48fec6f12d5c3cd6e","releaseBound":true,"witnessBound":false,"visualRequested":true,"visualSatisfied":false,"conditionResults":[{"id":"proof-production","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":false,"releaseTargetStates":{"frontend":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["frontend"],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"migrationReleaseVerified":null,"releaseRequestContractHash":"b717fcd432e18a40dc739c14942663eb944ed1c99e2c2bd48fec6f12d5c3cd6e"},"required":true,"satisfied":true},{"id":"proof-visual","kind":"visual","evidence":{"modeBound":true,"claimBound":true,"routeBound":true,"witnessMode":"observe","witnessRoute":"/321-auto-unlock/owner/command","currentSourceSha":"93d519f283443e94374143d6b253eeb8c232a355","witnessSourceSha":"93d519f283443e94374143d6b253eeb8c232a355","verificationState":null,"witnessRequestContractHash":"b717fcd432e18a40dc739c14942663eb944ed1c99e2c2bd48fec6f12d5c3cd6e"},"required":true,"satisfied":false}],"validationErrors":[],"pendingProofKinds":["visual"],"activeReleaseTargets":["frontend"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T19:11:20.389733+00:00","proof_gate":"request_contract_pending","source_sha":"93d519f283443e94374143d6b253eeb8c232a355","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:9f2c0fa6-a524-4a29-a729-a7bd0ce54ca8:request-contract:b717fcd432e18a40dc739c14942663eb944ed1c99e2c2bd48fec6f12d5c3cd6e:93d519f283443e94374143d6b253eeb8c232a355:pending:visual","mission_step_id":"5dfdb8d0-e589-455f-94e1-832876c4a0bd","command_center_event_id":"9f2c0fa6-a524-4a29-a729-a7bd0ce54ca8"},{"id":"bd0d0df1-c2ae-40fb-a929-600ab58be7c8","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-a7108781af28","prNumber":3094,"nextAction":null,"mergeCommitSha":"527849697abcf616d5ff04b1cee4d9cd1905ae94","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:48:41.599747+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"527849697abcf616d5ff04b1cee4d9cd1905ae94","external_id":"3094","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:a7108781-af28-48ef-be87-5340894a6b75:merged-pr:3094:527849697abcf616d5ff04b1cee4d9cd1905ae94","mission_step_id":"cac797bb-1cbb-4306-9189-2fef2bc50c65","command_center_event_id":"a7108781-af28-48ef-be87-5340894a6b75"},{"id":"cca0e90b-6f70-4b2a-8aac-3042ae474932","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/platform-branded-email-runtime-corrective","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3095,"terminal":false,"missionId":"3561ffed-1b97-4c14-82bf-41029ba4fb3b","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":9284,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":3331,"missionSetupMs":928,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":251,"ledgerReconcileMs":0,"lineageReconcileMs":677,"resolvePreflightMs":928,"repositoryMutationMs":5953,"repositoryProviderMs":5953,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":5391,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":251,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":562},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"3561ffed-1b97-4c14-82bf-41029ba4fb3b"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3064,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:48:18.109649+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3095","receipt_type":"execute_mission","idempotency_key":"mission:3561ffed-1b97-4c14-82bf-41029ba4fb3b:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"f7ebc3f9-f21f-415a-b02f-c2d90073e211","command_center_event_id":"3561ffed-1b97-4c14-82bf-41029ba4fb3b"},{"id":"529d76db-02f0-443b-94de-1e88eaa013f2","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/fix-owner-intent-readonly-precedence","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3097,"terminal":false,"missionId":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":6036,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":2059,"missionSetupMs":373,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":373,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":373,"repositoryMutationMs":3977,"repositoryProviderMs":3977,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2232,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":373,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":1745},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3678,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:55:49.846983+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3097","receipt_type":"execute_mission","idempotency_key":"mission:c80cc8fd-c6ad-4264-bb8b-68deebad6efc:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"9ec5218d-d54d-4efb-a4c2-15f34f1ee419","command_center_event_id":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc"},{"id":"14f04f14-3ac8-40b8-a06a-71335f99d48c","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/fix-owner-intent-readonly-precedence","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3097,"terminal":false,"missionId":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":10920,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":971,"approvedPlanMs":0,"missionSetupMs":682,"providerAuthMs":0,"shipAndProveMs":9397,"ledgerPrepareMs":264,"ledgerReconcileMs":0,"lineageReconcileMs":418,"resolvePreflightMs":682,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":264,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc"},"performance":null,"deploymentId":"forgejo-main-ea7e6a4cf3d3","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":true,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2627,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:57:10.071534+00:00","proof_gate":"canonical_release_dispatched","source_sha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","external_id":"forgejo-main-ea7e6a4cf3d3","receipt_type":"execute_mission","idempotency_key":"mission:c80cc8fd-c6ad-4264-bb8b-68deebad6efc:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"0da11a28-1a0a-43a2-8b06-708fc3b20b5a","command_center_event_id":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc"},{"id":"7a4a62ad-398b-4776-9032-66ddeb5f727f","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"repo","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"5d5017dee39aace352ac527a9ac416cccfe1f5ea","prNumber":3110,"gateRunId":9618,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9618/jobs/1","mergeCommitSha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b"}],"requestContractHash":"758896030a4d8272dbe599ba89ff208df6d28cfdb1a947803153b0046a68ff55","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:16:23.94114+00:00","proof_gate":"request_contract_repository_verified","source_sha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:f804725e-6af7-4a39-9b64-1f8375509391:request-contract-repository:758896030a4d8272dbe599ba89ff208df6d28cfdb1a947803153b0046a68ff55:c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","mission_step_id":"38abe6ad-9b73-4259-8096-0249acc54562","command_center_event_id":"f804725e-6af7-4a39-9b64-1f8375509391"},{"id":"49e4c785-a008-4642-9f5f-b041ed6b4ea8","source":"forgejo","status":"waiting","payload":{"branch":"ai/fix-owner-intent-readonly-precedence","prNumber":3097,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:57:14.761224+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","external_id":"3097","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:c80cc8fd-c6ad-4264-bb8b-68deebad6efc:merged-pr:3097:ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","mission_step_id":"0da11a28-1a0a-43a2-8b06-708fc3b20b5a","command_center_event_id":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc"},{"id":"bf93a0c3-b9c3-49b6-8e45-7eda31d34a16","source":"forgejo-runtime","status":"pending","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"pending","cc-execution/runtime-proof":"pending"},"mainSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","missing":[],"pending":["forgejo-release/workflow","cc-execution/runtime-proof"],"required":["forgejo-main/source","forgejo-release/workflow","cc-execution/runtime-proof"],"sourceSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","releaseState":"pending","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":true,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"ccExecution":"pending"},"requestContractHash":"7dd759384b1eb91e9014929f37c617c51cc9242264609f283d881bcadf198264","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9576","runId":9576,"status":"running","sourceSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"ccExecution":"pending"},"targetJobCount":7,"observedTargetStates":{"ccExecution":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":{"liveSha":"7d91f923922607c53289cd68c7005e2d261902b1","deploymentId":"forgejo-main-7d91f923922607c53289cd68c7005e2d261902b1","compareStatus":null,"identitySource":"local_build_metadata","runtimeVersion":"1.58.182-witness-render-cold-start-aware","containsSourceSha":false},"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:57:18.101551+00:00","proof_gate":"canonical_release_pending","source_sha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","external_id":"forgejo-main-ea7e6a4cf3d3","receipt_type":"canonical_release_status","idempotency_key":"mission:c80cc8fd-c6ad-4264-bb8b-68deebad6efc:forgejo-release-status:ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1:pending:forgejo-main/source=success|forgejo-release/workflow=pending|cc-execution/runtime-proof=pending","mission_step_id":"0da11a28-1a0a-43a2-8b06-708fc3b20b5a","command_center_event_id":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc"},{"id":"d3e42e63-a5f6-4526-b686-49ea598b1101","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-70e28a41232a","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"70e28a41-232a-4a62-a802-6db502e02823","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":403,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":372,"providerAuthMs":0,"ledgerPrepareMs":372,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":372,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":372,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"70e28a41-232a-4a62-a802-6db502e02823"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3098,"likelyAffectedFiles":["src/App.tsx"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:58:16.787375+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:70e28a41-232a-4a62-a802-6db502e02823:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"f5052a92-3781-4ccc-bd7b-096c2f6d7d27","command_center_event_id":"70e28a41-232a-4a62-a802-6db502e02823"},{"id":"1dd24a9d-2109-487e-8ecf-27a4e9e86d7a","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","cc-execution/runtime-proof":"success"},"mainSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","cc-execution/runtime-proof"],"sourceSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":true,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"ccExecution":"success"},"requestContractHash":"7dd759384b1eb91e9014929f37c617c51cc9242264609f283d881bcadf198264","forgejoWorkflowProof":{"runId":9576,"source":"signed_push_receipt","status":"success","results":{},"conclusion":"success","targetStates":{"ccExecution":"success"},"targetJobCount":7,"observedTargetStates":{"ccExecution":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":{"liveSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","proofGate":"cc_execution_target_aware_runtime_identity_verified","deploymentId":"forgejo-main-ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","compareStatus":"target_job_success_runtime_verified","workflowRunId":9576,"identitySource":"canonical_release_target_job","runtimeVersion":"1.58.182-witness-render-cold-start-aware","workflowFailed":false,"containsSourceSha":true},"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T12:58:28.391209+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","external_id":"forgejo-main-ea7e6a4cf3d3","receipt_type":"canonical_release_status","idempotency_key":"mission:c80cc8fd-c6ad-4264-bb8b-68deebad6efc:forgejo-release-status:ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1:verified:forgejo-main/source=success|forgejo-release/workflow=success|cc-execution/runtime-proof=success","mission_step_id":"81a96e44-0293-4753-a271-d31770f193bb","command_center_event_id":"c80cc8fd-c6ad-4264-bb8b-68deebad6efc"},{"id":"051f22ff-f7f4-4df0-9faf-11461e230f7d","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"session-policies-auth-only","satisfied":true,"statement":"The profiles, user_calendar_events, and user_roles session-bound policies apply only to authenticated users.","proofConditionIds":["repo","runtime"]},{"id":"helper-anon-closed","satisfied":true,"statement":"shares_tenant_as_manager_pm, uce_is_member, uce_is_owner_or_admin, and is_tenant_owner_membership deny anon/PUBLIC direct EXECUTE while retaining authenticated/service_role execution.","proofConditionIds":["runtime","advisor"]}],"satisfied":true,"constraints":[{"id":"scope","satisfied":true,"statement":"Do not change policy predicates, function bodies, data, public portal/booking/academy endpoints, or unrelated RLS/function grants.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"758896030a4d8272dbe599ba89ff208df6d28cfdb1a947803153b0046a68ff55","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":9618,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"758896030a4d8272dbe599ba89ff208df6d28cfdb1a947803153b0046a68ff55","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":true,"repositoryProofSourceSha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b"},"required":true,"satisfied":true},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"758896030a4d8272dbe599ba89ff208df6d28cfdb1a947803153b0046a68ff55"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"758896030a4d8272dbe599ba89ff208df6d28cfdb1a947803153b0046a68ff55"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:16:26.906272+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"c7edf0db26f16b35452e0de27b11fcc7d8a89a8b","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:f804725e-6af7-4a39-9b64-1f8375509391:request-contract:758896030a4d8272dbe599ba89ff208df6d28cfdb1a947803153b0046a68ff55:c7edf0db26f16b35452e0de27b11fcc7d8a89a8b:verified:","mission_step_id":"38abe6ad-9b73-4259-8096-0249acc54562","command_center_event_id":"f804725e-6af7-4a39-9b64-1f8375509391"},{"id":"7f1ef7fd-0252-42f9-a229-23431319fb6d","source":"cc-execution","status":"verified","payload":{"ownerWaitSloMs":{"merge_to_live_ms":null,"owner_action_to_pr_ms":null,"green_gate_to_merge_ms":null,"owner_action_to_useful_response_ms":null},"ownerWaitLiveAt":"2026-09-18T17:26:43.955Z"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:23:34.829247+00:00","proof_gate":"owner_wait_live_milestone_recorded","source_sha":null,"external_id":null,"receipt_type":"owner_wait_live_milestone","idempotency_key":"mission:38071877-5f7e-429a-bc77-2088d8d76166:owner-wait-live","mission_step_id":"21d5a1f4-eafb-494e-afb9-0174c64132a2","command_center_event_id":"38071877-5f7e-429a-bc77-2088d8d76166"},{"id":"659b95e2-df77-4d05-a29a-fc1ec3b23568","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"7610476cb125af7aa0df50610336cff07712853a","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"outcome-1","satisfied":false,"statement":"Repair and ship the KNOCKLAUNCH mobile Messaging experience. The current production screen is visually clunky and the visible controls are nonfunctional. Inspect the governing messaging implementation, then make it feel like a premium native messenger: one compact header, no duplicated branding/header stack, no redundant +/X controls, far less dead vertical space, working New/Noel/Team/Clients entry points, working search, working Inbox/Pinned/Archived filters, tappable conversation rows, reliable conversation/composer navigation, correct mobile bottom-nav behavior, no navigation traps, and tenant-safe routing. Preserve the black/green KNOCKLAUNCH visual identity. Fix interaction wiring as well as presentation. Validate iPhone viewport/touch behavior. Ship through one safe PR -> KnockLaunch Gate -> squash merge -> deploy -> live production verification, and do not stop early.","proofConditionIds":["proof-production","proof-visual"]}],"satisfied":false,"constraints":[{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["proof-production"]}],"contractHash":"124dc4c7022f40029397ceb92c4fef8f09c23cad4f0e61f0e817d206c59467de","releaseBound":true,"witnessBound":false,"visualRequested":true,"visualSatisfied":false,"conditionResults":[{"id":"proof-production","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":false,"releaseTargetStates":{"frontend":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["frontend"],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"migrationReleaseVerified":null,"releaseRequestContractHash":"124dc4c7022f40029397ceb92c4fef8f09c23cad4f0e61f0e817d206c59467de"},"required":true,"satisfied":true},{"id":"proof-visual","kind":"visual","evidence":{"modeBound":true,"claimBound":false,"routeBound":false,"witnessMode":null,"witnessRoute":null,"currentSourceSha":"7610476cb125af7aa0df50610336cff07712853a","witnessSourceSha":null,"verificationState":null,"witnessRequestContractHash":null},"required":true,"satisfied":false}],"validationErrors":[],"pendingProofKinds":["visual"],"activeReleaseTargets":["frontend"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-23T04:11:20.221183+00:00","proof_gate":"request_contract_pending","source_sha":"7610476cb125af7aa0df50610336cff07712853a","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:9e70b509-736d-4207-909a-df2e4ddcca15:request-contract:124dc4c7022f40029397ceb92c4fef8f09c23cad4f0e61f0e817d206c59467de:7610476cb125af7aa0df50610336cff07712853a:pending:visual","mission_step_id":"cebe9b0b-c304-49bf-b835-dd6bfd2c2015","command_center_event_id":"9e70b509-736d-4207-909a-df2e4ddcca15"},{"id":"5b0ddb48-0c42-40a6-bd70-4bdf06ce1cc1","source":"cc-execution","status":"in_progress","payload":{"ok":true,"jobId":null,"phase":"release","branch":"ai/objective-first-repair-2274c364f228","reason":null,"status":"in_progress","metrics":{"receiptBytes":43821,"releaseCount":1,"toolCallCount":13,"repeatedCallCount":5,"executorlessWaitMs":3023371,"firstUsefulResultAt":"2026-09-24T05:55:04.761Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.249-semantic-conflict-generation","prNumber":3599,"terminal":false,"missionId":"2274c364-f228-4996-a5ab-a38acc2ac0d7","operation":"execute_mission","proofGate":"canonical_release_reconciliation_pending","sourceSha":"e36498d7001d5b55f5665c9230d81a6c5fe20229","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":4140,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":112,"approvedPlanMs":0,"missionSetupMs":281,"providerAuthMs":0,"shipAndProveMs":3485,"ledgerPrepareMs":281,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":281,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":281,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create replacement work.","receiptRef":{"mode":"full","missionId":"2274c364-f228-4996-a5ab-a38acc2ac0d7"},"performance":null,"deploymentId":"forgejo-main-e36498d7001d","releaseState":"failed","workflowRunId":11440,"releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1476,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:46:38.201186+00:00","proof_gate":"canonical_release_reconciliation_pending","source_sha":"e36498d7001d5b55f5665c9230d81a6c5fe20229","external_id":"forgejo-main-e36498d7001d","receipt_type":"execute_mission","idempotency_key":"mission:2274c364-f228-4996-a5ab-a38acc2ac0d7:execute_mission:canonical_release_reconciliation_pending:current-generation","mission_step_id":"32e491b8-2981-40be-a89c-1e762af66a9b","command_center_event_id":"2274c364-f228-4996-a5ab-a38acc2ac0d7"},{"id":"b40307eb-439c-4575-aaef-02d6a96f297e","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-8aba0987a807","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"8aba0987-a807-4fc9-9daf-1a11b9a91bbb","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":41,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":386,"providerAuthMs":0,"ledgerPrepareMs":386,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":386,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":386,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"8aba0987-a807-4fc9-9daf-1a11b9a91bbb"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5471,"likelyAffectedFiles":["scripts/validate-production-critical-files.mjs","supabase/functions/_shared/edgeFunctionRegistry.ts"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T13:14:04.475649+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:8aba0987-a807-4fc9-9daf-1a11b9a91bbb:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"19bfff2d-8f1b-44cd-81cb-2e30ca8649a2","command_center_event_id":"8aba0987-a807-4fc9-9daf-1a11b9a91bbb"},{"id":"28da65f3-8f58-4c5a-b54f-7a8c0e4ffaf1","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-8aba0987a807","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3098,"terminal":false,"missionId":"8aba0987-a807-4fc9-9daf-1a11b9a91bbb","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":8650,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":998,"missionSetupMs":390,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":390,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":390,"repositoryMutationMs":7652,"repositoryProviderMs":7652,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":3435,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":390,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":4217},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"8aba0987-a807-4fc9-9daf-1a11b9a91bbb"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3122,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T13:15:13.940619+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3098","receipt_type":"execute_mission","idempotency_key":"mission:8aba0987-a807-4fc9-9daf-1a11b9a91bbb:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"bdc465d1-113d-40cb-b64a-50138cec45d6","command_center_event_id":"8aba0987-a807-4fc9-9daf-1a11b9a91bbb"},{"id":"b3c5b55c-75f8-4966-9347-234ddb50552b","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-6c3ac76e9256","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"6c3ac76e-9256-4fd5-a2d7-9cf48a9cf305","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":14,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":323,"providerAuthMs":0,"ledgerPrepareMs":323,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":323,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":323,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"6c3ac76e-9256-4fd5-a2d7-9cf48a9cf305"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3608,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T13:16:36.550076+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:6c3ac76e-9256-4fd5-a2d7-9cf48a9cf305:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"92e95b1d-fea5-4336-834c-a9b5f4befddc","command_center_event_id":"6c3ac76e-9256-4fd5-a2d7-9cf48a9cf305"},{"id":"b6777b4c-5eee-4803-8145-b163b3c374f7","source":"forgejo","status":"waiting","payload":{"branch":"ai/public-demo-revenue-funnel-hardening","prNumber":3129,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"7c44cf8db971476caeff781959e6db410f4f1087","branchDeletedAfterMerge":false,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:20:56.612915+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"7c44cf8db971476caeff781959e6db410f4f1087","external_id":"3129","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:38071877-5f7e-429a-bc77-2088d8d76166:merged-pr:3129:7c44cf8db971476caeff781959e6db410f4f1087","mission_step_id":"6664aa83-7eae-470a-937e-b4818affd385","command_center_event_id":"38071877-5f7e-429a-bc77-2088d8d76166"},{"id":"8e728e59-2148-40ad-990d-abdc1f4336f8","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-e318e078d06c","prNumber":3111,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"cbccf1a82ca9cb362d5466dd09c1fb8253a549d4","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:17:56.276046+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"cbccf1a82ca9cb362d5466dd09c1fb8253a549d4","external_id":"3111","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:e318e078-d06c-4615-b595-d0245e558bd4:merged-pr:3111:cbccf1a82ca9cb362d5466dd09c1fb8253a549d4","mission_step_id":"97611f91-0406-4bc5-ad3f-dc08b2fb3a47","command_center_event_id":"e318e078-d06c-4615-b595-d0245e558bd4"},{"id":"720dceba-ad58-4834-9496-7c308f4aa51a","source":"cc-execution","status":"verified","payload":{"ownerWaitSloMs":{"merge_to_live_ms":2642381,"owner_action_to_pr_ms":110468,"green_gate_to_merge_ms":null,"owner_action_to_useful_response_ms":73523},"ownerWaitLiveAt":"2026-09-23T04:11:23.381Z"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-23T04:11:23.71858+00:00","proof_gate":"owner_wait_live_milestone_recorded","source_sha":null,"external_id":null,"receipt_type":"owner_wait_live_milestone","idempotency_key":"mission:9e70b509-736d-4207-909a-df2e4ddcca15:owner-wait-live","mission_step_id":"cebe9b0b-c304-49bf-b835-dd6bfd2c2015","command_center_event_id":"9e70b509-736d-4207-909a-df2e4ddcca15"},{"id":"fd6e00ab-0e3e-4057-be18-eb172d84a43d","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/__tests__/contracts/command-center-visual-proof-inference.contract.test.ts","content":"import { readFileSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { describe, expect, it } from 'vitest';\n\ndescribe('command center visual proof inference contract', () => {\n  it('keeps explicit nonvisual proof intent authoritative over heuristic visual classification', () => {\n    const source = readFileSync(resolve(process.cwd(), 'workers/cc-execution/src/command-center-contracts.js'), 'utf8');\n    const start = source.indexOf('export function normalizeRequestContract');\n    const end = source.indexOf('export function', start + 1);\n    const block = source.slice(start, end > start ? end : undefined);\n\n    expect(block).toContain('const explicitVisualProofDisabled =');\n    expect(block).toContain('body.visualProofRequested === false');\n    expect(block).toContain('body.visual_proof_requested === false');\n    expect(block).toContain('requestedVisualProofScope === \"none\"');\n    expect(block).toContain('(explicit && !explicitVisualProofRequired) || explicitVisualProofDisabled');\n  });\n});\n"}],"branch":"ai/objective-first-repair-618c39d52c42","writes":[],"patches":[],"version":1,"approved":true,"missionId":"618c39d5-2c42-4512-906b-f385844795a3","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"anchored_edits":[{"path":"workers/cc-execution/src/command-center-contracts.js","edits":[{"new_content":"  const classifiedVisualWorkIntent = classifyVisualWorkIntent({ ...body, objective });\n  const explicitVisualProofRequired = explicit && rawProofConditions.some((condition) => (\n    String(condition?.kind || condition?.proofKind || condition?.proof_kind || condition?.type || \"\").trim().toLowerCase() === \"visual\"\n    && condition?.required !== false\n  ));\n  const requestedVisualProofScope = String(body.visualProofScope || body.visual_proof_scope || \"\").trim().toLowerCase();\n  const explicitVisualProofDisabled =\n    body.visualProof === false\n    || body.visual_proof === false\n    || body.verifyVisual === false\n    || body.verify_visual === false\n    || body.visualProofRequested === false\n    || body.visual_proof_requested === false\n    || requestedVisualProofScope === \"none\";\n  const visualWorkIntent = (explicit && !explicitVisualProofRequired) || explicitVisualProofDisabled\n    ? { ...classifiedVisualWorkIntent, kind: \"not_visual_work\", implementation: false }\n    : classifiedVisualWorkIntent;","old_content":"  const classifiedVisualWorkIntent = classifyVisualWorkIntent({ ...body, objective });\n  const explicitVisualProofRequired = explicit && rawProofConditions.some((condition) => (\n    String(condition?.kind || condition?.proofKind || condition?.proof_kind || condition?.type || \"\").trim().toLowerCase() === \"visual\"\n    && condition?.required !== false\n  ));\n  const visualWorkIntent = explicit && !explicitVisualProofRequired\n    ? { ...classifiedVisualWorkIntent, kind: \"not_visual_work\", implementation: false }\n    : classifiedVisualWorkIntent;"}]},{"path":"workers/cc-execution/src/version.js","edits":[{"new_content":"export const CC_EXECUTION_VERSION = \"1.58.261-nonvisual-proof-precedence\";","old_content":"export const CC_EXECUTION_VERSION = \"1.58.260-release-actions-query-parity\";"}]}],"implementation":{"files":[],"writes":[]},"requestContract":null,"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":"618c39d5-2c42-4512-906b-f385844795a3","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"requestContract":null,"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":true,"controlPlaneMaintenance":true,"controlPlaneMaintenancePaths":["src/__tests__/contracts/command-center-visual-proof-inference.contract.test.ts","workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"controlPlaneMaintenanceReason":"Repair Prime request-contract inference so explicit nonvisual proof intent cannot be overridden by heuristic visual classification."},"proofRequirements":null,"controlPlaneUnfreeze":true,"durableMutationResume":true,"controlPlaneMaintenance":true,"controlPlaneMaintenancePaths":["src/__tests__/contracts/command-center-visual-proof-inference.contract.test.ts","workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"controlPlaneMaintenanceReason":"Repair Prime request-contract inference so explicit nonvisual proof intent cannot be overridden by heuristic visual classification."},"recovery":false,"fingerprint":"551b951fc818d051b49219d4f50c864c4c644249655f17b58e4d1ebb3c4957ba","replayCount":0,"serializedBytes":4821},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T18:23:48.769685+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:618c39d5-2c42-4512-906b-f385844795a3:repository-mutation-intent:551b951fc818d051b49219d4f50c864c4c644249655f17b58e4d1ebb3c4957ba:0","mission_step_id":"e0126cbc-d2e9-4971-a61b-2834b39600ea","command_center_event_id":"618c39d5-2c42-4512-906b-f385844795a3"},{"id":"4ff6ddd9-e52d-42f4-bd51-30f9a566e057","source":"cc-execution","status":"blocked","payload":{"reason":"anchored_edit_anchor_missing:src/pages/crm/PcgWorkspace.tsx","fingerprint":"e98a99e1986aba64ad40d39822e7e468d3e54fa04d6e30bf17cd1a3e8966ed8a"},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T01:58:16.223696+00:00","proof_gate":"repository_mutation_intent_deterministic_failure","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent_blocked","idempotency_key":"mission:f2f645aa-ebfb-4115-99c1-000c562d537e:repository-mutation-intent-blocked:e98a99e1986aba64ad40d39822e7e468d3e54fa04d6e30bf17cd1a3e8966ed8a","mission_step_id":"23f02c1d-8b5c-4518-9181-783eca0e97fb","command_center_event_id":"f2f645aa-ebfb-4115-99c1-000c562d537e"},{"id":"6cd2247a-7d78-486b-b6fd-6e1b46397ee6","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-ee35e0f7d2b9","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"ee35e0f7-d2b9-4fa6-8d00-3aac52d2be57","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":296,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":402,"providerAuthMs":0,"ledgerPrepareMs":402,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":402,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":402,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"ee35e0f7-d2b9-4fa6-8d00-3aac52d2be57"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3487,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T13:18:54.922085+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:ee35e0f7-d2b9-4fa6-8d00-3aac52d2be57:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"7a9ac75e-a2d9-40dc-bb61-d0bf56e905a4","command_center_event_id":"ee35e0f7-d2b9-4fa6-8d00-3aac52d2be57"},{"id":"777c32c3-2d05-4487-aca1-1a1bd141fb79","source":"cc-execution","status":"retryable","payload":{"ok":false,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f81d8ceb30a7","reason":"pull_request_checks_failed","status":"retryable","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3046,"terminal":false,"missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d","operation":"execute_mission","proofGate":"repair_mission_pr_ready_retryable","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":860,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":730,"approvedPlanMs":0,"missionSetupMs":603,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":452,"ledgerReconcileMs":0,"lineageReconcileMs":151,"resolvePreflightMs":603,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":452,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create a replacement branch or PR.","receiptRef":{"mode":"full","missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime","runtime","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2064,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-17T21:45:58.260159+00:00","proof_gate":"repair_mission_pr_ready_retryable","source_sha":null,"external_id":"3046","receipt_type":"execute_mission","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:execute_mission:repair_mission_pr_ready_retryable:current-generation","mission_step_id":"a643dad9-4f71-4f5c-8eab-89b83e9ae307","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"1e426ddb-7b79-4e23-9174-fb455eeee0de","source":"cc-execution","status":"synthesis_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-14c98e6f34e4","reason":null,"status":"synthesis_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"executorlessWaitMs":0,"firstUsefulResultAt":null,"recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.249-semantic-conflict-generation","prNumber":null,"terminal":false,"missionId":"14c98e6f-34e4-4947-a2d4-c9d14c8ba1f1","operation":"execute_mission","proofGate":"repair_mission_synthesis_ready","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":533,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":356,"providerAuthMs":0,"ledgerPrepareMs":356,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":356,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":356,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Inspect the bounded repository paths, synthesize exact files or anchored_edits, and call /mission/execute again automatically with this same missionId without another owner prompt or workflow switch.","receiptRef":{"mode":"full","missionId":"14c98e6f-34e4-4947-a2d4-c9d14c8ba1f1"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5401,"likelyAffectedFiles":["scripts/protected-main-release-recovery.mjs","scripts/validate-command-center-contracts.mjs"],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:47:04.241176+00:00","proof_gate":"repair_mission_synthesis_ready","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:14c98e6f-34e4-4947-a2d4-c9d14c8ba1f1:execute_mission:repair_mission_synthesis_ready:current-generation","mission_step_id":"6754c8d7-9e26-415d-ad7e-78ee3984938b","command_center_event_id":"14c98e6f-34e4-4947-a2d4-c9d14c8ba1f1"},{"id":"4dcd0505-a75b-4334-aac2-649818b92ad3","source":"forgejo","status":"retryable","payload":{"branch":"ai/objective-first-repair-2a9406a97c6d","merged":false,"prNumber":3661,"remediationRequired":true},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T19:12:04.700761+00:00","proof_gate":"forgejo_closed_pr_is_authoritative_source_lineage","source_sha":null,"external_id":"3661","receipt_type":"source_lineage_pr_closed_without_merge","idempotency_key":"mission:2a9406a9-7c6d-4703-8d4c-d15457953174:closed-pr:3661:unmerged","mission_step_id":"d9b3677c-e0a9-493c-8ba5-2576f9a50984","command_center_event_id":"2a9406a9-7c6d-4703-8d4c-d15457953174"},{"id":"9a43b37e-9f48-41ed-bf8c-a98b522446f4","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-f0b37e68dfc6","prNumber":3105,"nextAction":null,"mergeCommitSha":"8e3f72b8ec3f8576246e5a497c7bbacc7590db6e","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:27:13.013922+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"8e3f72b8ec3f8576246e5a497c7bbacc7590db6e","external_id":"3105","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:f0b37e68-dfc6-435a-b530-e0f6e02d4e8a:merged-pr:3105:8e3f72b8ec3f8576246e5a497c7bbacc7590db6e","mission_step_id":"147d814a-1ea9-43c6-a2ae-127c178f547d","command_center_event_id":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},{"id":"5814a266-40c1-420a-a613-99cce7588e40","source":"forgejo-runtime","status":"pending","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"pending","cc-execution/runtime-proof":"pending"},"mainSha":"9d13d2c52e0c97cd8b6a1b3b4c328c28b4c7169f","missing":[],"pending":["forgejo-release/workflow","cc-execution/runtime-proof"],"required":["forgejo-main/source","forgejo-release/workflow","cc-execution/runtime-proof"],"sourceSha":"9d13d2c52e0c97cd8b6a1b3b4c328c28b4c7169f","releaseState":"pending","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":false,"ccExecution":true,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"ccExecution":"pending"},"requestContractHash":"02e2f76adc88b61eb8166493506b5949b99120161b5be2954d60bdcde6214377","forgejoWorkflowProof":{"runId":9652,"source":"signed_push_receipt","status":"running","results":{},"conclusion":"running","targetStates":{"ccExecution":"pending"},"targetJobCount":7,"observedTargetStates":{"ccExecution":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":{"liveSha":"ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","deploymentId":"forgejo-main-ea7e6a4cf3d3052eef09df237d5b8ae437cde2e1","compareStatus":null,"identitySource":"local_build_metadata","runtimeVersion":"1.58.182-witness-render-cold-start-aware","containsSourceSha":false},"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T16:06:32.436869+00:00","proof_gate":"canonical_release_pending","source_sha":"9d13d2c52e0c97cd8b6a1b3b4c328c28b4c7169f","external_id":"forgejo-main-9d13d2c52e0c","receipt_type":"canonical_release_status","idempotency_key":"mission:535002f0-048f-4534-bd43-10cea3d2d86f:forgejo-release-status:9d13d2c52e0c97cd8b6a1b3b4c328c28b4c7169f:pending:forgejo-main/source=success|forgejo-release/workflow=pending|cc-execution/runtime-proof=pending","mission_step_id":"ef6939ea-a00e-4608-b5b9-ad3357257efc","command_center_event_id":"535002f0-048f-4534-bd43-10cea3d2d86f"},{"id":"bd5ce710-6b7d-4c62-bb6c-fe9cde4cfee9","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/pages/admin/WmpRepositoryPage.tsx","content":"import React from 'react';\nimport { Archive, Branch, Clock3, FileText, GitCommitHorizontal, Plus, RotateCcw, Search } from 'lucide-react';\nimport { supabase } from '@/integrations/supabase/client';\nimport { useMultiTenant } from '@/contexts/MultiTenantContext';\n\ntype RepoObject = { id:string; object_key:string; object_type:string; title:string; visibility:string; updated_at:string; current_revision_id?:string|null; branch_id?:string|null };\ntype RepoRevision = { id:string; revision_number:number; message:string|null; created_at:string; snapshot:any; actor_id:string|null };\ntype RepoBranch = { id:string; name:string; is_canonical:boolean; created_at:string };\n\nasync function callRepo(body: Record<string, unknown>) {\n  const { data, error } = await supabase.functions.invoke('wmp-repository', { body });\n  if (error) throw error;\n  if ((data as any)?.ok === false) throw new Error((data as any)?.error || 'Repository request failed');\n  return data as any;\n}\n\nexport default function WmpRepositoryPage() {\n  const { activeTenant } = useMultiTenant();\n  const tenantId = activeTenant?.id || '';\n  const [objects,setObjects]=React.useState<RepoObject[]>([]);\n  const [branches,setBranches]=React.useState<RepoBranch[]>([]);\n  const [selected,setSelected]=React.useState<RepoObject|null>(null);\n  const [history,setHistory]=React.useState<RepoRevision[]>([]);\n  const [query,setQuery]=React.useState('');\n  const [loading,setLoading]=React.useState(true);\n  const [error,setError]=React.useState<string|null>(null);\n\n  const refresh=React.useCallback(async()=>{\n    if(!tenantId) return;\n    setLoading(true); setError(null);\n    try {\n      const data=await callRepo({action:'bootstrap',tenantId});\n      setObjects(data.objects||[]); setBranches(data.branches||[]);\n      if(selected){\n        const updated=(data.objects||[]).find((o:RepoObject)=>o.id===selected.id)||null;\n        setSelected(updated);\n      }\n    } catch(err:any){ setError(err?.message||'Could not open repository.'); }\n    finally{ setLoading(false); }\n  },[tenantId,selected?.id]);\n\n  React.useEffect(()=>{ void refresh(); },[tenantId]);\n\n  const openObject=async(object:RepoObject)=>{\n    setSelected(object); setError(null);\n    try{ const data=await callRepo({action:'history',tenantId,objectId:object.id}); setHistory(data.revisions||[]); }\n    catch(err:any){ setError(err?.message||'Could not load history.'); }\n  };\n\n  const createObject=async()=>{\n    const title=window.prompt('What should this record be called?');\n    if(!title?.trim()) return;\n    await callRepo({action:'create_object',tenantId,title:title.trim(),objectType:'note',visibility:'internal',snapshot:{text:''},message:'Created record'});\n    await refresh();\n  };\n\n  const restore=async(revisionId:string)=>{\n    if(!selected) return;\n    await callRepo({action:'restore',tenantId,objectId:selected.id,revisionId,message:'Restored prior version'});\n    await openObject(selected); await refresh();\n  };\n\n  const filtered=objects.filter(o=>!query.trim()||[o.title,o.object_type,o.object_key].join(' ').toLowerCase().includes(query.toLowerCase()));\n\n  return <main className=\"min-h-screen bg-[#07100d] text-white\">\n    <div className=\"mx-auto w-full max-w-7xl px-4 py-5 sm:px-6 lg:px-8\">\n      <header className=\"sticky top-0 z-20 -mx-4 mb-5 border-b border-white/10 bg-[#07100d]/95 px-4 pb-4 pt-2 backdrop-blur sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8\">\n        <div className=\"flex flex-wrap items-center justify-between gap-3\">\n          <div>\n            <div className=\"text-[11px] font-black uppercase tracking-[.2em] text-emerald-300/70\">WhatsMyProgress</div>\n            <h1 className=\"text-2xl font-black tracking-tight\">Repository</h1>\n            <p className=\"mt-1 max-w-2xl text-sm text-white/55\">Versioned operational memory for missions, chats, decisions, files, proofs and working context.</p>\n          </div>\n          <button onClick={()=>void createObject()} className=\"inline-flex min-h-11 items-center gap-2 rounded-xl bg-emerald-400 px-4 text-sm font-black text-[#04100b] shadow-lg shadow-emerald-500/10\"><Plus className=\"h-4 w-4\"/>New record</button>\n        </div>\n      </header>\n\n      {error&&<div className=\"mb-4 rounded-2xl border border-rose-400/25 bg-rose-500/10 p-4 text-sm text-rose-100\">{error}</div>}\n      {!tenantId?<div className=\"rounded-3xl border border-white/10 bg-white/[.04] p-8 text-center text-white/60\">Choose a workspace to open its repository.</div>:\n      <div className=\"grid gap-5 lg:grid-cols-[300px_minmax(0,1fr)]\">\n        <aside className=\"space-y-4\">\n          <section className=\"rounded-3xl border border-white/10 bg-white/[.04] p-4\">\n            <div className=\"mb-3 flex items-center gap-2 text-sm font-black\"><Branch className=\"h-4 w-4 text-emerald-300\"/>Workstreams</div>\n            <div className=\"space-y-2\">{branches.map(b=><div key={b.id} className=\"flex items-center justify-between rounded-xl border border-white/8 bg-black/15 px-3 py-2.5 text-sm\"><span className=\"truncate font-semibold\">{b.name}</span>{b.is_canonical&&<span className=\"rounded-full bg-emerald-400/15 px-2 py-0.5 text-[10px] font-black uppercase tracking-wide text-emerald-200\">Main</span>}</div>)}</div>\n          </section>\n          <section className=\"rounded-3xl border border-white/10 bg-white/[.04] p-4\">\n            <div className=\"relative\"><Search className=\"pointer-events-none absolute left-3 top-3 h-4 w-4 text-white/35\"/><input value={query} onChange={e=>setQuery(e.target.value)} placeholder=\"Search repository\" className=\"w-full rounded-xl border border-white/10 bg-black/20 py-2.5 pl-9 pr-3 text-sm outline-none placeholder:text-white/30 focus:border-emerald-300/40\"/></div>\n            <div className=\"mt-3 max-h-[55vh] space-y-2 overflow-auto pr-1\">\n              {loading?<div className=\"p-3 text-sm text-white/45\">Opening repository…</div>:filtered.length===0?<div className=\"p-3 text-sm text-white/45\">No records yet.</div>:filtered.map(o=><button key={o.id} onClick={()=>void openObject(o)} className={\"w-full rounded-2xl border p-3 text-left transition \"+(selected?.id===o.id?\"border-emerald-300/35 bg-emerald-400/10\":\"border-white/8 bg-black/15 hover:bg-white/[.06]\")}><div className=\"flex items-start gap-3\"><FileText className=\"mt-0.5 h-4 w-4 shrink-0 text-emerald-300\"/><div className=\"min-w-0\"><div className=\"truncate text-sm font-black\">{o.title}</div><div className=\"mt-1 text-[11px] uppercase tracking-wide text-white/35\">{o.object_type} · {o.visibility}</div></div></div></button>)}\n            </div>\n          </section>\n        </aside>\n\n        <section className=\"min-w-0 rounded-3xl border border-white/10 bg-white/[.04] p-4 sm:p-5\">\n          {!selected?<div className=\"grid min-h-[420px] place-items-center text-center\"><div><Archive className=\"mx-auto h-10 w-10 text-emerald-300/70\"/><h2 className=\"mt-4 text-xl font-black\">Your operational history lives here.</h2><p className=\"mx-auto mt-2 max-w-lg text-sm leading-6 text-white/50\">Open a record to inspect every version, who changed it, where it came from, and restore any prior state without deleting history.</p></div></div>:\n          <div>\n            <div className=\"flex flex-wrap items-start justify-between gap-3 border-b border-white/10 pb-4\">\n              <div><div className=\"text-[11px] font-black uppercase tracking-[.18em] text-emerald-300/65\">{selected.object_type}</div><h2 className=\"mt-1 text-xl font-black\">{selected.title}</h2><div className=\"mt-1 text-xs text-white/35\">{selected.visibility}</div></div>\n              <div className=\"flex items-center gap-2 rounded-xl border border-white/10 bg-black/20 px-3 py-2 text-xs text-white/45\"><GitCommitHorizontal className=\"h-4 w-4\"/>Immutable history</div>\n            </div>\n            <div className=\"mt-4 space-y-3\">{history.map((rev,index)=><article key={rev.id} className=\"rounded-2xl border border-white/10 bg-black/15 p-4\"><div className=\"flex flex-wrap items-center justify-between gap-3\"><div><div className=\"flex items-center gap-2 text-sm font-black\"><Clock3 className=\"h-4 w-4 text-emerald-300\"/>Version {rev.revision_number}</div><div className=\"mt-1 text-xs text-white/40\">{new Date(rev.created_at).toLocaleString()} · {rev.message||'Saved change'}</div></div>{index>0&&<button onClick={()=>void restore(rev.id)} className=\"inline-flex min-h-10 items-center gap-2 rounded-xl border border-white/12 bg-white/[.05] px-3 text-xs font-black hover:bg-white/[.09]\"><RotateCcw className=\"h-4 w-4\"/>Restore as new version</button>}</div><pre className=\"mt-3 max-h-56 overflow-auto whitespace-pre-wrap break-words rounded-xl border border-white/8 bg-black/25 p-3 text-xs leading-5 text-white/65\">{JSON.stringify(rev.snapshot,null,2)}</pre></article>)}</div>\n          </div>}\n        </section>\n      </div>}\n    </div>\n  </main>;\n}\n"},{"path":"supabase/functions/wmp-repository/index.ts","content":"import { serve } from \"https://deno.land/std@0.168.0/http/server.ts\";\nimport { createClient } from \"https://esm.sh/@supabase/supabase-js@2.45.0\";\n\nconst cors={\"Access-Control-Allow-Origin\":\"*\",\"Access-Control-Allow-Headers\":\"authorization, apikey, content-type, idempotency-key\",\"Access-Control-Allow-Methods\":\"POST, OPTIONS\"};\nconst json=(body:unknown,status=200)=>new Response(JSON.stringify(body),{status,headers:{...cors,\"Content-Type\":\"application/json\",\"Cache-Control\":\"no-store\",\"X-WMP-Repository-Version\":\"1.0.0\"}});\nconst uuid=()=>crypto.randomUUID();\n\nserve(async(req)=>{\n  if(req.method===\"OPTIONS\") return new Response(null,{status:204,headers:cors});\n  if(req.method!==\"POST\") return json({ok:false,error:\"method_not_allowed\"},405);\n  const url=Deno.env.get(\"SUPABASE_URL\")||\"\";\n  const anon=Deno.env.get(\"SUPABASE_ANON_KEY\")||\"\";\n  const service=Deno.env.get(\"SUPABASE_SERVICE_ROLE_KEY\")||\"\";\n  const auth=createClient(url,anon,{global:{headers:{Authorization:req.headers.get(\"Authorization\")||\"\"}}});\n  const admin=createClient(url,service,{auth:{persistSession:false}});\n  const {data:{user},error:userError}=await auth.auth.getUser();\n  if(userError||!user) return json({ok:false,error:\"unauthorized\"},401);\n  const body=await req.json().catch(()=>({}));\n  const action=String(body.action||\"\");\n  const tenantId=String(body.tenantId||\"\");\n  if(!tenantId) return json({ok:false,error:\"tenant_required\"},400);\n  const [{data:tenant},{data:membership}]=await Promise.all([\n    admin.from(\"tenants\").select(\"id,owner_id\").eq(\"id\",tenantId).maybeSingle(),\n    admin.from(\"user_tenant_memberships\").select(\"id,status,is_owner\").eq(\"tenant_id\",tenantId).eq(\"user_id\",user.id).eq(\"status\",\"active\").maybeSingle()\n  ]);\n  if(!tenant || (tenant.owner_id!==user.id && !membership)) return json({ok:false,error:\"forbidden\"},403);\n\n  const idempotencyKey=String(req.headers.get(\"idempotency-key\")||body.idempotencyKey||\"\").trim();\n  if(idempotencyKey){\n    const {data:cached}=await admin.from(\"wmp_repo_idempotency\").select(\"response_body,status_code\").eq(\"tenant_id\",tenantId).eq(\"actor_id\",user.id).eq(\"idempotency_key\",idempotencyKey).maybeSingle();\n    if(cached) return json(cached.response_body,cached.status_code||200);\n  }\n  const done=async(payload:any,status=200)=>{\n    if(idempotencyKey) await admin.from(\"wmp_repo_idempotency\").upsert({tenant_id:tenantId,actor_id:user.id,idempotency_key:idempotencyKey,response_body:payload,status_code:status},{onConflict:\"tenant_id,actor_id,idempotency_key\"});\n    return json(payload,status);\n  };\n\n  try{\n    let {data:repo}=await admin.from(\"wmp_repositories\").select(\"*\").eq(\"tenant_id\",tenantId).eq(\"owner_user_id\",user.id).maybeSingle();\n    if(!repo){\n      const created=await admin.from(\"wmp_repositories\").insert({tenant_id:tenantId,owner_user_id:user.id,name:\"Operational Repository\"}).select(\"*\").single();\n      if(created.error) throw created.error; repo=created.data;\n    }\n    let {data:main}=await admin.from(\"wmp_repo_branches\").select(\"*\").eq(\"repository_id\",repo.id).eq(\"is_canonical\",true).maybeSingle();\n    if(!main){\n      const created=await admin.from(\"wmp_repo_branches\").insert({repository_id:repo.id,name:\"Main\",is_canonical:true,created_by:user.id}).select(\"*\").single();\n      if(created.error) throw created.error; main=created.data;\n    }\n\n    if(action===\"bootstrap\"){\n      const [{data:objects,error:oe},{data:branches,error:be},{data:tags,error:te}]=await Promise.all([\n        admin.from(\"wmp_repo_objects\").select(\"*\").eq(\"repository_id\",repo.id).is(\"archived_at\",null).order(\"updated_at\",{ascending:false}),\n        admin.from(\"wmp_repo_branches\").select(\"*\").eq(\"repository_id\",repo.id).order(\"is_canonical\",{ascending:false}).order(\"created_at\",{ascending:true}),\n        admin.from(\"wmp_repo_tags\").select(\"*\").eq(\"repository_id\",repo.id).order(\"created_at\",{ascending:false})\n      ]);\n      if(oe||be||te) throw oe||be||te; return done({ok:true,repository:repo,objects,branches,tags});\n    }\n\n    if(action===\"create_object\"||action===\"update_object\"){\n      const objectId=action===\"update_object\"?String(body.objectId||\"\"):uuid();\n      let object:any=null;\n      if(action===\"update_object\"){\n        const found=await admin.from(\"wmp_repo_objects\").select(\"*\").eq(\"id\",objectId).eq(\"repository_id\",repo.id).single();\n        if(found.error) throw found.error; object=found.data;\n      } else {\n        const created=await admin.from(\"wmp_repo_objects\").insert({id:objectId,repository_id:repo.id,branch_id:body.branchId||main.id,object_key:String(body.objectKey||uuid()),object_type:String(body.objectType||\"note\"),title:String(body.title||\"Untitled\"),visibility:String(body.visibility||\"internal\"),created_by:user.id,updated_by:user.id}).select(\"*\").single();\n        if(created.error) throw created.error; object=created.data;\n      }\n      const {data:last}=await admin.from(\"wmp_repo_revisions\").select(\"id,revision_number\").eq(\"object_id\",objectId).order(\"revision_number\",{ascending:false}).limit(1).maybeSingle();\n      const commitId=uuid();\n      const commit=await admin.from(\"wmp_repo_commits\").insert({id:commitId,repository_id:repo.id,branch_id:object.branch_id||main.id,actor_id:user.id,message:String(body.message||(action===\"create_object\"?\"Created record\":\"Updated record\")),provenance:body.provenance||{source:\"wmp\"}}).select(\"*\").single();\n      if(commit.error) throw commit.error;\n      const revision=await admin.from(\"wmp_repo_revisions\").insert({object_id:objectId,commit_id:commitId,parent_revision_id:last?.id||null,revision_number:(last?.revision_number||0)+1,actor_id:user.id,message:String(body.message||\"\"),snapshot:body.snapshot??{},metadata:body.metadata??{},provenance:body.provenance??{source:\"wmp\"}}).select(\"*\").single();\n      if(revision.error) throw revision.error;\n      await admin.from(\"wmp_repo_objects\").update({current_revision_id:revision.data.id,title:String(body.title||object.title),visibility:String(body.visibility||object.visibility),updated_by:user.id,updated_at:new Date().toISOString()}).eq(\"id\",objectId);\n      return done({ok:true,objectId,commit:commit.data,revision:revision.data});\n    }\n\n    if(action===\"history\"){\n      const objectId=String(body.objectId||\"\");\n      const {data:object,error:objectError}=await admin.from(\"wmp_repo_objects\").select(\"*\").eq(\"id\",objectId).eq(\"repository_id\",repo.id).single();\n      if(objectError) throw objectError;\n      const {data:revisions,error}=await admin.from(\"wmp_repo_revisions\").select(\"*\").eq(\"object_id\",objectId).order(\"revision_number\",{ascending:false});\n      if(error) throw error; return done({ok:true,object,revisions});\n    }\n\n    if(action===\"diff\"){\n      const ids=[String(body.fromRevisionId||\"\"),String(body.toRevisionId||\"\")].filter(Boolean);\n      const {data,error}=await admin.from(\"wmp_repo_revisions\").select(\"*\").in(\"id\",ids);\n      if(error) throw error; return done({ok:true,revisions:data||[]});\n    }\n\n    if(action===\"restore\"){\n      const objectId=String(body.objectId||\"\"); const revisionId=String(body.revisionId||\"\");\n      const [{data:object,error:oe},{data:source,error:se}]=await Promise.all([\n        admin.from(\"wmp_repo_objects\").select(\"*\").eq(\"id\",objectId).eq(\"repository_id\",repo.id).single(),\n        admin.from(\"wmp_repo_revisions\").select(\"*\").eq(\"id\",revisionId).eq(\"object_id\",objectId).single()\n      ]);\n      if(oe||se) throw oe||se;\n      const {data:last}=await admin.from(\"wmp_repo_revisions\").select(\"id,revision_number\").eq(\"object_id\",objectId).order(\"revision_number\",{ascending:false}).limit(1).single();\n      const commitId=uuid();\n      await admin.from(\"wmp_repo_commits\").insert({id:commitId,repository_id:repo.id,branch_id:object.branch_id||main.id,actor_id:user.id,message:String(body.message||\"Restored prior version\"),provenance:{source:\"restore\",revisionId}});\n      const created=await admin.from(\"wmp_repo_revisions\").insert({object_id:objectId,commit_id:commitId,parent_revision_id:last.id,revision_number:last.revision_number+1,actor_id:user.id,message:String(body.message||\"Restored prior version\"),snapshot:source.snapshot,metadata:source.metadata,provenance:{source:\"restore\",revisionId}}).select(\"*\").single();\n      if(created.error) throw created.error;\n      await admin.from(\"wmp_repo_objects\").update({current_revision_id:created.data.id,updated_by:user.id,updated_at:new Date().toISOString()}).eq(\"id\",objectId);\n      return done({ok:true,revision:created.data});\n    }\n\n    if(action===\"create_branch\"){\n      const branch=await admin.from(\"wmp_repo_branches\").insert({repository_id:repo.id,name:String(body.name||\"Workstream\"),is_canonical:false,base_branch_id:main.id,created_by:user.id}).select(\"*\").single();\n      if(branch.error) throw branch.error; return done({ok:true,branch:branch.data});\n    }\n\n    if(action===\"merge_branch\"){\n      const branchId=String(body.branchId||\"\");\n      const {data:branch,error:branchError}=await admin.from(\"wmp_repo_branches\").select(\"*\").eq(\"id\",branchId).eq(\"repository_id\",repo.id).eq(\"is_canonical\",false).single();\n      if(branchError) throw branchError;\n      const {data:branchObjects,error:boe}=await admin.from(\"wmp_repo_objects\").select(\"*\").eq(\"repository_id\",repo.id).eq(\"branch_id\",branchId).is(\"archived_at\",null);\n      if(boe) throw boe;\n      const conflicts:any[]=[];\n      for(const item of branchObjects||[]){\n        const {data:canonical}=await admin.from(\"wmp_repo_objects\").select(\"*\").eq(\"repository_id\",repo.id).eq(\"branch_id\",main.id).eq(\"object_key\",item.object_key).maybeSingle();\n        if(canonical && item.base_revision_id && canonical.current_revision_id!==item.base_revision_id) conflicts.push({objectKey:item.object_key,canonicalRevisionId:canonical.current_revision_id,branchBaseRevisionId:item.base_revision_id});\n      }\n      if(conflicts.length) return done({ok:false,error:\"merge_conflict\",conflicts},409);\n      await admin.from(\"wmp_repo_branches\").update({merged_at:new Date().toISOString(),merged_by:user.id}).eq(\"id\",branch.id);\n      return done({ok:true,merged:true,branchId});\n    }\n\n    if(action===\"tag\"){\n      const tag=await admin.from(\"wmp_repo_tags\").insert({repository_id:repo.id,name:String(body.name||\"Bookmark\"),commit_id:body.commitId||null,created_by:user.id,metadata:body.metadata||{}}).select(\"*\").single();\n      if(tag.error) throw tag.error; return done({ok:true,tag:tag.data});\n    }\n\n    return done({ok:false,error:\"unsupported_action\"},400);\n  }catch(error:any){ console.error(\"wmp-repository\",error); return json({ok:false,error:error?.message||\"repository_error\"},500); }\n});\n"},{"path":"supabase/migrations/20260923043000_wmp_repository.sql","content":"create extension if not exists pgcrypto;\ncreate table if not exists public.wmp_repositories (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  owner_user_id uuid not null references auth.users(id) on delete cascade,\n  name text not null default 'Operational Repository',\n  created_at timestamptz not null default now(),\n  updated_at timestamptz not null default now(),\n  unique (tenant_id, owner_user_id)\n);\ncreate table if not exists public.wmp_repo_branches (\n  id uuid primary key default gen_random_uuid(),\n  repository_id uuid not null references public.wmp_repositories(id) on delete cascade,\n  name text not null,\n  is_canonical boolean not null default false,\n  base_branch_id uuid references public.wmp_repo_branches(id),\n  created_by uuid references auth.users(id),\n  created_at timestamptz not null default now(),\n  merged_at timestamptz,\n  merged_by uuid references auth.users(id)\n);\ncreate unique index if not exists wmp_repo_one_canonical_branch on public.wmp_repo_branches(repository_id) where is_canonical;\ncreate table if not exists public.wmp_repo_commits (\n  id uuid primary key default gen_random_uuid(),\n  repository_id uuid not null references public.wmp_repositories(id) on delete cascade,\n  branch_id uuid not null references public.wmp_repo_branches(id) on delete cascade,\n  actor_id uuid references auth.users(id),\n  message text,\n  provenance jsonb not null default '{}'::jsonb,\n  created_at timestamptz not null default now()\n);\ncreate table if not exists public.wmp_repo_objects (\n  id uuid primary key default gen_random_uuid(),\n  repository_id uuid not null references public.wmp_repositories(id) on delete cascade,\n  branch_id uuid not null references public.wmp_repo_branches(id) on delete cascade,\n  object_key text not null,\n  object_type text not null,\n  title text not null,\n  visibility text not null default 'internal' check (visibility in ('internal','published')),\n  current_revision_id uuid,\n  base_revision_id uuid,\n  created_by uuid references auth.users(id),\n  updated_by uuid references auth.users(id),\n  created_at timestamptz not null default now(),\n  updated_at timestamptz not null default now(),\n  archived_at timestamptz,\n  unique(repository_id,branch_id,object_key)\n);\ncreate table if not exists public.wmp_repo_revisions (\n  id uuid primary key default gen_random_uuid(),\n  object_id uuid not null references public.wmp_repo_objects(id) on delete cascade,\n  commit_id uuid not null references public.wmp_repo_commits(id) on delete cascade,\n  parent_revision_id uuid references public.wmp_repo_revisions(id),\n  revision_number integer not null,\n  actor_id uuid references auth.users(id),\n  message text,\n  snapshot jsonb not null default '{}'::jsonb,\n  metadata jsonb not null default '{}'::jsonb,\n  provenance jsonb not null default '{}'::jsonb,\n  created_at timestamptz not null default now(),\n  unique(object_id,revision_number)\n);\nalter table public.wmp_repo_objects drop constraint if exists wmp_repo_objects_current_revision_id_fkey;\nalter table public.wmp_repo_objects add constraint wmp_repo_objects_current_revision_id_fkey foreign key (current_revision_id) references public.wmp_repo_revisions(id);\nalter table public.wmp_repo_objects drop constraint if exists wmp_repo_objects_base_revision_id_fkey;\nalter table public.wmp_repo_objects add constraint wmp_repo_objects_base_revision_id_fkey foreign key (base_revision_id) references public.wmp_repo_revisions(id);\ncreate table if not exists public.wmp_repo_tags (\n  id uuid primary key default gen_random_uuid(),\n  repository_id uuid not null references public.wmp_repositories(id) on delete cascade,\n  name text not null,\n  commit_id uuid references public.wmp_repo_commits(id) on delete set null,\n  created_by uuid references auth.users(id),\n  metadata jsonb not null default '{}'::jsonb,\n  created_at timestamptz not null default now(),\n  unique(repository_id,name)\n);\ncreate table if not exists public.wmp_repo_idempotency (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  actor_id uuid not null references auth.users(id) on delete cascade,\n  idempotency_key text not null,\n  response_body jsonb not null,\n  status_code integer not null default 200,\n  created_at timestamptz not null default now(),\n  unique(tenant_id,actor_id,idempotency_key)\n);\ncreate or replace function public.wmp_repo_has_tenant_access(p_tenant_id uuid)\nreturns boolean language sql stable security definer set search_path=public as $$\n  select exists(select 1 from public.tenants t where t.id=p_tenant_id and t.owner_id=auth.uid())\n  or exists(select 1 from public.user_tenant_memberships m where m.tenant_id=p_tenant_id and m.user_id=auth.uid() and m.status='active');\n$$;\nalter table public.wmp_repositories enable row level security;\nalter table public.wmp_repo_branches enable row level security;\nalter table public.wmp_repo_commits enable row level security;\nalter table public.wmp_repo_objects enable row level security;\nalter table public.wmp_repo_revisions enable row level security;\nalter table public.wmp_repo_tags enable row level security;\nalter table public.wmp_repo_idempotency enable row level security;\ndrop policy if exists wmp_repositories_member_access on public.wmp_repositories;\ncreate policy wmp_repositories_member_access on public.wmp_repositories for all to authenticated using (public.wmp_repo_has_tenant_access(tenant_id)) with check (public.wmp_repo_has_tenant_access(tenant_id));\ndrop policy if exists wmp_repo_branches_member_access on public.wmp_repo_branches;\ncreate policy wmp_repo_branches_member_access on public.wmp_repo_branches for all to authenticated using (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id))) with check (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id)));\ndrop policy if exists wmp_repo_commits_member_access on public.wmp_repo_commits;\ncreate policy wmp_repo_commits_member_access on public.wmp_repo_commits for all to authenticated using (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id))) with check (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id)));\ndrop policy if exists wmp_repo_objects_member_access on public.wmp_repo_objects;\ncreate policy wmp_repo_objects_member_access on public.wmp_repo_objects for all to authenticated using (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id))) with check (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id)));\ndrop policy if exists wmp_repo_revisions_member_access on public.wmp_repo_revisions;\ncreate policy wmp_repo_revisions_member_access on public.wmp_repo_revisions for all to authenticated using (exists(select 1 from public.wmp_repo_objects o join public.wmp_repositories r on r.id=o.repository_id where o.id=object_id and public.wmp_repo_has_tenant_access(r.tenant_id))) with check (exists(select 1 from public.wmp_repo_objects o join public.wmp_repositories r on r.id=o.repository_id where o.id=object_id and public.wmp_repo_has_tenant_access(r.tenant_id)));\ndrop policy if exists wmp_repo_tags_member_access on public.wmp_repo_tags;\ncreate policy wmp_repo_tags_member_access on public.wmp_repo_tags for all to authenticated using (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id))) with check (exists(select 1 from public.wmp_repositories r where r.id=repository_id and public.wmp_repo_has_tenant_access(r.tenant_id)));\ndrop policy if exists wmp_repo_idempotency_actor_access on public.wmp_repo_idempotency;\ncreate policy wmp_repo_idempotency_actor_access on public.wmp_repo_idempotency for all to authenticated using (actor_id=auth.uid() and public.wmp_repo_has_tenant_access(tenant_id)) with check (actor_id=auth.uid() and public.wmp_repo_has_tenant_access(tenant_id));\ncreate index if not exists wmp_repo_objects_repo_branch_updated on public.wmp_repo_objects(repository_id,branch_id,updated_at desc);\ncreate index if not exists wmp_repo_revisions_object_number on public.wmp_repo_revisions(object_id,revision_number desc);\ncreate index if not exists wmp_repo_commits_repo_created on public.wmp_repo_commits(repository_id,created_at desc);\n"},{"path":"config/capabilities/wmp-repository.json","content":"{\n  \"schemaVersion\": 1,\n  \"id\": \"wmp-repository\",\n  \"owner\": \"KNOCKLAUNCH Platform\",\n  \"status\": \"enforced\",\n  \"surfaces\": [\"src/pages/admin/WmpRepositoryPage.tsx\",\"supabase/functions/wmp-repository\",\"src/routes/ownerRoutes.tsx\"],\n  \"dependencies\": {\n    \"backendRuntime\": [\"supabase/functions/wmp-repository\"],\n    \"dataStorage\": [\"public.wmp_repositories\",\"public.wmp_repo_branches\",\"public.wmp_repo_objects\",\"public.wmp_repo_revisions\",\"public.wmp_repo_commits\",\"public.wmp_repo_tags\",\"public.wmp_repo_idempotency\"],\n    \"authPermissions\": [\"authenticated user\",\"active tenant membership or tenant owner\"],\n    \"providers\": []\n  },\n  \"lifecycle\": {\n    \"states\": [\"prepare\",\"deploy\",\"verify\",\"activate\"],\n    \"activationRequirements\": [\"tenant-isolated storage and RLS are deployed\",\"JWT-protected WMP repository adapter is deployed\",\"owner repository route is released\",\"rollback creates a new revision\",\"idempotent write replay is proven\",\"branch conflicts fail closed\",\"claim-matched production proof recorded\"],\n    \"compatibilityWindow\": [\"N\",\"N-1\"],\n    \"driftPolicy\": \"Repository schema, API, auth, release identity, or owner route drift remains nonterminal until reconciled.\",\n    \"quarantinePolicy\": \"Quarantine only WMP Repository when its dependency contract fails; preserve WMP Mission Control, customer progress, and unrelated platform capabilities.\"\n  },\n  \"release\": {\"order\":[\"migrations\",\"supabase/functions/wmp-repository\",\"frontend\"],\"runtimeFirst\":true},\n  \"canary\": {\"required\":true,\"claims\":[\"Repository data cannot cross tenant membership boundaries.\",\"Every restore appends a new immutable revision.\",\"Repeated idempotency keys do not duplicate writes.\",\"Diverged workstreams fail closed on merge conflict.\",\"Existing WMP mission/progress behavior remains independent.\"]},\n  \"proofLedger\": {\"authority\":\"command_center_mission_ledger\",\"bind\":[\"request_contract_hash\",\"source_sha\",\"release_receipt\",\"runtime_identity\",\"canary\",\"activation_state\",\"drift_state\",\"quarantine_state\"]}\n}\n"},{"path":"src/__tests__/contracts/wmp-repository.contract.test.ts","content":"import fs from 'node:fs';\nimport path from 'node:path';\nimport { describe, expect, it } from 'vitest';\n\ndescribe('WMP Repository contract',()=>{\n  const root=process.cwd();\n  const migration=fs.readFileSync(path.join(root,'supabase/migrations/20260923043000_wmp_repository.sql'),'utf8');\n  const edge=fs.readFileSync(path.join(root,'supabase/functions/wmp-repository/index.ts'),'utf8');\n  const route=fs.readFileSync(path.join(root,'src/routes/ownerRoutes.tsx'),'utf8');\n  it('enforces tenant-scoped RLS',()=>{ expect(migration).toContain('wmp_repo_has_tenant_access'); expect(migration).toContain('enable row level security'); });\n  it('keeps restore append-only and supports idempotency',()=>{ expect(edge).toContain('action===\"restore\"'); expect(edge).toContain('wmp_repo_idempotency'); expect(edge).not.toContain('.delete('); });\n  it('fails closed on branch conflict',()=>{ expect(edge).toContain('merge_conflict'); expect(edge).toContain('return done({ok:false'); });\n  it('routes the owner surface explicitly',()=>{ expect(route).toContain('/wmp/repository'); expect(route).toContain('WmpRepositoryPage'); });\n});\n"}],"branch":"ai/objective-first-repair-8edd2004199e","writes":[],"patches":[],"approved":true,"missionId":"8edd2004-199e-4fc2-9eff-65c1dad6bdcc","objective":"Continue and ship the existing WMP Repository mission with this exact bounded implementation payload.","repository":"noel/KnockLaunchOS","ownerApproved":true,"anchored_edits":[{"path":"src/routes/ownerRoutes.tsx","anchor":"const OwnerWeeklyReports = lazyWithRetry(() => import('@/pages/owner/OwnerWeeklyReports'));","replacement":"const OwnerWeeklyReports = lazyWithRetry(() => import('@/pages/owner/OwnerWeeklyReports'));\nconst WmpRepositoryPage = lazyWithRetry(() => import('@/pages/admin/WmpRepositoryPage'));"},{"path":"src/routes/ownerRoutes.tsx","anchor":"<Route path=\"/owner\" element={lazy(OwnerDashboard)} />","replacement":"<Route path=\"/owner\" element={lazy(OwnerDashboard)} />\n    <Route path=\"/wmp/repository\" element={lazy(WmpRepositoryPage)} />"}],"implementation":{"files":[],"writes":[]},"durableMutationResume":true},"recovery":false,"fingerprint":"9cd9dee29d9facf76d4eedc0ab9db0e5f6775aafe2bf99bf493cf8aa3730a6bc","replayCount":0,"serializedBytes":33515},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-23T04:19:32.505687+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:8edd2004-199e-4fc2-9eff-65c1dad6bdcc:repository-mutation-intent:9cd9dee29d9facf76d4eedc0ab9db0e5f6775aafe2bf99bf493cf8aa3730a6bc:0","mission_step_id":"f9a646da-418b-48eb-a441-448e4a43100e","command_center_event_id":"8edd2004-199e-4fc2-9eff-65c1dad6bdcc"},{"id":"280d1aa4-0d31-4612-ba2b-ebf7902185bb","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f81d8ceb30a7","reason":"anchored_edit_anchor_missing:supabase/migrations/20260917214500_consolidate_party_lifecycle_ownership.sql","status":"blocked","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3046,"terminal":false,"missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":6470,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":6470,"missionSetupMs":668,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":367,"ledgerReconcileMs":0,"lineageReconcileMs":301,"resolvePreflightMs":668,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":367,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime","runtime","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1594,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-17T22:08:41.776514+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":"3046","receipt_type":"execute_mission","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"a643dad9-4f71-4f5c-8eab-89b83e9ae307","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"ec0d560e-4f47-4bf8-ab5e-ed4fd2c353b3","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Unfreeze control plane for the tenant Workspace Health direct repair verification proxy. Add and fully prove the owner-authenticated Command Center tenant_workspace_repair operation as a thin proxy to canonical tenant-media-library repair, including the shared stable-facade OAuth forwarding needed for owner-authenticated server-side commands. Preserve exact tenant validation, repair_bootstrap primary behavior, staged 546 recovery, owner OAuth, tenant isolation, no service-role credential, no UI changes, cc-execution-only release, and direct live proof against tenant d60e3c27-73ed-4a5f-a49b-c37636455daf.","wordingChanged":false,"canonicalIntent":"Unfreeze control plane for the tenant Workspace Health direct repair verification proxy. Add and fully prove the owner-authenticated Command Center tenant_workspace_repair operation as a thin proxy to canonical tenant-media-library repair, including the shared stable-facade OAuth forwarding needed for owner-authenticated server-side commands. Preserve exact tenant validation, repair_bootstrap primary behavior, staged 546 recovery, owner OAuth, tenant isolation, no service-role credential, no UI changes, cc-execution-only release, and direct live proof against tenant d60e3c27-73ed-4a5f-a49b-c37636455daf.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"direct-repair","statement":"Command Center can execute and verify canonical tenant Workspace Health repair directly with validated owner OAuth, including bounded recovery from upstream resource limits.","proofConditionIds":["repo-proof","live-proof"]}],"objective":"Unfreeze control plane for the tenant Workspace Health direct repair verification proxy. Add and fully prove the owner-authenticated Command Center tenant_workspace_repair operation as a thin proxy to canonical tenant-media-library repair, including the shared stable-facade OAuth forwarding needed for owner-authenticated server-side commands. Preserve exact tenant validation, repair_bootstrap primary behavior, staged 546 recovery, owner OAuth, tenant isolation, no service-role credential, no UI changes, cc-execution-only release, and direct live proof against tenant d60e3c27-73ed-4a5f-a49b-c37636455daf.","constraints":[{"id":"auth","statement":"Preserve validated owner OAuth and tenant isolation; only forward the already-validated internal OAuth context and never introduce service-role authentication.","proofConditionIds":["repo-proof","live-proof"]},{"id":"release","statement":"Release only cc-execution.","proofConditionIds":["live-proof"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo-proof","live-proof"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo-proof","live-proof"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"repo-proof","kind":"repository","claim":"Current source preserves validated OAuth forwarding through command_center_execute to internal owner commands and contains tenant_workspace_repair with staged recovery plus regression coverage.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"live-proof","kind":"runtime","claim":"Exact released cc-execution directly executes tenant_workspace_repair for 321 Auto Unlock and returns a verified healthy or review-only repair receipt without raw 546 dead-end.","route":null,"roleRef":"GodMode","userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Unfreeze-control-plane-for-the-tenant-Workspace-Health-direct-repair-verification-proxy.-Add-and-ful","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":["ccExecution"],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["repo-proof","live-proof"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"49e17b2be5d2fbe9115f0da16ddadaaa19e4cb1367178c327def75355c0762a2","requestContractRevision":3,"previousRequestContractHash":"02e2f76adc88b61eb8166493506b5949b99120161b5be2954d60bdcde6214377"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T16:09:17.419951+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:535002f0-048f-4534-bd43-10cea3d2d86f:request-contract:49e17b2be5d2fbe9115f0da16ddadaaa19e4cb1367178c327def75355c0762a2","mission_step_id":"8e980e5c-a854-41e9-8a3c-24ebdb3a1a9c","command_center_event_id":"535002f0-048f-4534-bd43-10cea3d2d86f"},{"id":"49c1082a-9547-44ab-82e9-e3bc954c682c","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/lib/mobileVendor/bigPapisModeNavigation.ts","content":"/** Preserve the current mode only for unscoped links inside this workspace. */\nexport function inheritBigPapisMode(\n  href: string,\n  origin: string,\n  currentMode: string | null,\n  ownerBase: string,\n  dashboardPath: string,\n): string | null {\n  if (!currentMode) return null;\n  let url: URL;\n  try { url = new URL(href, origin); } catch { return null; }\n  if (url.origin !== origin) return null;\n  if (url.pathname !== ownerBase && !url.pathname.startsWith(ownerBase + '/')) return null;\n  if (url.searchParams.has('bpMode') || url.pathname === dashboardPath) return null;\n  url.searchParams.set('bpMode', currentMode);\n  return url.pathname + url.search + url.hash;\n}\n\n\nexport function isBigPapisModesLandingLocation(\n  pathname: string,\n  search: string,\n  dashboardPath: string,\n): boolean {\n  const normalize = (value: string) => String(value || '').toLowerCase().replace(/\\/+$/g, '');\n  if (normalize(pathname) !== normalize(dashboardPath)) return false;\n  const params = new URLSearchParams(search);\n  return !params.get('bpMode') && !params.get('mode');\n}\n"},{"path":"src/routes/ownerRoutes.tsx","content":"/**\n * Owner Routes Configuration\n * Routes for tenant owners — all lazy-loaded to keep initial bundle small.\n */\n\nimport React, { Suspense } from 'react';\nimport { Navigate, Route, useLocation, useParams } from 'react-router-dom';\nimport { Loader2 } from 'lucide-react';\nimport { UnifiedProtectedRoute } from '@/components/UnifiedProtectedRoute';\nimport { PageLoadingSkeleton } from '@/components/ux/PageLoadingSkeleton';\nimport { WorkspaceTenantBoundary } from '@/components/WorkspaceTenantBoundary';\nimport { lazyWithRetry } from '@/lib/lazyWithRetry';\nimport {\n  BIG_PAPIS_LEGACY_OWNER_BASE_PATH,\n  BIG_PAPIS_OWNER_BASE_PATH,\n  BIG_PAPIS_OWNER_DASHBOARD_PATH,\n  FINANCIAL_RECORDS_OWNER_BASE_PATH,\n  SAVAGE_PIZZA_OWNER_BASE_PATH,\n} from '@/lib/tenantUtils';\nimport { useAuth } from '@/contexts/AuthContext';\nimport { useMultiTenant, type Tenant } from '@/contexts/MultiTenantContext';\nimport TenantModesShell from '@/shells/TenantModesShell';\nimport { UNIVERSAL_TENANT_PROFILE_ROUTE } from '@/lib/tenants/tenantAvatarMenuContract';\nimport { BIG_PAPIS_BUSINESS_DESTINATIONS } from '@/lib/mobileVendor/bigPapisBusinessContext';\nimport { isBigPapisModesLandingLocation } from '@/lib/mobileVendor/bigPapisModeNavigation';\n\nconst BigPapisToday = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisToday'));\n\nconst CafeQsrWorkspace = lazyWithRetry(() => import('@/pages/mobile-vendor/ThirstyPandaWorkspace'));\nconst BigPapisOwner = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisOwner'));\nconst BigPapisOwnerShell = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisOwnerShell'));\nconst BigPapisInventory = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisInventory'));\nconst BigPapisStartPopup = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisStartPopup'));\nconst BigPapisBusinessTools = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisBusinessTools'));\nconst BigPapisEventDay = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisEventDay'));\nconst BigPapisCustomers = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisCustomersPremium'));\nconst BigPapisCustomerDetail = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisCustomersPremium').then((module) => ({ default: module.BigPapisCustomerDetail })));\nconst BigPapisMoney = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisMoney'));\nconst BigPapisInbox = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisInbox'));\nconst BigPapisTeam = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisTeam'));\nconst BigPapisBrand = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisBrand'));\nconst BigPapisQuotes = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisQuotes'));\nconst BigPapisOperations = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisOperations'));\nconst BigPapisBusinessPulse = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisBusinessPulse'));\nconst BigPapisAds = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisAds'));\nconst BigPapisFoodTruckLove = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisFoodTruckLove'));\nconst MailWorkspace = lazyWithRetry(() => import('@/components/communications/email/MailWorkspace'));\nconst BigPapisEventsHub = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisEventsHub'));\nconst BigPapisEventsAdvanced = lazyWithRetry(() => import('@/pages/mobile-vendor/BigPapisEvents'));\nconst OwnerDashboard = lazyWithRetry(() => import('@/pages/owner/OwnerDashboard'));\nconst OwnerRouteDirectory = lazyWithRetry(() => import('@/pages/owner/OwnerRouteDirectory'));\nconst OwnerQrCodeCreator = lazyWithRetry(() => import('@/pages/owner/OwnerQrCodeCreator'));\nconst LeadWorkspace = lazyWithRetry(() => import('@/pages/crm/LeadWorkspace/index'));\nconst UnifiedWorkspaceShell = lazyWithRetry(() => import('@/pages/crm/UnifiedWorkspace/index'));\nconst OwnerContacts = lazyWithRetry(() => import('@/pages/owner/OwnerContacts'));\nconst OwnerRebuttals = lazyWithRetry(() => import('@/pages/owner/OwnerRebuttals'));\nconst RebuttalEffectiveness = lazyWithRetry(() => import('@/pages/owner/RebuttalEffectiveness'));\nconst OwnerSettings = lazyWithRetry(() => import('@/pages/owner/OwnerSettings'));\nconst OwnerPipelines = lazyWithRetry(() => import('@/pages/owner/OwnerPipelines'));\nconst OwnerUsers = lazyWithRetry(() => import('@/pages/owner/OwnerUsers'));\nconst OwnerOnboarding = lazyWithRetry(() => import('@/pages/owner/OwnerOnboarding'));\nconst OwnerReports = lazyWithRetry(() => import('@/pages/owner/OwnerReports'));\nconst OwnerControlHub = lazyWithRetry(() => import('@/pages/owner/OwnerControlHub'));\nconst OwnerFieldOps = lazyWithRetry(() => import('@/pages/owner/OwnerFieldOps'));\nconst OwnerCrewDispatch = lazyWithRetry(() => import('@/pages/owner/OwnerCrewDispatch'));\nconst OwnerDrive = lazyWithRetry(() => import('@/pages/owner/OwnerDrive'));\nconst OwnerAppointments = lazyWithRetry(() => import('@/pages/owner/OwnerAppointments'));\nconst OwnerPDFTemplates = lazyWithRetry(() => import('@/pages/owner/OwnerPDFTemplates'));\nconst OwnerAcademyOversight = lazyWithRetry(() => import('@/pages/owner/OwnerAcademyOversight'));\nconst OwnerBranding = lazyWithRetry(() => import('@/pages/owner/OwnerBranding'));\nconst OwnerInvoices = lazyWithRetry(() => import('@/pages/owner/OwnerInvoices'));\nconst OwnerEmailSuite = lazyWithRetry(() => import('@/pages/owner/OwnerEmailSuite'));\nconst OwnerVoicemailPresets = lazyWithRetry(() => import('@/pages/owner/OwnerVoicemailPresets'));\nconst OwnerWorkflows = lazyWithRetry(() => import('@/pages/owner/OwnerWorkflows'));\nconst OwnerDocuments = lazyWithRetry(() => import('@/pages/owner/OwnerDocuments'));\nconst OwnerPricing = lazyWithRetry(() => import('@/pages/owner/OwnerPricing'));\nconst OwnerStorms = lazyWithRetry(() => import('@/pages/owner/OwnerStorms'));\nconst OwnerAgreements = lazyWithRetry(() => import('@/pages/owner/OwnerAgreements'));\nconst OwnerAutomations = lazyWithRetry(() => import('@/pages/owner/OwnerAutomations'));\nconst OwnerDNCPortal = lazyWithRetry(() => import('@/pages/owner/OwnerDNCPortal'));\nconst OwnerPlan = lazyWithRetry(() => import('@/pages/owner/OwnerPlan'));\nconst OwnerLeadCampaigns = lazyWithRetry(() => import('@/pages/owner/OwnerLeadCampaigns'));\nconst OwnerImport = lazyWithRetry(() => import('@/pages/owner/OwnerImport'));\nconst OwnerPADashboard = lazyWithRetry(() => import('@/pages/owner/OwnerPADashboard'));\nconst OwnerPAFinancialCenter = lazyWithRetry(() => import('@/pages/owner/OwnerPAFinancialCenter'));\nconst OwnerPAStaffCompliance = lazyWithRetry(() => import('@/pages/owner/OwnerPAStaffCompliance'));\nconst OwnerFeatureOverrides = lazyWithRetry(() => import('@/pages/owner/OwnerFeatureOverrides'));\nconst OwnerPermitSources = lazyWithRetry(() => import('@/pages/owner/OwnerPermitSources'));\nconst OwnerScoring = lazyWithRetry(() => import('@/pages/owner/OwnerScoring'));\nconst OwnerWeeklyReports = lazyWithRetry(() => import('@/pages/owner/OwnerWeeklyReports'));\nconst OwnerSidekickLogs = lazyWithRetry(() => import('@/pages/owner/OwnerSidekickLogs'));\nconst CommunicationsInbox = lazyWithRetry(() => import('@/pages/communications/CommunicationsInbox'));\nconst SavagePizzaWorkspace = lazyWithRetry(() => import('@/pages/finance-vendor/SavagePizzaWorkspace'));\nconst CafeQsrStorefront = lazyWithRetry(() => import('@/pages/cafe-qsr/ThirstyPandaPublic'));\nconst UniversalFinanceWorkspace = lazyWithRetry(() => import('@/pages/finance-vendor/SavagePizzaWorkspace').then((module) => ({ default: module.UniversalFinanceWorkspace })));\n\nconst lazy = (Component: React.LazyExoticComponent<React.ComponentType<any>>) => (\n  <UnifiedProtectedRoute requireOwner>\n    <Suspense fallback={<PageLoadingSkeleton variant=\"minimal\" />}>\n      <Component />\n    </Suspense>\n  </UnifiedProtectedRoute>\n);\n\nconst authenticated = (Component: React.LazyExoticComponent<React.ComponentType<any>>) => (\n  <UnifiedProtectedRoute>\n    <Suspense fallback={<PageLoadingSkeleton variant=\"minimal\" />}>\n      <Component />\n    </Suspense>\n  </UnifiedProtectedRoute>\n);\n\nfunction isBigPapisWorkspaceTenant(tenant?: Tenant | null): boolean {\n  if (!tenant) return false;\n  const slug = String(tenant.company_slug || '').trim().toLowerCase();\n  const tenantType = String(tenant.tenant_type || '').trim().toLowerCase();\n  const workspaceType = String((tenant.settings as { workspace_type?: string } | null)?.workspace_type || '').trim().toLowerCase();\n  const isMobileVendor = tenantType === 'mobile_vendor' || workspaceType === 'mobile_vendor';\n  return isMobileVendor && (slug === 'big-papis' || slug === 'big-papis-coquito-iceys');\n}\n\nfunction BigPapisTenantBoundary({ children }: { children: React.ReactNode }) {\n  const { activeTenant, memberships, isLoading, switchTenant } = useMultiTenant();\n  const matchingMembership = React.useMemo(\n    () => memberships.find((membership) => isBigPapisWorkspaceTenant(membership.tenant)) || null,\n    [memberships],\n  );\n  const activeMatches = isBigPapisWorkspaceTenant(activeTenant);\n\n  return (\n    <WorkspaceTenantBoundary\n      activeMatches={activeMatches}\n      isLoading={isLoading}\n      matchingTenantId={matchingMembership?.tenant_id}\n      switchTenant={switchTenant}\n      redirectTo=\"/select-tenant?workspace=big-papis\"\n      loading={<PageLoadingSkeleton variant=\"minimal\" />}\n      logLabel=\"BigPapisTenantBoundary\"\n    >\n      {children}\n    </WorkspaceTenantBoundary>\n  );\n}\n\nfunction BigPapisOwnerAccessBoundary({ children }: { children: React.ReactNode }) {\n  const { user, session, loading: authLoading } = useAuth();\n  const {\n    activeTenant,\n    roles,\n    isLoading: tenantLoading,\n    isTenantOwner,\n    isAdminOrHigher,\n    hasGodModeAnywhere,\n  } = useMultiTenant();\n  const [roleGraceElapsed, setRoleGraceElapsed] = React.useState(false);\n  const activeTenantId = activeTenant?.id || '';\n  const directOwner = Boolean(user?.id && activeTenant?.owner_id === user.id);\n  const hasOwnerAccess = Boolean(\n    directOwner\n    || isTenantOwner()\n    || isAdminOrHigher()\n    || hasGodModeAnywhere()\n  );\n  const waitingForRoles = Boolean(\n    user?.id\n    && activeTenantId\n    && !hasOwnerAccess\n    && roles.length === 0\n  );\n\n  React.useEffect(() => {\n    setRoleGraceElapsed(false);\n    if (!waitingForRoles) return undefined;\n    const timeoutId = window.setTimeout(() => setRoleGraceElapsed(true), 1800);\n    return () => window.clearTimeout(timeoutId);\n  }, [activeTenantId, user?.id, waitingForRoles]);\n\n  // A verified active Big Papi tenant stays interactive while background tenant hydration finishes.\n  const activeBigPapisTenantReady = Boolean(activeTenantId && isBigPapisWorkspaceTenant(activeTenant));\n  if (authLoading || (!activeBigPapisTenantReady && tenantLoading) || (waitingForRoles && !roleGraceElapsed)) {\n    return <BigPapisRouteLoading />;\n  }\n  if (!user || !session) {\n    return <Navigate to=\"/\" replace />;\n  }\n  if (!isBigPapisWorkspaceTenant(activeTenant)) {\n    return <Navigate to=\"/select-tenant?workspace=big-papis\" replace />;\n  }\n  if (!hasOwnerAccess) {\n    return <Navigate to=\"/select-tenant?workspace=big-papis\" replace />;\n  }\n  return <>{children}</>;\n}\n\nfunction BigPapisCustomersRoute() {\n  return bigPapisLazyContent(BigPapisCustomers);\n}\n\nfunction LegacyBigPapisOwnerRedirect() {\n  const params = useParams();\n  const location = useLocation();\n  const splat = String(params['*'] || '').replace(/^\\/+|\\/+$/g, '');\n  const suffix = splat ? `/${splat}` : '/dashboard';\n  return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}${suffix}${location.search || ''}${location.hash || ''}`} replace />;\n}\n\nfunction LegacyBigPapisMailRedirect() {\n  const location = useLocation();\n  return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/mail${location.search || ''}${location.hash || ''}`} replace />;\n}\n\nfunction BigPapisRouteLoading() {\n  return (\n    <div data-big-papis-route-loading=\"true\" className=\"flex min-h-[38vh] items-start justify-center px-4 pt-16\">\n      <div className=\"inline-flex items-center gap-2 rounded-full border border-white/10 bg-[#071019] px-4 py-2.5 text-xs font-black text-white/70 shadow-xl shadow-black/20\">\n        <Loader2 className=\"h-4 w-4 animate-spin text-[#72dbff]\" />\n        Opening…\n      </div>\n    </div>\n  );\n}\n\nfunction bigPapisLazyContent(Component: React.LazyExoticComponent<React.ComponentType<any>>) {\n  return (\n    <Suspense fallback={<BigPapisRouteLoading />}>\n      <Component />\n    </Suspense>\n  );\n}\n\nfunction BigPapisWorkspaceContent() {\n  const location = useLocation();\n  const { memberships } = useMultiTenant();\n  const bigPapisTenantId = React.useMemo(\n    () => memberships.find((membership) => isBigPapisWorkspaceTenant(membership.tenant))?.tenant_id || '',\n    [memberships],\n  );\n  const normalized = location.pathname.toLowerCase().replace(/\\/+$/g, '');\n  const suffix = normalized.startsWith(BIG_PAPIS_OWNER_BASE_PATH)\n    ? normalized.slice(BIG_PAPIS_OWNER_BASE_PATH.length).replace(/^\\/+/, '')\n    : '';\n  const [section = 'dashboard', detail] = suffix.split('/').filter(Boolean);\n\n  switch (section) {\n    case 'dashboard': return detail === 'advanced' ? bigPapisLazyContent(BigPapisOwner) : bigPapisLazyContent(BigPapisToday);\n    case 'pop-up': return detail === 'start' ? bigPapisLazyContent(BigPapisStartPopup) : <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/pop-up/start?bpMode=popup`} replace />;\n    case 'booking': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/events/advanced?new=1`} replace />;\n    case 'events': return detail === 'advanced' ? bigPapisLazyContent(BigPapisEventsAdvanced) : bigPapisLazyContent(BigPapisEventsHub);\n    case 'appointments':\n    case 'calendar': return bigPapisLazyContent(BigPapisEventsHub);\n    case 'tasks': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/calendar?bpMode=plan&tasks=1`} replace />;\n    case 'proposals':\n    case 'quotes': return bigPapisLazyContent(BigPapisQuotes);\n    case 'flavors': return bigPapisLazyContent(BigPapisBrand);\n    case 'customers':\n    case 'contacts': return detail ? <Suspense fallback={<BigPapisRouteLoading />}><BigPapisCustomerDetail customerId={detail} /></Suspense> : <BigPapisCustomersRoute />;\n    case 'leads': return bigPapisLazyContent(BigPapisCustomers);\n    case 'event-day': return bigPapisLazyContent(BigPapisEventDay);\n    case 'drive': return bigPapisLazyContent(OwnerDrive);\n    case 'inbox': return bigPapisLazyContent(BigPapisInbox);\n    case 'communications': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/inbox`} replace />;\n    case 'sms': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/inbox/texts`} replace />;\n    case 'invoices': return bigPapisLazyContent(BigPapisMoney);\n    case 'operations': return bigPapisLazyContent(BigPapisOperations);\n    case 'inventory': return bigPapisLazyContent(BigPapisInventory);\n    case 'more': return bigPapisLazyContent(BigPapisBusinessTools);\n    case 'email':\n    case 'emails': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/mail${location.search || ''}${location.hash || ''}`} replace />;\n    case 'mail': return bigPapisTenantId\n      ? <Suspense fallback={<BigPapisRouteLoading />}><MailWorkspace tenantId={bigPapisTenantId} applicationMode shellIntegrated appearance=\"big-papis\" businessDestinations={BIG_PAPIS_BUSINESS_DESTINATIONS} /></Suspense>\n      : <BigPapisRouteLoading />;\n    case 'grow': return bigPapisLazyContent(OwnerAutomations);\n    case 'automations': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/grow`} replace />;\n    case 'profile': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/${UNIVERSAL_TENANT_PROFILE_ROUTE}`} replace />;\n    case 'settings': return bigPapisLazyContent(OwnerSettings);\n    case 'workflows': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/operations${location.search || ''}${location.hash || ''}`} replace />;\n    case 'documents': return bigPapisLazyContent(OwnerDocuments);\n    case 'agreements': return bigPapisLazyContent(OwnerAgreements);\n    case 'forms': return bigPapisLazyContent(OwnerPDFTemplates);\n    case 'users': return bigPapisLazyContent(BigPapisTeam);\n    case 'team': return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/users`} replace />;\n    case 'onboarding': return bigPapisLazyContent(OwnerOnboarding);\n    case 'import': return bigPapisLazyContent(OwnerImport);\n    case 'reports': return bigPapisLazyContent(BigPapisBusinessPulse);\n    case 'branding': return bigPapisLazyContent(BigPapisBrand);\n    case 'ads': return bigPapisLazyContent(BigPapisAds);\n    case 'community': return bigPapisLazyContent(BigPapisFoodTruckLove);\n    case 'qr': return bigPapisLazyContent(OwnerQrCodeCreator);\n    case 'feature-access': return bigPapisLazyContent(OwnerFeatureOverrides);\n    default: return <Navigate to={BIG_PAPIS_OWNER_DASHBOARD_PATH} replace />;\n  }\n}\n\nfunction BigPapisWorkspaceRoute() {\n  const location = useLocation();\n  // Query parameters select views within a page; they must not destroy its state.\n  const routeIdentity = location.pathname;\n  const normalizedPath = location.pathname.toLowerCase().replace(/\\/+$/g, '');\n  const params = new URLSearchParams(location.search);\n  const genericMode = String(params.get('mode') || '').trim().toLowerCase();\n  const canonicalMode = ['plan', 'popup', 'event', 'office'].includes(genericMode) ? genericMode : '';\n  if (canonicalMode) {\n    params.delete('mode');\n    params.delete('modeApp');\n    params.set('bpMode', canonicalMode);\n    let pathname = location.pathname;\n    if (normalizedPath === BIG_PAPIS_OWNER_DASHBOARD_PATH.toLowerCase()) {\n      pathname = canonicalMode === 'plan'\n        ? `${BIG_PAPIS_OWNER_BASE_PATH}/calendar`\n        : canonicalMode === 'popup'\n          ? `${BIG_PAPIS_OWNER_BASE_PATH}/pop-up/start`\n          : canonicalMode === 'event'\n            ? `${BIG_PAPIS_OWNER_BASE_PATH}/events`\n            : BIG_PAPIS_OWNER_DASHBOARD_PATH;\n    }\n    const search = params.toString();\n    return <Navigate to={`${pathname}${search ? `?${search}` : ''}${location.hash || ''}`} replace />;\n  }\n\n  const isBareModesLanding = isBigPapisModesLandingLocation(\n    location.pathname,\n    location.search,\n    BIG_PAPIS_OWNER_DASHBOARD_PATH,\n  );\n\n  const content = (\n    <Suspense fallback={<BigPapisRouteLoading />}>\n      <BigPapisWorkspaceContent key={routeIdentity} />\n    </Suspense>\n  );\n\n  return (\n    <BigPapisTenantBoundary>\n      <BigPapisOwnerAccessBoundary>\n        {isBareModesLanding\n          ? <TenantModesShell>{content}</TenantModesShell>\n          : <BigPapisOwnerShell>{content}</BigPapisOwnerShell>}\n      </BigPapisOwnerAccessBoundary>\n    </BigPapisTenantBoundary>\n  );\n}\n\nfunction OwnerMailApplicationRedirect() {\n  const { activeTenant } = useMultiTenant();\n  const location = useLocation();\n  const suffix = `${location.search || ''}${location.hash || ''}`;\n  if (!activeTenant?.company_slug) return <Navigate to=\"/select-tenant?app=mail\" replace />;\n  if (isBigPapisWorkspaceTenant(activeTenant)) {\n    return <Navigate to={`${BIG_PAPIS_OWNER_BASE_PATH}/mail${suffix}`} replace />;\n  }\n  return <Navigate to={`/${encodeURIComponent(activeTenant.company_slug)}/mail${suffix}`} replace />;\n}\n\nfunction OwnerUsersRoute() {\n  const { activeTenant, getPath } = useMultiTenant();\n  if (activeTenant?.tenant_type === 'PUBLIC_ADJUSTER_FIRM') {\n    return <Navigate to={`${getPath('team-compliance')}?tab=access`} replace />;\n  }\n  return lazy(OwnerUsers);\n}\n\nfunction OwnerCommunicationsRoute() {\n  const { user, session, loading: authLoading } = useAuth();\n  const { activeTenant, roles, isLoading: tenantLoading, getPath, isTenantOwner, isAdminOrHigher } = useMultiTenant();\n  const hasGlobalOwnerRole = roles.some((r) => ['Owner', 'Tenant Owner', 'GodMode', 'Admin'].includes(r.role));\n  const hasOwnerAccess = activeTenant ? (isTenantOwner() || isAdminOrHigher()) : hasGlobalOwnerRole;\n\n  if (authLoading || (tenantLoading && roles.length === 0)) {\n    return <PageLoadingSkeleton variant=\"minimal\" />;\n  }\n\n  if (!user || !session) {\n    return <Navigate to=\"/\" replace />;\n  }\n\n  if (!hasOwnerAccess) {\n    return <Navigate to={`${getPath('communications')}?section=voicemails`} replace />;\n  }\n\n  return (\n    <Suspense fallback={<PageLoadingSkeleton variant=\"minimal\" />}>\n      <CommunicationsInbox ownerShell />\n    </Suspense>\n  );\n}\n\nexport const ownerRoutes = (\n  <>\n    <Route path=\"/owner\" element={lazy(OwnerDashboard)} />\n    <Route path=\"/owner/route-directory\" element={lazy(OwnerRouteDirectory)} />\n    <Route path=\"/owner/qr-code\" element={authenticated(OwnerQrCodeCreator)} />\n    <Route path=\"/owner/qr\" element={<Navigate to=\"/owner/qr-code\" replace />} />\n    <Route path=\"/owner/links\" element={<Navigate to=\"/owner/route-directory\" replace />} />\n\n    {/* Big Papi owns one deterministic wildcard workspace. The shell stays mounted,\n        while BigPapisWorkspaceContent resolves the visible page directly from location.pathname.\n        This intentionally avoids a nested Outlet handoff because Big Papi must update immediately\n        on in-app navigation without requiring a browser refresh. */}\n    <Route path=\"/big-papis/mail\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path=\"/big-papis/email\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path=\"/big-papis/emails\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path=\"/big-papis/email-suite\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path={`${BIG_PAPIS_OWNER_BASE_PATH}/email`} element={<LegacyBigPapisMailRedirect />} />\n    <Route path={`${BIG_PAPIS_OWNER_BASE_PATH}/emails`} element={<LegacyBigPapisMailRedirect />} />\n    <Route path={`${BIG_PAPIS_OWNER_BASE_PATH}/*`} element={<BigPapisWorkspaceRoute />} />\n    <Route path=\"/big-papis-coquito-iceys/email\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path=\"/big-papis-coquito-iceys/emails\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path=\"/big-papis-coquito-iceys/mail\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path=\"/big-papis-coquito-iceys/email-suite\" element={<LegacyBigPapisMailRedirect />} />\n    <Route path={`${BIG_PAPIS_LEGACY_OWNER_BASE_PATH}/*`} element={<LegacyBigPapisOwnerRedirect />} />\n    <Route path=\"/owner/big-papis\" element={<Navigate to={BIG_PAPIS_OWNER_DASHBOARD_PATH} replace />} />\n    <Route path=\"/owner/big-papis/*\" element={<LegacyBigPapisOwnerRedirect />} />\n\n    <Route\n      path=\"/cafe-qsr\"\n      element={\n        <UnifiedProtectedRoute>\n          <Suspense fallback={<PageLoadingSkeleton variant=\"minimal\" />}>\n            <CafeQsrStorefront />\n          </Suspense>\n        </UnifiedProtectedRoute>\n      }\n    />\n    <Route path=\"/cafe-qsr/dashboard\" element={<Navigate to=\"/cafe-qsr/owner/dashboard\" replace />} />\n    <Route path=\"/cafe-qsr/owner/*\" element={<UnifiedProtectedRoute requireOwner><CafeQsrWorkspace /></UnifiedProtectedRoute>} />\n\n    <Route path={`${SAVAGE_PIZZA_OWNER_BASE_PATH}/*`} element={<Suspense fallback={<PageLoadingSkeleton variant=\"minimal\" />}><SavagePizzaWorkspace /></Suspense>} />\n    <Route path={`${FINANCIAL_RECORDS_OWNER_BASE_PATH}/*`} element={lazy(UniversalFinanceWorkspace)} />\n\n    <Route path=\"/owner/lead-workspace/:id\" element={lazy(UnifiedWorkspaceShell)} />\n    <Route path=\"/owner/call-logs\" element={<Navigate to=\"/owner/communications?section=calls\" replace />} />\n    <Route path=\"/owner/contacts\" element={lazy(OwnerContacts)} />\n    <Route path=\"/owner/leads\" element={<Navigate to=\"/owner/contacts?view=new-leads\" replace />} />\n    <Route path=\"/owner/clients\" element={<Navigate to=\"/owner/contacts?view=active-clients\" replace />} />\n    <Route path=\"/owner/import\" element={lazy(OwnerImport)} />\n    <Route path=\"/owner/contacts/import\" element={<Navigate to=\"/owner/import\" replace />} />\n    <Route path=\"/owner/appointments\" element={lazy(OwnerAppointments)} />\n    <Route path=\"/owner/rebuttals\" element={lazy(OwnerRebuttals)} />\n    <Route path=\"/owner/rebuttals/effectiveness\" element={lazy(RebuttalEffectiveness)} />\n    <Route path=\"/owner/settings/*\" element={lazy(OwnerSettings)} />\n    <Route path=\"/owner/pipelines\" element={lazy(OwnerPipelines)} />\n    <Route path=\"/owner/users\" element={<OwnerUsersRoute />} />\n    <Route path=\"/owner/onboarding\" element={lazy(OwnerOnboarding)} />\n    <Route path=\"/owner/reports\" element={lazy(OwnerReports)} />\n    <Route path=\"/owner/control-hub\" element={lazy(OwnerControlHub)} />\n    <Route path=\"/owner/field-ops\" element={lazy(OwnerFieldOps)} />\n    <Route path=\"/owner/crew-dispatch\" element={lazy(OwnerCrewDispatch)} />\n    <Route path=\"/owner/drive\" element={lazy(OwnerDrive)} />\n    <Route path=\"/owner/pdf-templates\" element={lazy(OwnerPDFTemplates)} />\n    <Route path=\"/owner/academy-oversight\" element={lazy(OwnerAcademyOversight)} />\n    <Route path=\"/owner/branding\" element={lazy(OwnerBranding)} />\n    <Route path=\"/owner/invoices\" element={lazy(OwnerInvoices)} />\n    <Route path=\"/owner/emails\" element={<OwnerMailApplicationRedirect />} />\n    <Route path=\"/owner/email\" element={<OwnerMailApplicationRedirect />} />\n    <Route path=\"/owner/mail\" element={<OwnerMailApplicationRedirect />} />\n    <Route path=\"/owner/email-templates\" element={lazy(OwnerEmailSuite)} />\n    <Route path=\"/owner/voicemail-presets\" element={lazy(OwnerVoicemailPresets)} />\n    <Route path=\"/owner/workflows\" element={lazy(OwnerWorkflows)} />\n    <Route path=\"/owner/documents\" element={lazy(OwnerDocuments)} />\n    <Route path=\"/owner/pricing\" element={lazy(OwnerPricing)} />\n    <Route path=\"/owner/storms\" element={lazy(OwnerStorms)} />\n    <Route path=\"/owner/agreements\" element={lazy(OwnerAgreements)} />\n    <Route path=\"/owner/automations\" element={lazy(OwnerAutomations)} />\n    <Route path=\"/owner/profile\" element={<Navigate to={`/${UNIVERSAL_TENANT_PROFILE_ROUTE}`} replace />} />\n    <Route path=\"/owner/dnc-portal\" element={lazy(OwnerDNCPortal)} />\n    <Route path=\"/owner/plan\" element={lazy(OwnerPlan)} />\n    <Route path=\"/owner/lead-campaigns\" element={lazy(OwnerLeadCampaigns)} />\n    <Route path=\"/owner/pa-dashboard\" element={lazy(OwnerPADashboard)} />\n    <Route path=\"/owner/pa-financials\" element={lazy(OwnerPAFinancialCenter)} />\n    <Route path=\"/owner/pa-team-compliance\" element={lazy(OwnerPAStaffCompliance)} />\n    <Route path=\"/owner/pa-lor-templates\" element={<Navigate to=\"/owner/documents?tab=documents\" replace />} />\n    <Route path=\"/owner/phone-numbers\" element={<Navigate to=\"/owner/communications?section=numbers\" replace />} />\n    <Route path=\"/owner/outbound-numbers\" element={<Navigate to=\"/owner/communications?section=numbers\" replace />} />\n    <Route path=\"/owner/communications\" element={<OwnerCommunicationsRoute />} />\n    <Route path=\"/owner/feature-access\" element={lazy(OwnerFeatureOverrides)} />\n    <Route path=\"/owner/permit-sources\" element={lazy(OwnerPermitSources)} />\n    <Route path=\"/owner/scoring\" element={lazy(OwnerScoring)} />\n    <Route path=\"/owner/weekly-reports\" element={lazy(OwnerWeeklyReports)} />\n    <Route path=\"/owner/ai-conversations\" element={lazy(OwnerSidekickLogs)} />\n    <Route path=\"/owner/dashboard\" element={<Navigate to=\"/owner\" replace />} />\n    <Route path=\"/owner/setup\" element={<Navigate to=\"/owner/onboarding\" replace />} />\n  </>\n);\n"},{"path":"src/__tests__/contracts/big-papis-navigation-state.contract.test.ts","content":"import { describe, expect, it } from 'vitest';\nimport { inheritBigPapisMode, isBigPapisModesLandingLocation } from '@/lib/mobileVendor/bigPapisModeNavigation';\n\nconst origin = 'https://app.knocklaunch.app';\nconst base = '/big-papis/owner';\nconst resolve = (href: string, mode: string | null = 'plan') =>\n  inheritBigPapisMode(href, origin, mode, base, base + '/dashboard');\n\ndescribe('Big Papi deliberate mode navigation', () => {\n  it.each(['plan', 'popup', 'event', 'office'])('honors explicit %s destinations', (mode) => {\n    expect(resolve(base + '/calendar?bpMode=' + mode)).toBeNull();\n  });\n  it('inherits a mode without losing event context or anchor', () => {\n    expect(resolve(base + '/proposals?event=booking-1#preview'))\n      .toBe(base + '/proposals?event=booking-1&bpMode=plan#preview');\n  });\n  it('allows returning to the unscoped Modes home', () => {\n    expect(resolve(base + '/dashboard')).toBeNull();\n  });\n  it.each([\n    '/speedy-panda/calendar',\n    '/big-papis/owner-other/calendar',\n    'https://example.com/big-papis/owner/calendar',\n    'mailto:will@example.com',\n  ])('leaves non-workspace destinations alone: %s', (href) => {\n    expect(resolve(href)).toBeNull();\n  });\n  it('leaves links alone when no mode is selected', () => {\n    expect(resolve(base + '/calendar', null)).toBeNull();\n  });\n  it('keeps only the unscoped dashboard on the MODES landing shell', () => {\n    expect(isBigPapisModesLandingLocation(base + '/dashboard', '', base + '/dashboard')).toBe(true);\n    expect(isBigPapisModesLandingLocation(base + '/dashboard', '?bpMode=plan', base + '/dashboard')).toBe(false);\n    expect(isBigPapisModesLandingLocation(base + '/dashboard', '?mode=popup', base + '/dashboard')).toBe(false);\n    expect(isBigPapisModesLandingLocation(base + '/calendar', '?bpMode=plan', base + '/dashboard')).toBe(false);\n  });\n});\n"}],"route":"/big-papis/owner/dashboard","branch":"ai/objective-first-repair-704d112ec277","writes":[],"patches":[],"version":1,"approved":true,"viewport":"desktop","missionId":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f","objective":"Ship the already-merged Big Papi split-shell repair by hardening its frontend routing contract from current protected main. Add isBigPapisModesLandingLocation to the existing Big Papi mode navigation helper, use it in ownerRoutes for the bare-dashboard MODES-shell decision, and add focused contract coverage. Preserve behavior: only /big-papis/owner/dashboard with no mode/bpMode uses TenantModesShell; all scoped/non-dashboard routes remain under BigPapisOwnerShell; generic mode compatibility redirect remains unchanged. This is a bounded frontend source change specifically to ensure the current protected-main frontend, including PR #3599's repair, receives its canonical Cloudflare release. One fresh ai branch, one PR, canonical Gate, squash merge, frontend production release, and provider proof. Do not run Visual Witness.","proofRoute":"/big-papis/owner/calendar?bpMode=plan","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/lib/mobileVendor/bigPapisModeNavigation.ts","src/routes/ownerRoutes.tsx","src/__tests__/contracts/big-papis-navigation-state.contract.test.ts"],"implementation":{"files":[],"writes":[]},"requestContract":null,"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":null,"ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/lib/mobileVendor/bigPapisModeNavigation.ts","src/routes/ownerRoutes.tsx","src/__tests__/contracts/big-papis-navigation-state.contract.test.ts"],"requestContract":null,"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"c521117aa1d5ce5576aa80359b4661d50521dbd5f9c496d4832dc1660e1ae0a4","replayCount":0,"serializedBytes":33234},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:49:33.63819+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:704d112e-c277-40b6-8d9a-ff6c6d4f2e2f:repository-mutation-intent:c521117aa1d5ce5576aa80359b4661d50521dbd5f9c496d4832dc1660e1ae0a4:0","mission_step_id":"eb1c91eb-b081-4904-85f5-d5d0870438fa","command_center_event_id":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f"},{"id":"2f4ff722-9aee-41f7-823c-76a30b9dc6f9","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f81d8ceb30a7","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3046,"terminal":false,"missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":4391,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":2073,"missionSetupMs":461,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":280,"ledgerReconcileMs":0,"lineageReconcileMs":181,"resolvePreflightMs":461,"repositoryMutationMs":2318,"repositoryProviderMs":2318,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2141,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":280,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":177},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime","runtime","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3100,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-17T21:45:40.028169+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3046","receipt_type":"execute_mission","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"a643dad9-4f71-4f5c-8eab-89b83e9ae307","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"2e1e4642-66d5-4a86-9ae9-bd53dc82d16d","source":"forgejo","status":"waiting","payload":{"branch":"ai/new-business-edge-regex-repair","prNumber":3114,"nextAction":null,"mergeCommitSha":"3bd025cdf005ae322694b7e58e2738a6cb4d04f5","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:31:45.946426+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"3bd025cdf005ae322694b7e58e2738a6cb4d04f5","external_id":"3114","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:25425af1-8f74-4777-9bdd-e280809d6036:merged-pr:3114:3bd025cdf005ae322694b7e58e2738a6cb4d04f5","mission_step_id":"81ae4944-710d-4d32-9255-13f666ef8ced","command_center_event_id":"25425af1-8f74-4777-9bdd-e280809d6036"},{"id":"f5111392-fbb1-4e86-bc36-73f9011ff378","source":"cc-execution","status":"retryable","payload":{"ok":false,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-fa630e6af6e5","reason":"pull_request_stale_refresh_required","status":"retryable","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3113,"terminal":false,"missionId":"fa630e6a-f6e5-47ce-8b73-339b3ed25fa9","operation":"execute_mission","proofGate":"repair_mission_pr_ready_retryable","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":11152,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":10581,"approvedPlanMs":0,"missionSetupMs":799,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":285,"ledgerReconcileMs":0,"lineageReconcileMs":514,"resolvePreflightMs":799,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":285,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create a replacement branch or PR.","receiptRef":{"mode":"full","missionId":"fa630e6a-f6e5-47ce-8b73-339b3ed25fa9"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2244,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:31:50.019967+00:00","proof_gate":"repair_mission_pr_ready_retryable","source_sha":null,"external_id":"3113","receipt_type":"execute_mission","idempotency_key":"mission:fa630e6a-f6e5-47ce-8b73-339b3ed25fa9:execute_mission:repair_mission_pr_ready_retryable:current-generation","mission_step_id":"d3aaa3a4-865e-4745-9345-8255a0e5a270","command_center_event_id":"fa630e6a-f6e5-47ce-8b73-339b3ed25fa9"},{"id":"4ba44b05-2a2f-477b-8896-f55aa33f7ed6","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"7c44cf8db971476caeff781959e6db410f4f1087","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"repo","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"7943ab6df87ed0a8d0963f92ad9cdbb673d7f515","prNumber":3129,"gateRunId":9694,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9694/jobs/1","mergeCommitSha":"7c44cf8db971476caeff781959e6db410f4f1087"}],"requestContractHash":"6c1383f87672ed17e4b93dfb86fa6ac9a1c3d6d3c28655fa1cccd84de2e37bcd","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:26:42.035789+00:00","proof_gate":"request_contract_repository_verified","source_sha":"7c44cf8db971476caeff781959e6db410f4f1087","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:38071877-5f7e-429a-bc77-2088d8d76166:request-contract-repository:6c1383f87672ed17e4b93dfb86fa6ac9a1c3d6d3c28655fa1cccd84de2e37bcd:7c44cf8db971476caeff781959e6db410f4f1087","mission_step_id":"21d5a1f4-eafb-494e-afb9-0174c64132a2","command_center_event_id":"38071877-5f7e-429a-bc77-2088d8d76166"},{"id":"4f47ce3c-f59d-4e18-8d32-ca587a3074f3","source":"cc-execution","status":"recorded","payload":{"objective":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","tenantRef":"pcg","receivedAt":"2026-09-30T02:04:29.391Z","fingerprint":"b9411c02ebbc1f47517d7333ef29ff8fec6c2a46cc4cdba760761db12feac8c4","workstreamRef":"pcg","conversationId":null,"canonicalBranch":null,"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"compilation":{"stages":["owner_intent","conversation_context","scope","live_state","mutation_authority","affected_systems","dependencies","risk_and_blast_radius","execution_tactics","required_proof","release_plan","recovery_plan"],"version":2,"explicit":true,"objective":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","proofKinds":["runtime","visual"],"adaptiveDomains":["intent","tenant_route_role_viewport","urgency_deadline","dependency_scope","risk_blast_radius","runner_capacity","queue_active_work","provider_failure_circuits","qa_scope","retry_recovery","release_ownership","proof_depth"],"expansionPolicy":"later_stages_may_only_narrow_or_expand_with_machine_readable_dependency_evidence","dynamicStatePolicy":"live_state_may_change_execution_tactics_but_never_owner_outcome_or_explicit_constraints","dynamicRefreshStages":["preflight","gate","release","runtime_proof"],"adaptiveCompilerVersion":"paul-adaptive-objective-v1","inheritedContextBlockingAuthority":false},"rawUtterance":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","wordingChanged":false,"canonicalIntent":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"site-repair","statement":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]}],"objective":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","constraints":[{"id":"tenant","statement":"Only the pcg public website may change.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]},{"id":"truth","statement":"Use real PCG media/data; no demo placeholder cards or invented business facts.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]},{"id":"visual-artifact-scope","statement":"The requested visual artifact is the PCG public website only; do not change the workspace or unrelated surfaces.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]},{"id":"visual-content-truth","statement":"Do not present invented names, metrics, prices, dates, services, testimonials, credentials, customer records, or unknown business facts as real.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]},{"id":"tenant-visual-isolation","statement":"Visual work is isolated to PCG and may use only PCG branding, media, copy, and business facts.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]},{"id":"visual-viewport-authority","statement":"Desktop and mobile are both required and must preserve the same design language and functionality.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime"]}],"adaptivePolicy":{"risk":{"tier":"standard","blastRadius":"scoped"},"proof":{"requiredKinds":["runtime","visual"],"visualProofScope":"targeted","interactionRequired":false,"runtimeProofRequired":true},"scope":{"route":"https://prestigeouscardgrading.com/","roleRef":null,"tenantRef":"pcg","sourceTargets":["src/pages/card-grading/PCGPublicSite.tsx","supabase/functions/pcg-customer-progress/index.ts"]},"dynamic":{"variables":["main_and_runtime_lineage","runner_capacity","queue_and_active_work","provider_health","failure_clusters_and_circuits","release_target_state","current_pr_and_gate_state"],"refreshStages":["preflight","gate","release","runtime_proof"],"refreshMayChange":["runner_selection","parallelism","retry_path","qa_depth","release_recovery","proof_timing"],"refreshMayNotChange":["owner_outcome","explicit_no_go_constraints","tenant_identity","credential_boundary","hard_safety_invariants"]},"urgency":{"priority":"normal","deadlineSignals":[],"deadlineExplicit":false},"version":"paul-adaptive-objective-v1","recovery":{"transient":"one_bounded_retry_then_alternate_eligible_pool_or_provider_path","deterministic":"repair_source_or_contract_do_not_blind_rerun","mutationDependencyFailure":"prerequisite_required_or_targeted_recovery_never_invent","readOnlyDependencyFailure":"degrade_to_available_grounded_context_and_keep_conversation_alive"},"unknowns":["deadline"],"authority":{"outcome":"current_explicit_owner_request","tactics":"live_prime_truth","unknownPolicy":"preserve_unknown_never_invent","historicalContext":"advisory_unless_current_request_confirms"},"execution":{"mutation":true,"concurrency":"parallel_non_overlapping_tenant_work","scopePolicy":"start_bounded_expand_only_with_machine_readable_dependency_evidence","staleStatePolicy":"refresh_dynamic_state_before_irreversible_or_acceptance_stage","conversationIsolation":true,"ownerOutcomeMayBeChangedByAdaptation":false},"experience":{"visual":true,"viewports":["desktop","mobile"],"behavioral":false,"visualProofScope":"targeted"},"dependencies":{"requiredDomains":["frontend","schema_data_storage","release_ownership","live_production_proof","backend_runtime","provider_configuration"],"capabilityDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"releaseTargetHints":["frontend","supabaseEdge"]},"inputSignals":{"rawUtterance":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","canonicalIntent":"Repair the live Prestigious Card Grading public website at https://prestigeouscardgrading.com/ for tenant pcg. Replace demo placeholder card media and the boxed/blurry hero with the tenant's real PCG logo/background/video and real legacy card images from pcg_import_rows; preserve real configured pricing; make cert lookup and population search fall back to imported legacy records until canonical card rows exist; keep current routes/domain; prove desktop and mobile.","conversationContextPresent":false}},"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"runtime","kind":"runtime","claim":"The live PCG website and archive-backed public data actions work in production.","route":"https://prestigeouscardgrading.com/","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"visual","kind":"visual","claim":"The live PCG homepage shows real PCG branding and actual imported card imagery with a premium responsive composition.","route":"https://prestigeouscardgrading.com/","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Repair-the-live-Prestigious-Card-Grading-public-website-at-https:-prestigeouscardgrading.com-for-ten","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":[],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["runtime"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestedBranch":null,"conversationContext":null,"requestContractHash":"099db426e1e0c5e2645c9c69f4d4f991c8ae6f08326d833f4921e1a6644d89d8","requestContractRevision":1},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T02:04:29.680967+00:00","proof_gate":"tenant_workstream_contribution_recorded","source_sha":null,"external_id":null,"receipt_type":"tenant_workstream_contribution","idempotency_key":"mission:00f828fd-76b4-4546-9cc0-dfda03e7409c:tenant-workstream-contribution:b9411c02ebbc1f47517d7333ef29ff8fec6c2a46cc4cdba760761db12feac8c4","mission_step_id":null,"command_center_event_id":"00f828fd-76b4-4546-9cc0-dfda03e7409c"},{"id":"8b9f7100-6fc6-47f7-98a0-0118b4963007","source":"cc-execution","status":"retryable","payload":{"ok":false,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f81d8ceb30a7","reason":"retryable_provider_transport:GET:forgejo_provider_read_timeout","status":"retryable","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3046,"terminal":false,"missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d","operation":"execute_mission","proofGate":"repair_mission_execution_retryable","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":7220,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":7220,"missionSetupMs":959,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":457,"ledgerReconcileMs":0,"lineageReconcileMs":502,"resolvePreflightMs":959,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":457,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime","runtime","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1529,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:34:50.852288+00:00","proof_gate":"repair_mission_execution_retryable","source_sha":null,"external_id":"3046","receipt_type":"execute_mission","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:execute_mission:repair_mission_execution_retryable:current-generation","mission_step_id":"a643dad9-4f71-4f5c-8eab-89b83e9ae307","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"12e45267-e9f0-4e57-992a-00bdda92e12f","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-e8387d6ece37","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":277,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":510,"providerAuthMs":0,"ledgerPrepareMs":510,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":510,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":510,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":4501,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:37:11.239421+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:e8387d6e-ce37-46bb-b4d8-922b91745062:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"8e810423-4d59-46e4-8c20-69d53e67e8fc","command_center_event_id":"e8387d6e-ce37-46bb-b4d8-922b91745062"},{"id":"04a269fc-06b4-4c1f-8734-bb665f9bcc1d","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f81d8ceb30a7","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3046,"terminal":false,"missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"8c217e35e94b9768e497cc5533a892bfee35f032","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":10754,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1253,"approvedPlanMs":0,"missionSetupMs":903,"providerAuthMs":0,"shipAndProveMs":9008,"ledgerPrepareMs":362,"ledgerReconcileMs":0,"lineageReconcileMs":541,"resolvePreflightMs":903,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":362,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},"performance":null,"deploymentId":"forgejo-main-8c217e35e94b","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":true,"edgeFunctionSlugs":["contacts"]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime","runtime","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2839,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:38:03.671034+00:00","proof_gate":"canonical_release_dispatched","source_sha":"8c217e35e94b9768e497cc5533a892bfee35f032","external_id":"forgejo-main-8c217e35e94b","receipt_type":"execute_mission","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"7e671e88-f1e6-429a-955f-4e7cb63cee4e","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"3d6d87cc-ff9c-439b-b0f8-a9ba6be3888d","source":"cc-execution","status":"verified","payload":{"ownerWaitSloMs":{"merge_to_live_ms":null,"owner_action_to_pr_ms":null,"green_gate_to_merge_ms":null,"owner_action_to_useful_response_ms":null},"ownerWaitLiveAt":"2026-09-18T15:50:04.839Z"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:44:24.537762+00:00","proof_gate":"owner_wait_live_milestone_recorded","source_sha":null,"external_id":null,"receipt_type":"owner_wait_live_milestone","idempotency_key":"mission:fa630e6a-f6e5-47ce-8b73-339b3ed25fa9:owner-wait-live","mission_step_id":"807cebc1-22d2-4594-a2b3-185d14316cd9","command_center_event_id":"fa630e6a-f6e5-47ce-8b73-339b3ed25fa9"},{"id":"d8ffda99-ae72-470d-bb9d-5a2c9ff81867","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Unfreeze control plane for the tenant Workspace Health direct repair verification proxy. Repair the shared Command Center stable-facade OAuth forwarding boundary so validated owner OAuth context reaches internal owner-authenticated commands, preserving tenant_workspace_repair as the canonical Workspace Health proxy with repair_bootstrap primary behavior, staged resource-limit recovery, tenant isolation, no service-role auth, no UI change, cc-execution-only release, and direct live proof against tenant d60e3c27-73ed-4a5f-a49b-c37636455daf.","wordingChanged":false,"canonicalIntent":"Unfreeze control plane for the tenant Workspace Health direct repair verification proxy. Repair the shared Command Center stable-facade OAuth forwarding boundary so validated owner OAuth context reaches internal owner-authenticated commands, preserving tenant_workspace_repair as the canonical Workspace Health proxy with repair_bootstrap primary behavior, staged resource-limit recovery, tenant isolation, no service-role auth, no UI change, cc-execution-only release, and direct live proof against tenant d60e3c27-73ed-4a5f-a49b-c37636455daf.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"direct-repair","statement":"Command Center directly executes and verifies canonical tenant Workspace Health repair with validated owner OAuth and bounded resource-limit recovery.","proofConditionIds":["repo-proof","live-proof"]}],"objective":"Unfreeze control plane for the tenant Workspace Health direct repair verification proxy. Repair the shared Command Center stable-facade OAuth forwarding boundary so validated owner OAuth context reaches internal owner-authenticated commands, preserving tenant_workspace_repair as the canonical Workspace Health proxy with repair_bootstrap primary behavior, staged resource-limit recovery, tenant isolation, no service-role auth, no UI change, cc-execution-only release, and direct live proof against tenant d60e3c27-73ed-4a5f-a49b-c37636455daf.","constraints":[{"id":"auth","statement":"Forward only validated internal OAuth context; preserve owner authorization, tenant isolation, and no service-role public auth.","proofConditionIds":["repo-proof","live-proof"]},{"id":"release","statement":"Release only cc-execution.","proofConditionIds":["live-proof"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo-proof","live-proof"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo-proof","live-proof"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"repo-proof","kind":"repository","claim":"Current source forwards validated X-Knocklaunch OAuth context through command_center_execute, retains tenant_workspace_repair, and includes regression coverage.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"live-proof","kind":"runtime","claim":"Exact released cc-execution returns a verified healthy or review-only tenant_workspace_repair receipt for 321 Auto Unlock without raw provider failure.","route":null,"roleRef":"GodMode","userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Unfreeze-control-plane-for-the-tenant-Workspace-Health-direct-repair-verification-proxy.-Repair-the-","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":["ccExecution"],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["repo-proof","live-proof"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"29063bcee7064dbf7381c894e8ec89b0da9cd214596b0551f84028ec5b80be63","requestContractRevision":4,"previousRequestContractHash":"49e17b2be5d2fbe9115f0da16ddadaaa19e4cb1367178c327def75355c0762a2"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T16:10:14.032256+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:535002f0-048f-4534-bd43-10cea3d2d86f:request-contract:29063bcee7064dbf7381c894e8ec89b0da9cd214596b0551f84028ec5b80be63","mission_step_id":"8e980e5c-a854-41e9-8a3c-24ebdb3a1a9c","command_center_event_id":"535002f0-048f-4534-bd43-10cea3d2d86f"},{"id":"e3228dd2-33d1-4287-a0f8-675958fa4b85","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-e1d57e8bfd8c","prNumber":3130,"nextAction":null,"mergeCommitSha":"b1155b4f6a85def1ed7fcf4ca464a8f1fe78bc13","branchDeletedAfterMerge":false,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:31:01.041016+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"b1155b4f6a85def1ed7fcf4ca464a8f1fe78bc13","external_id":"3130","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:e1d57e8b-fd8c-46e8-bbc6-17ddd74c0b65:merged-pr:3130:b1155b4f6a85def1ed7fcf4ca464a8f1fe78bc13","mission_step_id":"77674d12-2ddd-436d-8ed6-c188a155aa81","command_center_event_id":"e1d57e8b-fd8c-46e8-bbc6-17ddd74c0b65"},{"id":"cad1137f-fc9b-4df1-9f5a-7c145e62c10e","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-e82060e5de67","prNumber":3492,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"068ac1e4c0e74ce96701b593b7d36e76dc1caa1c","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-23T04:25:30.466681+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"068ac1e4c0e74ce96701b593b7d36e76dc1caa1c","external_id":"3492","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:e82060e5-de67-464c-a1b4-8de87e62ffa0:merged-pr:3492:068ac1e4c0e74ce96701b593b7d36e76dc1caa1c","mission_step_id":"39a69f19-2ed9-45e2-ada9-ac3fcde53661","command_center_event_id":"e82060e5-de67-464c-a1b4-8de87e62ffa0"},{"id":"3f427ba8-f577-4121-bf84-c67cabd02d82","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/pages/card-grading/PCGPublicSite.tsx","content":"import {FormEvent,useEffect,useMemo,useState,type ReactNode} from 'react';\nimport {ArrowRight,BarChart3,BadgeCheck,CreditCard,ExternalLink,MapPin,PackageCheck,Phone,Search,ShieldCheck,Sparkles,Store,Truck,type LucideIcon} from 'lucide-react';\nimport {Link} from 'react-router-dom';\nimport {supabase} from '@/integrations/supabase/client';\nimport video0 from './pcgHeroVideoChunk0';\nimport video1 from './pcgHeroVideoChunk1';\nimport video2 from './pcgHeroVideoChunk2';\nimport {PCG_AUTOGRAPH_NOTE,PCG_CARD_THICKNESSES,PCG_GRADING_SCALE,formatPCGGrade} from './pcgGradingScale';\n\nconst EMBEDDED_HERO_VIDEO='data:video/mp4;base64,'+video0+video1+video2;\ntype PCGPublicPage='home'|'grading'|'verify'|'submit'|'shop'|'contact'|'pop';\ntype Service={id?:string;label?:string;days?:number;price_per_card?:number};\ntype Profile={\n  company_name:string;short_name:string;logo_url:string|null;background_url:string|null;\n  hero_image_url:string|null;hero_video_url:string|null;phone:string|null;email:string|null;\n  address:string|null;grading_services:Service[];no_upcharges:boolean;booking_url:string|null;\n  progress_url:string|null;payment_url:string|null;public_cert_lookup:boolean;archive_card_count:number;\n};\ntype Card={\n  id:string;cert_number:string|null;year:string|null;brand_set:string|null;player_character:string|null;\n  card_number:string|null;variation:string|null;card_description:string|null;autograph_present:boolean|null;\n  grade:number|null;grade_label:string|null;front_image_url:string|null;back_image_url:string|null;\n  slab_image_url:string|null;population_count:number|null;\n};\ntype PopulationRow={year:string|null;brand_set:string|null;player_character:string|null;card_number:string|null;variation:string|null;grade:number|null;grade_label:string|null;population:number};\n\nconst BASE='/prestigious-card-grading';\nconst PCG_PUBLIC_HOSTS=new Set(['pcgslab.com','www.pcgslab.com','prestigeouscardgrading.com','www.prestigeouscardgrading.com']);\nconst PAGE_SUFFIX:Record<PCGPublicPage,string>={home:'',grading:'/grading',verify:'/verify',submit:'/submit',shop:'/shop',contact:'/contact',pop:'/pop-report'};\nconst FALLBACK_LOGO='https://ymntrajfubicyxwwdxxa.supabase.co/functions/v1/tenant-media-library?mode=asset&id=d663baad-dc59-4e01-817d-f53cf79c27a1&variant=original';\nconst FALLBACK_HERO='https://ymntrajfubicyxwwdxxa.supabase.co/functions/v1/tenant-media-library?mode=asset&id=f553e4ef-b8f3-408a-b610-a59782b8f384&variant=display';\nconst FALLBACK_BACKGROUND='https://ymntrajfubicyxwwdxxa.supabase.co/functions/v1/tenant-media-library?mode=asset&id=e3c2fce8-8a60-43e4-afa1-504f0ee7532a&variant=display';\nconst FALLBACK_ADDRESS='14170 US Highway 1 · Sebastian, FL 32958';\n\nfunction pcgPath(page:PCGPublicPage){const host=typeof window==='undefined'?'':window.location.hostname.toLowerCase();const suffix=PAGE_SUFFIX[page];return PCG_PUBLIC_HOSTS.has(host)?(suffix||'/'):(BASE+suffix)}\nfunction homeAnchor(id:string){return pcgPath('home')+'#'+id}\nfunction money(value:unknown){const n=Number(value);return Number.isFinite(n)?'$'+n.toFixed(n%1?2:0):'—'}\nfunction cardTitle(card:Card){return [card.year,card.brand_set,card.player_character,card.card_number?('#'+card.card_number):null].filter(Boolean).join(' · ')||'PCG graded card'}\nfunction cardImage(card:Card){return card.slab_image_url||card.front_image_url||card.back_image_url||null}\nfunction populationTitle(row:PopulationRow){return [row.year,row.brand_set,row.player_character,row.card_number?('#'+row.card_number):null,row.variation].filter(Boolean).join(' · ')||'PCG graded card'}\nfunction archiveLabel(value:number){return value>0?new Intl.NumberFormat('en-US').format(value):'Thousands of'}\n\nconst PAGE_TITLES:Record<PCGPublicPage,string>={\n  home:'Prestigious Card Grading | Trading Card Grading',\n  grading:'Grading Standards | Prestigious Card Grading',\n  verify:'Verify a PCG Certification | Prestigious Card Grading',\n  submit:'Start a Submission | Prestigious Card Grading',\n  shop:'Card Shop | Prestigious Card Grading',\n  contact:'Contact | Prestigious Card Grading',\n  pop:'Population Report | Prestigious Card Grading',\n};\n\nconst PROCESS_STEPS:[LucideIcon,string,string][]=[\n  [PackageCheck,'Submit','Choose a service and get your cards into PCG’s grading pipeline.'],\n  [Search,'Authenticate','The card is identified, authenticated, and prepared for evaluation.'],\n  [BarChart3,'Grade','PCG evaluates the card against its published grading scale.'],\n  [ShieldCheck,'Encapsulate','The finished card is sealed in a protective PCG slab.'],\n  [Truck,'Return','Track completion, pickup, or return shipping through the customer portal.'],\n];\n\nfunction Frame({page,profile,children}:{page:PCGPublicPage;profile:Profile|null;children:ReactNode}){\n  useEffect(()=>{const previous=document.title;document.title=PAGE_TITLES[page];return()=>{document.title=previous}},[page]);\n  const logo=profile?.logo_url||FALLBACK_LOGO;\n  const phone=profile?.phone||'833-472-4752';\n  const email=profile?.email||'tony@pcgslab.com';\n  const address=profile?.address||FALLBACK_ADDRESS;\n  const texture=profile?.background_url||FALLBACK_BACKGROUND;\n  return <main data-pcg-public-site=\"true\" className=\"relative min-h-screen overflow-x-hidden bg-[#050505] pb-20 text-white md:pb-0\">\n    <div className=\"pointer-events-none fixed inset-0 z-0 opacity-[.045]\" aria-hidden=\"true\" style={{backgroundImage:'url(\"'+texture.replace(/\"/g,'%22')+'\")',backgroundSize:'cover',backgroundPosition:'center',backgroundRepeat:'no-repeat'}}/>\n    <div className=\"relative z-10\">\n      <header className=\"sticky top-0 z-50 border-b border-[#e6c772]/20 bg-[#050505]/92 shadow-[0_12px_40px_rgba(0,0,0,.55)] backdrop-blur-2xl\">\n        <div className=\"mx-auto flex h-[78px] max-w-[1680px] items-center gap-4 px-4 sm:px-6 lg:h-[92px] lg:px-10\">\n          <Link to={pcgPath('home')} className=\"flex min-w-0 shrink-0 items-center\">\n            <img src={logo} alt=\"Prestigious Card Grading\" className=\"h-[58px] w-auto max-w-[190px] object-contain drop-shadow-[0_8px_22px_rgba(229,190,91,.20)] lg:h-[72px] lg:max-w-[260px]\"/>\n          </Link>\n          <nav className=\"ml-auto hidden items-center gap-1 text-[13px] font-extrabold xl:flex\">\n            <a href={homeAnchor('services')} className=\"rounded-full px-3.5 py-2.5 text-white/72 transition hover:bg-white/[.06] hover:text-white\">Services</a>\n            <a href={homeAnchor('pricing')} className=\"rounded-full px-3.5 py-2.5 text-white/72 transition hover:bg-white/[.06] hover:text-white\">Pricing</a>\n            <a href={homeAnchor('process')} className=\"rounded-full px-3.5 py-2.5 text-white/72 transition hover:bg-white/[.06] hover:text-white\">Process</a>\n            <Link to={pcgPath('pop')} className=\"rounded-full px-3.5 py-2.5 text-white/72 transition hover:bg-white/[.06] hover:text-white\">Pop Report</Link>\n            <Link to={pcgPath('verify')} className=\"rounded-full px-3.5 py-2.5 text-white/72 transition hover:bg-white/[.06] hover:text-white\">Cert Lookup</Link>\n            <Link to={pcgPath('grading')} className=\"rounded-full px-3.5 py-2.5 text-white/72 transition hover:bg-white/[.06] hover:text-white\">Grading Scale</Link>\n          </nav>\n          <Link to={pcgPath('submit')} className=\"ml-auto inline-flex min-h-11 items-center gap-2 rounded-xl border border-[#ffe8a7]/45 bg-[linear-gradient(180deg,#f5d982,#c89431)] px-4 text-xs font-black text-[#120b01] shadow-[0_14px_34px_rgba(214,168,61,.24)] xl:ml-3 xl:px-6\">Submit Cards <ArrowRight className=\"h-4 w-4\"/></Link>\n        </div>\n      </header>\n      {children}\n      <footer className=\"border-t border-[#d8bb78]/16 bg-black/78\">\n        <div className=\"mx-auto grid max-w-[1680px] gap-8 px-5 py-10 sm:px-6 md:grid-cols-[1.25fr_.75fr_.75fr] lg:px-10\">\n          <div><img src={logo} alt=\"PCG\" className=\"h-16 w-auto max-w-[250px] object-contain\"/><div className=\"mt-4 text-sm font-black\">{profile?.company_name||'Prestigious Card Grading LLC'}</div><p className=\"mt-2 max-w-md text-xs leading-5 text-white/48\">Family-owned and veteran-operated trading-card grading and authentication in Sebastian, Florida.</p></div>\n          <div className=\"text-xs leading-6 text-white/55\"><div className=\"font-black uppercase tracking-[.18em] text-[#e4c77f]\">Visit PCG</div><div className=\"mt-2\">{address}</div><Link to={pcgPath('contact')} className=\"mt-2 inline-block rounded-lg py-2 text-white hover:text-[#e4c77f]\">Contact PCG</Link></div>\n          <div className=\"text-xs leading-6 text-white/55\"><div className=\"font-black uppercase tracking-[.18em] text-[#e4c77f]\">Collector tools</div><Link to={pcgPath('verify')} className=\"mt-2 block rounded-lg py-1 hover:text-white\">Cert Lookup</Link><Link to={pcgPath('pop')} className=\"block rounded-lg py-1 hover:text-white\">Population Report</Link><Link to={pcgPath('grading')} className=\"block rounded-lg py-1 hover:text-white\">Grading Scale</Link><a href={'tel:'+phone.replace(/[^+\\d]/g,'')} className=\"block rounded-lg py-1 hover:text-white\">{phone}</a><a href={'mailto:'+email} className=\"block rounded-lg py-1 hover:text-white\">{email}</a></div>\n        </div>\n      </footer>\n      <div data-pcg-mobile-actions=\"true\" className=\"fixed inset-x-0 bottom-0 z-50 grid grid-cols-4 gap-1 border-t border-[#d8bb78]/20 bg-[#070708]/96 p-2 backdrop-blur-2xl md:hidden\">\n        <Link to={pcgPath('verify')} className=\"grid min-h-12 place-items-center rounded-lg bg-white/[.06] px-2 text-center text-[11px] font-black\">Verify</Link>\n        <Link to={pcgPath('pop')} className=\"grid min-h-12 place-items-center rounded-lg bg-white/[.06] px-2 text-center text-[11px] font-black\">Pop Report</Link>\n        <Link to={pcgPath('submit')} className=\"grid min-h-12 place-items-center rounded-lg bg-[linear-gradient(180deg,#f3d27e,#c99935)] px-2 text-center text-[11px] font-black text-black\">Submit</Link>\n        {profile?.progress_url?<a href={profile.progress_url} className=\"grid min-h-12 place-items-center rounded-lg bg-white/[.06] px-2 text-center text-[11px] font-black\">Track</a>:<Link to={pcgPath('contact')} className=\"grid min-h-12 place-items-center rounded-lg bg-white/[.06] px-2 text-center text-[11px] font-black\">Contact</Link>}\n      </div>\n    </div>\n  </main>\n}\n\nfunction SectionHeading({eyebrow,title,copy,right}:{eyebrow:string;title:string;copy?:string;right?:ReactNode}){\n  return <div className=\"mb-8 flex flex-col gap-4 md:flex-row md:items-end md:justify-between\"><div className=\"max-w-3xl\"><div className=\"text-[10px] font-black uppercase tracking-[.26em] text-[#e4c77f]\">{eyebrow}</div><h2 className=\"mt-2 font-serif text-3xl font-black tracking-[-.035em] text-white sm:text-4xl lg:text-[48px]\">{title}</h2>{copy?<p className=\"mt-3 max-w-2xl text-sm leading-6 text-white/56 sm:text-base\">{copy}</p>:null}</div>{right}</div>\n}\n\nfunction LegacyCardRail({cards}:{cards:Card[]}){\n  if(!cards.length)return <div className=\"rounded-2xl border border-[#d8bb78]/18 bg-black/55 p-8 text-sm leading-6 text-white/50\">The PCG archive is connected. Public card photography will appear here as the imported legacy media resolves.</div>;\n  return <div className=\"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6\">{cards.slice(0,12).map((card,index)=>{const image=cardImage(card);return <article key={card.id+'-'+index} className=\"group overflow-hidden rounded-[20px] border border-[#d8bb78]/22 bg-[#080808] p-2.5 shadow-[0_20px_55px_rgba(0,0,0,.32)] transition duration-300 hover:-translate-y-1.5 hover:border-[#efcf78]/55\"><div className=\"relative overflow-hidden rounded-[14px] bg-black\"><img src={image||''} alt={cardTitle(card)} loading=\"lazy\" className=\"aspect-[3/4] w-full object-cover transition duration-500 group-hover:scale-[1.035]\"/><div className=\"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black via-black/70 to-transparent p-3 pt-10\"><div className=\"flex items-end justify-between gap-2\"><span className=\"line-clamp-2 text-[11px] font-black leading-4 text-white\">{card.player_character||card.brand_set||'PCG card'}</span><span className=\"shrink-0 rounded-md border border-[#efd17f]/35 bg-black/75 px-2 py-1 text-[10px] font-black text-[#f2d687]\">{formatPCGGrade(card.grade,card.grade_label)}</span></div></div></div><div className=\"px-1 pb-1 pt-2 text-[10px] uppercase tracking-[.08em] text-white/42\">{card.cert_number?'PCG '+card.cert_number:[card.year,card.brand_set].filter(Boolean).join(' · ')}</div></article>})}</div>\n}\n\nfunction HeroCertSearch(){\n  const[cert,setCert]=useState('');\n  function submit(event:FormEvent){event.preventDefault();const value=cert.trim();if(!value)return;window.location.assign(pcgPath('verify')+'?cert='+encodeURIComponent(value))}\n  return <form onSubmit={submit} className=\"mt-7 flex max-w-[560px] gap-2 rounded-2xl border border-[#d8bb78]/22 bg-black/58 p-2 shadow-[0_14px_40px_rgba(0,0,0,.34)] backdrop-blur-xl\">\n    <div className=\"flex min-w-0 flex-1 items-center gap-2 px-2\"><Search className=\"h-4 w-4 shrink-0 text-[#e4c77f]\"/><input value={cert} onChange={event=>setCert(event.target.value)} placeholder=\"Search card by PCG #\" className=\"h-11 w-full min-w-0 bg-transparent text-sm font-bold text-white outline-none placeholder:text-white/35\"/></div>\n    <button disabled={!cert.trim()} className=\"min-h-11 rounded-xl bg-[#e4c77f] px-4 text-xs font-black text-black disabled:opacity-40\">Verify</button>\n  </form>\n}\n\nfunction ServiceGrid({profile}:{profile:Profile|null}){\n  const services=profile?.grading_services||[];\n  if(!services.length)return <div className=\"rounded-2xl border border-[#d8bb78]/20 bg-black/60 p-7\"><div className=\"text-lg font-black\">Current grading options are available through PCG.</div><p className=\"mt-2 text-sm leading-6 text-white/50\">Start a submission for the latest service menu.</p><Link to={pcgPath('submit')} className=\"mt-5 inline-flex items-center gap-2 rounded-xl bg-[#e4c77f] px-5 py-3 text-sm font-black text-black\">Start Submission <ArrowRight className=\"h-4 w-4\"/></Link></div>;\n  return <div className=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-4\">{services.map((service,index)=><article key={service.id||service.label||String(index)} className=\"relative overflow-hidden rounded-[22px] border border-[#d8bb78]/25 bg-[linear-gradient(155deg,rgba(232,195,104,.13),rgba(0,0,0,.82)_46%)] p-6 shadow-[0_24px_60px_rgba(0,0,0,.28)]\"><div className=\"absolute inset-x-0 top-0 h-px bg-[linear-gradient(90deg,transparent,#ffe6a3,transparent)]\"/><div className=\"text-[10px] font-black uppercase tracking-[.18em] text-white/45\">{service.label||'Grading service'}</div><div className=\"mt-3 text-4xl font-black text-[#f1d58e]\">{money(service.price_per_card)}</div><div className=\"mt-1 text-xs text-white/45\">per card{service.days===0?' · same day':service.days?(' · '+service.days+' day'+(service.days===1?'':'s')):''}</div></article>)}</div>\n}\n\nfunction Home({profile,featured}:{profile:Profile|null;featured:Card[]}){\n  const logo=profile?.logo_url||FALLBACK_LOGO;\n  const video=profile?.hero_video_url||EMBEDDED_HERO_VIDEO;\n  const heroImage=profile?.hero_image_url||FALLBACK_HERO;\n  const prices=(profile?.grading_services||[]).map(service=>Number(service.price_per_card)).filter(value=>Number.isFinite(value)&&value>0);\n  const lowest=prices.length?Math.min(...prices):null;\n  const heroCards=featured.slice(0,3);\n  return <Frame page=\"home\" profile={profile}>\n    <section className=\"relative isolate min-h-[720px] overflow-hidden border-b border-[#d8bb78]/18 lg:min-h-[790px]\">\n      <img src={heroImage} alt=\"\" className=\"absolute inset-0 -z-30 h-full w-full object-cover opacity-50\" aria-hidden=\"true\"/>\n      <video src={video} autoPlay muted loop playsInline preload=\"metadata\" className=\"absolute inset-0 -z-20 h-full w-full object-cover opacity-[.58] motion-reduce:hidden\"/>\n      <div className=\"absolute inset-0 -z-10 bg-[linear-gradient(90deg,#030303_0%,rgba(3,3,3,.93)_30%,rgba(3,3,3,.72)_57%,rgba(3,3,3,.42)_100%)]\"/>\n      <div className=\"absolute inset-0 -z-10 bg-[radial-gradient(circle_at_70%_30%,rgba(223,177,73,.18),transparent_28rem),linear-gradient(180deg,transparent_0%,rgba(2,2,2,.2)_58%,#050505_100%)]\"/>\n      <div className=\"mx-auto grid min-h-[720px] max-w-[1680px] items-center gap-10 px-5 py-12 sm:px-6 lg:min-h-[790px] lg:grid-cols-[minmax(0,1fr)_minmax(470px,.88fr)] lg:px-10\">\n        <div className=\"relative z-10 max-w-[850px]\">\n          <div className=\"inline-flex items-center gap-2 rounded-full border border-[#d8bb78]/28 bg-black/52 px-4 py-2 text-[10px] font-black uppercase tracking-[.24em] text-[#efcf78] backdrop-blur-lg\"><Sparkles className=\"h-4 w-4\"/>Trading cards. Higher standards.</div>\n          <h1 className=\"mt-6 font-serif text-[clamp(4rem,8vw,8rem)] font-black leading-[.82] tracking-[-.06em]\">\n            <span className=\"block text-white\">GRADE WITH</span>\n            <span className=\"block\" style={{backgroundImage:'linear-gradient(180deg,#fff6ca 0%,#f0ce70 42%,#a96d13 100%)',WebkitBackgroundClip:'text',backgroundClip:'text',color:'transparent'}}>PRESTIGE</span>\n          </h1>\n          <p className=\"mt-7 max-w-2xl text-base leading-7 text-white/76 sm:text-lg lg:text-xl lg:leading-8\">Professional trading-card grading and authentication from a family-owned, veteran-operated company in Sebastian, Florida — with the PCG archive, certification lookup, population data, submission, and order tracking in one place.</p>\n          <div className=\"mt-8 flex flex-wrap gap-3\">\n            <Link to={pcgPath('submit')} className=\"inline-flex min-h-13 items-center gap-2 rounded-xl bg-[linear-gradient(180deg,#f5da86,#c99331)] px-6 py-3.5 text-sm font-black text-black shadow-[0_16px_42px_rgba(221,174,70,.28)]\">Start Submission <ArrowRight className=\"h-4 w-4\"/></Link>\n            {profile?.progress_url?<a href={profile.progress_url} className=\"inline-flex min-h-13 items-center gap-2 rounded-xl border border-[#d8bb78]/30 bg-black/48 px-6 py-3.5 text-sm font-black text-white backdrop-blur-xl\">Track Order <PackageCheck className=\"h-4 w-4\"/></a>:<Link to={pcgPath('contact')} className=\"inline-flex min-h-13 items-center gap-2 rounded-xl border border-[#d8bb78]/30 bg-black/48 px-6 py-3.5 text-sm font-black text-white\">Contact PCG</Link>}\n          </div>\n          <HeroCertSearch/>\n        </div>\n        <div className=\"relative mx-auto hidden h-[590px] w-full max-w-[650px] lg:block\">\n          <div className=\"absolute right-[7%] top-[8%] h-[82%] w-[70%] rounded-full bg-[#d5a845]/10 blur-3xl\"/>\n          {heroCards.length?heroCards.map((card,index)=>{const image=cardImage(card);const positions=['left-[4%] top-[13%] -rotate-[8deg] z-10','left-[33%] top-[1%] rotate-[2deg] z-30','right-[1%] top-[17%] rotate-[8deg] z-20'];return image?<article key={card.id} className={'absolute w-[39%] rounded-[24px] border border-[#efcf78]/32 bg-black/74 p-2 shadow-[0_35px_90px_rgba(0,0,0,.62)] '+positions[index]}><div className=\"overflow-hidden rounded-[17px] bg-black\"><img src={image} alt={cardTitle(card)} className=\"aspect-[3/4] w-full object-cover\"/></div><div className=\"flex items-center justify-between gap-2 px-2 pb-2 pt-3\"><span className=\"line-clamp-1 text-[10px] font-black text-white/82\">{card.player_character||card.brand_set}</span><span className=\"rounded-md bg-[#e4c77f] px-2 py-1 text-[10px] font-black text-black\">{formatPCGGrade(card.grade,card.grade_label)}</span></div></article>:null}):<div className=\"absolute inset-[12%] grid place-items-center rounded-[34px] border border-[#d8bb78]/20 bg-black/35 p-10 backdrop-blur-md\"><img src={logo} alt=\"PCG\" className=\"w-[78%] object-contain\"/></div>}\n          <img src={logo} alt=\"\" className=\"absolute bottom-[2%] right-[7%] z-40 w-[42%] object-contain opacity-95 drop-shadow-[0_18px_35px_rgba(0,0,0,.75)]\" aria-hidden=\"true\"/>\n        </div>\n      </div>\n    </section>\n\n    <section className=\"border-b border-[#d8bb78]/18 bg-[#080808]\">\n      <div className=\"mx-auto grid max-w-[1680px] grid-cols-2 gap-px bg-[#d8bb78]/14 md:grid-cols-4\">\n        <div className=\"bg-[#070707] px-5 py-5 sm:px-6\"><div className=\"text-[9px] font-black uppercase tracking-[.18em] text-[#e4c77f]\">PCG Archive</div><div className=\"mt-1 text-sm font-black\">{archiveLabel(profile?.archive_card_count||0)} graded-card records</div></div>\n        <div className=\"bg-[#070707] px-5 py-5 sm:px-6\"><div className=\"text-[9px] font-black uppercase tracking-[.18em] text-[#e4c77f]\">Collector tools</div><div className=\"mt-1 text-sm font-black\">Cert Lookup + Pop Report</div></div>\n        <div className=\"bg-[#070707] px-5 py-5 sm:px-6\"><div className=\"text-[9px] font-black uppercase tracking-[.18em] text-[#e4c77f]\">Service pricing</div><div className=\"mt-1 text-sm font-black\">{lowest!=null?'From '+money(lowest)+' per card':'Current PCG service tiers'}</div></div>\n        <div className=\"bg-[#070707] px-5 py-5 sm:px-6\"><div className=\"text-[9px] font-black uppercase tracking-[.18em] text-[#e4c77f]\">Sebastian, Florida</div><div className=\"mt-1 text-sm font-black\">Storefront · drop-off · mail-in</div></div>\n      </div>\n    </section>\n\n    <section className=\"relative overflow-hidden\">\n      <div className=\"absolute inset-0 opacity-[.08]\" aria-hidden=\"true\" style={{backgroundImage:'url(\"'+(profile?.background_url||FALLBACK_BACKGROUND).replace(/\"/g,'%22')+'\")',backgroundSize:'cover',backgroundPosition:'center'}}/>\n      <div className=\"relative mx-auto max-w-[1680px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\">\n        <SectionHeading eyebrow=\"From the real PCG archive\" title=\"Actual cards. Actual PCG records.\" copy=\"Card photography and certification data from PCG’s migrated legacy database — not demo slabs, stock cards, or repeated placeholder images.\" right={<Link to={pcgPath('verify')} className=\"inline-flex min-h-11 items-center rounded-xl border border-[#d8bb78]/24 bg-black/55 px-4 text-sm font-black text-[#e4c77f]\">Verify a card →</Link>}/>\n        <LegacyCardRail cards={featured}/>\n      </div>\n    </section>\n\n    <section id=\"process\" className=\"border-y border-[#d8bb78]/16 bg-[#080808]\">\n      <div className=\"mx-auto max-w-[1680px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\">\n        <SectionHeading eyebrow=\"Our process\" title=\"Simple. Secure. Prestigious.\" copy=\"A clear collector flow from submission through return, without making customers hunt through a maze.\" right={<Link to={pcgPath('grading')} className=\"inline-flex min-h-11 items-center text-sm font-black text-[#e4c77f]\">See grading standards →</Link>}/>\n        <div className=\"grid gap-4 md:grid-cols-5\">{PROCESS_STEPS.map(([Icon,title,copy],index)=><article key={title} className=\"relative min-h-[220px] rounded-[22px] border border-[#d8bb78]/18 bg-[linear-gradient(155deg,rgba(220,177,83,.08),rgba(0,0,0,.74)_44%)] p-5\"><div className=\"flex items-center justify-between\"><div className=\"grid h-11 w-11 place-items-center rounded-xl border border-[#e4c77f]/30 bg-[#e4c77f]/10\"><Icon className=\"h-5 w-5 text-[#e4c77f]\"/></div><span className=\"text-2xl font-black text-[#e4c77f]/30\">0{index+1}</span></div><h3 className=\"mt-5 text-lg font-black\">{title}</h3><p className=\"mt-2 text-sm leading-6 text-white/50\">{copy}</p></article>)}</div>\n      </div>\n    </section>\n\n    <section id=\"services\" className=\"mx-auto max-w-[1680px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\">\n      <SectionHeading eyebrow=\"Collector tools\" title=\"The important stuff is not buried anymore.\" copy=\"Search a certification, check population, understand the grading scale, or start a submission without bouncing around the site.\"/>\n      <div className=\"grid gap-4 md:grid-cols-2 xl:grid-cols-4\">\n        <Link to={pcgPath('verify')} className=\"group rounded-[22px] border border-[#d8bb78]/20 bg-black/62 p-6 transition hover:-translate-y-1 hover:border-[#d8bb78]/45\"><Search className=\"h-7 w-7 text-[#e4c77f]\"/><h3 className=\"mt-5 text-xl font-black\">Cert Verification</h3><p className=\"mt-2 text-sm leading-6 text-white/50\">Look up a PCG certification number against the imported archive and current PCG records.</p><span className=\"mt-6 inline-flex items-center gap-2 text-xs font-black text-[#e4c77f]\">Verify a cert <ArrowRight className=\"h-4 w-4\"/></span></Link>\n        <Link to={pcgPath('pop')} className=\"group rounded-[22px] border border-[#d8bb78]/20 bg-black/62 p-6 transition hover:-translate-y-1 hover:border-[#d8bb78]/45\"><BarChart3 className=\"h-7 w-7 text-[#e4c77f]\"/><h3 className=\"mt-5 text-xl font-black\">Population Report</h3><p className=\"mt-2 text-sm leading-6 text-white/50\">Search the PCG archive by player, set, card number, variation, or grade.</p><span className=\"mt-6 inline-flex items-center gap-2 text-xs font-black text-[#e4c77f]\">Search population <ArrowRight className=\"h-4 w-4\"/></span></Link>\n        <a href={homeAnchor('pricing')} className=\"group rounded-[22px] border border-[#d8bb78]/20 bg-black/62 p-6 transition hover:-translate-y-1 hover:border-[#d8bb78]/45\"><CreditCard className=\"h-7 w-7 text-[#e4c77f]\"/><h3 className=\"mt-5 text-xl font-black\">Pricing & Services</h3><p className=\"mt-2 text-sm leading-6 text-white/50\">See PCG’s real configured turnaround tiers and per-card pricing.</p><span className=\"mt-6 inline-flex items-center gap-2 text-xs font-black text-[#e4c77f]\">View pricing <ArrowRight className=\"h-4 w-4\"/></span></a>\n        <Link to={pcgPath('grading')} className=\"group rounded-[22px] border border-[#d8bb78]/20 bg-black/62 p-6 transition hover:-translate-y-1 hover:border-[#d8bb78]/45\"><BadgeCheck className=\"h-7 w-7 text-[#e4c77f]\"/><h3 className=\"mt-5 text-xl font-black\">Grading Scale</h3><p className=\"mt-2 text-sm leading-6 text-white/50\">Read PCG’s actual grade designations and card-thickness support.</p><span className=\"mt-6 inline-flex items-center gap-2 text-xs font-black text-[#e4c77f]\">View standards <ArrowRight className=\"h-4 w-4\"/></span></Link>\n      </div>\n    </section>\n\n    <section id=\"pricing\" className=\"border-y border-[#d8bb78]/16 bg-[#080808]\">\n      <div className=\"mx-auto max-w-[1680px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\">\n        <SectionHeading eyebrow=\"Pricing & services\" title=\"Fast options without the pricing circus.\" copy=\"These are PCG’s configured service tiers. The site follows the canonical pricing rather than inventing marketing packages.\" right={<Link to={pcgPath('submit')} className=\"inline-flex min-h-11 items-center text-sm font-black text-[#e4c77f]\">Start submission →</Link>}/>\n        <ServiceGrid profile={profile}/>\n        {profile?.no_upcharges?<div className=\"mt-5 inline-flex items-center gap-2 rounded-full border border-emerald-300/20 bg-emerald-300/[.06] px-4 py-2 text-xs font-black text-emerald-200\"><ShieldCheck className=\"h-4 w-4\"/>No up-charges on PCG’s configured pricing policy</div>:null}\n      </div>\n    </section>\n\n    <section className=\"relative overflow-hidden\">\n      <img src={profile?.hero_image_url||FALLBACK_HERO} alt=\"\" className=\"absolute inset-0 h-full w-full object-cover opacity-[.18]\" aria-hidden=\"true\"/>\n      <div className=\"absolute inset-0 bg-[linear-gradient(90deg,#050505_0%,rgba(5,5,5,.88)_55%,rgba(5,5,5,.72)_100%)]\"/>\n      <div className=\"relative mx-auto grid max-w-[1680px] gap-6 px-5 py-16 sm:px-6 lg:grid-cols-[1.15fr_.85fr] lg:px-10 lg:py-20\">\n        <div className=\"rounded-[28px] border border-[#d8bb78]/20 bg-black/58 p-7 backdrop-blur-xl sm:p-9\"><div className=\"text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\">About PCG</div><h2 className=\"mt-3 font-serif text-3xl font-black sm:text-5xl\">The hobby should feel accessible, not intimidating.</h2><p className=\"mt-4 max-w-2xl text-sm leading-7 text-white/58\">Prestigious Card Grading is a family-owned and veteran-operated grading and authentication company with a Sebastian, Florida storefront. PCG grades trading cards and maintains a searchable archive of its graded cards.</p></div>\n        <div className=\"rounded-[28px] border border-[#d8bb78]/20 bg-black/64 p-7 backdrop-blur-xl sm:p-9\"><div className=\"text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\">Ready to grade?</div><h2 className=\"mt-3 text-3xl font-black\">Put your cards on the PCG bench.</h2><div className=\"mt-6 flex flex-wrap gap-3\"><Link to={pcgPath('submit')} className=\"inline-flex min-h-12 items-center gap-2 rounded-xl bg-[#e4c77f] px-5 py-3 text-sm font-black text-black\">Submit cards <ArrowRight className=\"h-4 w-4\"/></Link><Link to={pcgPath('contact')} className=\"inline-flex min-h-12 items-center rounded-xl border border-white/14 bg-white/[.04] px-5 py-3 text-sm font-black\">Visit / Contact PCG</Link></div></div>\n      </div>\n    </section>\n  </Frame>\n}\n\nfunction Grading({profile}:{profile:Profile|null}){return <Frame page=\"grading\" profile={profile}><section className=\"mx-auto max-w-[1380px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\"><div className=\"max-w-3xl\"><div className=\"text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\">PCG grading standards</div><h1 className=\"mt-3 font-serif text-5xl font-black tracking-[-.05em] sm:text-6xl\">The official PCG grading scale.</h1><p className=\"mt-5 text-base leading-7 text-white/58\">PCG evaluates card quality using the published designations below. {PCG_AUTOGRAPH_NOTE}</p><div className=\"mt-4 text-xs font-bold uppercase tracking-[.12em] text-white/38\">Supported card sizes · {PCG_CARD_THICKNESSES.join(' · ')}</div></div><div className=\"mt-12 grid gap-3 md:grid-cols-2\">{PCG_GRADING_SCALE.map(item=><details key={item.id} className=\"group rounded-2xl border border-[#d8bb78]/18 bg-black/62 p-5 open:border-[#d8bb78]/36\"><summary className=\"cursor-pointer list-none text-lg font-black text-white marker:hidden\">{item.designation}</summary><p className=\"mt-3 text-sm leading-6 text-white/52\">{item.criteria||'PCG’s published page does not currently provide usable criteria text for this designation.'}</p></details>)}</div></section></Frame>}\n\nfunction Verify({profile}:{profile:Profile|null}){\n  const initial=typeof window!=='undefined'?new URLSearchParams(window.location.search).get('cert')||'':'';\n  const[cert,setCert]=useState(initial);const[card,setCard]=useState<Card|null>(null);const[busy,setBusy]=useState(false);const[error,setError]=useState('');\n  async function lookup(value:string){if(!value.trim()||busy)return;setBusy(true);setError('');setCard(null);try{const{data,error:fnError}=await supabase.functions.invoke('pcg-customer-progress',{body:{action:'cert_lookup',tenant_slug:'pcg',cert_number:value.trim()}});if(fnError||!data?.ok)throw new Error(data?.error||fnError?.message||'Certification lookup failed.');setCard(data.data.card)}catch(e){setError(e instanceof Error?e.message:String(e))}finally{setBusy(false)}}\n  useEffect(()=>{if(initial)void lookup(initial)},[]);\n  async function submit(event:FormEvent){event.preventDefault();await lookup(cert)}\n  const image=card?cardImage(card):null;\n  return <Frame page=\"verify\" profile={profile}><section className=\"mx-auto max-w-5xl px-5 py-16 sm:px-6 lg:px-10 lg:py-20\"><div className=\"max-w-3xl\"><div className=\"text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\">PCG certification</div><h1 className=\"mt-3 font-serif text-5xl font-black tracking-[-.05em] sm:text-6xl\">Search card by PCG #.</h1><p className=\"mt-4 text-base text-white/54\">The lookup checks both the live PCG system and the imported legacy archive from pcgslab.com.</p></div><form onSubmit={submit} className=\"mt-8 grid gap-3 sm:grid-cols-[1fr_auto]\"><input value={cert} onChange={event=>setCert(event.target.value)} placeholder=\"PCG certification number\" className=\"h-14 rounded-xl border border-[#d8bb78]/22 bg-black/60 px-4 text-lg font-bold outline-none focus:border-[#d8bb78]/60\"/><button disabled={busy||!cert.trim()} className=\"inline-flex h-14 items-center justify-center gap-2 rounded-xl bg-[#e4c77f] px-6 font-black text-black disabled:opacity-40\"><Search className=\"h-4 w-4\"/>{busy?'Checking…':'Verify'}</button></form>{error?<div className=\"mt-5 rounded-xl border border-amber-300/20 bg-amber-300/[.06] p-4 text-sm text-amber-100\">{error}</div>:null}{card?<div className=\"mt-8 grid gap-6 rounded-[26px] border border-[#d8bb78]/20 bg-black/64 p-5 sm:p-7 md:grid-cols-[minmax(220px,.7fr)_1.3fr]\">{image?<img src={image} alt=\"Verified PCG graded card\" className=\"max-h-[620px] w-full rounded-xl object-contain\"/>:<div className=\"grid min-h-72 place-items-center rounded-xl border border-white/10 text-sm text-white/30\">No public card image</div>}<div><div className=\"text-[10px] font-black uppercase tracking-[.18em] text-emerald-300\">Verified PCG record</div><div className=\"mt-3 text-4xl font-black text-[#e4c77f] sm:text-5xl\">{formatPCGGrade(card.grade,card.grade_label)}</div><h2 className=\"mt-6 text-2xl font-black\">{cardTitle(card)}</h2><div className=\"mt-4 space-y-2 text-sm text-white/52\"><div><span className=\"text-white/28\">Cert</span> · {card.cert_number}</div>{card.variation?<div><span className=\"text-white/28\">Variation</span> · {card.variation}</div>:null}{card.population_count!=null?<div><span className=\"text-white/28\">Population</span> · {card.population_count}</div>:null}</div></div></div>:null}</section></Frame>\n}\n\nfunction PopulationReport({profile}:{profile:Profile|null}){\n  const[query,setQuery]=useState('');const[rows,setRows]=useState<PopulationRow[]>([]);const[busy,setBusy]=useState(false);const[error,setError]=useState('');const[searched,setSearched]=useState(false);\n  async function load(term:string){const trimmed=term.trim();if(!trimmed)return;setBusy(true);setError('');setSearched(true);try{const{data,error:fnError}=await supabase.functions.invoke('pcg-customer-progress',{body:{action:'population_report',tenant_slug:'pcg',query:trimmed}});if(fnError||!data?.ok)throw new Error(data?.error||fnError?.message||'Population report failed.');setRows(Array.isArray(data?.data?.rows)?data.data.rows:[])}catch(e){setError(e instanceof Error?e.message:String(e));setRows([])}finally{setBusy(false)}}\n  async function submit(event:FormEvent){event.preventDefault();await load(query)}\n  return <Frame page=\"pop\" profile={profile}><section className=\"mx-auto max-w-[1200px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\"><div className=\"max-w-3xl\"><div className=\"text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\">PCG Population Report</div><h1 className=\"mt-3 font-serif text-5xl font-black tracking-[-.05em] sm:text-6xl\">Know how many made the grade.</h1><p className=\"mt-4 text-base leading-7 text-white/54\">Search the real PCG archive by player or character, set, year, card number, or variation.</p></div><form onSubmit={submit} className=\"mt-8 grid gap-3 sm:grid-cols-[1fr_auto]\"><input value={query} onChange={event=>setQuery(event.target.value)} placeholder=\"Search Jeter, Pokémon, Topps, card #…\" className=\"h-14 rounded-xl border border-[#d8bb78]/22 bg-black/60 px-4 text-base font-bold outline-none focus:border-[#d8bb78]/60\"/><button disabled={busy||!query.trim()} className=\"inline-flex h-14 items-center justify-center gap-2 rounded-xl bg-[#e4c77f] px-6 font-black text-black disabled:opacity-50\"><Search className=\"h-4 w-4\"/>{busy?'Searching…':'Search Pop Report'}</button></form>{error?<div className=\"mt-5 rounded-xl border border-amber-300/20 bg-amber-300/[.06] p-4 text-sm text-amber-100\">{error}</div>:null}<div className=\"mt-8 overflow-hidden rounded-[24px] border border-[#d8bb78]/20 bg-black/60\">{rows.length?rows.map((row,index)=><article key={populationTitle(row)+'-'+String(row.grade)+'-'+String(index)} className=\"grid gap-3 border-b border-white/[.07] p-5 last:border-b-0 md:grid-cols-[1fr_auto] md:items-center\"><div><div className=\"text-sm font-black sm:text-base\">{populationTitle(row)}</div><div className=\"mt-1 text-xs text-white/38\">PCG population record</div></div><div className=\"flex items-center gap-3 md:justify-end\"><span className=\"rounded-full border border-[#d8bb78]/20 bg-[#d8bb78]/[.08] px-3 py-1.5 text-xs font-black text-[#e4c77f]\">{formatPCGGrade(row.grade,row.grade_label)}</span><span className=\"min-w-[88px] rounded-xl bg-[#e4c77f] px-3 py-2 text-center text-sm font-black text-black\">POP {row.population}</span></div></article>):<div className=\"p-7 text-sm text-white/48\">{busy?'Searching the PCG archive…':searched?'No PCG population records matched this search.':'Enter a card, player, set, year, or variation to search the population archive.'}</div>}</div></section></Frame>\n}\n\nfunction Submit({profile}:{profile:Profile|null}){const booking=profile?.booking_url,payment=profile?.payment_url;return <Frame page=\"submit\" profile={profile}><section className=\"mx-auto max-w-[1380px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\"><div className=\"grid gap-12 lg:grid-cols-[.9fr_1.1fr]\"><div><div className=\"text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\">Start a submission</div><h1 className=\"mt-3 font-serif text-5xl font-black tracking-[-.05em] sm:text-6xl\">Get your cards onto the PCG bench.</h1><p className=\"mt-5 max-w-xl text-base leading-7 text-white/54\">Choose the current service, prepare the cards securely, and use PCG’s submission channel for drop-off or mail-in grading.</p><div className=\"mt-8 flex flex-wrap gap-3\">{booking?<a href={booking} className=\"inline-flex min-h-12 items-center gap-2 rounded-xl bg-[#e4c77f] px-6 py-3.5 text-sm font-black text-black\">Start submission <ExternalLink className=\"h-4 w-4\"/></a>:<Link to={pcgPath('contact')} className=\"inline-flex min-h-12 items-center rounded-xl bg-[#e4c77f] px-6 py-3.5 text-sm font-black text-black\">Contact PCG to submit</Link>}{payment?<a href={payment} target=\"_blank\" rel=\"noreferrer\" className=\"inline-flex min-h-12 items-center gap-2 rounded-xl border border-white/15 bg-black/38 px-6 py-3.5 text-sm font-black\">Secure checkout <ExternalLink className=\"h-4 w-4\"/></a>:null}</div></div><div className=\"grid gap-4 sm:grid-cols-2\">{[[PackageCheck,'1. Choose service','Select the grading service that fits the submission.'],[ShieldCheck,'2. Protect each card','Package each card securely for transport.'],[Truck,'3. Mail or visit','Ship to or visit the Sebastian PCG storefront.'],[CreditCard,'4. Complete the submission','Use the active PCG submission and payment workflow.']].map(([Icon,title,copy]:any)=><article key={title} className=\"rounded-[22px] border border-[#d8bb78]/20 bg-black/60 p-6\"><Icon className=\"h-6 w-6 text-[#e4c77f]\"/><h2 className=\"mt-5 text-lg font-black\">{title}</h2><p className=\"mt-2 text-sm leading-6 text-white/48\">{copy}</p></article>)}</div></div><div className=\"mt-12 rounded-2xl border border-[#d8bb78]/25 bg-[#d8bb78]/[.07] p-6\"><div className=\"text-[10px] font-black uppercase tracking-[.18em] text-[#e4c77f]\">Mail / drop-off</div><div className=\"mt-3 text-xl font-black\">Prestigious Card Grading</div><div className=\"mt-2 text-sm text-white/55\">{profile?.address||FALLBACK_ADDRESS}</div></div></section></Frame>}\n\nfunction Shop({profile}:{profile:Profile|null}){return <Frame page=\"shop\" profile={profile}><section className=\"mx-auto max-w-[1380px] px-5 py-20 sm:px-6 lg:px-10\"><div className=\"flex items-center gap-2 text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\"><Store className=\"h-4 w-4\"/>Sebastian storefront</div><h1 className=\"mt-4 max-w-3xl font-serif text-5xl font-black tracking-[-.05em] sm:text-7xl\">Grading and collecting under one roof.</h1><p className=\"mt-5 max-w-xl text-base leading-7 text-white/55\">Visit the PCG storefront for grading services, sports and Pokémon products, and graded cards.</p><Link to={pcgPath('contact')} className=\"mt-8 inline-flex min-h-12 items-center rounded-xl bg-white px-5 py-3 text-sm font-black text-black\">Visit PCG</Link></section></Frame>}\n\nfunction Contact({profile}:{profile:Profile|null}){const phone=profile?.phone||'833-472-4752',email=profile?.email||'tony@pcgslab.com';return <Frame page=\"contact\" profile={profile}><section className=\"mx-auto max-w-[1380px] px-5 py-16 sm:px-6 lg:px-10 lg:py-20\"><div className=\"max-w-3xl\"><div className=\"text-[10px] font-black uppercase tracking-[.22em] text-[#e4c77f]\">Contact PCG</div><h1 className=\"mt-3 font-serif text-5xl font-black tracking-[-.05em] sm:text-6xl\">Questions, drop-offs, mail-ins — PCG is here.</h1></div><div className=\"mt-10 grid gap-4 md:grid-cols-3\">{[[MapPin,'Location',profile?.address||FALLBACK_ADDRESS],[Phone,'Phone',phone],[ShieldCheck,'Customer portal','Track a grading order securely through WhatsMyProgress.']].map(([Icon,title,copy]:any)=><article key={title} className=\"rounded-[22px] border border-[#d8bb78]/20 bg-black/60 p-6\"><Icon className=\"h-6 w-6 text-[#e4c77f]\"/><h2 className=\"mt-5 text-lg font-black\">{title}</h2><p className=\"mt-2 text-sm leading-6 text-white/48\">{copy}</p></article>)}</div><div className=\"mt-8 flex flex-wrap gap-3\"><a href={'tel:'+phone.replace(/[^+\\d]/g,'')} className=\"inline-flex min-h-12 items-center rounded-xl bg-[#e4c77f] px-6 py-3.5 text-sm font-black text-black\">Call PCG</a><a href={'mailto:'+email} className=\"inline-flex min-h-12 items-center rounded-xl border border-white/15 bg-black/38 px-6 py-3.5 text-sm font-black\">Email PCG</a>{profile?.progress_url?<a href={profile.progress_url} className=\"inline-flex min-h-12 items-center rounded-xl border border-white/15 bg-black/38 px-6 py-3.5 text-sm font-black\">Check progress</a>:null}</div></section></Frame>}\n\nexport default function PCGPublicSite({page='home'}:{page?:PCGPublicPage}){\n  const[profile,setProfile]=useState<Profile|null>(null);const[featured,setFeatured]=useState<Card[]>([]);const[loading,setLoading]=useState(true);\n  useEffect(()=>{let cancelled=false;void Promise.all([\n    supabase.functions.invoke('pcg-customer-progress',{body:{action:'public_profile',tenant_slug:'pcg'}}),\n    supabase.functions.invoke('pcg-customer-progress',{body:{action:'featured_cards',tenant_slug:'pcg'}}),\n  ]).then(([profileResponse,featuredResponse])=>{if(cancelled)return;if(profileResponse.data?.ok)setProfile(profileResponse.data.data||null);if(featuredResponse.data?.ok&&Array.isArray(featuredResponse.data?.data?.cards))setFeatured(featuredResponse.data.data.cards)}).finally(()=>{if(!cancelled)setLoading(false)});return()=>{cancelled=true}},[]);\n  const fallback=useMemo<Profile|null>(()=>profile,[profile]);\n  if(loading&&!fallback)return <main className=\"grid min-h-screen place-items-center bg-[#050505] text-white\"><div className=\"text-center\"><img src={FALLBACK_LOGO} alt=\"PCG\" className=\"mx-auto h-24 w-auto max-w-[280px] animate-pulse object-contain\"/><div className=\"mt-4 text-xs font-black uppercase tracking-[.2em] text-[#e4c77f]\">Loading PCG</div></div></main>;\n  if(page==='grading')return <Grading profile={fallback}/>;\n  if(page==='verify')return <Verify profile={fallback}/>;\n  if(page==='pop')return <PopulationReport profile={fallback}/>;\n  if(page==='submit')return <Submit profile={fallback}/>;\n  if(page==='shop')return <Shop profile={fallback}/>;\n  if(page==='contact')return <Contact profile={fallback}/>;\n  return <Home profile={fallback} featured={featured}/>;\n}\n"},{"path":"supabase/functions/pcg-customer-progress/index.ts","content":"import {serve} from \"https://deno.land/std@0.168.0/http/server.ts\";\nimport {createClient} from \"https://esm.sh/@supabase/supabase-js@2\";\n\nexport const FUNCTION_VERSION='1.5.0-pcg-public-legacy-archive';\nconst cors={'Access-Control-Allow-Origin':'*','Access-Control-Allow-Headers':'authorization, x-client-info, apikey, content-type','Access-Control-Allow-Methods':'GET, POST, OPTIONS'};\nconst json=(body:unknown,status=200)=>new Response(JSON.stringify(body),{status,headers:{...cors,'Content-Type':'application/json','Cache-Control':'no-store'}});\nconst normalize=(v:unknown)=>String(v||'').trim();\nconst safeGrade=(v:unknown)=>{const n=Number(v);return Number.isFinite(n)?n:null};\nconst modeFor=(status:string)=>['received','intake_imaging'].includes(status)?'received':['authentication','grading','encapsulation','qa'].includes(status)?'grading':status==='ready'?'completed':['shipped','picked_up','delivered','closed'].includes(status)?'mailed':'received';\nconst safeCard=(card:any)=>({id:card.id,cert_number:card.cert_number||null,year:card.year||null,brand_set:card.brand_set||null,player_character:card.player_character||null,card_number:card.card_number||null,variation:card.variation||null,card_description:card.card_description||card.variation||null,autograph_present:card.autograph_present??null,grade:safeGrade(card.grade),grade_label:card.grade_label||null,front_image_url:card.front_image_url||null,back_image_url:card.back_image_url||null,slab_image_url:card.slab_image_url||null,population_count:card.population_count??null});\nconst legacyCard=(row:any)=>safeCard({id:row.id,...(row.normalized_payload||{})});\nconst mediaAssetUrl=(id:string|null|undefined,variant='original')=>id?((Deno.env.get('SUPABASE_URL')||'')+'/functions/v1/tenant-media-library?mode=asset&id='+encodeURIComponent(id)+'&variant='+encodeURIComponent(variant)):null;\n\nasync function resolvePcg(supabase:any,tenantSlug:string){\n  if(!tenantSlug)return null;\n  const{data:tenant,error}=await supabase.from('tenants').select('id,company_slug,company_dba_name,company_legal_name,name,company_logo_url,company_phone,company_email,company_address,company_mailing_address,status,is_active,settings').eq('company_slug',tenantSlug).maybeSingle();\n  if(error)throw error;\n  const settings=(tenant?.settings||{}) as Record<string,any>;\n  const identity=[tenant?.company_slug,tenant?.company_dba_name,tenant?.company_legal_name,tenant?.name].filter(Boolean).join(' ').toLowerCase();\n  const pcg=Boolean(tenant?.id)&&(tenant?.is_active!==false)&&String(tenant?.status||'active').toLowerCase()!=='deleted'&&(tenantSlug==='pcg'||String(settings.workspace_type||'').toLowerCase()==='card_grading'||String(settings.routing_family||'').toUpperCase()==='CARD_GRADING_OPS'||identity.includes('prestigious card grading'));\n  return pcg?{tenant,settings}:null;\n}\n\nserve(async(req)=>{\n  if(req.method==='OPTIONS')return new Response(null,{headers:cors});\n  const url=new URL(req.url);\n  if(req.method==='GET'&&url.pathname.endsWith('/health'))return json({ok:true,service:'pcg-customer-progress',version:FUNCTION_VERSION,public_actions:['public_profile','featured_cards','population_report','cert_lookup','legacy_path_lookup'],progress_contract:'order+email'});\n  if(req.method!=='POST')return json({ok:false,error:'Method not allowed'},405);\n  try{\n    const body=await req.json().catch(()=>({})),action=normalize(body.action).toLowerCase();\n    const tenantSlug=normalize(body.tenant_slug||'pcg').toLowerCase();\n    const supabase=createClient(Deno.env.get('SUPABASE_URL')||'',Deno.env.get('SUPABASE_SERVICE_ROLE_KEY')||'');\n    const resolved=await resolvePcg(supabase,tenantSlug);\n    if(!resolved)return json({ok:false,error:action==='cert_lookup'?'We could not verify that PCG certification.':'We could not match that PCG record.'},200);\n    const{tenant,settings}=resolved;\n\n    if(action==='public_profile'){\n      const presence=(settings.public_presence||{}) as Record<string,any>,media=(settings.media_branding||{}) as Record<string,any>;\n      const paymentActive=String(settings.payment_processor_status||'').toLowerCase()==='external_payment_link_active';\n      const{data:videoAsset}=await supabase.from('tenant_media_assets').select('id').eq('tenant_id',tenant.id).eq('collection_key','wmp-loading-video').eq('published',true).is('deleted_at',null).order('created_at',{ascending:false}).limit(1).maybeSingle();\n      const{count:archiveCount}=await supabase.from('pcg_import_rows').select('id',{count:'exact',head:true}).eq('tenant_id',tenant.id).eq('validation_status','valid');\n      const resolvedLogo=media.resolved_logo_asset_id?mediaAssetUrl(media.resolved_logo_asset_id,'original'):tenant.company_logo_url||null;\n      const resolvedBackground=media.resolved_background_asset_id?mediaAssetUrl(media.resolved_background_asset_id,'display'):media.background_url||settings.background_image_url||settings.backgroundImageUrl||null;\n      const resolvedHero=media.hero_background_asset_id?mediaAssetUrl(media.hero_background_asset_id,'display'):media.hero_background_url||null;\n      return json({ok:true,data:{\n        company_name:tenant.company_legal_name||tenant.company_dba_name||tenant.name||'Prestigious Card Grading LLC',\n        short_name:tenant.company_dba_name||'PCG',logo_url:resolvedLogo,background_url:resolvedBackground,\n        hero_image_url:resolvedHero,hero_video_url:videoAsset?.id?mediaAssetUrl(videoAsset.id,'original'):null,\n        archive_card_count:archiveCount||0,phone:tenant.company_phone||null,email:tenant.company_email||null,\n        address:tenant.company_address||tenant.company_mailing_address||null,\n        grading_services:Array.isArray(settings.grading_services)?settings.grading_services:[],\n        no_upcharges:settings.no_upcharges===true,booking_url:presence?.bookmedirectly?.url||settings.canonical_booking_route||null,\n        progress_url:presence?.whatsmyprogress?.url||settings.canonical_public_route||null,\n        payment_url:paymentActive?settings.stripe_payment_link||null:null,public_cert_lookup:settings.public_cert_lookup!==false\n      }});\n    }\n\n    if(action==='featured_cards'){\n      const{data:currentCards,error:currentError}=await supabase.from('card_grading_cards').select('id,cert_number,year,brand_set,player_character,card_number,variation,card_description,autograph_present,grade,grade_label,front_image_url,back_image_url,slab_image_url,population_count').eq('tenant_id',tenant.id).limit(40);\n      if(currentError)throw currentError;\n      const{data:legacyRows,error:legacyError}=await supabase.from('pcg_import_rows').select('id,row_number,normalized_payload').eq('tenant_id',tenant.id).eq('validation_status','valid').order('row_number',{ascending:true}).limit(200);\n      if(legacyError)throw legacyError;\n      const seen=new Set<string>(),featured:any[]=[];\n      for(const card of (currentCards||[]).map(safeCard)){\n        const image=card.slab_image_url||card.front_image_url||card.back_image_url;\n        if(!image||String(image).startsWith('data:'))continue;\n        const key=String(card.cert_number||card.id);if(seen.has(key))continue;seen.add(key);featured.push(card);if(featured.length>=12)break;\n      }\n      for(const row of legacyRows||[]){\n        if(featured.length>=12)break;\n        const card=legacyCard(row),image=card.front_image_url||card.back_image_url;\n        if(!image||String(image).startsWith('data:'))continue;\n        const key=String(card.cert_number||row.id);if(seen.has(key))continue;seen.add(key);featured.push(card);\n      }\n      return json({ok:true,data:{cards:featured}});\n    }\n\n    if(action==='population_report'){\n      const query=normalize(body.query).toLowerCase().replace(/[,%()]/g,' ').replace(/\\s+/g,' ').trim().slice(0,100);\n      if(!query)return json({ok:true,data:{rows:[],total_matching_cards:0}});\n      const pattern='%'+query+'%';\n      const currentFilter='player_character.ilike.'+pattern+',brand_set.ilike.'+pattern+',year.ilike.'+pattern+',card_number.ilike.'+pattern+',variation.ilike.'+pattern;\n      const legacyFilter='normalized_payload->>player_character.ilike.'+pattern+',normalized_payload->>brand_set.ilike.'+pattern+',normalized_payload->>year.ilike.'+pattern+',normalized_payload->>card_number.ilike.'+pattern+',normalized_payload->>variation.ilike.'+pattern;\n      const{data:currentCards,error:currentError}=await supabase.from('card_grading_cards').select('year,brand_set,player_character,card_number,variation,grade,grade_label').eq('tenant_id',tenant.id).or(currentFilter).limit(1200);\n      if(currentError)throw currentError;\n      const{data:legacyRows,error:legacyError}=await supabase.from('pcg_import_rows').select('normalized_payload').eq('tenant_id',tenant.id).eq('validation_status','valid').or(legacyFilter).limit(2000);\n      if(legacyError)throw legacyError;\n      const source=[...(currentCards||[]),...(legacyRows||[]).map((row:any)=>row.normalized_payload||{})];\n      const grouped=new Map<string,any>();\n      for(const card of source){\n        const grade=safeGrade(card.grade);if(grade===null)continue;\n        const key=[card.year||'',card.brand_set||'',card.player_character||'',card.card_number||'',card.variation||'',grade,card.grade_label||''].join('|');\n        const current=grouped.get(key);\n        if(current){current.population+=1;continue}\n        grouped.set(key,{year:card.year||null,brand_set:card.brand_set||null,player_character:card.player_character||null,card_number:card.card_number||null,variation:card.variation||null,grade,grade_label:card.grade_label||null,population:1});\n      }\n      const rows=[...grouped.values()].sort((a:any,b:any)=>b.population-a.population||String(a.player_character||a.brand_set||'').localeCompare(String(b.player_character||b.brand_set||''))).slice(0,150);\n      return json({ok:true,data:{rows,total_matching_cards:source.length}});\n    }\n\n    if(action==='cert_lookup'){\n      const cert=normalize(body.cert_number).toUpperCase();if(!cert||cert.length>80)return json({ok:false,error:'Enter a PCG certification number.'},200);\n      const{data:card,error}=await supabase.from('card_grading_cards').select('id,cert_number,year,brand_set,player_character,card_number,variation,card_description,autograph_present,grade,grade_label,front_image_url,back_image_url,slab_image_url,population_count').eq('tenant_id',tenant.id).ilike('cert_number',cert).maybeSingle();\n      if(error)throw error;\n      if(card?.id)return json({ok:true,data:{card:safeCard(card)}});\n      const{data:legacy,error:legacyError}=await supabase.from('pcg_import_rows').select('id,normalized_payload').eq('tenant_id',tenant.id).eq('validation_status','valid').contains('normalized_payload',{cert_number:cert}).limit(1).maybeSingle();\n      if(legacyError)throw legacyError;\n      if(!legacy?.id)return json({ok:false,error:'No PCG card matched that certification number.'},200);\n      return json({ok:true,data:{card:legacyCard(legacy)}});\n    }\n\n    if(action==='legacy_path_lookup'){\n      const raw=normalize(body.path||body.source_url);if(!raw||raw.length>800)return json({ok:false,error:'Legacy card link not found.'},200);\n      let path=raw;try{const parsed=new URL(raw,'https://www.pcgslab.com');path=parsed.pathname}catch{}\n      if(!path.startsWith('/'))path='/'+path;\n      const candidates=['https://www.pcgslab.com'+path,'https://pcgslab.com'+path];\n      const{data:row,error}=await supabase.from('pcg_import_rows').select('id,canonical_card_id,normalized_payload').eq('tenant_id',tenant.id).in('source_url',candidates).limit(1).maybeSingle();\n      if(error)throw error;if(!row?.id)return json({ok:false,error:'Legacy card link not found.'},200);\n      if(row.canonical_card_id){\n        const{data:card,error:cardError}=await supabase.from('card_grading_cards').select('id,cert_number,year,brand_set,player_character,card_number,variation,card_description,autograph_present,grade,grade_label,front_image_url,back_image_url,slab_image_url,population_count').eq('tenant_id',tenant.id).eq('id',row.canonical_card_id).maybeSingle();\n        if(cardError)throw cardError;if(card?.id)return json({ok:true,data:{card:safeCard(card)}});\n      }\n      return json({ok:true,data:{card:legacyCard(row)}});\n    }\n\n    const submissionNumber=normalize(body.submission_number).toUpperCase(),email=normalize(body.email).toLowerCase();\n    if(!submissionNumber||!email||!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email))return json({ok:false,error:'Enter your order number and the email used for the order.'},200);\n    const{submission}= {submission:(await supabase.from('card_grading_submissions').select('id,submission_number,customer_name,customer_email,service_tier,status,received_at,due_at,tracking_out,payment_status,delivery_method,return_shipping_method,return_shipping_cost,return_insurance_amount').eq('tenant_id',tenant.id).eq('submission_number',submissionNumber).ilike('customer_email',email).maybeSingle()).data};\n    if(!submission?.id)return json({ok:false,error:'We could not match that order and email.'},200);\n    const{data:cards,error:cardsError}=await supabase.from('card_grading_cards').select('id,sequence_number,cert_number,year,brand_set,player_character,card_number,card_description,autograph_present,variation,grade,grade_label,status,front_image_url,back_image_url,slab_image_url').eq('tenant_id',tenant.id).eq('submission_id',submission.id).order('sequence_number',{ascending:true});\n    if(cardsError)throw cardsError;\n    return json({ok:true,data:{tenant:{company_name:tenant.company_dba_name||tenant.company_legal_name||tenant.name||'Prestigious Card Grading',company_slug:tenant.company_slug,logo_url:tenant.company_logo_url||null},order:{submission_number:submission.submission_number,customer_name:submission.customer_name||'Collector',service_tier:submission.service_tier,status:submission.status,mode:modeFor(String(submission.status||'')),received_at:submission.received_at,due_at:submission.due_at,tracking_out:submission.tracking_out||null,payment_status:submission.payment_status||null,delivery_method:submission.delivery_method||null,return_shipping_method:submission.return_shipping_method||null,return_shipping_cost:submission.return_shipping_cost??null,return_insurance_amount:submission.return_insurance_amount??null},cards:(cards||[]).map((card:any)=>({id:card.id,sequence_number:card.sequence_number,cert_number:card.cert_number||null,year:card.year||null,brand_set:card.brand_set||null,player_character:card.player_character||null,card_number:card.card_number||null,card_description:card.card_description||card.variation||null,autograph_present:card.autograph_present??null,grade:card.grade??null,grade_label:card.grade_label||null,status:card.status,front_image_url:card.front_image_url||null,back_image_url:card.back_image_url||null,slab_image_url:card.slab_image_url||null}))}});\n  }catch(error){console.error('[pcg-customer-progress]',error);return json({ok:false,error:'PCG is temporarily unavailable. Please try again.'},500)}\n});\n"}],"branch":"ai/objective-first-repair-00f828fd76b4","writes":[],"patches":[],"version":1,"approved":true,"missionId":"00f828fd-76b4-4546-9cc0-dfda03e7409c","objective":"Continue the same PCG public-site repair with exact complete file writes. Gate, squash merge, release frontend plus pcg-customer-progress, then prove the live apex domain on desktop and mobile.","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/pages/card-grading/PCGPublicSite.tsx","supabase/functions/pcg-customer-progress/index.ts"],"implementation":{"files":[],"writes":[]},"requestContract":null,"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":"00f828fd-76b4-4546-9cc0-dfda03e7409c","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/pages/card-grading/PCGPublicSite.tsx","supabase/functions/pcg-customer-progress/index.ts"],"requestContract":null,"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"ae6ece525d78bba0d754ec16f20f47877ec3209cc6ca1c60b180876a9fc0be9b","replayCount":0,"serializedBytes":60292},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T02:07:50.940849+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:00f828fd-76b4-4546-9cc0-dfda03e7409c:repository-mutation-intent:ae6ece525d78bba0d754ec16f20f47877ec3209cc6ca1c60b180876a9fc0be9b:0","mission_step_id":"bae14c82-3506-493b-bed4-5db3a82d2059","command_center_event_id":"00f828fd-76b4-4546-9cc0-dfda03e7409c"},{"id":"0b34006b-f310-4f0d-85ad-cb66382e25aa","source":"forgejo-runtime","status":"pending","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"pending","supabase-migrations/live":"pending","supabase-edge-production/live":"pending"},"mainSha":"8c217e35e94b9768e497cc5533a892bfee35f032","missing":[],"pending":["forgejo-release/workflow","supabase-edge-production/live","supabase-migrations/live"],"required":["forgejo-main/source","forgejo-release/workflow","supabase-edge-production/live","supabase-migrations/live"],"sourceSha":"8c217e35e94b9768e497cc5533a892bfee35f032","releaseState":"pending","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":true,"edgeFunctionSlugs":["contacts"]},"releaseTargetStates":{"migrations":"pending","supabaseEdge":"pending"},"requestContractHash":"c459b3076467aa5b0f013b435d2fe8a4df1c308b1490bad1f7c8f3f05afaae5c","forgejoWorkflowProof":{"runId":9588,"source":"signed_push_receipt","status":"running","results":{},"conclusion":"running","targetStates":{"migrations":"pending","supabaseEdge":"pending"},"targetJobCount":7,"observedTargetStates":{"migrations":"pending","supabaseEdge":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:38:20.657496+00:00","proof_gate":"canonical_release_pending","source_sha":"8c217e35e94b9768e497cc5533a892bfee35f032","external_id":"forgejo-main-8c217e35e94b","receipt_type":"canonical_release_status","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:forgejo-release-status:8c217e35e94b9768e497cc5533a892bfee35f032:pending:forgejo-main/source=success|forgejo-release/workflow=pending|supabase-edge-production/live=pending|supabase-migrations/live=pending","mission_step_id":"7e671e88-f1e6-429a-955f-4e7cb63cee4e","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"79c4acbf-c2bb-41f2-98dc-040b5369ba8b","source":"cc-execution","status":"in_progress","payload":{"ok":true,"jobId":null,"phase":"release","branch":"ai/objective-first-repair-f81d8ceb30a7","reason":null,"status":"in_progress","metrics":{"receiptBytes":0,"releaseCount":1,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":null,"prNumber":3046,"terminal":false,"missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d","operation":"automatic_mission_resume","proofGate":"canonical_release_reconciliation_pending","sourceSha":"8c217e35e94b9768e497cc5533a892bfee35f032","timingsMs":{"prReadinessMs":770,"approvedPlanMs":0,"shipAndProveMs":5277,"repositoryMutationMs":0,"repositoryProviderMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create replacement work.","receiptRef":{"mode":"full","missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},"performance":null,"deploymentId":"forgejo-main-8c217e35e94b","releaseState":"pending","workflowRunId":9588,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":true,"edgeFunctionSlugs":["contacts"]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":793,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:38:32.763892+00:00","proof_gate":"canonical_release_reconciliation_pending","source_sha":null,"external_id":"3046","receipt_type":"automatic_mission_resume","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:automatic-mission-resume:3046:canonical_release_reconciliation_pending","mission_step_id":"e1f9b026-7602-45bd-81c3-1cea7a7185d3","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"ca50732c-046c-4f87-8f2c-021efe2ec934","source":"cc-execution","status":"in_progress","payload":{"ok":true,"jobId":null,"phase":"release","branch":"ai/objective-first-repair-f81d8ceb30a7","reason":null,"status":"in_progress","metrics":{"receiptBytes":0,"releaseCount":1,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3046,"terminal":false,"missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d","operation":"execute_mission","proofGate":"canonical_release_reconciliation_pending","sourceSha":"8c217e35e94b9768e497cc5533a892bfee35f032","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":5772,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":386,"approvedPlanMs":0,"missionSetupMs":299,"providerAuthMs":0,"shipAndProveMs":4757,"ledgerPrepareMs":299,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":299,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":299,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create replacement work.","receiptRef":{"mode":"full","missionId":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},"performance":null,"deploymentId":"forgejo-main-8c217e35e94b","releaseState":"pending","workflowRunId":9588,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":true,"edgeFunctionSlugs":["contacts"]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime","runtime","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1476,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:40:20.69279+00:00","proof_gate":"canonical_release_reconciliation_pending","source_sha":"8c217e35e94b9768e497cc5533a892bfee35f032","external_id":"forgejo-main-8c217e35e94b","receipt_type":"execute_mission","idempotency_key":"mission:f81d8ceb-30a7-4f93-ae60-94991d12bc1d:execute_mission:canonical_release_reconciliation_pending:current-generation","mission_step_id":"7e671e88-f1e6-429a-955f-4e7cb63cee4e","command_center_event_id":"f81d8ceb-30a7-4f93-ae60-94991d12bc1d"},{"id":"5b06690b-8b3b-4c33-a579-ed8ce0f068a7","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"objective_received","branch":null,"reason":"branch_must_start_with_ai","status":"blocked","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"4fc18dbb-9532-4542-a530-e4f9be24130a","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":0,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":0,"missionSetupMs":435,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":435,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":435,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":435,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"4fc18dbb-9532-4542-a530-e4f9be24130a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1293,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:41:25.758599+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"f0f0551a-dff1-4f9b-8c9c-bbf445d4ac63","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"fd3ce1c3-0a22-45aa-9ddb-0b27a0746244","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Revoke direct API EXECUTE from public-schema SECURITY DEFINER trigger functions while preserving all trigger behavior and all intentional public RPCs.","wordingChanged":false,"canonicalIntent":"Revoke direct API EXECUTE from public-schema SECURITY DEFINER trigger functions while preserving all trigger behavior and all intentional public RPCs.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"trigger-rpc-closed","statement":"Anonymous and authenticated API roles cannot directly execute SECURITY DEFINER trigger functions.","proofConditionIds":["repo-proof","advisor-proof"]},{"id":"trigger-behavior-preserved","statement":"Existing database triggers remain installed and their backing functions remain present after grant revocation.","proofConditionIds":["runtime-proof"]}],"objective":"Revoke direct API EXECUTE from public-schema SECURITY DEFINER trigger functions while preserving all trigger behavior and all intentional public RPCs.","constraints":[{"id":"scope","statement":"Do not change non-trigger RPC grants, public booking/intake RPCs, application code, or trigger definitions.","proofConditionIds":["repo-proof","runtime-proof"]},{"id":"release","statement":"Use canonical migrations-only release and verify production before completion.","proofConditionIds":["advisor-proof","runtime-proof"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo-proof","advisor-proof","runtime-proof"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo-proof","advisor-proof","runtime-proof"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"repo-proof","kind":"repository","claim":"Merged source contains only the bounded trigger-function EXECUTE hardening migration.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"advisor-proof","kind":"runtime","claim":"Supabase anon SECURITY DEFINER executable advisor findings drop by the trigger-function class without adding new security warnings.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"runtime-proof","kind":"runtime","claim":"All existing public SECURITY DEFINER trigger functions remain present and attached trigger relationships remain intact after grant revocation.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Revoke-direct-API-EXECUTE-from-public-schema-SECURITY-DEFINER-trigger-functions-while-preserving-all","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":["migrations"],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["repo-proof","advisor-proof","runtime-proof"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19","requestContractRevision":2,"previousRequestContractHash":"3f2ff713b8b1b04a7b5ba7fbdbbaa64a56248077849fb0c7e61b6a9493da9b65"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:41:34.95631+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:request-contract:868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19","mission_step_id":"f0f0551a-dff1-4f9b-8c9c-bbf445d4ac63","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"6029c199-bef0-4cde-b7c9-e92240088725","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"b1155b4f6a85def1ed7fcf4ca464a8f1fe78bc13","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"outcome-1","satisfied":true,"statement":"MUTATE AND SHIP NOW. Rebrand the existing Salty Panda Events tenant in place to Speedy Panda Party Rentals and implement the party-rental tenant experience in production. This requires source and tenant-configuration mutations. Preserve the exact existing tenant identity and all attached data, memberships, files, and integrations; create no second tenant. Replace Salty Panda Events branding with Speedy Panda Party Rentals across the existing tenant. Make the tenant operational for party rentals using canonical shared primitives: editable rental inventory quantities and availability; tables, chairs, tents/canopies and extensible rental categories; leads/customers; quote/proposal to booking; event calendar/date/time; delivery/setup/pickup; documents, contracts/e-sign, invoices/deposits/payments where current primitives exist; tasks/notes/reminders; check-out/check-in and damaged/missing/cleaning states where supported. Keep MODES and adapt the owner workflow to Plan/Availability, Quote & Book, Event Day, and Back Office, or the closest canonical vocabulary. Inventory and Availability must be directly actionable. Make the new Speedy Panda Party Rentals route/slug canonical and preserv","proofConditionIds":["proof-production"]}],"satisfied":true,"constraints":[{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["proof-production"]}],"contractHash":"13d9d70c8872ac250d86819b34f1b26b5d2fc1789c1f08505725ddb1aea209a8","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"proof-production","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":false,"releaseTargetStates":{},"unsuccessfulTargets":[],"activeReleaseTargets":["frontend","migrations"],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"migrationReleaseVerified":null,"releaseRequestContractHash":"13d9d70c8872ac250d86819b34f1b26b5d2fc1789c1f08505725ddb1aea209a8"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["frontend","migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:35:09.710846+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"b1155b4f6a85def1ed7fcf4ca464a8f1fe78bc13","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:e1d57e8b-fd8c-46e8-bbc6-17ddd74c0b65:request-contract:13d9d70c8872ac250d86819b34f1b26b5d2fc1789c1f08505725ddb1aea209a8:b1155b4f6a85def1ed7fcf4ca464a8f1fe78bc13:verified:","mission_step_id":"4e2f99a5-d120-4ef6-8b78-d7f82fd5cac4","command_center_event_id":"e1d57e8b-fd8c-46e8-bbc6-17ddd74c0b65"},{"id":"eac82188-d644-4c7e-813a-59f8d98ae0f9","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/security-definer-trigger-rpc-hardening","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3099,"terminal":false,"missionId":"4fc18dbb-9532-4542-a530-e4f9be24130a","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":13915,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1434,"missionSetupMs":544,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":544,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":544,"repositoryMutationMs":12481,"repositoryProviderMs":12481,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":5482,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":544,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":6999},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"4fc18dbb-9532-4542-a530-e4f9be24130a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3195,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:41:49.393775+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3099","receipt_type":"execute_mission","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"f0f0551a-dff1-4f9b-8c9c-bbf445d4ac63","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"50ca1ced-59c0-4288-8931-c360081551ce","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-e8387d6ece37","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3100,"terminal":false,"missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":23508,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":4907,"missionSetupMs":289,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":289,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":289,"repositoryMutationMs":18601,"repositoryProviderMs":18601,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":9423,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":289,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":9178},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":4315,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:42:18.092125+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3100","receipt_type":"execute_mission","idempotency_key":"mission:e8387d6e-ce37-46bb-b4d8-922b91745062:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"5774238e-9dc8-4661-b76a-2ec3a625f2df","command_center_event_id":"e8387d6e-ce37-46bb-b4d8-922b91745062"},{"id":"e55090cc-0d88-4ad0-af77-2129c0572c10","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/security-definer-trigger-rpc-hardening","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3099,"terminal":false,"missionId":"4fc18dbb-9532-4542-a530-e4f9be24130a","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":12821,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1387,"approvedPlanMs":0,"missionSetupMs":2395,"providerAuthMs":0,"shipAndProveMs":8160,"ledgerPrepareMs":286,"ledgerReconcileMs":0,"lineageReconcileMs":2109,"resolvePreflightMs":2395,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":286,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"4fc18dbb-9532-4542-a530-e4f9be24130a"},"performance":null,"deploymentId":"forgejo-main-1bcd27da77d1","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2594,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:42:25.786016+00:00","proof_gate":"canonical_release_dispatched","source_sha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","external_id":"forgejo-main-1bcd27da77d1","receipt_type":"execute_mission","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"6cc72a58-628c-4e85-add7-aab7f93723ed","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"98161c6e-937d-4a1c-90bc-70b7973acd74","source":"forgejo","status":"waiting","payload":{"branch":"ai/security-definer-trigger-rpc-hardening","prNumber":3099,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:43:59.388904+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","external_id":"3099","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:merged-pr:3099:1bcd27da77d1f318d8780b643d46ae936d7f09ed","mission_step_id":"6cc72a58-628c-4e85-add7-aab7f93723ed","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"4046f7d5-bd45-4a7f-bf94-af98ad3357ed","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","supabase-migrations/live":"success"},"mainSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"success"},"requestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9591","runId":9591,"status":"success","sourceSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"migrations":"success"},"targetJobCount":7,"observedTargetStates":{"migrations":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:44:02.597131+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","external_id":"forgejo-main-1bcd27da77d1","receipt_type":"canonical_release_status","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:forgejo-release-status:1bcd27da77d1f318d8780b643d46ae936d7f09ed:verified:forgejo-main/source=success|forgejo-release/workflow=success|supabase-migrations/live=success","mission_step_id":"f567d30e-2f4c-4b51-988a-76786d8d2e34","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"8629c605-6925-41d0-be53-37c2b2388b4e","source":"cc-execution","status":"retryable","payload":{"ok":false,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-e8387d6ece37","reason":"pull_request_stale_refresh_required","status":"retryable","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3100,"terminal":false,"missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062","operation":"execute_mission","proofGate":"repair_mission_pr_ready_retryable","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":15476,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":14436,"approvedPlanMs":0,"missionSetupMs":1222,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":370,"ledgerReconcileMs":0,"lineageReconcileMs":852,"resolvePreflightMs":1222,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":370,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create a replacement branch or PR.","receiptRef":{"mode":"full","missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2247,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:43:51.533445+00:00","proof_gate":"repair_mission_pr_ready_retryable","source_sha":null,"external_id":"3100","receipt_type":"execute_mission","idempotency_key":"mission:e8387d6e-ce37-46bb-b4d8-922b91745062:execute_mission:repair_mission_pr_ready_retryable:current-generation","mission_step_id":"5774238e-9dc8-4661-b76a-2ec3a625f2df","command_center_event_id":"e8387d6e-ce37-46bb-b4d8-922b91745062"},{"id":"d932243d-fca3-41a9-9203-a9b6fa642d23","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"trigger-rpc-closed","satisfied":false,"statement":"Anonymous and authenticated API roles cannot directly execute SECURITY DEFINER trigger functions.","proofConditionIds":["repo-proof","advisor-proof"]},{"id":"trigger-behavior-preserved","satisfied":true,"statement":"Existing database triggers remain installed and their backing functions remain present after grant revocation.","proofConditionIds":["runtime-proof"]}],"satisfied":false,"constraints":[{"id":"scope","satisfied":false,"statement":"Do not change non-trigger RPC grants, public booking/intake RPCs, application code, or trigger definitions.","proofConditionIds":["repo-proof","runtime-proof"]},{"id":"release","satisfied":true,"statement":"Use canonical migrations-only release and verify production before completion.","proofConditionIds":["advisor-proof","runtime-proof"]},{"id":"capability-completeness","satisfied":false,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo-proof","advisor-proof","runtime-proof"]},{"id":"atomic-capability-lifecycle","satisfied":false,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo-proof","advisor-proof","runtime-proof"]}],"contractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo-proof","kind":"repository","evidence":{"reason":null,"gateRunId":null,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":null,"repositoryProofPath":null,"requestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"required","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":false,"repositoryProofSourceSha":null},"required":true,"satisfied":false},{"id":"advisor-proof","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19"},"required":true,"satisfied":true},{"id":"runtime-proof","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":["repository"],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":2},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:44:03.899387+00:00","proof_gate":"request_contract_pending","source_sha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:request-contract:868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19:1bcd27da77d1f318d8780b643d46ae936d7f09ed:pending:repository","mission_step_id":"f567d30e-2f4c-4b51-988a-76786d8d2e34","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"a08b1057-ffa7-4929-b83b-950e3e8f520d","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"trigger-rpc-closed","satisfied":true,"statement":"Anonymous and authenticated API roles cannot directly execute SECURITY DEFINER trigger functions.","proofConditionIds":["repo-proof","advisor-proof"]},{"id":"trigger-behavior-preserved","satisfied":true,"statement":"Existing database triggers remain installed and their backing functions remain present after grant revocation.","proofConditionIds":["runtime-proof"]}],"satisfied":true,"constraints":[{"id":"scope","satisfied":true,"statement":"Do not change non-trigger RPC grants, public booking/intake RPCs, application code, or trigger definitions.","proofConditionIds":["repo-proof","runtime-proof"]},{"id":"release","satisfied":true,"statement":"Use canonical migrations-only release and verify production before completion.","proofConditionIds":["advisor-proof","runtime-proof"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo-proof","advisor-proof","runtime-proof"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo-proof","advisor-proof","runtime-proof"]}],"contractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo-proof","kind":"repository","evidence":{"reason":null,"gateRunId":9589,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":true,"repositoryProofSourceSha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed"},"required":true,"satisfied":true},{"id":"advisor-proof","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19"},"required":true,"satisfied":true},{"id":"runtime-proof","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":2},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:44:08.273156+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"1bcd27da77d1f318d8780b643d46ae936d7f09ed","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:4fc18dbb-9532-4542-a530-e4f9be24130a:request-contract:868a898e77be191b3bcad8ca6b58865435b48dbd79b0cbf8560e3d86b3fa8e19:1bcd27da77d1f318d8780b643d46ae936d7f09ed:verified:","mission_step_id":"f567d30e-2f4c-4b51-988a-76786d8d2e34","command_center_event_id":"4fc18dbb-9532-4542-a530-e4f9be24130a"},{"id":"206ccf04-1d62-44e1-888f-fb042d65701e","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-704d112ec277","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":33381,"releaseCount":0,"toolCallCount":1,"repeatedCallCount":0,"executorlessWaitMs":0,"firstUsefulResultAt":"2026-09-24T06:49:33.573Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.249-semantic-conflict-generation","prNumber":3609,"terminal":false,"missionId":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":5880,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":821,"missionSetupMs":302,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":302,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":302,"repositoryMutationMs":5059,"repositoryProviderMs":5059,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2914,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":302,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":2145},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime","visual"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3397,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:49:40.503253+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3609","receipt_type":"execute_mission","idempotency_key":"mission:704d112e-c277-40b6-8d9a-ff6c6d4f2e2f:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"eb1c91eb-b081-4904-85f5-d5d0870438fa","command_center_event_id":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f"},{"id":"105644b9-0cbb-48a2-90fb-3d92cd6e4147","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-ddc4d9fea167","reason":"pull_request_checks_pending","status":"waiting_for_gate","metrics":{"receiptBytes":30112,"releaseCount":0,"toolCallCount":4,"repeatedCallCount":1,"executorlessWaitMs":119727,"firstUsefulResultAt":"2026-09-24T15:50:29.382Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":null,"prNumber":3635,"terminal":false,"missionId":"ddc4d9fe-a167-4bce-8a9c-3429ab3491e7","operation":"automatic_mission_resume","proofGate":"repair_mission_waiting_for_gate","sourceSha":null,"timingsMs":{"prReadinessMs":541,"approvedPlanMs":0,"shipAndProveMs":0,"repositoryMutationMs":0,"repositoryProviderMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request after the exact-head KnockLaunch Gate changes state.","receiptRef":{"mode":"full","missionId":"ddc4d9fe-a167-4bce-8a9c-3429ab3491e7"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1285,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T15:50:41.518146+00:00","proof_gate":"repair_mission_waiting_for_gate","source_sha":null,"external_id":"3635","receipt_type":"automatic_mission_resume","idempotency_key":"mission:ddc4d9fe-a167-4bce-8a9c-3429ab3491e7:automatic-mission-resume:3635:repair_mission_waiting_for_gate","mission_step_id":"4d307bb9-0f8a-4dee-960e-c891f3e815ae","command_center_event_id":"ddc4d9fe-a167-4bce-8a9c-3429ab3491e7"},{"id":"f54c4b25-38d0-4760-8a7f-42a83e42d331","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-618c39d52c42","reason":"control_plane_maintenance_request_contract_required","status":"blocked","metrics":{"receiptBytes":10667,"releaseCount":0,"toolCallCount":4,"repeatedCallCount":1,"executorlessWaitMs":199636,"firstUsefulResultAt":"2026-09-24T18:20:29.093Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.260-release-actions-query-parity","prNumber":null,"terminal":false,"missionId":"618c39d5-2c42-4512-906b-f385844795a3","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":0,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":0,"missionSetupMs":292,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":292,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":292,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":292,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"618c39d5-2c42-4512-906b-f385844795a3"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1579,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T18:23:49.770809+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:618c39d5-2c42-4512-906b-f385844795a3:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"e0126cbc-d2e9-4971-a61b-2834b39600ea","command_center_event_id":"618c39d5-2c42-4512-906b-f385844795a3"},{"id":"c3cf61bd-30ed-4b4b-8c6a-2606424d6e14","source":"cc-execution","status":"recorded","payload":{"objective":"Recover and ship the KNOCKLAUNCH Card Grading first-class application for PCG from current main. Reconcile the already-live card-grading v1 migration into source, register card-grading as an assigned vertical application, wrap PCG routes in the first-class application boundary, add QA review and derived Pop Report UI, align UI guards with production workflow guards, preserve the existing Google Workspace Drive media adapter, and make public featured-card, population, and cert lookup use only finalized published certificate data. Keep PCG MODES and PCG terminology. Ship through Gate, merge, release, and prove /pcg/card-grading on desktop and mobile.","tenantRef":"pcg","receivedAt":"2026-09-30T02:15:58.586Z","fingerprint":"3effd57d30c2110d87c64e6370ec6cc5f3c94ea903720125f984c67d3c78794d","workstreamRef":"pcg","conversationId":null,"canonicalBranch":null,"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"compilation":{"stages":["owner_intent","conversation_context","scope","live_state","mutation_authority","affected_systems","dependencies","risk_and_blast_radius","execution_tactics","required_proof","release_plan","recovery_plan"],"version":2,"explicit":true,"objective":"Recover and ship the KNOCKLAUNCH Card Grading first-class application for PCG from current main. Reconcile the already-live card-grading v1 migration into source, register card-grading as an assigned vertical application, wrap PCG routes in the first-class application boundary, add QA review and derived Pop Report UI, align UI guards with production workflow guards, preserve the existing Google Workspace Drive media adapter, and make public featured-card, population, and cert lookup use only finalized published certificate data. Keep PCG MODES and PCG terminology. Ship through Gate, merge, release, and prove /pcg/card-grading on desktop and mobile.","proofKinds":["runtime","visual"],"adaptiveDomains":["intent","tenant_route_role_viewport","urgency_deadline","dependency_scope","risk_blast_radius","runner_capacity","queue_active_work","provider_failure_circuits","qa_scope","retry_recovery","release_ownership","proof_depth"],"expansionPolicy":"later_stages_may_only_narrow_or_expand_with_machine_readable_dependency_evidence","dynamicStatePolicy":"live_state_may_change_execution_tactics_but_never_owner_outcome_or_explicit_constraints","dynamicRefreshStages":["preflight","gate","release","runtime_proof"],"adaptiveCompilerVersion":"paul-adaptive-objective-v1","inheritedContextBlockingAuthority":false},"rawUtterance":"Recover and ship the KNOCKLAUNCH Card Grading first-class application for PCG from current main. Reconcile the already-live card-grading v1 migration into source, register card-grading as an assigned vertical application, wrap PCG routes in the first-class application boundary, add QA review and derived Pop Report UI, align UI guards with production workflow guards, preserve the existing Google Workspace Drive media adapter, and make public featured-card, population, and cert lookup use only finalized published certificate data. Keep PCG MODES and PCG terminology. Ship through Gate, merge, release, and prove /pcg/card-grading on desktop and mobile.","wordingChanged":false,"canonicalIntent":"Recover and ship the KNOCKLAUNCH Card Grading first-class application for PCG from current main. Reconcile the already-live card-grading v1 migration into source, register card-grading as an assigned vertical application, wrap PCG routes in the first-class application boundary, add QA review and derived Pop Report UI, align UI guards with production workflow guards, preserve the existing Google Workspace Drive media adapter, and make public featured-card, population, and cert lookup use only finalized published certificate data. Keep PCG MODES and PCG terminology. Ship through Gate, merge, release, and prove /pcg/card-grading on desktop and mobile.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"live","statement":"PCG runs the first-class KNOCKLAUNCH Card Grading application in production.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]}],"objective":"Recover and ship the KNOCKLAUNCH Card Grading first-class application for PCG from current main. Reconcile the already-live card-grading v1 migration into source, register card-grading as an assigned vertical application, wrap PCG routes in the first-class application boundary, add QA review and derived Pop Report UI, align UI guards with production workflow guards, preserve the existing Google Workspace Drive media adapter, and make public featured-card, population, and cert lookup use only finalized published certificate data. Keep PCG MODES and PCG terminology. Ship through Gate, merge, release, and prove /pcg/card-grading on desktop and mobile.","constraints":[{"id":"cards-only","statement":"Keep this application card-grading-specific and do not introduce roofing concepts.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime"]},{"id":"pcg-terms","statement":"Preserve PCG terminology, grading scale, Cert Number semantics, and approved MODES presentation.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime","visual"]},{"id":"public-boundary","statement":"Public grading surfaces expose only finalized published certificate data.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime"]},{"id":"drive","statement":"Use the existing tenant Google Workspace Drive adapter and do not expose raw private Drive URLs.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime"]},{"id":"visual-artifact-scope","statement":"Visual changes remain limited to PCG card-grading surfaces.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["visual"]},{"id":"visual-content-truth","statement":"Do not invent business or card data.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["visual"]},{"id":"tenant-visual-isolation","statement":"Preserve PCG tenant visual isolation.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["visual"]},{"id":"visual-viewport-authority","statement":"Desktop and mobile are both required.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["visual"]},{"id":"reference-visual-fidelity","statement":"Preserve current approved PCG MODES composition.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["visual"]},{"id":"responsive-visual-continuity","statement":"Preserve functionality and design language responsively.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["visual"]},{"id":"reference-visual-authority","statement":"Current approved PCG production visuals are acceptance evidence.","provenance":{"reason":null,"source":"current_request_explicit","inherited":false,"blockingAuthority":true},"proofConditionIds":["visual"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["runtime"]}],"adaptivePolicy":{"risk":{"tier":"high","blastRadius":"sensitive"},"proof":{"requiredKinds":["runtime","visual"],"visualProofScope":"targeted","interactionRequired":true,"runtimeProofRequired":true},"scope":{"route":"/pcg/card-grading","roleRef":null,"tenantRef":"pcg","sourceTargets":["src/PrivateAppShell.tsx","src/config/applicationCapabilityRegistry.ts","src/pages/card-grading/PCGModesWorkspace.tsx","src/pages/crm/PcgWorkspace.tsx","supabase/functions/pcg-customer-progress/index.ts","supabase/migrations","src/__tests__/contracts"]},"dynamic":{"variables":["main_and_runtime_lineage","runner_capacity","queue_and_active_work","provider_health","failure_clusters_and_circuits","release_target_state","current_pr_and_gate_state"],"refreshStages":["preflight","gate","release","runtime_proof"],"refreshMayChange":["runner_selection","parallelism","retry_path","qa_depth","release_recovery","proof_timing"],"refreshMayNotChange":["owner_outcome","explicit_no_go_constraints","tenant_identity","credential_boundary","hard_safety_invariants"]},"urgency":{"priority":"normal","deadlineSignals":[],"deadlineExplicit":false},"version":"paul-adaptive-objective-v1","recovery":{"transient":"one_bounded_retry_then_alternate_eligible_pool_or_provider_path","deterministic":"repair_source_or_contract_do_not_blind_rerun","mutationDependencyFailure":"prerequisite_required_or_targeted_recovery_never_invent","readOnlyDependencyFailure":"degrade_to_available_grounded_context_and_keep_conversation_alive"},"unknowns":["deadline"],"authority":{"outcome":"current_explicit_owner_request","tactics":"live_prime_truth","unknownPolicy":"preserve_unknown_never_invent","historicalContext":"advisory_unless_current_request_confirms"},"execution":{"mutation":true,"concurrency":"serialize_overlapping_mutations","scopePolicy":"start_bounded_expand_only_with_machine_readable_dependency_evidence","staleStatePolicy":"refresh_dynamic_state_before_irreversible_or_acceptance_stage","conversationIsolation":true,"ownerOutcomeMayBeChangedByAdaptation":false},"experience":{"visual":true,"viewports":["mobile","desktop"],"behavioral":true,"visualProofScope":"targeted"},"dependencies":{"requiredDomains":["frontend","schema_data_storage","provider_configuration","release_ownership","live_production_proof","backend_runtime"],"capabilityDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"releaseTargetHints":["frontend","supabaseEdge"]},"inputSignals":{"rawUtterance":"Recover and ship the KNOCKLAUNCH Card Grading first-class application for PCG from current main. Reconcile the already-live card-grading v1 migration into source, register card-grading as an assigned vertical application, wrap PCG routes in the first-class application boundary, add QA review and derived Pop Report UI, align UI guards with production workflow guards, preserve the existing Google Workspace Drive media adapter, and make public featured-card, population, and cert lookup use only finalized published certificate data. Keep PCG MODES and PCG terminology. Ship through Gate, merge, release, and prove /pcg/card-grading on desktop and mobile.","canonicalIntent":"Recover and ship the KNOCKLAUNCH Card Grading first-class application for PCG from current main. Reconcile the already-live card-grading v1 migration into source, register card-grading as an assigned vertical application, wrap PCG routes in the first-class application boundary, add QA review and derived Pop Report UI, align UI guards with production workflow guards, preserve the existing Google Workspace Drive media adapter, and make public featured-card, population, and cert lookup use only finalized published certificate data. Keep PCG MODES and PCG terminology. Ship through Gate, merge, release, and prove /pcg/card-grading on desktop and mobile.","conversationContextPresent":false}},"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"runtime","kind":"runtime","claim":"Card Grading is live for PCG with assignment, QA, population, published-certificate boundaries, and Drive media integration.","route":"/pcg/card-grading","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"visual","kind":"visual","claim":"The live PCG Card Grading application is usable on desktop and mobile.","route":"/pcg/card-grading","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Recover-and-ship-the-KNOCKLAUNCH-Card-Grading-first-class-application-for-PCG-from-current-main.-Rec","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":[],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["runtime"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestedBranch":null,"conversationContext":null,"requestContractHash":"6caef621e7a02ba33ef5ae5a395df0104cd2ab29d7b0344c2d041eac68ed283a","requestContractRevision":1},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T02:15:58.964341+00:00","proof_gate":"tenant_workstream_contribution_recorded","source_sha":null,"external_id":null,"receipt_type":"tenant_workstream_contribution","idempotency_key":"mission:92964f0c-60ea-4903-a573-31d680fefd52:tenant-workstream-contribution:3effd57d30c2110d87c64e6370ec6cc5f3c94ea903720125f984c67d3c78794d","mission_step_id":null,"command_center_event_id":"92964f0c-60ea-4903-a573-31d680fefd52"},{"id":"8feeb424-f5cf-434b-bb96-cc9cf5188f8a","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/search-tenant-workspace-search-path-hardening","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3101,"terminal":false,"missionId":"d9d6600e-0816-4f5e-bb87-06a0054d9227","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":17590,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1788,"missionSetupMs":350,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":350,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":350,"repositoryMutationMs":15802,"repositoryProviderMs":15802,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":7802,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":350,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":8000},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"d9d6600e-0816-4f5e-bb87-06a0054d9227"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3195,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:44:43.424399+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3101","receipt_type":"execute_mission","idempotency_key":"mission:d9d6600e-0816-4f5e-bb87-06a0054d9227:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"4ed0535b-f946-49d3-8a7b-f8035bfdac03","command_center_event_id":"d9d6600e-0816-4f5e-bb87-06a0054d9227"},{"id":"647d78b8-a4be-49d7-9151-a5870c8f774b","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-704d112ec277","reason":"pull_request_checks_pending","status":"waiting_for_gate","metrics":{"receiptBytes":35474,"releaseCount":0,"toolCallCount":2,"repeatedCallCount":0,"executorlessWaitMs":6895,"firstUsefulResultAt":"2026-09-24T06:49:33.573Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.249-semantic-conflict-generation","prNumber":3609,"terminal":false,"missionId":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f","operation":"execute_mission","proofGate":"repair_mission_waiting_for_gate","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":1007,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":728,"approvedPlanMs":0,"missionSetupMs":482,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":300,"ledgerReconcileMs":0,"lineageReconcileMs":182,"resolvePreflightMs":482,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":300,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request after the exact-head KnockLaunch Gate changes state.","receiptRef":{"mode":"full","missionId":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime","visual"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1971,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T06:49:42.934095+00:00","proof_gate":"repair_mission_waiting_for_gate","source_sha":null,"external_id":"3609","receipt_type":"execute_mission","idempotency_key":"mission:704d112e-c277-40b6-8d9a-ff6c6d4f2e2f:execute_mission:repair_mission_waiting_for_gate:current-generation","mission_step_id":"eb1c91eb-b081-4904-85f5-d5d0870438fa","command_center_event_id":"704d112e-c277-40b6-8d9a-ff6c6d4f2e2f"},{"id":"020e1149-0810-4785-b97a-c31a029386c8","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"runtime_proof","branch":"ai/search-tenant-workspace-search-path-hardening","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3101,"terminal":false,"missionId":"d9d6600e-0816-4f5e-bb87-06a0054d9227","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"492a6337dcde1ae604f33418dc46d38c673cda07","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":2134,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":264,"approvedPlanMs":0,"missionSetupMs":263,"providerAuthMs":0,"shipAndProveMs":1452,"ledgerPrepareMs":263,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":263,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":263,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"d9d6600e-0816-4f5e-bb87-06a0054d9227"},"performance":null,"deploymentId":"forgejo-main-492a6337dcde","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2646,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:46:54.128666+00:00","proof_gate":"canonical_release_dispatched","source_sha":"492a6337dcde1ae604f33418dc46d38c673cda07","external_id":"forgejo-main-492a6337dcde","receipt_type":"execute_mission","idempotency_key":"mission:d9d6600e-0816-4f5e-bb87-06a0054d9227:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"f645a5a5-f400-4afa-a6d0-517f7454ce58","command_center_event_id":"d9d6600e-0816-4f5e-bb87-06a0054d9227"},{"id":"e5f06516-0d63-4c59-aaad-1a86b5b643a7","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","supabase-migrations/live":"success"},"mainSha":"492a6337dcde1ae604f33418dc46d38c673cda07","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"492a6337dcde1ae604f33418dc46d38c673cda07","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"success"},"requestContractHash":"ea8b1e7a9fcfd2a72cf93dcc6b04391cbb68d83e6b6efbe47d6cdf7d6b34b5b6","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9594","runId":9594,"status":"success","sourceSha":"492a6337dcde1ae604f33418dc46d38c673cda07","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"migrations":"success"},"targetJobCount":7,"observedTargetStates":{"migrations":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:48:05.454268+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"492a6337dcde1ae604f33418dc46d38c673cda07","external_id":"forgejo-main-492a6337dcde","receipt_type":"canonical_release_status","idempotency_key":"mission:d9d6600e-0816-4f5e-bb87-06a0054d9227:forgejo-release-status:492a6337dcde1ae604f33418dc46d38c673cda07:verified:forgejo-main/source=success|forgejo-release/workflow=success|supabase-migrations/live=success","mission_step_id":"ea68d431-e8e1-462b-a2b1-e84d3748bc4a","command_center_event_id":"d9d6600e-0816-4f5e-bb87-06a0054d9227"},{"id":"6fc14d6b-7a01-49d2-82e9-daae5bbe5315","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-ddc4d9fea167","prNumber":3635,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"6bc90f59a6a40e54f5e11502e8e67a5bd3b155e7","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T15:57:30.845688+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"6bc90f59a6a40e54f5e11502e8e67a5bd3b155e7","external_id":"3635","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:ddc4d9fe-a167-4bce-8a9c-3429ab3491e7:merged-pr:3635:6bc90f59a6a40e54f5e11502e8e67a5bd3b155e7","mission_step_id":"fb06ea62-00da-45e2-acd6-1d0905ffe582","command_center_event_id":"ddc4d9fe-a167-4bce-8a9c-3429ab3491e7"},{"id":"0cdcd0ba-a823-4f5c-b68b-2a43f66b203c","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/internal-security-definer-rpc-hardening","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3102,"terminal":false,"missionId":"38faff41-4b8b-42e9-8f40-34b4e0397917","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":10290,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":926,"missionSetupMs":391,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":391,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":391,"repositoryMutationMs":9364,"repositoryProviderMs":9364,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":5434,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":391,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":3930},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"38faff41-4b8b-42e9-8f40-34b4e0397917"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3196,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:48:43.790526+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3102","receipt_type":"execute_mission","idempotency_key":"mission:38faff41-4b8b-42e9-8f40-34b4e0397917:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"d252c0f1-146c-4b42-b524-3958a586f7e3","command_center_event_id":"38faff41-4b8b-42e9-8f40-34b4e0397917"},{"id":"cad13f66-0e1b-4455-9e70-466922040d18","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/internal-security-definer-rpc-hardening","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3102,"terminal":false,"missionId":"38faff41-4b8b-42e9-8f40-34b4e0397917","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":5672,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":491,"approvedPlanMs":0,"missionSetupMs":534,"providerAuthMs":0,"shipAndProveMs":4933,"ledgerPrepareMs":389,"ledgerReconcileMs":0,"lineageReconcileMs":145,"resolvePreflightMs":534,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":389,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"38faff41-4b8b-42e9-8f40-34b4e0397917"},"performance":null,"deploymentId":"forgejo-main-70cbe8c25cab","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2617,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:49:11.102199+00:00","proof_gate":"canonical_release_dispatched","source_sha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","external_id":"forgejo-main-70cbe8c25cab","receipt_type":"execute_mission","idempotency_key":"mission:38faff41-4b8b-42e9-8f40-34b4e0397917:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"7ce0b6c4-87fc-4508-9833-37df1b6f68fe","command_center_event_id":"38faff41-4b8b-42e9-8f40-34b4e0397917"},{"id":"0e629d70-f49a-4243-94b8-77a717319b39","source":"forgejo","status":"waiting","payload":{"branch":"ai/internal-security-definer-rpc-hardening","prNumber":3102,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:49:49.28451+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","external_id":"3102","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:38faff41-4b8b-42e9-8f40-34b4e0397917:merged-pr:3102:70cbe8c25cabeda5121c7d54d183f55d2439c5e2","mission_step_id":"7ce0b6c4-87fc-4508-9833-37df1b6f68fe","command_center_event_id":"38faff41-4b8b-42e9-8f40-34b4e0397917"},{"id":"80c5df6a-127d-47d3-a56f-b85d7feb463e","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","supabase-migrations/live":"success"},"mainSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"success"},"requestContractHash":"c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9597","runId":9597,"status":"success","sourceSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"migrations":"success"},"targetJobCount":7,"observedTargetStates":{"migrations":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:49:51.262404+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","external_id":"forgejo-main-70cbe8c25cab","receipt_type":"canonical_release_status","idempotency_key":"mission:38faff41-4b8b-42e9-8f40-34b4e0397917:forgejo-release-status:70cbe8c25cabeda5121c7d54d183f55d2439c5e2:verified:forgejo-main/source=success|forgejo-release/workflow=success|supabase-migrations/live=success","mission_step_id":"476b568f-a006-493b-93a8-6f334c6c636d","command_center_event_id":"38faff41-4b8b-42e9-8f40-34b4e0397917"},{"id":"93176253-9ccf-417a-8c54-8ea6e6ba32e6","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"repo","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"f6a465add788950e218d0979ccc05d97aeb23ded","prNumber":3102,"gateRunId":9596,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9596/jobs/1","mergeCommitSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2"}],"requestContractHash":"c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:49:54.927369+00:00","proof_gate":"request_contract_repository_verified","source_sha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:38faff41-4b8b-42e9-8f40-34b4e0397917:request-contract-repository:c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564:70cbe8c25cabeda5121c7d54d183f55d2439c5e2","mission_step_id":"476b568f-a006-493b-93a8-6f334c6c636d","command_center_event_id":"38faff41-4b8b-42e9-8f40-34b4e0397917"},{"id":"f1a1762d-3ef2-4824-b8b5-e60936efcbd6","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"internal-rpcs-closed","satisfied":true,"statement":"activate_proposal_operating_contract and compile_tenant_business_blueprint_settings are not directly executable by PUBLIC, anon, or authenticated roles.","proofConditionIds":["repo","runtime","advisor"]},{"id":"internal-callers-preserved","satisfied":true,"statement":"Their signed-agreement trigger and blueprint enforcement/reconciliation call paths remain intact.","proofConditionIds":["runtime"]}],"satisfied":true,"constraints":[{"id":"scope","satisfied":true,"statement":"Do not change function bodies, triggers, policies, public portal/booking RPCs, or any other grants.","proofConditionIds":["repo","runtime"]},{"id":"release","satisfied":true,"statement":"Use migrations-only canonical release and verify live privileges and advisor count.","proofConditionIds":["runtime","advisor"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":9596,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":true,"repositoryProofSourceSha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2"},"required":true,"satisfied":true},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:49:56.424006+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"70cbe8c25cabeda5121c7d54d183f55d2439c5e2","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:38faff41-4b8b-42e9-8f40-34b4e0397917:request-contract:c0051000a9f6404345c6057b8235cfd163f629f4433865c7d05789d488ea7564:70cbe8c25cabeda5121c7d54d183f55d2439c5e2:verified:","mission_step_id":"476b568f-a006-493b-93a8-6f334c6c636d","command_center_event_id":"38faff41-4b8b-42e9-8f40-34b4e0397917"},{"id":"7fb7ed7d-3502-41c7-a077-6b1738e2f33e","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[],"branch":"ai/objective-first-repair-dcd0495462fe","writes":[],"patches":[],"version":1,"approved":true,"missionId":"dcd04954-62fe-46d7-b127-4255c90c294d","objective":"Repair the scoped-repo-patch Forgejo timeout blocker and ship the already-isolated Big Papi UI fixes in one controlled change. Control-plane: raise atomicCommitHardTimeoutMs 5000->12000 and atomicFinalReconcileBudgetMs 2500->6000; bump cc-execution version to 1.58.250-scoped-patch-timeout-recovery. Frontend: BigPapisOwnerShell root fixed full viewport; TenantModesShell uses fixed full viewport for Big Papi; BigPapisEventsHub suppresses lower duplicate New event button on Calendar while preserving the top action. One branch, one PR, Gate, squash merge, cc-execution + frontend release. No Visual Witness.","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js","src/pages/mobile-vendor/BigPapisOwnerShell.tsx","src/shells/TenantModesShell.tsx","src/pages/mobile-vendor/BigPapisEventsHub.tsx"],"anchored_edits":[{"path":"workers/cc-execution/src/scoped-repo-patch-policy.js","new_content":"atomicCommitHardTimeoutMs: 12000,\n  atomicFinalReconcileBudgetMs: 6000,","old_content":"atomicCommitHardTimeoutMs: 5000,\n  atomicFinalReconcileBudgetMs: 2500,"},{"path":"workers/cc-execution/src/version.js","new_content":"export const CC_EXECUTION_VERSION = \"1.58.250-scoped-patch-timeout-recovery\";","old_content":"export const CC_EXECUTION_VERSION = \"1.58.249-semantic-conflict-generation\";"},{"path":"src/pages/mobile-vendor/BigPapisOwnerShell.tsx","new_content":"className=\"fixed inset-0 z-[1000] h-[100dvh] min-h-0 w-screen max-w-none overflow-hidden bg-[#030811] text-white\"","old_content":"className=\"absolute inset-0 z-[1000] min-h-0 min-w-0 w-full max-w-full overflow-hidden bg-[#030811] text-white\""},{"path":"src/shells/TenantModesShell.tsx","new_content":"className={`${isBigPapis || isPandaEventRentals ? 'fixed inset-0 h-[100dvh] w-screen max-w-none' : 'absolute inset-0'} z-[850] min-h-0 min-w-0 overflow-hidden text-white ${isPartyRentals ? 'bg-[#0b0710]' : 'bg-[#05080d]'}`}","old_content":"className={`${isPandaEventRentals ? 'fixed inset-0 h-[100dvh] w-screen' : 'absolute inset-0'} z-[850] min-h-0 min-w-0 overflow-hidden text-white ${isPartyRentals ? 'bg-[#0b0710]' : 'bg-[#05080d]'}`}"},{"path":"src/pages/mobile-vendor/BigPapisEventsHub.tsx","new_content":"{!isCalendarRoute && view !== 'history' ? <Link to={inMode(`${BASE}/events/advanced?new=1`)} className=\"mt-4 inline-flex min-h-[40px] items-center gap-2 rounded-xl bg-white px-4 text-xs font-black text-[#071019]\"><Plus className=\"h-4 w-4\" /> New event</Link> : null}","old_content":"{isCalendarRoute || view !== 'history' ? <Link to={inMode(`${BASE}/events/advanced?new=1`)} className={`${isCalendarRoute ? 'shrink-0 px-3' : 'mt-4 px-4'} inline-flex min-h-[40px] items-center gap-2 rounded-xl bg-white text-xs font-black text-[#071019]`}><Plus className=\"h-4 w-4\" /> New event</Link> : null}"}],"implementation":{"files":[],"writes":[]},"requestContract":{"intent":{"rawUtterance":"Fix it now: Big Papi background must cover the full screen tenant-wide and the duplicate calendar New Event button must be removed.","wordingChanged":false,"canonicalIntent":"Repair the mutation timeout blocker, then deploy the Big Papi full-viewport background and single New Event action.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"owner_explicit","version":1,"outcomes":[{"id":"outcome-control-plane","statement":"Scoped repository mutations have enough bounded time to commit and reconcile instead of repeatedly timing out around 8-9 seconds.","proofConditionIds":["proof-cc"]},{"id":"outcome-big-papis-ui","statement":"Big Papi uses a full-viewport tenant background on MODES dashboard and owner app routes, and Calendar shows only one canonical New Event action.","proofConditionIds":["proof-frontend"]}],"objective":"Repair scoped-repo-patch timeout handling and ship the bounded Big Papi background/calendar fixes.","constraints":[{"id":"preserve-dashboard","statement":"Preserve the approved Big Papi four-card MODES dashboard visuals and all unrelated tenant behavior.","proofConditionIds":["proof-frontend"]},{"id":"bounded-scope","statement":"Only the scoped mutation timeout policy/version and the three identified Big Papi frontend files may change.","proofConditionIds":["proof-cc","proof-frontend"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"The updated cc-execution runtime is released and healthy.","required":true,"allowedReleaseTargets":["ccExecution","frontend"],"requiredReleaseTargets":["ccExecution"]},{"id":"proof-frontend","kind":"runtime","claim":"The current protected-main frontend containing the Big Papi fixes is released to production.","required":true,"allowedReleaseTargets":["ccExecution","frontend"],"requiredReleaseTargets":["frontend"]}]},"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":null,"ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js","src/pages/mobile-vendor/BigPapisOwnerShell.tsx","src/shells/TenantModesShell.tsx","src/pages/mobile-vendor/BigPapisEventsHub.tsx"],"requestContract":{"intent":{"rawUtterance":"Fix it now: Big Papi background must cover the full screen tenant-wide and the duplicate calendar New Event button must be removed.","wordingChanged":false,"canonicalIntent":"Repair the mutation timeout blocker, then deploy the Big Papi full-viewport background and single New Event action.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"owner_explicit","version":1,"outcomes":[{"id":"outcome-control-plane","statement":"Scoped repository mutations have enough bounded time to commit and reconcile instead of repeatedly timing out around 8-9 seconds.","proofConditionIds":["proof-cc"]},{"id":"outcome-big-papis-ui","statement":"Big Papi uses a full-viewport tenant background on MODES dashboard and owner app routes, and Calendar shows only one canonical New Event action.","proofConditionIds":["proof-frontend"]}],"objective":"Repair scoped-repo-patch timeout handling and ship the bounded Big Papi background/calendar fixes.","constraints":[{"id":"preserve-dashboard","statement":"Preserve the approved Big Papi four-card MODES dashboard visuals and all unrelated tenant behavior.","proofConditionIds":["proof-frontend"]},{"id":"bounded-scope","statement":"Only the scoped mutation timeout policy/version and the three identified Big Papi frontend files may change.","proofConditionIds":["proof-cc","proof-frontend"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"The updated cc-execution runtime is released and healthy.","required":true,"allowedReleaseTargets":["ccExecution","frontend"],"requiredReleaseTargets":["ccExecution"]},{"id":"proof-frontend","kind":"runtime","claim":"The current protected-main frontend containing the Big Papi fixes is released to production.","required":true,"allowedReleaseTargets":["ccExecution","frontend"],"requiredReleaseTargets":["frontend"]}]},"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"86b4b0aa13cd3e6b51fc16d5cf6b166dc151ebbe9be32a4ba3dee35fee60c049","replayCount":0,"serializedBytes":7845},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:08:25.946153+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:dcd04954-62fe-46d7-b127-4255c90c294d:repository-mutation-intent:86b4b0aa13cd3e6b51fc16d5cf6b166dc151ebbe9be32a4ba3dee35fee60c049:0","mission_step_id":"448e4bb4-842c-4651-af08-f035feb74c21","command_center_event_id":"dcd04954-62fe-46d7-b127-4255c90c294d"},{"id":"0dd61940-e783-4369-8bed-b3f66aed21d3","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/internal-storage-bucket-helper-hardening","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3103,"terminal":false,"missionId":"3643a564-81d7-4c52-8e41-c4354183f7c9","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":16082,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":991,"missionSetupMs":357,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":357,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":357,"repositoryMutationMs":15091,"repositoryProviderMs":15091,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":6773,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":357,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":8318},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"3643a564-81d7-4c52-8e41-c4354183f7c9"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3201,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:50:41.871295+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3103","receipt_type":"execute_mission","idempotency_key":"mission:3643a564-81d7-4c52-8e41-c4354183f7c9:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"488ce6b3-8c5b-4a7a-87c4-813728036cab","command_center_event_id":"3643a564-81d7-4c52-8e41-c4354183f7c9"},{"id":"3e2a0bc8-256d-4e0f-8125-d937e6916c2c","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-16fdb85b30a9","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"16fdb85b-30a9-4e4a-9a41-6f1911a9e0c1","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":276,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":354,"providerAuthMs":0,"ledgerPrepareMs":354,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":354,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":354,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"16fdb85b-30a9-4e4a-9a41-6f1911a9e0c1"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":8365,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:50:49.699288+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:16fdb85b-30a9-4e4a-9a41-6f1911a9e0c1:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"8856e005-6692-4d9a-8a6c-c82415797800","command_center_event_id":"16fdb85b-30a9-4e4a-9a41-6f1911a9e0c1"},{"id":"b7fac0d0-91f8-4b3e-b11f-6c80a1c80ccc","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/internal-storage-bucket-helper-hardening","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3103,"terminal":false,"missionId":"3643a564-81d7-4c52-8e41-c4354183f7c9","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":9267,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":999,"approvedPlanMs":0,"missionSetupMs":674,"providerAuthMs":0,"shipAndProveMs":7774,"ledgerPrepareMs":283,"ledgerReconcileMs":0,"lineageReconcileMs":391,"resolvePreflightMs":674,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":283,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"3643a564-81d7-4c52-8e41-c4354183f7c9"},"performance":null,"deploymentId":"forgejo-main-5ee5d758bdb8","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2591,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:51:16.838449+00:00","proof_gate":"canonical_release_dispatched","source_sha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","external_id":"forgejo-main-5ee5d758bdb8","receipt_type":"execute_mission","idempotency_key":"mission:3643a564-81d7-4c52-8e41-c4354183f7c9:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"e83ee3b8-31ee-44b4-be0c-3d2cc60c5426","command_center_event_id":"3643a564-81d7-4c52-8e41-c4354183f7c9"},{"id":"806b1a3a-4e88-4b34-8089-4987240cbaef","source":"cc-execution","status":"source_resolution_required","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/objective-first-repair-f0b37e68dfc6","reason":null,"status":"source_resolution_required","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a","operation":"execute_mission","proofGate":"repair_mission_source_resolution_required","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":2973,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":421,"providerAuthMs":0,"ledgerPrepareMs":421,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":421,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":421,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"Resolve bounded authoritative Forgejo source targets, then call /mission/execute again with this same missionId and exact files or anchored_edits. Do not switch workflows.","receiptRef":{"mode":"full","missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":5864,"likelyAffectedFiles":[],"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:51:53.771945+00:00","proof_gate":"repair_mission_source_resolution_required","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:f0b37e68-dfc6-435a-b530-e0f6e02d4e8a:execute_mission:repair_mission_source_resolution_required:current-generation","mission_step_id":"774cb8fe-3e2d-4fc2-9495-f84b47169582","command_center_event_id":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},{"id":"8cd89c01-044b-4bd9-9c3d-9a93bece45d2","source":"cc-execution","status":"authorized","payload":{"paths":["workers/cc-execution/src/index-mcp.js","workers/cc-execution/test/release-orchestration-invariants.test.js"],"reason":"Owner explicitly unfreezes the control plane for the tenant Workspace Health direct repair verification proxy; production proof exposed the validated OAuth forwarding defect.","baseSha":"9d13d2c52e0c97cd8b6a1b3b4c328c28b4c7169f","issuedAt":1789747814450,"expiresAt":1789747994450,"missionId":"535002f0-048f-4534-bd43-10cea3d2d86f","authorizationId":"fb176f56-f4d5-471a-85b8-1c1ef7ea131a","retryableWithinExactScope":true},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T16:10:14.889011+00:00","proof_gate":"control_plane_maintenance_scope_authorized","source_sha":"9d13d2c52e0c97cd8b6a1b3b4c328c28b4c7169f","external_id":null,"receipt_type":"control_plane_maintenance_authorization","idempotency_key":"control-plane-maintenance-authorize:fb176f56-f4d5-471a-85b8-1c1ef7ea131a","mission_step_id":"65e40a39-8c82-4c3a-845a-2e1a7286db2a","command_center_event_id":"535002f0-048f-4534-bd43-10cea3d2d86f"},{"id":"8da1c3ed-5622-4bd1-afe5-bad793d0d352","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-e8387d6ece37","reason":"pull_request_checks_pending","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":null,"prNumber":3100,"terminal":false,"missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062","operation":"automatic_mission_resume","proofGate":"repair_mission_waiting_for_gate","sourceSha":null,"timingsMs":{"prReadinessMs":449,"approvedPlanMs":0,"shipAndProveMs":0,"repositoryMutationMs":0,"repositoryProviderMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request after the exact-head KnockLaunch Gate changes state.","receiptRef":{"mode":"full","missionId":"e8387d6e-ce37-46bb-b4d8-922b91745062"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1283,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:46:36.159278+00:00","proof_gate":"repair_mission_waiting_for_gate","source_sha":null,"external_id":"3100","receipt_type":"automatic_mission_resume","idempotency_key":"mission:e8387d6e-ce37-46bb-b4d8-922b91745062:automatic-mission-resume:3100:repair_mission_waiting_for_gate","mission_step_id":"4ed6aad9-f2eb-40a5-b731-3475618b4980","command_center_event_id":"e8387d6e-ce37-46bb-b4d8-922b91745062"},{"id":"a19b4d42-850c-44f4-b9c6-a3207c8b257b","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","frontend-cloudflare/live":"success"},"mainSha":"ac576e64a8503ca81653f0129808c50b6f12db5f","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","frontend-cloudflare/live"],"sourceSha":"ac576e64a8503ca81653f0129808c50b6f12db5f","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"frontend":"success"},"requestContractHash":"06acccbf3d9fe38e3e6d09d060ea0cc21132dbb03402d44b074d6376b2030ce9","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9602","runId":9602,"status":"success","sourceSha":"ac576e64a8503ca81653f0129808c50b6f12db5f","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"frontend":"success"},"targetJobCount":7,"observedTargetStates":{"frontend":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:58:25.881629+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"ac576e64a8503ca81653f0129808c50b6f12db5f","external_id":"forgejo-main-ac576e64a850","receipt_type":"canonical_release_status","idempotency_key":"mission:e8387d6e-ce37-46bb-b4d8-922b91745062:forgejo-release-status:ac576e64a8503ca81653f0129808c50b6f12db5f:verified:forgejo-main/source=success|forgejo-release/workflow=success|frontend-cloudflare/live=success","mission_step_id":"aedb25fe-2893-4556-8136-b4a87857294e","command_center_event_id":"e8387d6e-ce37-46bb-b4d8-922b91745062"},{"id":"e49b035b-d3b3-4e96-bd1f-380b807f709f","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"implementation","branch":"ai/objective-first-repair-dcd0495462fe","reason":"control_plane_maintenance_authorization_required","status":"blocked","metrics":{"receiptBytes":7991,"releaseCount":0,"toolCallCount":1,"repeatedCallCount":0,"executorlessWaitMs":0,"firstUsefulResultAt":"2026-09-24T07:08:25.903Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.249-semantic-conflict-generation","prNumber":null,"terminal":false,"missionId":"dcd04954-62fe-46d7-b127-4255c90c294d","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":0,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":0,"missionSetupMs":265,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":265,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":265,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":265,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"dcd04954-62fe-46d7-b127-4255c90c294d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1495,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:08:26.820181+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:dcd04954-62fe-46d7-b127-4255c90c294d:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"448e4bb4-842c-4651-af08-f035feb74c21","command_center_event_id":"dcd04954-62fe-46d7-b127-4255c90c294d"},{"id":"7aa2ebd8-5d8c-425e-b7a5-8137ac060f10","source":"cc-execution","status":"blocked","payload":{"reason":"control_plane_maintenance_authorization_required","fingerprint":"03c3e3aee56df9c331381a209535420f22f1dd3f38a625d3a5b04b81c6123a3b"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:14:19.535711+00:00","proof_gate":"repository_mutation_intent_deterministic_failure","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent_blocked","idempotency_key":"mission:acdb7521-1245-4b43-881a-bd2345be622b:repository-mutation-intent-blocked:03c3e3aee56df9c331381a209535420f22f1dd3f38a625d3a5b04b81c6123a3b","mission_step_id":"d6b7a3db-9925-440a-b818-536f37244864","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"7f29d3d9-754f-4d61-a067-1cf5e2b4a96c","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[],"branch":"ai/objective-first-repair-acdb75211245","writes":[],"patches":[],"version":1,"approved":true,"missionId":"acdb7521-1245-4b43-881a-bd2345be622b","objective":"Resume the same control-plane timeout repair with explicit owner-authorized maintenance scope. Change only workers/cc-execution/src/scoped-repo-patch-policy.js and workers/cc-execution/src/version.js as already specified, then one PR, Gate, squash merge, cc-execution release, runtime proof.","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js"],"anchored_edits":[{"path":"workers/cc-execution/src/scoped-repo-patch-policy.js","new_content":"atomicCommitHardTimeoutMs: 12000,\n  atomicFinalReconcileBudgetMs: 6000,","old_content":"atomicCommitHardTimeoutMs: 5000,\n  atomicFinalReconcileBudgetMs: 2500,"},{"path":"workers/cc-execution/src/version.js","new_content":"export const CC_EXECUTION_VERSION = \"1.58.250-scoped-patch-timeout-recovery\";","old_content":"export const CC_EXECUTION_VERSION = \"1.58.249-semantic-conflict-generation\";"}],"implementation":{"files":[],"writes":[]},"requestContract":{"intent":{"rawUtterance":"Fix the mutation blocker now.","wordingChanged":false,"canonicalIntent":"Increase bounded scoped-patch commit/reconcile timeouts and release cc-execution.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"owner_explicit","version":1,"outcomes":[{"id":"outcome-timeout","statement":"Scoped repository patches can survive 8-9 second Forgejo write latency without false timeout failure.","proofConditionIds":["proof-cc"]}],"objective":"Increase the scoped repository patch write/reconcile budget so Forgejo mutations can complete reliably.","constraints":[{"id":"bounded-control-plane","statement":"Only scoped-repo-patch-policy.js and version.js change.","proofConditionIds":["proof-cc"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"Updated cc-execution runtime is deployed and healthy.","required":true,"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"]}]},"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":"acdb7521-1245-4b43-881a-bd2345be622b","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js"],"requestContract":{"intent":{"rawUtterance":"Fix the mutation blocker now.","wordingChanged":false,"canonicalIntent":"Increase bounded scoped-patch commit/reconcile timeouts and release cc-execution.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"owner_explicit","version":1,"outcomes":[{"id":"outcome-timeout","statement":"Scoped repository patches can survive 8-9 second Forgejo write latency without false timeout failure.","proofConditionIds":["proof-cc"]}],"objective":"Increase the scoped repository patch write/reconcile budget so Forgejo mutations can complete reliably.","constraints":[{"id":"bounded-control-plane","statement":"Only scoped-repo-patch-policy.js and version.js change.","proofConditionIds":["proof-cc"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"Updated cc-execution runtime is deployed and healthy.","required":true,"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"]}]},"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":true,"controlPlaneMaintenance":true,"controlPlaneMaintenancePaths":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js"],"controlPlaneMaintenanceReason":"Owner-authorized repair required to unblock repeated scoped repository mutation timeouts that are preventing the Big Papi production fix."},"proofRequirements":null,"controlPlaneUnfreeze":true,"durableMutationResume":true,"controlPlaneMaintenance":true,"controlPlaneMaintenancePaths":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js"],"controlPlaneMaintenanceReason":"Owner-authorized repair required to unblock repeated scoped repository mutation timeouts that are preventing the Big Papi production fix."},"recovery":false,"fingerprint":"75c2667477caebc35b84bff5c1ac3c9b674e2948206b1532d3eeb7c9eda7b466","replayCount":0,"serializedBytes":4460},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:14:48.286709+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:acdb7521-1245-4b43-881a-bd2345be622b:repository-mutation-intent:75c2667477caebc35b84bff5c1ac3c9b674e2948206b1532d3eeb7c9eda7b466:0","mission_step_id":"d6b7a3db-9925-440a-b818-536f37244864","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"983724bf-16bd-4d36-82e3-3fdf4b59ec18","source":"cc-execution","status":"waiting","payload":{"kind":"heartbeat","message":"Still active in pull request.","nextAction":{"lane":"cc-execution","action":"reconcile_pull_request","reason":"durable_state:pull_request","automationAllowed":true,"ownerActionRequired":false},"silenceBudgetMs":15000,"semanticCheckpointSignature":"{\"stateMachineVersion\":1,\"phase\":\"pull_request\",\"ownerFacingState\":null,\"latest\":{\"kind\":\"receipt\",\"key\":\"control_plane_maintenance_authorization\",\"status\":\"authorized\",\"proofGate\":\"control_plane_maintenance_scope_authorized\"},\"activeStep\":null,\"nextStep\":null,\"nextSafeAction\":{\"action\":\"reconcile_pull_request\",\"lane\":\"cc-execution\",\"reason\":\"durable_state:pull_request\",\"automationAllowed\":true,\"ownerActionRequired\":false},\"executionOwnership\":{\"active\":false,\"state\":\"waiting\",\"executor\":null,\"lane\":\"cc-execution\",\"nextAction\":\"reconcile_pull_request\",\"recoveryOwner\":\"cc-execution\"},\"acceptance\":{\"total\":1,\"verified\":0,\"pending\":1,\"percent\":0,\"satisfied\":false,\"verifiedIds\":[],\"pendingIds\":[\"proof-cc\"]},\"stall\":{\"stalled\":false,\"reason\":\"within_deadline\",\"step\":null,\"deadlineAt\":null,\"recoveryAction\":null},\"blocker\":null,\"terminal\":false,\"branch\":\"ai/objective-first-repair-acdb75211245\",\"prNumber\":null,\"sourceSha\":null,\"deploymentId\":null}"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:18:01.070062+00:00","proof_gate":"owner_progress_heartbeat","source_sha":null,"external_id":null,"receipt_type":"owner_progress_heartbeat","idempotency_key":"mission:acdb7521-1245-4b43-881a-bd2345be622b:owner-progress-heartbeat:119348952","mission_step_id":"d6b7a3db-9925-440a-b818-536f37244864","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"3c6f0fec-77d1-4a41-a419-21514105ae4f","source":"forgejo","status":"waiting","payload":{"branch":"ai/tenant-workspace-repair-oauth-forward-535002f0","prNumber":3120,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"d5ccd12427fe514f836775f7b918b67627e7b9bc","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T16:12:57.303852+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"d5ccd12427fe514f836775f7b918b67627e7b9bc","external_id":"3120","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:535002f0-048f-4534-bd43-10cea3d2d86f:merged-pr:3120:d5ccd12427fe514f836775f7b918b67627e7b9bc","mission_step_id":"ef6939ea-a00e-4608-b5b9-ad3357257efc","command_center_event_id":"535002f0-048f-4534-bd43-10cea3d2d86f"},{"id":"c7b72968-ac70-4097-a620-eaf04d5dad6b","source":"cc-execution","status":"blocked","payload":{"ok":false,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f0b37e68dfc6","reason":"anchored_edit_invalid","status":"blocked","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a","operation":"execute_mission","proofGate":"repair_mission_execution_blocked","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":696,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":696,"missionSetupMs":310,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":222,"ledgerReconcileMs":0,"lineageReconcileMs":88,"resolvePreflightMs":310,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":222,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1423,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T14:58:58.146267+00:00","proof_gate":"repair_mission_execution_blocked","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:f0b37e68-dfc6-435a-b530-e0f6e02d4e8a:execute_mission:repair_mission_execution_blocked:current-generation","mission_step_id":"55e573de-bcb7-451a-9a0b-aedad9906078","command_center_event_id":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},{"id":"cb518352-2d8c-4ee6-ab4b-d24fd722bee2","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","supabase-migrations/live":"success"},"mainSha":"ac576e64a8503ca81653f0129808c50b6f12db5f","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","releaseState":"verified","sourceInMain":true,"compareStatus":"known_exact_protected_main_push_history","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"success"},"requestContractHash":"cd9ae3d6c539109d12ca302dd23e7dfd5d07cd2b4514182946d95935f5e35fd3","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9600","runId":9600,"status":"success","sourceSha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"migrations":"success"},"targetJobCount":7,"observedTargetStates":{"migrations":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:02:39.06381+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"5ee5d758bdb8d71d86d8d25e02674183dae610f0","external_id":"forgejo-main-5ee5d758bdb8","receipt_type":"canonical_release_status","idempotency_key":"mission:3643a564-81d7-4c52-8e41-c4354183f7c9:forgejo-release-status:5ee5d758bdb8d71d86d8d25e02674183dae610f0:verified:forgejo-main/source=success|forgejo-release/workflow=success|supabase-migrations/live=success","mission_step_id":"9ce3e25f-5fe9-45e2-985e-0fde5426c6bc","command_center_event_id":"3643a564-81d7-4c52-8e41-c4354183f7c9"},{"id":"b082e28d-1bf1-4019-be10-53cf632e22de","source":"cc-execution","status":"no_change","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-c3baff2e7105","reason":null,"status":"no_change","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"c3baff2e-7105-46c3-9a0c-9a015999ea32","operation":"execute_mission","proofGate":"repair_mission_prepared","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":1257,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":658,"providerAuthMs":0,"ledgerPrepareMs":341,"ledgerReconcileMs":0,"lineageReconcileMs":317,"resolvePreflightMs":658,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":341,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"pull_request_required","receiptRef":{"mode":"full","missionId":"c3baff2e-7105-46c3-9a0c-9a015999ea32"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1387,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:48:45.78703+00:00","proof_gate":"repair_mission_prepared","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:c3baff2e-7105-46c3-9a0c-9a015999ea32:execute_mission:repair_mission_prepared:current-generation","mission_step_id":"6fdc10aa-8f95-43bc-aa39-8042af312672","command_center_event_id":"c3baff2e-7105-46c3-9a0c-9a015999ea32"},{"id":"b0ebbdbc-38bb-45f0-bce1-4f6ec3c2399f","source":"cc-execution","status":"no_change","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/booking-activity-timeline-contract","reason":null,"status":"no_change","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":null,"terminal":false,"missionId":"b0a70d9b-8d16-48b4-b39a-1ede4306c8bd","operation":"execute_mission","proofGate":"repair_mission_prepared","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":1669,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"missionSetupMs":271,"providerAuthMs":0,"ledgerPrepareMs":271,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":271,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"totalSynchronousLedgerMs":271,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0},"nextAction":"pull_request_required","receiptRef":{"mode":"full","missionId":"b0a70d9b-8d16-48b4-b39a-1ede4306c8bd"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1385,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:36:17.782319+00:00","proof_gate":"repair_mission_prepared","source_sha":null,"external_id":null,"receipt_type":"execute_mission","idempotency_key":"mission:b0a70d9b-8d16-48b4-b39a-1ede4306c8bd:execute_mission:repair_mission_prepared:current-generation","mission_step_id":"b1283386-b006-4382-8a77-b41bcfa4c238","command_center_event_id":"b0a70d9b-8d16-48b4-b39a-1ede4306c8bd"},{"id":"757b8187-98aa-4bf3-bb25-856a207c92fe","source":"cc-execution","status":"blocked","payload":{"reason":"control_plane_maintenance_authorization_required","fingerprint":"86b4b0aa13cd3e6b51fc16d5cf6b166dc151ebbe9be32a4ba3dee35fee60c049"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:08:26.995149+00:00","proof_gate":"repository_mutation_intent_deterministic_failure","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent_blocked","idempotency_key":"mission:dcd04954-62fe-46d7-b127-4255c90c294d:repository-mutation-intent-blocked:86b4b0aa13cd3e6b51fc16d5cf6b166dc151ebbe9be32a4ba3dee35fee60c049","mission_step_id":"448e4bb4-842c-4651-af08-f035feb74c21","command_center_event_id":"dcd04954-62fe-46d7-b127-4255c90c294d"},{"id":"afb1189b-a27b-4bd8-a6c8-b64747165a27","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[],"branch":"ai/objective-first-repair-acdb75211245","writes":[],"patches":[],"version":1,"approved":true,"missionId":"acdb7521-1245-4b43-881a-bd2345be622b","objective":"Control-plane-only repair: in workers/cc-execution/src/scoped-repo-patch-policy.js raise atomicCommitHardTimeoutMs from 5000 to 12000 and atomicFinalReconcileBudgetMs from 2500 to 6000, preserving all other values. In workers/cc-execution/src/version.js bump 1.58.249-semantic-conflict-generation to 1.58.250-scoped-patch-timeout-recovery. One ai branch, one PR, canonical Gate, squash merge, deploy cc-execution, verify runtime. No frontend changes and no visual proof.","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js"],"anchored_edits":[{"path":"workers/cc-execution/src/scoped-repo-patch-policy.js","new_content":"atomicCommitHardTimeoutMs: 12000,\n  atomicFinalReconcileBudgetMs: 6000,","old_content":"atomicCommitHardTimeoutMs: 5000,\n  atomicFinalReconcileBudgetMs: 2500,"},{"path":"workers/cc-execution/src/version.js","new_content":"export const CC_EXECUTION_VERSION = \"1.58.250-scoped-patch-timeout-recovery\";","old_content":"export const CC_EXECUTION_VERSION = \"1.58.249-semantic-conflict-generation\";"}],"implementation":{"files":[],"writes":[]},"requestContract":{"intent":{"rawUtterance":"Fix the mutation blocker now.","wordingChanged":false,"canonicalIntent":"Increase bounded scoped-patch commit/reconcile timeouts and release cc-execution.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"owner_explicit","version":1,"outcomes":[{"id":"outcome-timeout","statement":"Scoped repository patches can survive 8-9 second Forgejo write latency without false timeout failure.","proofConditionIds":["proof-cc"]}],"objective":"Increase the scoped repository patch write/reconcile budget so Forgejo mutations can complete reliably.","constraints":[{"id":"bounded-control-plane","statement":"Only scoped-repo-patch-policy.js and version.js change.","proofConditionIds":["proof-cc"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"Updated cc-execution runtime is deployed and healthy.","required":true,"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"]}]},"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":null,"ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js"],"requestContract":{"intent":{"rawUtterance":"Fix the mutation blocker now.","wordingChanged":false,"canonicalIntent":"Increase bounded scoped-patch commit/reconcile timeouts and release cc-execution.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"owner_explicit","version":1,"outcomes":[{"id":"outcome-timeout","statement":"Scoped repository patches can survive 8-9 second Forgejo write latency without false timeout failure.","proofConditionIds":["proof-cc"]}],"objective":"Increase the scoped repository patch write/reconcile budget so Forgejo mutations can complete reliably.","constraints":[{"id":"bounded-control-plane","statement":"Only scoped-repo-patch-policy.js and version.js change.","proofConditionIds":["proof-cc"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"Updated cc-execution runtime is deployed and healthy.","required":true,"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"]}]},"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"03c3e3aee56df9c331381a209535420f22f1dd3f38a625d3a5b04b81c6123a3b","replayCount":0,"serializedBytes":4155},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:14:18.576093+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:acdb7521-1245-4b43-881a-bd2345be622b:repository-mutation-intent:03c3e3aee56df9c331381a209535420f22f1dd3f38a625d3a5b04b81c6123a3b:0","mission_step_id":"d6b7a3db-9925-440a-b818-536f37244864","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"f74c1e24-6f17-4867-ab2c-05489aaec72a","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/barbershop-rpc-anon-hardening","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3104,"terminal":false,"missionId":"f0b88042-7665-45be-9efb-8d9b3849dfd0","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":6098,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":705,"missionSetupMs":439,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":439,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":439,"repositoryMutationMs":5393,"repositoryProviderMs":5393,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2478,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":439,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":2915},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3173,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:03:06.645461+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3104","receipt_type":"execute_mission","idempotency_key":"mission:f0b88042-7665-45be-9efb-8d9b3849dfd0:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"e757b827-56bd-4380-87de-6d640ffa8dc9","command_center_event_id":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},{"id":"df4a3c70-f868-4605-9d7f-223f1fd4deef","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/barbershop-rpc-anon-hardening","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3104,"terminal":false,"missionId":"f0b88042-7665-45be-9efb-8d9b3849dfd0","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":8359,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1170,"approvedPlanMs":0,"missionSetupMs":604,"providerAuthMs":0,"shipAndProveMs":6716,"ledgerPrepareMs":268,"ledgerReconcileMs":0,"lineageReconcileMs":336,"resolvePreflightMs":604,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":268,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},"performance":null,"deploymentId":"forgejo-main-66841c5ecffe","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2583,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:03:36.523432+00:00","proof_gate":"canonical_release_dispatched","source_sha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","external_id":"forgejo-main-66841c5ecffe","receipt_type":"execute_mission","idempotency_key":"mission:f0b88042-7665-45be-9efb-8d9b3849dfd0:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"8c1286e2-b723-4f62-a2fc-8cdb9c226f8c","command_center_event_id":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},{"id":"71131189-5216-4e75-b5b6-5cad3d5be09d","source":"forgejo","status":"waiting","payload":{"branch":"ai/barbershop-rpc-anon-hardening","prNumber":3104,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:04:28.543325+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","external_id":"3104","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:f0b88042-7665-45be-9efb-8d9b3849dfd0:merged-pr:3104:66841c5ecffefcb5fecf50844c5ba8ddc7a33216","mission_step_id":"8c1286e2-b723-4f62-a2fc-8cdb9c226f8c","command_center_event_id":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},{"id":"ce21a20a-6c96-4854-950a-c004aaf35e81","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/objective-first-repair-f0b37e68dfc6","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3105,"terminal":false,"missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":4904,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1815,"missionSetupMs":735,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":366,"ledgerReconcileMs":0,"lineageReconcileMs":369,"resolvePreflightMs":735,"repositoryMutationMs":3089,"repositoryProviderMs":3089,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2780,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":366,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":309},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3077,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:03:55.735689+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3105","receipt_type":"execute_mission","idempotency_key":"mission:f0b37e68-dfc6-435a-b530-e0f6e02d4e8a:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"55e573de-bcb7-451a-9a0b-aedad9906078","command_center_event_id":"f0b37e68-dfc6-435a-b530-e0f6e02d4e8a"},{"id":"f199de8a-ecc1-4961-88de-ab1ec954aacf","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Resume the same control-plane timeout repair with explicit owner-authorized maintenance scope. Change only workers/cc-execution/src/scoped-repo-patch-policy.js and workers/cc-execution/src/version.js as already specified, then one PR, Gate, squash merge, cc-execution release, runtime proof.","wordingChanged":false,"canonicalIntent":"Resume the same control-plane timeout repair with explicit owner-authorized maintenance scope. Change only workers/cc-execution/src/scoped-repo-patch-policy.js and workers/cc-execution/src/version.js as already specified, then one PR, Gate, squash merge, cc-execution release, runtime proof.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"outcome-timeout","statement":"Scoped repository patches can survive 8-9 second Forgejo write latency without false timeout failure.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]}],"objective":"Resume the same control-plane timeout repair with explicit owner-authorized maintenance scope. Change only workers/cc-execution/src/scoped-repo-patch-policy.js and workers/cc-execution/src/version.js as already specified, then one PR, Gate, squash merge, cc-execution release, runtime proof.","constraints":[{"id":"bounded-control-plane","statement":"Only scoped-repo-patch-policy.js and version.js change.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"Updated cc-execution runtime is deployed and healthy.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Resume-the-same-control-plane-timeout-repair-with-explicit-owner-authorized-maintenance-scope.-Chang","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":["ccExecution"],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["proof-cc"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"374f60d6bc260d65033acece20f1a6b8bb9f03c67cfbbd3bc4eae59469df1d76","requestContractRevision":2,"previousRequestContractHash":"62f23b4d0aaf96343a186e0790cff1dc42b1608f1f5354592eeaa12cca013d97"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:14:47.61889+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:acdb7521-1245-4b43-881a-bd2345be622b:request-contract:374f60d6bc260d65033acece20f1a6b8bb9f03c67cfbbd3bc4eae59469df1d76","mission_step_id":"d6b7a3db-9925-440a-b818-536f37244864","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"da962196-e406-41bb-928f-3a348ed11458","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","supabase-migrations/live":"success"},"mainSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"success"},"requestContractHash":"fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9605","runId":9605,"status":"success","sourceSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"migrations":"success"},"targetJobCount":7,"observedTargetStates":{"migrations":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:04:29.819204+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","external_id":"forgejo-main-66841c5ecffe","receipt_type":"canonical_release_status","idempotency_key":"mission:f0b88042-7665-45be-9efb-8d9b3849dfd0:forgejo-release-status:66841c5ecffefcb5fecf50844c5ba8ddc7a33216:verified:forgejo-main/source=success|forgejo-release/workflow=success|supabase-migrations/live=success","mission_step_id":"56296fad-5b44-40e7-97a2-dbaa9e9b3d5c","command_center_event_id":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},{"id":"d87a16e1-573f-44c6-b5d9-e7e4bccff372","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"repo","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"ed192ce4076a2b88fedcdd3ac7399c45ba2036d1","prNumber":3104,"gateRunId":9604,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9604/jobs/1","mergeCommitSha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216"}],"requestContractHash":"fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:04:33.064783+00:00","proof_gate":"request_contract_repository_verified","source_sha":"66841c5ecffefcb5fecf50844c5ba8ddc7a33216","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:f0b88042-7665-45be-9efb-8d9b3849dfd0:request-contract-repository:fe864c61df8bef38a50040b619c0c060e87847f39cf980132fca0dd4df0d6a10:66841c5ecffefcb5fecf50844c5ba8ddc7a33216","mission_step_id":"56296fad-5b44-40e7-97a2-dbaa9e9b3d5c","command_center_event_id":"f0b88042-7665-45be-9efb-8d9b3849dfd0"},{"id":"de1a0436-df6e-4492-83cc-6a4eca6ae51c","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/duplicate-index-cleanup","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3107,"terminal":false,"missionId":"b43a8d0c-a100-46d3-b813-a223cedef50d","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":12089,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":1719,"missionSetupMs":331,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":331,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":331,"repositoryMutationMs":10370,"repositoryProviderMs":10370,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":4563,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":331,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":5807},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"b43a8d0c-a100-46d3-b813-a223cedef50d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3163,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:08:17.697606+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3107","receipt_type":"execute_mission","idempotency_key":"mission:b43a8d0c-a100-46d3-b813-a223cedef50d:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"49a6e663-bcbd-4061-ae6b-0b2dcb06636b","command_center_event_id":"b43a8d0c-a100-46d3-b813-a223cedef50d"},{"id":"6ec52107-e253-411c-9bfd-9a41bb03be3e","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/duplicate-index-cleanup","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3107,"terminal":false,"missionId":"b43a8d0c-a100-46d3-b813-a223cedef50d","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":8207,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1100,"approvedPlanMs":0,"missionSetupMs":787,"providerAuthMs":0,"shipAndProveMs":6529,"ledgerPrepareMs":276,"ledgerReconcileMs":0,"lineageReconcileMs":511,"resolvePreflightMs":787,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":276,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"b43a8d0c-a100-46d3-b813-a223cedef50d"},"performance":null,"deploymentId":"forgejo-main-e2cce4717289","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2581,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:08:47.940948+00:00","proof_gate":"canonical_release_dispatched","source_sha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","external_id":"forgejo-main-e2cce4717289","receipt_type":"execute_mission","idempotency_key":"mission:b43a8d0c-a100-46d3-b813-a223cedef50d:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"bacc168b-df53-4c03-acd2-c982bae1a2c8","command_center_event_id":"b43a8d0c-a100-46d3-b813-a223cedef50d"},{"id":"4e6a7451-dd87-4f87-837e-e0d4641de8b9","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"57bb3b162c18f5c6773d7272b48a73c391204a44","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"outcome-1","satisfied":true,"statement":"Implement a canonical KNOCKLAUNCH Tenant Activation Certification primitive on current Forgejo main. A newly created or materially reconfigured tenant must not be considered activation-ready until deterministic automated checks prove: canonical persisted tenant classification exists; tenant application assignments resolve through the platform registry; generated/private routes resolve to the intended application and intended tenant context and fail closed on missing/invalid context; tenant-scoped storage/bootstrap dependencies required by its workspace profile are ready; canonical Profile and Settings universal surfaces resolve; exactly one account/avatar menu owner is present by contract (not DOM scraping); invitation/onboarding capability has a valid ready or explicit prerequisite state; and one representative tenant-scoped write/read capability can be proven without cross-tenant leakage. Encode this as a shared platform capability/contract and reusable automated validation invoked by tenant bootstrap/activation rather than tenant-specific code. Do not activate or mutate customer tenant data as part of implementation; use existing registries/contracts and deterministic fixtures/c","proofConditionIds":["proof-production"]}],"satisfied":true,"constraints":[{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["proof-production"]}],"contractHash":"340bd57e5dd2415fd885fb705a3bcebfdf13a1016ad6a3921de0ccb769ff79c9","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"proof-production","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":false,"releaseTargetStates":{"frontend":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["frontend"],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"migrationReleaseVerified":null,"releaseRequestContractHash":"340bd57e5dd2415fd885fb705a3bcebfdf13a1016ad6a3921de0ccb769ff79c9"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["frontend"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:52:37.106085+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"57bb3b162c18f5c6773d7272b48a73c391204a44","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:3dcc3ce5-964d-47ce-9b20-f548d4476bac:request-contract:340bd57e5dd2415fd885fb705a3bcebfdf13a1016ad6a3921de0ccb769ff79c9:57bb3b162c18f5c6773d7272b48a73c391204a44:verified:","mission_step_id":"fec73cf7-ee3b-48dc-a15b-76fb9ca1af76","command_center_event_id":"3dcc3ce5-964d-47ce-9b20-f548d4476bac"},{"id":"15f7dcd3-b24b-41e4-9488-a493c7456823","source":"cc-execution","status":"blocked","payload":{"reason":"control_plane_maintenance_request_contract_required","fingerprint":"551b951fc818d051b49219d4f50c864c4c644249655f17b58e4d1ebb3c4957ba"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T18:23:49.914803+00:00","proof_gate":"repository_mutation_intent_deterministic_failure","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent_blocked","idempotency_key":"mission:618c39d5-2c42-4512-906b-f385844795a3:repository-mutation-intent-blocked:551b951fc818d051b49219d4f50c864c4c644249655f17b58e4d1ebb3c4957ba","mission_step_id":"e0126cbc-d2e9-4971-a61b-2834b39600ea","command_center_event_id":"618c39d5-2c42-4512-906b-f385844795a3"},{"id":"56ab4ed8-2755-4094-b7cc-de2994466998","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Repair the shared tenant Workspace Health 500 caused by application_catalog schema drift. In tenant-media-library capabilityRegistryForTenant, stop selecting the four non-existent production columns access_model, installability, configuration_entry, and workspace_entry; keep registryMetadata's optional fallback behavior unchanged. Add a regression contract that binds the Workspace Health application_catalog select to the live production column contract. Preserve authorization, tenant isolation, repair classifications, resource-bounded repair_bootstrap, current applications, data, routes, storage ownership, and all unrelated media behavior. Release only tenant-media-library, then prove the live tenant_workspace_repair command completes for tenant d60e3c27-73ed-4a5f-a49b-c37636455daf as healthy or review-only without raw 500/546 failure.","wordingChanged":false,"canonicalIntent":"Repair the shared tenant Workspace Health 500 caused by application_catalog schema drift. In tenant-media-library capabilityRegistryForTenant, stop selecting the four non-existent production columns access_model, installability, configuration_entry, and workspace_entry; keep registryMetadata's optional fallback behavior unchanged. Add a regression contract that binds the Workspace Health application_catalog select to the live production column contract. Preserve authorization, tenant isolation, repair classifications, resource-bounded repair_bootstrap, current applications, data, routes, storage ownership, and all unrelated media behavior. Release only tenant-media-library, then prove the live tenant_workspace_repair command completes for tenant d60e3c27-73ed-4a5f-a49b-c37636455daf as healthy or review-only without raw 500/546 failure.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"workspace-health-catalog","statement":"Workspace Health reads only columns owned by the live application_catalog schema so canonical tenant repair no longer fails with the shared PostgREST 500.","proofConditionIds":["repo-proof","live-repair-proof"]}],"objective":"Repair the shared tenant Workspace Health 500 caused by application_catalog schema drift. In tenant-media-library capabilityRegistryForTenant, stop selecting the four non-existent production columns access_model, installability, configuration_entry, and workspace_entry; keep registryMetadata's optional fallback behavior unchanged. Add a regression contract that binds the Workspace Health application_catalog select to the live production column contract. Preserve authorization, tenant isolation, repair classifications, resource-bounded repair_bootstrap, current applications, data, routes, storage ownership, and all unrelated media behavior. Release only tenant-media-library, then prove the live tenant_workspace_repair command completes for tenant d60e3c27-73ed-4a5f-a49b-c37636455daf as healthy or review-only without raw 500/546 failure.","constraints":[{"id":"isolation","statement":"Preserve authorization, tenant isolation, storage ownership fail-closed behavior, and review-only classifications.","proofConditionIds":["repo-proof"]},{"id":"bounded-release","statement":"Release only the tenant-media-library Supabase Edge Function for this corrective generation.","proofConditionIds":["live-repair-proof"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo-proof","live-repair-proof"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo-proof","live-repair-proof"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"repo-proof","kind":"repository","claim":"Current source removes the four ghost application_catalog columns from the Workspace Health select and regression coverage binds the live select contract.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["supabaseEdge"],"requiredReleaseTargets":["supabaseEdge"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"live-repair-proof","kind":"runtime","claim":"The exact released tenant-media-library permits the existing live Command Center tenant_workspace_repair operation to return a verified healthy or review-only receipt for 321 Auto Unlock without a raw 500 or 546 dead-end.","route":null,"roleRef":"GodMode","userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["supabaseEdge"],"requiredReleaseTargets":["supabaseEdge"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Repair-the-shared-tenant-Workspace-Health-500-caused-by-application_catalog-schema-drift.-In-tenant-","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":["supabaseEdge"],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["repo-proof","live-repair-proof"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"01996256fc41c8ebfaed953bc39cd67288f2e8567da8bff6783b9129fd03e01f","requestContractRevision":5,"previousRequestContractHash":"29063bcee7064dbf7381c894e8ec89b0da9cd214596b0551f84028ec5b80be63"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T16:16:01.370154+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:535002f0-048f-4534-bd43-10cea3d2d86f:request-contract:01996256fc41c8ebfaed953bc39cd67288f2e8567da8bff6783b9129fd03e01f","mission_step_id":"8e980e5c-a854-41e9-8a3c-24ebdb3a1a9c","command_center_event_id":"535002f0-048f-4534-bd43-10cea3d2d86f"},{"id":"93bd1876-bd2d-4522-bfa0-f9bf39f8a46d","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/auth-only-rpc-anon-hardening","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3106,"terminal":false,"missionId":"0ea68f23-d392-4e94-8448-d735cab59e7d","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":9605,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":912,"missionSetupMs":1063,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":1063,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":1063,"repositoryMutationMs":8693,"repositoryProviderMs":8693,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":2886,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":1063,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":5807},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"0ea68f23-d392-4e94-8448-d735cab59e7d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3194,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:05:11.965533+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3106","receipt_type":"execute_mission","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"19cf496d-e324-4320-8b7b-6abd06bd00ae","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"c6ae026f-2fbd-4cce-8ae9-1d12718914db","source":"durable-mission-ledger","status":"pending","payload":{"sourceSha":"36051880216d2f46588952b54eef50ed89c83b21","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"anon-closed","satisfied":false,"statement":"The eight authenticated-only authorization helpers are no longer directly executable by anon/PUBLIC.","proofConditionIds":["repo","runtime","advisor"]},{"id":"auth-preserved","satisfied":true,"statement":"Authenticated and service_role retain EXECUTE and authenticated-only RLS references remain intact.","proofConditionIds":["runtime"]}],"satisfied":false,"constraints":[{"id":"scope","satisfied":false,"statement":"Do not change function bodies, RLS policies, public-policy helpers, public portal/booking/academy/calendar endpoints, or other grants.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":false,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":false,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":null,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":null,"repositoryProofPath":null,"requestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"required","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":false,"repositoryProofSourceSha":null},"required":true,"satisfied":false},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":["repository"],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:07:26.093889+00:00","proof_gate":"request_contract_pending","source_sha":"36051880216d2f46588952b54eef50ed89c83b21","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:request-contract:e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5:36051880216d2f46588952b54eef50ed89c83b21:pending:repository","mission_step_id":"5ad00099-41af-4bc7-9fc7-c1458ec29ffc","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"0cfea92a-d8ff-4e50-bc3f-5f7a9a7ddbd0","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"36051880216d2f46588952b54eef50ed89c83b21","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"repo","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"3c2ae1751737f7a7c2798adff58c1379d78d0810","prNumber":3106,"gateRunId":9607,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9607/jobs/1","mergeCommitSha":"36051880216d2f46588952b54eef50ed89c83b21"}],"requestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:07:29.193819+00:00","proof_gate":"request_contract_repository_verified","source_sha":"36051880216d2f46588952b54eef50ed89c83b21","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:request-contract-repository:e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5:36051880216d2f46588952b54eef50ed89c83b21","mission_step_id":"5ad00099-41af-4bc7-9fc7-c1458ec29ffc","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"6db31ecd-862f-4f9c-9eef-9e3ef32145b4","source":"forgejo","status":"waiting","payload":{"branch":"ai/duplicate-index-cleanup","prNumber":3107,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:09:00.216334+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","external_id":"3107","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:b43a8d0c-a100-46d3-b813-a223cedef50d:merged-pr:3107:e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","mission_step_id":"bacc168b-df53-4c03-acd2-c982bae1a2c8","command_center_event_id":"b43a8d0c-a100-46d3-b813-a223cedef50d"},{"id":"5eeefa0b-5552-4870-bd04-e9d478a42340","source":"cc-execution","status":"authorized","payload":{"paths":["workers/cc-execution/src/scoped-repo-patch-policy.js","workers/cc-execution/src/version.js"],"reason":"Owner-authorized repair required to unblock repeated scoped repository mutation timeouts that are preventing the Big Papi production fix.","baseSha":"6d7c30cd6db5129c2d7c60cab79b88e46563f058","issuedAt":1790234089481,"expiresAt":1790234269481,"missionId":"acdb7521-1245-4b43-881a-bd2345be622b","authorizationId":"615bb8db-044b-4ff5-bc2e-edd25e031401","retryableWithinExactScope":true},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:14:49.781941+00:00","proof_gate":"control_plane_maintenance_scope_authorized","source_sha":"6d7c30cd6db5129c2d7c60cab79b88e46563f058","external_id":null,"receipt_type":"control_plane_maintenance_authorization","idempotency_key":"control-plane-maintenance-authorize:615bb8db-044b-4ff5-bc2e-edd25e031401","mission_step_id":"0542c77f-b0db-43b3-8b7c-3b83ce570fdb","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"a852b489-6abf-4448-b297-a7202517d911","source":"forgejo","status":"waiting","payload":{"branch":"ai/duplicate-unique-constraint-cleanup","prNumber":3108,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"0f45522fffece57357f0d96ba07f196db8dcf4d6","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:11:06.485125+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"0f45522fffece57357f0d96ba07f196db8dcf4d6","external_id":"3108","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:368c6464-5d65-4c4c-bb5a-044004d6d3fe:merged-pr:3108:0f45522fffece57357f0d96ba07f196db8dcf4d6","mission_step_id":"103c787d-af9d-4e37-8562-a163d0a8482f","command_center_event_id":"368c6464-5d65-4c4c-bb5a-044004d6d3fe"},{"id":"377923cd-3932-4b65-95e7-70a83b133856","source":"cc-execution","status":"blocked","payload":{"reason":"existing_branch_without_open_pr_branch_diverged_or_unproven:ai/objective-first-repair-acdb75211245","fingerprint":"9ebf640519a6f81b62b6ed29afee0f2fe373dae5beccaae43cca539e32ec2572"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:15:18.935548+00:00","proof_gate":"repository_mutation_intent_deterministic_failure","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent_blocked","idempotency_key":"mission:acdb7521-1245-4b43-881a-bd2345be622b:repository-mutation-intent-blocked:9ebf640519a6f81b62b6ed29afee0f2fe373dae5beccaae43cca539e32ec2572","mission_step_id":"d6b7a3db-9925-440a-b818-536f37244864","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"e4a8e1c6-cf9a-44cf-beed-a2dd38f1f580","source":"cc-execution","status":"release_reconciliation_pending","payload":{"ok":true,"jobId":null,"phase":"release","branch":"ai/objective-first-repair-ddc4d9fea167","reason":null,"status":"release_reconciliation_pending","metrics":{"receiptBytes":31918,"releaseCount":0,"toolCallCount":6,"repeatedCallCount":2,"executorlessWaitMs":421398,"firstUsefulResultAt":"2026-09-24T15:50:29.382Z","recoveryAttemptCount":0,"ownerInterruptionCount":0},"version":"1.58.260-release-actions-query-parity","prNumber":3635,"terminal":false,"missionId":"ddc4d9fe-a167-4bce-8a9c-3429ab3491e7","operation":"execute_mission","proofGate":"canonical_release_reconciliation_pending","sourceSha":"6bc90f59a6a40e54f5e11502e8e67a5bd3b155e7","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":1358,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":146,"approvedPlanMs":0,"missionSetupMs":1751,"providerAuthMs":0,"shipAndProveMs":576,"ledgerPrepareMs":778,"ledgerReconcileMs":0,"lineageReconcileMs":973,"resolvePreflightMs":1751,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":778,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"reconcile_release","receiptRef":{"mode":"full","missionId":"ddc4d9fe-a167-4bce-8a9c-3429ab3491e7"},"performance":null,"deploymentId":"forgejo-main-6bc90f59a6a4","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":true,"onrunner":false,"migrations":false,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2918,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T15:57:32.940649+00:00","proof_gate":"canonical_release_reconciliation_pending","source_sha":"6bc90f59a6a40e54f5e11502e8e67a5bd3b155e7","external_id":"forgejo-main-6bc90f59a6a4","receipt_type":"execute_mission","idempotency_key":"mission:ddc4d9fe-a167-4bce-8a9c-3429ab3491e7:execute_mission:canonical_release_reconciliation_pending:current-generation","mission_step_id":"fb06ea62-00da-45e2-acd6-1d0905ffe582","command_center_event_id":"ddc4d9fe-a167-4bce-8a9c-3429ab3491e7"},{"id":"bd0d2f32-07eb-45f1-a916-267c2989db1e","source":"cc-execution","status":"in_progress","payload":{"ok":true,"jobId":null,"phase":"pull_request","branch":"ai/auth-only-rpc-anon-hardening","reason":null,"status":"in_progress","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3106,"terminal":false,"missionId":"0ea68f23-d392-4e94-8448-d735cab59e7d","operation":"execute_mission","proofGate":"canonical_release_reconciliation_pending","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":6280,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1745,"approvedPlanMs":0,"missionSetupMs":878,"providerAuthMs":0,"shipAndProveMs":3768,"ledgerPrepareMs":310,"ledgerReconcileMs":0,"lineageReconcileMs":568,"resolvePreflightMs":878,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":310,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":"Reconcile this same mission and pull request automatically; do not create replacement work.","receiptRef":{"mode":"full","missionId":"0ea68f23-d392-4e94-8448-d735cab59e7d"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":1480,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:05:50.495447+00:00","proof_gate":"canonical_release_reconciliation_pending","source_sha":null,"external_id":"3106","receipt_type":"execute_mission","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:execute_mission:canonical_release_reconciliation_pending:current-generation","mission_step_id":"7c3bb05b-3d92-464b-9478-4395b89bf91d","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"75acf409-7963-459d-9b8c-ba28ada592dd","source":"cc-execution","status":"deployment_dispatched","payload":{"ok":true,"jobId":null,"phase":"release","branch":"ai/auth-only-rpc-anon-hardening","reason":null,"status":"deployment_dispatched","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3106,"terminal":false,"missionId":"0ea68f23-d392-4e94-8448-d735cab59e7d","operation":"execute_mission","proofGate":"canonical_release_dispatched","sourceSha":"36051880216d2f46588952b54eef50ed89c83b21","timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":10109,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":1906,"approvedPlanMs":0,"missionSetupMs":968,"providerAuthMs":0,"shipAndProveMs":7682,"ledgerPrepareMs":301,"ledgerReconcileMs":0,"lineageReconcileMs":667,"resolvePreflightMs":968,"repositoryMutationMs":0,"repositoryProviderMs":0,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":0,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":301,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":0},"nextAction":null,"receiptRef":{"mode":"full","missionId":"0ea68f23-d392-4e94-8448-d735cab59e7d"},"performance":null,"deploymentId":"forgejo-main-36051880216d","releaseState":null,"workflowRunId":null,"releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":["repository","runtime","runtime"],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":2621,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:06:34.561528+00:00","proof_gate":"canonical_release_dispatched","source_sha":"36051880216d2f46588952b54eef50ed89c83b21","external_id":"forgejo-main-36051880216d","receipt_type":"execute_mission","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:execute_mission:canonical_release_dispatched:current-generation","mission_step_id":"7c3bb05b-3d92-464b-9478-4395b89bf91d","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"d2b8f38c-f835-48bb-8357-769deaa21806","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","supabase-migrations/live":"success"},"mainSha":"36051880216d2f46588952b54eef50ed89c83b21","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"36051880216d2f46588952b54eef50ed89c83b21","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"success"},"requestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5","forgejoWorkflowProof":{"url":"https://git.knocklaunch.app/noel/KnockLaunchOS/actions/runs/9609","runId":9609,"status":"success","sourceSha":"36051880216d2f46588952b54eef50ed89c83b21","conclusion":null,"failedJobs":[],"diagnostics":null,"exactSource":true,"targetStates":{"migrations":"success"},"targetJobCount":7,"observedTargetStates":{"migrations":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:07:24.6455+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"36051880216d2f46588952b54eef50ed89c83b21","external_id":"forgejo-main-36051880216d","receipt_type":"canonical_release_status","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:forgejo-release-status:36051880216d2f46588952b54eef50ed89c83b21:verified:forgejo-main/source=success|forgejo-release/workflow=success|supabase-migrations/live=success","mission_step_id":"5ad00099-41af-4bc7-9fc7-c1458ec29ffc","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"1f1e2013-05d3-41bf-a31d-43c165cc4ba6","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"36051880216d2f46588952b54eef50ed89c83b21","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"anon-closed","satisfied":true,"statement":"The eight authenticated-only authorization helpers are no longer directly executable by anon/PUBLIC.","proofConditionIds":["repo","runtime","advisor"]},{"id":"auth-preserved","satisfied":true,"statement":"Authenticated and service_role retain EXECUTE and authenticated-only RLS references remain intact.","proofConditionIds":["runtime"]}],"satisfied":true,"constraints":[{"id":"scope","satisfied":true,"statement":"Do not change function bodies, RLS policies, public-policy helpers, public portal/booking/academy/calendar endpoints, or other grants.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":9607,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":true,"repositoryProofSourceSha":"36051880216d2f46588952b54eef50ed89c83b21"},"required":true,"satisfied":true},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:07:30.510357+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"36051880216d2f46588952b54eef50ed89c83b21","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:0ea68f23-d392-4e94-8448-d735cab59e7d:request-contract:e5156bd7344a514b0d2625e01db5be88d61afd6d0798410796463972645c83b5:36051880216d2f46588952b54eef50ed89c83b21:verified:","mission_step_id":"5ad00099-41af-4bc7-9fc7-c1458ec29ffc","command_center_event_id":"0ea68f23-d392-4e94-8448-d735cab59e7d"},{"id":"3d7bfb20-d412-4d90-bca9-0464e96b278a","source":"forgejo-runtime","status":"pending","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"pending","supabase-migrations/live":"pending"},"mainSha":"0f45522fffece57357f0d96ba07f196db8dcf4d6","missing":[],"pending":["forgejo-release/workflow","supabase-migrations/live"],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"0f45522fffece57357f0d96ba07f196db8dcf4d6","releaseState":"pending","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"pending"},"requestContractHash":"b57cfdde0f63951f1664bccc8d27a2d48ee62410375278ea50352ac502e87308","forgejoWorkflowProof":{"runId":9614,"source":"signed_push_receipt","status":"running","results":{},"conclusion":"running","targetStates":{"migrations":"pending"},"targetJobCount":7,"observedTargetStates":{"migrations":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:11:08.539989+00:00","proof_gate":"canonical_release_pending","source_sha":"0f45522fffece57357f0d96ba07f196db8dcf4d6","external_id":"forgejo-main-0f45522fffec","receipt_type":"canonical_release_status","idempotency_key":"mission:368c6464-5d65-4c4c-bb5a-044004d6d3fe:forgejo-release-status:0f45522fffece57357f0d96ba07f196db8dcf4d6:pending:forgejo-main/source=success|forgejo-release/workflow=pending|supabase-migrations/live=pending","mission_step_id":"103c787d-af9d-4e37-8562-a163d0a8482f","command_center_event_id":"368c6464-5d65-4c4c-bb5a-044004d6d3fe"},{"id":"1bccc6a3-1b14-46cb-bd9c-600f9400fd16","source":"cc-execution","status":"recorded","payload":{"objective":"IMPLEMENT the approved premium redesign on the existing live 321 Auto Unlock customer site at https://321autounlock.com/. The supplied approved reference is the visual target; do not generate another mockup. Preserve all current real content/functionality: actual 321 logo, working hero video, LOCKED OUT? LET'S FIX THAT, Brevard County mobile lockout positioning, Palm Bay/Melbourne/Titusville/Space Coast, emergency 911 notice, Start My Unlock, current three-step explainer, and existing vehicle lockout request/sign/submit flow. Preserve black + electric/cyan blue identity. Apply the reference's premium cinematic treatment: layered dark Space Coast/night atmosphere, blue illumination/reflections, glass panels, cyan edge glow, stronger hero hierarchy, polished CTA/header, depth and premium section transitions. Do not invent services, response times, founding dates, reviews, statistics, phone numbers, claims, or navigation destinations. Hero video remains prominent and working. Responsive mobile must preserve the same design language and functionality. Use CSS atmospheric layers if no approved photographic background asset exists. One frontend branch, one PR, canonical Gate, squash merge, Cloudflare release, then visual proof at https://321autounlock.com/.","tenantRef":"321-auto-unlock","receivedAt":"2026-09-24T16:02:08.507Z","fingerprint":"9a92ecf7beef7f5f9533f77bd220eef2fd999651fb1cdd820746ab7b363f884e","workstreamRef":"321autounlock","conversationId":null,"canonicalBranch":null,"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"IMPLEMENT the approved premium redesign on the existing live 321 Auto Unlock customer site at https://321autounlock.com/. The supplied approved reference is the visual target; do not generate another mockup. Preserve all current real content/functionality: actual 321 logo, working hero video, LOCKED OUT? LET'S FIX THAT, Brevard County mobile lockout positioning, Palm Bay/Melbourne/Titusville/Space Coast, emergency 911 notice, Start My Unlock, current three-step explainer, and existing vehicle lockout request/sign/submit flow. Preserve black + electric/cyan blue identity. Apply the reference's premium cinematic treatment: layered dark Space Coast/night atmosphere, blue illumination/reflections, glass panels, cyan edge glow, stronger hero hierarchy, polished CTA/header, depth and premium section transitions. Do not invent services, response times, founding dates, reviews, statistics, phone numbers, claims, or navigation destinations. Hero video remains prominent and working. Responsive mobile must preserve the same design language and functionality. Use CSS atmospheric layers if no approved photographic background asset exists. One frontend branch, one PR, canonical Gate, squash merge, Cloudflare release, then visual proof at https://321autounlock.com/.","wordingChanged":false,"canonicalIntent":"IMPLEMENT the approved premium redesign on the existing live 321 Auto Unlock customer site at https://321autounlock.com/. The supplied approved reference is the visual target; do not generate another mockup. Preserve all current real content/functionality: actual 321 logo, working hero video, LOCKED OUT? LET'S FIX THAT, Brevard County mobile lockout positioning, Palm Bay/Melbourne/Titusville/Space Coast, emergency 911 notice, Start My Unlock, current three-step explainer, and existing vehicle lockout request/sign/submit flow. Preserve black + electric/cyan blue identity. Apply the reference's premium cinematic treatment: layered dark Space Coast/night atmosphere, blue illumination/reflections, glass panels, cyan edge glow, stronger hero hierarchy, polished CTA/header, depth and premium section transitions. Do not invent services, response times, founding dates, reviews, statistics, phone numbers, claims, or navigation destinations. Hero video remains prominent and working. Responsive mobile must preserve the same design language and functionality. Use CSS atmospheric layers if no approved photographic background asset exists. One frontend branch, one PR, canonical Gate, squash merge, Cloudflare release, then visual proof at https://321autounlock.com/.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"legacy_derived","version":1,"outcomes":[{"id":"outcome-1","statement":"IMPLEMENT the approved premium redesign on the existing live 321 Auto Unlock customer site at https://321autounlock.com/. The supplied approved reference is the visual target; do not generate another mockup. Preserve all current real content/functionality: actual 321 logo, working hero video, LOCKED OUT? LET'S FIX THAT, Brevard County mobile lockout positioning, Palm Bay/Melbourne/Titusville/Space Coast, emergency 911 notice, Start My Unlock, current three-step explainer, and existing vehicle lockout request/sign/submit flow. Preserve black + electric/cyan blue identity. Apply the reference's premium cinematic treatment: layered dark Space Coast/night atmosphere, blue illumination/reflections, glass panels, cyan edge glow, stronger hero hierarchy, polished CTA/header, depth and premium section transitions. Do not invent services, response times, founding dates, reviews, statistics, phone numbers, claims, or navigation destinations. Hero video remains prominent and working. Responsive mobile must preserve the same design language and functionality. Use CSS atmospheric layers if no approved photographic background asset exists. One frontend branch, one PR, canonical Gate, squash merg","provenance":{"reason":null,"source":"current_request_inference","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]}],"objective":"IMPLEMENT the approved premium redesign on the existing live 321 Auto Unlock customer site at https://321autounlock.com/. The supplied approved reference is the visual target; do not generate another mockup. Preserve all current real content/functionality: actual 321 logo, working hero video, LOCKED OUT? LET'S FIX THAT, Brevard County mobile lockout positioning, Palm Bay/Melbourne/Titusville/Space Coast, emergency 911 notice, Start My Unlock, current three-step explainer, and existing vehicle lockout request/sign/submit flow. Preserve black + electric/cyan blue identity. Apply the reference's premium cinematic treatment: layered dark Space Coast/night atmosphere, blue illumination/reflections, glass panels, cyan edge glow, stronger hero hierarchy, polished CTA/header, depth and premium section transitions. Do not invent services, response times, founding dates, reviews, statistics, phone numbers, claims, or navigation destinations. Hero video remains prominent and working. Responsive mobile must preserve the same design language and functionality. Use CSS atmospheric layers if no approved photographic background asset exists. One frontend branch, one PR, canonical Gate, squash merge, Cloudflare release, then visual proof at https://321autounlock.com/.","constraints":[{"id":"visual-artifact-scope","statement":"The requested visual artifact type is authoritative: logo only. Do not add unrelated or mixed visual surfaces unless the owner explicitly requested them.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]},{"id":"visual-content-truth","statement":"Do not present invented names, metrics, prices, dates, services, testimonials, credentials, customer records, or other unknown business facts as real. Omit unknowns or mark them clearly as placeholder/example content.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]},{"id":"tenant-visual-isolation","statement":"Visual work is isolated to 321-auto-unlock. Do not import another tenant's logo, colors, imagery, copy, shell, customer data, business facts, or visual identity unless explicitly requested.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]},{"id":"visual-viewport-authority","statement":"The requested mobile viewport/form factor is authoritative. Do not create a mixed-device composite or add another viewport unless explicitly requested.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production","proof-visual"]},{"id":"reference-visual-fidelity","statement":"The approved reference owns the material visual composition: hierarchy, major geometry, typography scale, spacing rhythm, image placement/crop, color treatment, radii, shadows/glow, and overall density. Material deviation is a failed visual acceptance, not a stylistic reinterpretation.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"responsive-visual-continuity","statement":"Responsive adaptation may reflow for the target viewport, but it must preserve information hierarchy, branding, functionality, and design language. It must not invent a second design.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"reference-visual-authority","statement":"The supplied or approved reference visual is immutable acceptance evidence. Generating another mockup, image, or concept cannot satisfy this implementation request; completion requires source implementation, deployment, and reference-matched visual proof.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-visual"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","provenance":{"reason":null,"source":"heuristic_current_objective","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-production"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-production","kind":"runtime","claim":"IMPLEMENT the approved premium redesign on the existing live 321 Auto Unlock customer site at https://321autounlock.com/. The supplied approved reference is the visual target; do not generate another mockup. Preserve all current real content/functionality: actual 321 logo, working hero video, LOCKED OUT? LET'S FIX THAT, Brevard County mobile lockout positioning, Palm Bay/Melbourne/Titusville/Space Coast, emergency 911 notice, Start My Unlock, current three-step explainer, and existing vehicle lockout request/sign/submit flow. Preserve black + electric/cyan blue identity. Apply the reference's premium cinematic treatment: layered dark Space Coast/night atmosphere, blue illumination/reflections, glass panels, cyan edge glow, stronger hero hierarchy, polished CTA/header, depth and premium section transitions. Do not invent services, response times, founding dates, reviews, statistics, phone numbers, claims, or navigation destinations. Hero video remains prominent and working. Responsive m","route":"https://321autounlock.com/","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false},{"id":"proof-visual","kind":"visual","claim":"IMPLEMENT the approved premium redesign on the existing live 321 Auto Unlock customer site at https://321autounlock.com/. The supplied approved reference is the visual target; do not generate another mockup. Preserve all current real content/functionality: actual 321 logo, working hero video, LOCKED OUT? LET'S FIX THAT, Brevard County mobile lockout positioning, Palm Bay/Melbourne/Titusville/Space Coast, emergency 911 notice, Start My Unlock, current three-step explainer, and existing vehicle lockout request/sign/submit flow. Preserve black + electric/cyan blue identity. Apply the reference's premium cinematic treatment: layered dark Space Coast/night atmosphere, blue illumination/reflections, glass panels, cyan edge glow, stronger hero hierarchy, polished CTA/header, depth and premium section transitions. Do not invent services, response times, founding dates, reviews, statistics, phone numbers, claims, or navigation destinations. Hero video remains prominent and working. Responsive m","route":"https://321autounlock.com/","roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":[],"requiredReleaseTargets":[],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"IMPLEMENT-the-approved-premium-redesign-on-the-existing-live-321-Auto-Unlock-customer-site-at-https:","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":[],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["proof-production"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestedBranch":null,"conversationContext":null,"requestContractHash":"52229257e1f1037314759fe9f149b6803a3af0e10451e94fd1644d8c6db216ed","requestContractRevision":1},"tenant_id":"d60e3c27-73ed-4a5f-a49b-c37636455daf","created_at":"2026-09-24T16:02:08.835403+00:00","proof_gate":"tenant_workstream_contribution_recorded","source_sha":null,"external_id":null,"receipt_type":"tenant_workstream_contribution","idempotency_key":"mission:e2edc1a5-b5e1-4a56-b0bd-dbecf56aecb3:tenant-workstream-contribution:9a92ecf7beef7f5f9533f77bd220eef2fd999651fb1cdd820746ab7b363f884e","mission_step_id":null,"command_center_event_id":"e2edc1a5-b5e1-4a56-b0bd-dbecf56aecb3"},{"id":"8bbb24ec-3a2f-4fa1-9372-bd7362142109","source":"forgejo-exact-source","status":"verified","payload":{"sourceSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","repository":"noel/KnockLaunchOS","repositoryProofs":[{"id":"repo","path":null,"proof":"forgejo_merged_pr_exact_head_gate","headSha":"9143597681d6e4707d87e6191d16e9be40671641","prNumber":3107,"gateRunId":9611,"gateContext":"KnockLaunch Gate / KnockLaunch Gate (pull_request)","expectedText":null,"gateTargetUrl":"/noel/KnockLaunchOS/actions/runs/9611/jobs/1","mergeCommitSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f"}],"requestContractHash":"0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc","namedGateEvidenceReceiptVersion":null},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:09:05.036744+00:00","proof_gate":"request_contract_repository_verified","source_sha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","external_id":null,"receipt_type":"request_contract_repository_status","idempotency_key":"mission:b43a8d0c-a100-46d3-b813-a223cedef50d:request-contract-repository:0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc:e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","mission_step_id":"fa4e0d55-4d2f-4094-858a-d01e266e4e72","command_center_event_id":"b43a8d0c-a100-46d3-b813-a223cedef50d"},{"id":"e062f106-3612-4caf-ac5a-b31c955723bd","source":"forgejo-runtime","status":"pending","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"pending","supabase-migrations/live":"pending"},"mainSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","missing":[],"pending":["forgejo-release/workflow","supabase-migrations/live"],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","releaseState":"pending","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"pending"},"requestContractHash":"0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc","forgejoWorkflowProof":{"runId":9612,"source":"signed_push_receipt","status":"blocked","results":{},"conclusion":"blocked","targetStates":{"migrations":"pending"},"targetJobCount":7,"observedTargetStates":{"migrations":"pending"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:09:02.767452+00:00","proof_gate":"canonical_release_pending","source_sha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","external_id":"forgejo-main-e2cce4717289","receipt_type":"canonical_release_status","idempotency_key":"mission:b43a8d0c-a100-46d3-b813-a223cedef50d:forgejo-release-status:e2cce4717289ffbfcbbcfb658cc56a20df1aab2f:pending:forgejo-main/source=success|forgejo-release/workflow=pending|supabase-migrations/live=pending","mission_step_id":"bacc168b-df53-4c03-acd2-c982bae1a2c8","command_center_event_id":"b43a8d0c-a100-46d3-b813-a223cedef50d"},{"id":"94de659a-dc33-434d-aada-8af98701d79d","source":"durable-mission-ledger","status":"verified","payload":{"sourceSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","requestContractProof":{"legacy":false,"present":true,"outcomes":[{"id":"duplicates-removed","satisfied":true,"statement":"Six duplicate non-constraint indexes are removed while one structurally identical index remains for each access path.","proofConditionIds":["repo","runtime","advisor"]},{"id":"constraints-preserved","satisfied":true,"statement":"No constraints or constraint-owned indexes are altered.","proofConditionIds":["repo","runtime"]}],"satisfied":true,"constraints":[{"id":"scope","satisfied":true,"statement":"Do not alter academy_enrollments or site_config duplicate constraints, table schemas, data, policies, or application code.","proofConditionIds":["repo","runtime"]},{"id":"capability-completeness","satisfied":true,"statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","proofConditionIds":["repo","runtime","advisor"]},{"id":"atomic-capability-lifecycle","satisfied":true,"statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","proofConditionIds":["repo","runtime","advisor"]}],"contractHash":"0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc","releaseBound":true,"witnessBound":false,"visualRequested":false,"visualSatisfied":true,"conditionResults":[{"id":"repo","kind":"repository","evidence":{"reason":null,"gateRunId":9611,"satisfied":true,"gateTestProof":null,"gateTestPassed":false,"missingTargets":[],"gateTestExecuted":false,"disallowedTargets":[],"migrationRequired":true,"namedGateTestPath":null,"releaseTargetStates":{"migrations":"success"},"repositoryProofGate":"request_contract_repository_verified","repositoryProofPath":null,"requestContractHash":"0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc","unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"repositoryProofStatus":"verified","expectedRepositoryPath":null,"namedGateTestSatisfied":true,"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"repositoryConditionBound":true,"repositoryProofSourceSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f"},"required":true,"satisfied":true},{"id":"runtime","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc"},"required":true,"satisfied":true},{"id":"advisor","kind":"runtime","evidence":{"reason":null,"satisfied":true,"releaseState":"verified","missingTargets":[],"disallowedTargets":[],"migrationRequired":true,"releaseTargetStates":{"migrations":"success"},"unsuccessfulTargets":[],"activeReleaseTargets":["migrations"],"allowedReleaseTargets":["migrations"],"requiredReleaseTargets":["migrations"],"migrationReleaseVerified":true,"releaseRequestContractHash":"0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc"},"required":true,"satisfied":true}],"validationErrors":[],"pendingProofKinds":[],"activeReleaseTargets":["migrations"]},"authoritativeMissionRefresh":true,"evaluatedRequestContractRevision":1},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:09:35.545166+00:00","proof_gate":"request_contract_terminal_verified","source_sha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","external_id":null,"receipt_type":"request_contract_reconciliation","idempotency_key":"mission:b43a8d0c-a100-46d3-b813-a223cedef50d:request-contract:0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc:e2cce4717289ffbfcbbcfb658cc56a20df1aab2f:verified:","mission_step_id":"fa4e0d55-4d2f-4094-858a-d01e266e4e72","command_center_event_id":"b43a8d0c-a100-46d3-b813-a223cedef50d"},{"id":"58213e11-d8d3-462d-9392-0f6554474c2f","source":"cc-execution","status":"waiting_for_gate","payload":{"ok":true,"jobId":null,"phase":"objective_received","branch":"ai/duplicate-unique-constraint-cleanup","reason":"provider_verified_auto_progress_owns_gate_merge_release_outside_owner_response","status":"waiting_for_gate","metrics":{"receiptBytes":0,"releaseCount":0,"toolCallCount":0,"repeatedCallCount":0,"ownerInterruptionCount":0},"version":"1.58.182-witness-render-cold-start-aware","prNumber":3108,"terminal":false,"missionId":"368c6464-5d65-4c4c-bb5a-044004d6d3fe","operation":"execute_mission","proofGate":"repair_mission_pr_handed_off_to_supervisor","sourceSha":null,"timingsMs":{"gateMs":0,"proofMs":0,"handlerMs":7712,"releaseMs":0,"mutationMs":0,"repositoryMs":0,"prReadinessMs":0,"approvedPlanMs":952,"missionSetupMs":331,"providerAuthMs":0,"shipAndProveMs":0,"ledgerPrepareMs":331,"ledgerReconcileMs":0,"lineageReconcileMs":0,"resolvePreflightMs":331,"repositoryMutationMs":6760,"repositoryProviderMs":6760,"authoritativeLedgerMs":0,"ledgerAsyncDispatchMs":0,"repositoryAtomicCommitMs":3312,"repositoryBranchCreateMs":0,"totalSynchronousLedgerMs":331,"asyncBookkeepingDispatchMs":0,"ledgerAuthoritativeCommitMs":0,"repositoryPullRequestCreateMs":3448},"nextAction":"Canonical KnockLaunch Gate notifier and durable mission supervisor own Gate, merge, release, and proof progression from this exact PR head outside the owner response path.","receiptRef":{"mode":"full","missionId":"368c6464-5d65-4c4c-bb5a-044004d6d3fe"},"performance":null,"deploymentId":null,"releaseState":null,"workflowRunId":null,"releaseTargets":null,"detailsAvailable":true,"ownerFacingState":"IN_PROGRESS","pendingProofKinds":[],"verificationState":null,"workflowInvariant":{"oneBranch":true,"oneMission":true,"oneRelease":true,"invariantScope":"repair_generation","onePullRequest":true,"terminalProofRequired":true,"correctiveGenerationsAllowed":true},"sourceReceiptBytes":3178,"ownerActionRequired":false,"ownerFacingTerminal":false,"continuationRequired":true,"requestContractState":"pending"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:10:25.391905+00:00","proof_gate":"repair_mission_pr_handed_off_to_supervisor","source_sha":null,"external_id":"3108","receipt_type":"execute_mission","idempotency_key":"mission:368c6464-5d65-4c4c-bb5a-044004d6d3fe:execute_mission:repair_mission_pr_handed_off_to_supervisor:current-generation","mission_step_id":"776a4bd7-a8df-4b36-8ccf-d7ed4f9c97f3","command_center_event_id":"368c6464-5d65-4c4c-bb5a-044004d6d3fe"},{"id":"aa204787-cb06-457c-aca2-dd28bdeb2eeb","source":"forgejo","status":"waiting","payload":{"branch":"ai/tenant-readiness-activation-certification","prNumber":3116,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"358dc70d3fb6dff7c52569a23045e63eaad38e36","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:53:36.54011+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"358dc70d3fb6dff7c52569a23045e63eaad38e36","external_id":"3116","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:a43dbd73-3c62-4a4f-a4fe-48fc78e98500:merged-pr:3116:358dc70d3fb6dff7c52569a23045e63eaad38e36","mission_step_id":"be7d826f-87f1-45e9-a1a3-f22144368f54","command_center_event_id":"a43dbd73-3c62-4a4f-a4fe-48fc78e98500"},{"id":"2e5f4680-e49f-4449-8c85-1be92184ef76","source":"forgejo","status":"waiting","payload":{"branch":"ai/invitation-acceptance-compensation","prNumber":3122,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"68235fa3681dbba5f5662aba693f6724c7e6590d","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T16:20:47.137437+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"68235fa3681dbba5f5662aba693f6724c7e6590d","external_id":"3122","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:767de355-8d1c-40cc-884e-c1bf21a93da4:merged-pr:3122:68235fa3681dbba5f5662aba693f6724c7e6590d","mission_step_id":"629c6a63-38e0-40df-8914-ae3edf40df29","command_center_event_id":"767de355-8d1c-40cc-884e-c1bf21a93da4"},{"id":"26acdb7a-0102-4011-a411-ff69e69c3b9b","source":"forgejo","status":"waiting","payload":{"branch":"ai/event-booking-finance-tenant-id","prNumber":3135,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"216a2af90c8730b5d4cda61f1bf435e53ad29c5d","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T17:40:11.750163+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"216a2af90c8730b5d4cda61f1bf435e53ad29c5d","external_id":"3135","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:7f229be8-10c3-4395-8d2d-b3d378a8098d:merged-pr:3135:216a2af90c8730b5d4cda61f1bf435e53ad29c5d","mission_step_id":"53607a4b-c2bb-4c2f-aa97-7a5fde85107f","command_center_event_id":"7f229be8-10c3-4395-8d2d-b3d378a8098d"},{"id":"cc1fe451-b699-4341-b86c-52dfdd849868","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Repair Prime nonvisual proof inference precedence.","wordingChanged":false,"canonicalIntent":"Repair Prime nonvisual proof inference precedence.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"nonvisual-proof-precedence","statement":"Explicit visualProofRequested=false or visualProofScope=none prevents heuristic visual-work classification from requiring visual proof for nonvisual repository maintenance.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["prime-runtime-proof"]}],"objective":"Repair Prime nonvisual proof inference precedence.","constraints":[{"id":"nonvisual-only","statement":"Do not require or run visual proof for this control-plane repair.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["prime-runtime-proof"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["prime-runtime-proof"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["prime-runtime-proof"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"prime-runtime-proof","kind":"runtime","claim":"Deployed cc-execution accepts an otherwise identical nonvisual repository repair request with visualProofRequested=false and visualProofScope=none without inferred_visual_proof_route_required.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Repair-Prime-nonvisual-proof-inference-precedence.","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":["ccExecution"],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["prime-runtime-proof"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"ea1cd339b53735c2ba38cd7dc6cc6efaff14aa50011dc436759086ff31e03e26","requestContractRevision":2,"previousRequestContractHash":"132aa4a80b0fb3e650b0a07e71da56b7409f4b45499c08d1f7dd99cc1785a054"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T18:24:24.397647+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:618c39d5-2c42-4512-906b-f385844795a3:request-contract:ea1cd339b53735c2ba38cd7dc6cc6efaff14aa50011dc436759086ff31e03e26","mission_step_id":"e0126cbc-d2e9-4971-a61b-2834b39600ea","command_center_event_id":"618c39d5-2c42-4512-906b-f385844795a3"},{"id":"be992bbf-df59-4b4d-bde7-deea6b204d68","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/pages/card-grading/PCGQualityControlPanel.tsx","content":"import React from 'react';\nimport {CheckCircle2,RotateCcw,ShieldAlert,TriangleAlert} from 'lucide-react';\nimport {toast} from '@/lib/notify';\nimport {supabase} from '@/integrations/supabase/client';\ntype CardRef={id:string;sequence_number:number;cert_number?:string|null};\ntype Review={card_id:string;outcome:'approved'|'regrade'|'rework'|'discrepancy';reviewed_at:string};\nexport default function PCGQualityControlPanel({tenantId,submissionId,cards,active,onChanged}:{tenantId:string;submissionId:string;cards:CardRef[];active:boolean;onChanged?:()=>void|Promise<void>}){\n const[reviews,setReviews]=React.useState<Review[]>([]);\n const[notes,setNotes]=React.useState<Record<string,string>>({});\n const[busy,setBusy]=React.useState<string|null>(null);\n const load=React.useCallback(async()=>{if(!active||!tenantId||!cards.length){setReviews([]);return}const{data,error}=await(supabase as any).from('card_grading_qc_reviews').select('card_id,outcome,reviewed_at').eq('tenant_id',tenantId).in('card_id',cards.map(card=>card.id)).order('reviewed_at',{ascending:false});if(error)toast.error(error.message);else setReviews((data||[]) as Review[])},[active,cards,tenantId]);\n React.useEffect(()=>{void load()},[load]);\n if(!active)return null;\n const latest=new Map<string,Review>();for(const review of reviews)if(!latest.has(review.card_id))latest.set(review.card_id,review);\n const approved=cards.filter(card=>latest.get(card.id)?.outcome==='approved').length;\n const save=async(card:CardRef,outcome:Review['outcome'])=>{setBusy(card.id+outcome);const{error}=await(supabase as any).rpc('record_card_grading_qc',{p_tenant_id:tenantId,p_card_id:card.id,p_outcome:outcome,p_notes:String(notes[card.id]||'').trim()||null});if(error)toast.error(error.message||'Unable to save QA review');else{toast.success(outcome==='approved'?'Card approved for finalization.':'QA decision saved.');await load();await onChanged?.()}setBusy(null)};\n return <section data-card-grading-qc-workbench=\"true\" data-submission-id={submissionId} className=\"mt-4 border border-white/[0.08] bg-[#09090a]/88 p-4\"><div className=\"flex flex-wrap items-end justify-between gap-3 border-b border-white/[0.08] pb-3\"><div><div className=\"text-[9px] font-black uppercase tracking-[.16em] text-[#d8bb78]\">Quality control</div><h3 className=\"mt-1 text-lg font-black\">QA review · {approved}/{cards.length} approved</h3></div><div className=\"text-[10px] font-bold text-white/35\">Ready stays locked until every card is approved.</div></div><div className=\"divide-y divide-white/[0.07]\">{cards.map(card=>{const state=latest.get(card.id)?.outcome||'pending';return <div key={card.id} className=\"py-4\"><div className=\"flex items-center gap-2\"><span className=\"text-sm font-black\">Card #{card.sequence_number}</span><span className={state==='approved'?'text-[10px] font-black uppercase text-emerald-300':'text-[10px] font-black uppercase text-amber-200'}>{state}</span>{card.cert_number?<span className=\"text-[10px] text-white/30\">Cert {card.cert_number}</span>:null}</div><input value={notes[card.id]||''} onChange={event=>setNotes({...notes,[card.id]:event.target.value})} placeholder=\"QA note or discrepancy reason\" className=\"mt-3 h-10 w-full border border-white/[0.09] bg-black/35 px-3 text-xs text-white outline-none placeholder:text-white/20\"/><div className=\"mt-2 grid grid-cols-2 gap-2 sm:grid-cols-4\"><button disabled={Boolean(busy)} onClick={()=>void save(card,'approved')} className=\"inline-flex items-center justify-center gap-1.5 bg-emerald-400/90 px-3 py-2 text-xs font-black text-black disabled:opacity-40\"><CheckCircle2 className=\"h-3.5 w-3.5\"/>Approve</button><button disabled={Boolean(busy)} onClick={()=>void save(card,'regrade')} className=\"inline-flex items-center justify-center gap-1.5 border border-white/10 px-3 py-2 text-xs font-black\"><RotateCcw className=\"h-3.5 w-3.5\"/>Regrade</button><button disabled={Boolean(busy)} onClick={()=>void save(card,'rework')} className=\"inline-flex items-center justify-center gap-1.5 border border-white/10 px-3 py-2 text-xs font-black\"><ShieldAlert className=\"h-3.5 w-3.5\"/>Rework</button><button disabled={Boolean(busy)} onClick={()=>void save(card,'discrepancy')} className=\"inline-flex items-center justify-center gap-1.5 border border-amber-300/20 px-3 py-2 text-xs font-black text-amber-200\"><TriangleAlert className=\"h-3.5 w-3.5\"/>Escalate</button></div></div>})}</div></section>;\n}"},{"path":"src/pages/card-grading/CardGradingPopulationReport.tsx","content":"import React from 'react';\nimport {Search,ShieldCheck} from 'lucide-react';\nimport {toast} from '@/lib/notify';\nimport {supabase} from '@/integrations/supabase/client';\ntype PopRow={year?:string|null;manufacturer?:string|null;set_name?:string|null;brand_set?:string|null;subset?:string|null;player_character?:string|null;card_number?:string|null;variation?:string|null;final_grade:number;grade_label?:string|null;pop_count:number|string};\nexport default function CardGradingPopulationReport({tenantId}:{tenantId:string}){\n const[rows,setRows]=React.useState<PopRow[]>([]);const[query,setQuery]=React.useState('');const[loading,setLoading]=React.useState(true);\n React.useEffect(()=>{let cancelled=false;void(async()=>{const{data,error}=await(supabase as any).from('card_grading_population_report').select('*').eq('tenant_id',tenantId).order('player_character').order('final_grade',{ascending:false});if(cancelled)return;if(error)toast.error(error.message);else setRows((data||[]) as PopRow[]);setLoading(false)})();return()=>{cancelled=true}},[tenantId]);\n const filtered=React.useMemo(()=>{const needle=query.trim().toLowerCase();return needle?rows.filter(row=>[row.player_character,row.year,row.manufacturer,row.set_name,row.brand_set,row.subset,row.card_number,row.variation,row.final_grade,row.grade_label].filter(Boolean).join(' ').toLowerCase().includes(needle)):rows},[query,rows]);\n const total=rows.reduce((sum,row)=>sum+Number(row.pop_count||0),0);\n return <section data-card-grading-pop-report=\"true\" className=\"mx-auto w-full max-w-[1500px] px-3 pb-10 pt-4 sm:px-5 lg:px-7\"><div className=\"flex flex-wrap items-end justify-between gap-4 border-b border-white/[0.08] pb-4\"><div><div className=\"text-[9px] font-black uppercase tracking-[.2em] text-[#d8bb78]\">KNOCKLAUNCH Card Grading</div><h1 className=\"mt-1 text-2xl font-black\">Population Report</h1><p className=\"mt-1 text-sm text-white/40\">Automatically derived from finalized PCG certificates.</p></div><div className=\"text-right\"><div className=\"text-2xl font-black\">{total.toLocaleString()}</div><div className=\"text-[9px] font-black uppercase text-white/30\">Published cards</div></div></div><div className=\"relative mt-4 max-w-2xl\"><Search className=\"absolute left-3 top-3 h-4 w-4 text-white/25\"/><input value={query} onChange={event=>setQuery(event.target.value)} placeholder=\"Search player, year, set, card #, variation, grade\" className=\"h-10 w-full border border-white/[0.09] bg-black/35 pl-10 pr-3 text-sm text-white outline-none\"/></div>{loading?<div className=\"py-10 text-white/35\">Loading population…</div>:<div className=\"mt-4 border-y border-white/[0.08]\">{filtered.map((row,index)=>{const grade=Number(row.final_grade);const identity=[row.year,row.manufacturer,row.set_name||row.brand_set,row.subset,row.card_number?'#'+row.card_number:null,row.variation].filter(Boolean).join(' · ');return <div key={index} className=\"grid grid-cols-[1fr_auto] items-center gap-4 border-b border-white/[0.07] px-2 py-3 last:border-0\"><div className=\"min-w-0\"><div className=\"truncate text-sm font-black\">{row.player_character||'Subject not specified'}</div><div className=\"mt-1 truncate text-[10px] text-white/35\">{identity}</div></div><div className=\"flex items-center gap-2\"><ShieldCheck className=\"h-4 w-4 text-[#d8bb78]/60\"/><div className=\"text-right\"><div className=\"font-black text-[#ead49d]\">{Number.isInteger(grade)?grade.toFixed(0):grade.toFixed(1)} <span className=\"text-white/30\">/</span> Pop {Number(row.pop_count).toLocaleString()}</div><div className=\"text-[9px] uppercase text-white/25\">{row.grade_label||'PCG grade'}</div></div></div></div>})}</div>}</section>;\n}"},{"path":"supabase/migrations/20260930015105_card_grading_application_v1.sql","content":"\nalter table public.card_grading_cards\n  add column if not exists manufacturer text,\n  add column if not exists set_name text,\n  add column if not exists subset text,\n  add column if not exists serial_number text,\n  add column if not exists relic_present boolean,\n  add column if not exists identified_at timestamptz,\n  add column if not exists identified_by uuid,\n  add column if not exists finalized_at timestamptz;\n\ncreate table if not exists public.card_grading_workflow_events (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  submission_id uuid references public.card_grading_submissions(id) on delete cascade,\n  card_id uuid references public.card_grading_cards(id) on delete cascade,\n  event_type text not null,\n  from_status text,\n  to_status text,\n  reason text,\n  actor_user_id uuid,\n  metadata jsonb not null default '{}'::jsonb,\n  occurred_at timestamptz not null default now()\n);\ncreate index if not exists card_grading_workflow_events_tenant_time_idx\n  on public.card_grading_workflow_events(tenant_id, occurred_at desc);\ncreate index if not exists card_grading_workflow_events_submission_idx\n  on public.card_grading_workflow_events(submission_id, occurred_at desc);\ncreate index if not exists card_grading_workflow_events_card_idx\n  on public.card_grading_workflow_events(card_id, occurred_at desc);\n\ncreate table if not exists public.card_grading_media (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  card_id uuid not null references public.card_grading_cards(id) on delete cascade,\n  kind text not null check (kind in ('front','back','detail','defect','label','final')),\n  provider text not null default 'knocklaunch',\n  provider_file_id text,\n  provider_revision_id text,\n  delivery_url text,\n  mime_type text,\n  width integer,\n  height integer,\n  bytes bigint,\n  checksum text,\n  is_current boolean not null default true,\n  is_public boolean not null default false,\n  created_by uuid,\n  created_at timestamptz not null default now(),\n  superseded_at timestamptz\n);\ncreate index if not exists card_grading_media_card_idx\n  on public.card_grading_media(card_id, kind, created_at desc);\ncreate unique index if not exists card_grading_media_one_current_kind_idx\n  on public.card_grading_media(card_id, kind)\n  where is_current;\n\ncreate table if not exists public.card_grading_grading_sessions (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  card_id uuid not null references public.card_grading_cards(id) on delete cascade,\n  grader_user_id uuid,\n  status text not null default 'draft' check (status in ('draft','submitted','superseded')),\n  overall_grade numeric,\n  grade_label text,\n  notes text,\n  started_at timestamptz not null default now(),\n  submitted_at timestamptz,\n  created_at timestamptz not null default now(),\n  updated_at timestamptz not null default now()\n);\ncreate index if not exists card_grading_grading_sessions_card_idx\n  on public.card_grading_grading_sessions(card_id, created_at desc);\n\ncreate table if not exists public.card_grading_criterion_results (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  session_id uuid not null references public.card_grading_grading_sessions(id) on delete cascade,\n  criterion_key text not null,\n  score numeric,\n  notes text,\n  created_at timestamptz not null default now(),\n  updated_at timestamptz not null default now(),\n  unique(session_id, criterion_key)\n);\n\ncreate table if not exists public.card_grading_qc_reviews (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  card_id uuid not null references public.card_grading_cards(id) on delete cascade,\n  grading_session_id uuid references public.card_grading_grading_sessions(id) on delete set null,\n  reviewer_user_id uuid,\n  outcome text not null check (outcome in ('approved','regrade','rework','discrepancy')),\n  notes text,\n  reviewed_at timestamptz not null default now()\n);\ncreate index if not exists card_grading_qc_reviews_card_idx\n  on public.card_grading_qc_reviews(card_id, reviewed_at desc);\n\ncreate table if not exists public.card_grading_exceptions (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  submission_id uuid references public.card_grading_submissions(id) on delete cascade,\n  card_id uuid references public.card_grading_cards(id) on delete cascade,\n  kind text not null check (kind in ('hold','rework','escalation')),\n  reason text not null,\n  status text not null default 'open' check (status in ('open','resolved')),\n  opened_by uuid,\n  opened_at timestamptz not null default now(),\n  resolved_by uuid,\n  resolved_at timestamptz,\n  resolution text\n);\ncreate index if not exists card_grading_exceptions_open_idx\n  on public.card_grading_exceptions(tenant_id, status, opened_at desc);\n\ncreate table if not exists public.card_grading_certificates (\n  id uuid primary key default gen_random_uuid(),\n  tenant_id uuid not null references public.tenants(id) on delete cascade,\n  card_id uuid not null references public.card_grading_cards(id) on delete cascade,\n  cert_number text not null,\n  category text,\n  year text,\n  manufacturer text,\n  set_name text,\n  brand_set text,\n  subset text,\n  player_character text,\n  card_number text,\n  variation text,\n  serial_number text,\n  autograph_present boolean,\n  relic_present boolean,\n  final_grade numeric not null,\n  grade_label text,\n  final_image_url text,\n  finalized_at timestamptz,\n  published_at timestamptz,\n  created_by uuid,\n  created_at timestamptz not null default now(),\n  updated_at timestamptz not null default now(),\n  unique(card_id),\n  unique(tenant_id, cert_number)\n);\ncreate index if not exists card_grading_certificates_lookup_idx\n  on public.card_grading_certificates(cert_number)\n  where published_at is not null;\n\nalter table public.card_grading_workflow_events enable row level security;\nalter table public.card_grading_media enable row level security;\nalter table public.card_grading_grading_sessions enable row level security;\nalter table public.card_grading_criterion_results enable row level security;\nalter table public.card_grading_qc_reviews enable row level security;\nalter table public.card_grading_exceptions enable row level security;\nalter table public.card_grading_certificates enable row level security;\n\nrevoke all on public.card_grading_workflow_events from anon;\nrevoke all on public.card_grading_media from anon;\nrevoke all on public.card_grading_grading_sessions from anon;\nrevoke all on public.card_grading_criterion_results from anon;\nrevoke all on public.card_grading_qc_reviews from anon;\nrevoke all on public.card_grading_exceptions from anon;\nrevoke all on public.card_grading_certificates from anon;\n\ngrant select, insert on public.card_grading_workflow_events to authenticated;\ngrant select, insert, update, delete on public.card_grading_media to authenticated;\ngrant select, insert, update, delete on public.card_grading_grading_sessions to authenticated;\ngrant select, insert, update, delete on public.card_grading_criterion_results to authenticated;\ngrant select, insert, update, delete on public.card_grading_qc_reviews to authenticated;\ngrant select, insert, update, delete on public.card_grading_exceptions to authenticated;\ngrant select, insert, update on public.card_grading_certificates to authenticated;\ngrant select on public.card_grading_certificates to anon;\n\ngrant all on public.card_grading_workflow_events to service_role;\ngrant all on public.card_grading_media to service_role;\ngrant all on public.card_grading_grading_sessions to service_role;\ngrant all on public.card_grading_criterion_results to service_role;\ngrant all on public.card_grading_qc_reviews to service_role;\ngrant all on public.card_grading_exceptions to service_role;\ngrant all on public.card_grading_certificates to service_role;\n\ndrop policy if exists card_grading_workflow_events_tenant_select on public.card_grading_workflow_events;\ncreate policy card_grading_workflow_events_tenant_select\non public.card_grading_workflow_events for select to authenticated\nusing (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_workflow_events.tenant_id\n  )\n);\ndrop policy if exists card_grading_workflow_events_tenant_insert on public.card_grading_workflow_events;\ncreate policy card_grading_workflow_events_tenant_insert\non public.card_grading_workflow_events for insert to authenticated\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_workflow_events.tenant_id\n  )\n);\n\ndrop policy if exists card_grading_media_tenant_all on public.card_grading_media;\ncreate policy card_grading_media_tenant_all\non public.card_grading_media for all to authenticated\nusing (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_media.tenant_id\n  )\n)\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_media.tenant_id\n  )\n);\n\ndrop policy if exists card_grading_grading_sessions_tenant_all on public.card_grading_grading_sessions;\ncreate policy card_grading_grading_sessions_tenant_all\non public.card_grading_grading_sessions for all to authenticated\nusing (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_grading_sessions.tenant_id\n  )\n)\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_grading_sessions.tenant_id\n  )\n);\n\ndrop policy if exists card_grading_criterion_results_tenant_all on public.card_grading_criterion_results;\ncreate policy card_grading_criterion_results_tenant_all\non public.card_grading_criterion_results for all to authenticated\nusing (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_criterion_results.tenant_id\n  )\n)\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_criterion_results.tenant_id\n  )\n);\n\ndrop policy if exists card_grading_qc_reviews_tenant_all on public.card_grading_qc_reviews;\ncreate policy card_grading_qc_reviews_tenant_all\non public.card_grading_qc_reviews for all to authenticated\nusing (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_qc_reviews.tenant_id\n  )\n)\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_qc_reviews.tenant_id\n  )\n);\n\ndrop policy if exists card_grading_exceptions_tenant_all on public.card_grading_exceptions;\ncreate policy card_grading_exceptions_tenant_all\non public.card_grading_exceptions for all to authenticated\nusing (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_exceptions.tenant_id\n  )\n)\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_exceptions.tenant_id\n  )\n);\n\ndrop policy if exists card_grading_certificates_staff_select on public.card_grading_certificates;\ncreate policy card_grading_certificates_staff_select\non public.card_grading_certificates for select to authenticated\nusing (\n  published_at is not null\n  or public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_certificates.tenant_id\n  )\n);\ndrop policy if exists card_grading_certificates_public_select on public.card_grading_certificates;\ncreate policy card_grading_certificates_public_select\non public.card_grading_certificates for select to anon\nusing (published_at is not null);\ndrop policy if exists card_grading_certificates_tenant_insert on public.card_grading_certificates;\ncreate policy card_grading_certificates_tenant_insert\non public.card_grading_certificates for insert to authenticated\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_certificates.tenant_id\n  )\n);\ndrop policy if exists card_grading_certificates_tenant_update on public.card_grading_certificates;\ncreate policy card_grading_certificates_tenant_update\non public.card_grading_certificates for update to authenticated\nusing (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_certificates.tenant_id\n  )\n)\nwith check (\n  public.is_system_admin(auth.uid())\n  or exists (\n    select 1 from public.security_active_user_tenant_memberships m\n    where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = card_grading_certificates.tenant_id\n  )\n);\n\ncreate or replace function public.card_grading_audit_status_change()\nreturns trigger\nlanguage plpgsql\nset search_path = public, auth, pg_temp\nas $$\nbegin\n  if new.status is distinct from old.status then\n    insert into public.card_grading_workflow_events(\n      tenant_id, submission_id, card_id, event_type, from_status, to_status, actor_user_id\n    ) values (\n      new.tenant_id,\n      case when tg_table_name = 'card_grading_submissions' then new.id else new.submission_id end,\n      case when tg_table_name = 'card_grading_cards' then new.id else null end,\n      case when tg_table_name = 'card_grading_submissions' then 'submission_status_changed' else 'card_status_changed' end,\n      old.status, new.status, auth.uid()\n    );\n  end if;\n  return new;\nend;\n$$;\nrevoke all on function public.card_grading_audit_status_change() from public, anon, authenticated;\ngrant execute on function public.card_grading_audit_status_change() to service_role;\n\ndrop trigger if exists card_grading_submissions_status_audit on public.card_grading_submissions;\ncreate trigger card_grading_submissions_status_audit\nafter update of status on public.card_grading_submissions\nfor each row execute function public.card_grading_audit_status_change();\n\ndrop trigger if exists card_grading_cards_status_audit on public.card_grading_cards;\ncreate trigger card_grading_cards_status_audit\nafter update of status on public.card_grading_cards\nfor each row execute function public.card_grading_audit_status_change();\n\ncreate or replace function public.card_grading_protect_published_certificate()\nreturns trigger\nlanguage plpgsql\nset search_path = public, pg_temp\nas $$\nbegin\n  if old.published_at is not null\n     and current_setting('app.card_grading_cert_correction', true) <> 'allowed' then\n    raise exception 'Published PCG certificates are immutable; use the audited correction flow';\n  end if;\n  new.updated_at := now();\n  return new;\nend;\n$$;\nrevoke all on function public.card_grading_protect_published_certificate() from public, anon, authenticated;\ngrant execute on function public.card_grading_protect_published_certificate() to service_role;\n\ndrop trigger if exists card_grading_certificates_immutable on public.card_grading_certificates;\ncreate trigger card_grading_certificates_immutable\nbefore update on public.card_grading_certificates\nfor each row execute function public.card_grading_protect_published_certificate();\n\ncreate or replace function public.card_grading_protect_finalized_card()\nreturns trigger\nlanguage plpgsql\nset search_path = public, pg_temp\nas $$\nbegin\n  if current_setting('app.card_grading_cert_correction', true) = 'allowed' then\n    return new;\n  end if;\n  if exists (\n    select 1 from public.card_grading_certificates cc\n    where cc.card_id = old.id and cc.published_at is not null\n  ) and (\n    new.cert_number is distinct from old.cert_number\n    or new.grade is distinct from old.grade\n    or new.grade_label is distinct from old.grade_label\n    or new.category is distinct from old.category\n    or new.year is distinct from old.year\n    or new.manufacturer is distinct from old.manufacturer\n    or new.set_name is distinct from old.set_name\n    or new.brand_set is distinct from old.brand_set\n    or new.subset is distinct from old.subset\n    or new.player_character is distinct from old.player_character\n    or new.card_number is distinct from old.card_number\n    or new.variation is distinct from old.variation\n    or new.serial_number is distinct from old.serial_number\n    or new.autograph_present is distinct from old.autograph_present\n    or new.relic_present is distinct from old.relic_present\n  ) then\n    raise exception 'Finalized PCG card identity and grade are immutable; use the audited correction flow';\n  end if;\n  return new;\nend;\n$$;\nrevoke all on function public.card_grading_protect_finalized_card() from public, anon, authenticated;\ngrant execute on function public.card_grading_protect_finalized_card() to service_role;\n\ndrop trigger if exists card_grading_cards_finalized_immutable on public.card_grading_cards;\ncreate trigger card_grading_cards_finalized_immutable\nbefore update on public.card_grading_cards\nfor each row execute function public.card_grading_protect_finalized_card();\n\ncreate or replace function public.assign_card_grading_certificate(\n  p_tenant_id uuid,\n  p_card_id uuid,\n  p_cert_number text\n)\nreturns uuid\nlanguage plpgsql\nset search_path = public, auth, pg_temp\nas $$\ndeclare\n  v_card public.card_grading_cards%rowtype;\n  v_certificate_id uuid;\nbegin\n  if auth.uid() is null or not (\n    public.is_system_admin(auth.uid())\n    or exists (\n      select 1 from public.security_active_user_tenant_memberships m\n      where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = p_tenant_id\n    )\n  ) then\n    raise exception 'Card grading workspace access required' using errcode = '42501';\n  end if;\n  if nullif(btrim(coalesce(p_cert_number,'')),'') is null then\n    raise exception 'Cert Number is required';\n  end if;\n\n  select * into v_card\n  from public.card_grading_cards\n  where id = p_card_id and tenant_id = p_tenant_id;\n\n  if v_card.id is null then raise exception 'Card unavailable'; end if;\n  if v_card.grade is null then raise exception 'Save the card grade before assigning a Cert Number'; end if;\n\n  insert into public.card_grading_certificates(\n    tenant_id, card_id, cert_number, category, year, manufacturer, set_name, brand_set, subset,\n    player_character, card_number, variation, serial_number, autograph_present, relic_present,\n    final_grade, grade_label, final_image_url, finalized_at, created_by\n  ) values (\n    p_tenant_id, v_card.id, btrim(p_cert_number), v_card.category, v_card.year, v_card.manufacturer,\n    v_card.set_name, v_card.brand_set, v_card.subset, v_card.player_character, v_card.card_number,\n    v_card.variation, v_card.serial_number, v_card.autograph_present, v_card.relic_present,\n    v_card.grade, v_card.grade_label, nullif(btrim(coalesce(v_card.slab_image_url,'')),''),\n    null, auth.uid()\n  )\n  on conflict (card_id) do update set\n    cert_number = excluded.cert_number,\n    category = excluded.category,\n    year = excluded.year,\n    manufacturer = excluded.manufacturer,\n    set_name = excluded.set_name,\n    brand_set = excluded.brand_set,\n    subset = excluded.subset,\n    player_character = excluded.player_character,\n    card_number = excluded.card_number,\n    variation = excluded.variation,\n    serial_number = excluded.serial_number,\n    autograph_present = excluded.autograph_present,\n    relic_present = excluded.relic_present,\n    final_grade = excluded.final_grade,\n    grade_label = excluded.grade_label,\n    final_image_url = excluded.final_image_url,\n    updated_at = now()\n  returning id into v_certificate_id;\n\n  update public.card_grading_cards\n     set cert_number = btrim(p_cert_number), updated_at = now()\n   where id = p_card_id and tenant_id = p_tenant_id;\n\n  insert into public.card_grading_workflow_events(\n    tenant_id, submission_id, card_id, event_type, actor_user_id,\n    metadata\n  ) values (\n    p_tenant_id, v_card.submission_id, v_card.id, 'certificate_assigned', auth.uid(),\n    jsonb_build_object('cert_number', btrim(p_cert_number))\n  );\n\n  return v_certificate_id;\nend;\n$$;\nrevoke all on function public.assign_card_grading_certificate(uuid,uuid,text) from public, anon;\ngrant execute on function public.assign_card_grading_certificate(uuid,uuid,text) to authenticated, service_role;\n\ncreate or replace function public.record_card_grading_qc(\n  p_tenant_id uuid,\n  p_card_id uuid,\n  p_outcome text,\n  p_notes text default null\n)\nreturns uuid\nlanguage plpgsql\nset search_path = public, auth, pg_temp\nas $$\ndeclare\n  v_card public.card_grading_cards%rowtype;\n  v_review_id uuid;\n  v_session_id uuid;\nbegin\n  if auth.uid() is null or not (\n    public.is_system_admin(auth.uid())\n    or exists (\n      select 1 from public.security_active_user_tenant_memberships m\n      where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = p_tenant_id\n    )\n  ) then\n    raise exception 'Card grading workspace access required' using errcode = '42501';\n  end if;\n  if p_outcome not in ('approved','regrade','rework','discrepancy') then\n    raise exception 'Invalid QC outcome';\n  end if;\n\n  select * into v_card\n  from public.card_grading_cards\n  where id = p_card_id and tenant_id = p_tenant_id;\n  if v_card.id is null then raise exception 'Card unavailable'; end if;\n\n  if p_outcome = 'approved' and (\n    v_card.grade is null\n    or nullif(btrim(coalesce(v_card.cert_number,'')),'') is null\n    or nullif(btrim(coalesce(v_card.slab_image_url,'')),'') is null\n  ) then\n    raise exception 'QC approval requires a saved grade, Cert Number, and final image';\n  end if;\n\n  select id into v_session_id\n  from public.card_grading_grading_sessions\n  where tenant_id = p_tenant_id and card_id = p_card_id and status = 'submitted'\n  order by submitted_at desc nulls last, created_at desc\n  limit 1;\n\n  insert into public.card_grading_qc_reviews(\n    tenant_id, card_id, grading_session_id, reviewer_user_id, outcome, notes\n  ) values (\n    p_tenant_id, p_card_id, v_session_id, auth.uid(), p_outcome, nullif(btrim(coalesce(p_notes,'')),'')\n  ) returning id into v_review_id;\n\n  if p_outcome in ('regrade','rework','discrepancy') then\n    insert into public.card_grading_exceptions(\n      tenant_id, submission_id, card_id, kind, reason, opened_by\n    ) values (\n      p_tenant_id, v_card.submission_id, p_card_id,\n      case when p_outcome = 'discrepancy' then 'escalation' else 'rework' end,\n      coalesce(nullif(btrim(coalesce(p_notes,'')),''), 'QC requested additional review'),\n      auth.uid()\n    );\n  end if;\n\n  insert into public.card_grading_workflow_events(\n    tenant_id, submission_id, card_id, event_type, actor_user_id, reason,\n    metadata\n  ) values (\n    p_tenant_id, v_card.submission_id, p_card_id, 'qc_reviewed', auth.uid(),\n    nullif(btrim(coalesce(p_notes,'')),''),\n    jsonb_build_object('outcome', p_outcome, 'review_id', v_review_id)\n  );\n  return v_review_id;\nend;\n$$;\nrevoke all on function public.record_card_grading_qc(uuid,uuid,text,text) from public, anon;\ngrant execute on function public.record_card_grading_qc(uuid,uuid,text,text) to authenticated, service_role;\n\ncreate or replace function public.correct_card_grading_certificate(\n  p_tenant_id uuid,\n  p_cert_number text,\n  p_final_grade numeric,\n  p_grade_label text,\n  p_reason text\n)\nreturns void\nlanguage plpgsql\nset search_path = public, auth, pg_temp\nas $$\ndeclare\n  v_cert public.card_grading_certificates%rowtype;\nbegin\n  if auth.uid() is null or not (\n    public.is_system_admin(auth.uid())\n    or exists (\n      select 1 from public.security_active_user_tenant_memberships m\n      where m.user_id = auth.uid() and m.status = 'active' and m.tenant_id = p_tenant_id and m.is_owner = true\n    )\n  ) then\n    raise exception 'Owner or platform-admin authority required' using errcode = '42501';\n  end if;\n  if nullif(btrim(coalesce(p_reason,'')),'') is null then\n    raise exception 'Correction reason is required';\n  end if;\n\n  select * into v_cert\n  from public.card_grading_certificates\n  where tenant_id = p_tenant_id and cert_number = btrim(p_cert_number)\n  for update;\n  if v_cert.id is null then raise exception 'Certificate unavailable'; end if;\n\n  perform set_config('app.card_grading_cert_correction','allowed',true);\n\n  update public.card_grading_certificates\n     set final_grade = p_final_grade,\n         grade_label = p_grade_label,\n         updated_at = now()\n   where id = v_cert.id;\n\n  update public.card_grading_cards\n     set grade = p_final_grade,\n         grade_label = p_grade_label,\n         updated_at = now()\n   where id = v_cert.card_id and tenant_id = p_tenant_id;\n\n  insert into public.card_grading_workflow_events(\n    tenant_id, card_id, event_type, actor_user_id, reason, metadata\n  ) values (\n    p_tenant_id, v_cert.card_id, 'certificate_corrected', auth.uid(), btrim(p_reason),\n    jsonb_build_object(\n      'cert_number', v_cert.cert_number,\n      'previous_grade', v_cert.final_grade,\n      'previous_grade_label', v_cert.grade_label,\n      'new_grade', p_final_grade,\n      'new_grade_label', p_grade_label\n    )\n  );\nend;\n$$;\nrevoke all on function public.correct_card_grading_certificate(uuid,text,numeric,text,text) from public, anon;\ngrant execute on function public.correct_card_grading_certificate(uuid,text,numeric,text,text) to authenticated, service_role;\n\ncreate or replace function public.advance_pcg_grading_submission(\n  p_tenant_id uuid,\n  p_submission_id uuid,\n  p_status text\n)\nreturns void\nlanguage plpgsql\nset search_path = public, auth, pg_temp\nas $$\ndeclare\n  v_current_status text;\n  v_is_pcg boolean := false;\n  v_card_count integer := 0;\n  v_missing_count integer := 0;\n  v_tracking_out text;\n  v_allowed boolean := false;\nbegin\n  if current_user <> 'service_role' then\n    if auth.uid() is null or not public.is_tenant_member(p_tenant_id::text) then\n      raise exception 'PCG workspace access required' using errcode = '42501';\n    end if;\n  end if;\n\n  select coalesce(t.company_slug, '') = 'pcg'\n    into v_is_pcg\n  from public.tenants t\n  where t.id = p_tenant_id;\n  if not coalesce(v_is_pcg, false) then\n    raise exception 'PCG workspace required' using errcode = '42501';\n  end if;\n\n  select s.status, s.tracking_out\n    into v_current_status, v_tracking_out\n  from public.card_grading_submissions s\n  where s.id = p_submission_id and s.tenant_id = p_tenant_id;\n  if v_current_status is null then raise exception 'Submission unavailable'; end if;\n  if p_status = v_current_status then return; end if;\n  if p_status not in ('received','intake_imaging','authentication','grading','encapsulation','qa','ready','shipped','picked_up') then\n    raise exception 'Invalid grading status';\n  end if;\n\n  v_allowed := case v_current_status\n    when 'received' then p_status = 'intake_imaging'\n    when 'intake_imaging' then p_status = 'authentication'\n    when 'authentication' then p_status = 'grading'\n    when 'grading' then p_status = 'encapsulation'\n    when 'encapsulation' then p_status = 'qa'\n    when 'qa' then p_status = 'ready'\n    when 'ready' then p_status in ('shipped','picked_up')\n    else false\n  end;\n  if not v_allowed then raise exception 'PCG grading stages must advance in canonical order'; end if;\n\n  if exists (\n    select 1 from public.card_grading_exceptions e\n    where e.tenant_id = p_tenant_id\n      and e.status = 'open'\n      and e.kind in ('hold','escalation')\n      and (e.submission_id = p_submission_id or e.card_id in (\n        select c.id from public.card_grading_cards c\n        where c.tenant_id = p_tenant_id and c.submission_id = p_submission_id\n      ))\n  ) then\n    raise exception 'Resolve open hold or escalation before advancing this PCG order';\n  end if;\n\n  select count(*)::integer into v_card_count\n  from public.card_grading_cards c\n  where c.tenant_id = p_tenant_id and c.submission_id = p_submission_id;\n\n  if p_status in ('authentication','encapsulation','qa','ready') and v_card_count = 0 then\n    raise exception 'Add cards before advancing this PCG order';\n  end if;\n\n  if p_status = 'authentication' then\n    select count(*)::integer into v_missing_count\n    from public.card_grading_cards c\n    where c.tenant_id = p_tenant_id and c.submission_id = p_submission_id\n      and (nullif(btrim(coalesce(c.front_image_url,'')),'') is null\n        or nullif(btrim(coalesce(c.back_image_url,'')),'') is null);\n    if v_missing_count > 0 then\n      raise exception '% card(s) need saved front and back intake imagery before authentication', v_missing_count;\n    end if;\n  elsif p_status = 'encapsulation' then\n    select count(*)::integer into v_missing_count\n    from public.card_grading_cards c\n    where c.tenant_id = p_tenant_id and c.submission_id = p_submission_id and c.grade is null;\n    if v_missing_count > 0 then\n      raise exception '% card(s) need a saved grade before encapsulation', v_missing_count;\n    end if;\n  elsif p_status = 'qa' then\n    select count(*)::integer into v_missing_count\n    from public.card_grading_cards c\n    where c.tenant_id = p_tenant_id and c.submission_id = p_submission_id\n      and (c.grade is null or nullif(btrim(coalesce(c.cert_number,'')),'') is null);\n    if v_missing_count > 0 then\n      raise exception '% card(s) need a saved grade and Cert Number before QA', v_missing_count;\n    end if;\n  elsif p_status = 'ready' then\n    select count(*)::integer into v_missing_count\n    from public.card_grading_cards c\n    where c.tenant_id = p_tenant_id and c.submission_id = p_submission_id\n      and (\n        c.grade is null\n        or nullif(btrim(coalesce(c.cert_number,'')),'') is null\n        or nullif(btrim(coalesce(c.slab_image_url,'')),'') is null\n        or not exists (\n          select 1 from public.card_grading_qc_reviews q\n          where q.tenant_id = p_tenant_id and q.card_id = c.id and q.outcome = 'approved'\n            and q.reviewed_at = (\n              select max(q2.reviewed_at) from public.card_grading_qc_reviews q2\n              where q2.tenant_id = p_tenant_id and q2.card_id = c.id\n            )\n        )\n      );\n    if v_missing_count > 0 then\n      raise exception '% card(s) need saved grade, Cert Number, final image, and approved QA before Ready', v_missing_count;\n    end if;\n  elsif p_status = 'shipped' then\n    if nullif(btrim(coalesce(v_tracking_out,'')),'') is null then\n      raise exception 'Save outbound tracking before marking this PCG order shipped';\n    end if;\n  end if;\n\n  update public.card_grading_submissions\n     set status = p_status,\n         completed_at = case when p_status in ('shipped','picked_up') then now() else completed_at end,\n         updated_at = now()\n   where id = p_submission_id and tenant_id = p_tenant_id;\n  if not found then raise exception 'Submission unavailable'; end if;\n\n  update public.card_grading_cards\n     set status = p_status, updated_at = now()\n   where submission_id = p_submission_id and tenant_id = p_tenant_id;\n\n  if p_status = 'ready' then\n    insert into public.card_grading_certificates(\n      tenant_id, card_id, cert_number, category, year, manufacturer, set_name, brand_set, subset,\n      player_character, card_number, variation, serial_number, autograph_present, relic_present,\n      final_grade, grade_label, final_image_url, finalized_at, published_at, created_by\n    )\n    select\n      c.tenant_id, c.id, c.cert_number, c.category, c.year, c.manufacturer, c.set_name, c.brand_set, c.subset,\n      c.player_character, c.card_number, c.variation, c.serial_number, c.autograph_present, c.relic_present,\n      c.grade, c.grade_label, c.slab_image_url, now(), now(), auth.uid()\n    from public.card_grading_cards c\n    where c.tenant_id = p_tenant_id and c.submission_id = p_submission_id\n    on conflict (card_id) do update set\n      category = excluded.category,\n      year = excluded.year,\n      manufacturer = excluded.manufacturer,\n      set_name = excluded.set_name,\n      brand_set = excluded.brand_set,\n      subset = excluded.subset,\n      player_character = excluded.player_character,\n      card_number = excluded.card_number,\n      variation = excluded.variation,\n      serial_number = excluded.serial_number,\n      autograph_present = excluded.autograph_present,\n      relic_present = excluded.relic_present,\n      final_grade = excluded.final_grade,\n      grade_label = excluded.grade_label,\n      final_image_url = excluded.final_image_url,\n      finalized_at = coalesce(card_grading_certificates.finalized_at, now()),\n      published_at = coalesce(card_grading_certificates.published_at, now()),\n      updated_at = now();\n\n    update public.card_grading_cards\n       set finalized_at = coalesce(finalized_at, now()), updated_at = now()\n     where tenant_id = p_tenant_id and submission_id = p_submission_id;\n  end if;\nend;\n$$;\nrevoke all on function public.advance_pcg_grading_submission(uuid,uuid,text) from public, anon;\ngrant execute on function public.advance_pcg_grading_submission(uuid,uuid,text) to authenticated, service_role;\n\ncreate or replace view public.card_grading_public_certificates\nwith (security_invoker = true)\nas\nselect\n  tenant_id,\n  cert_number,\n  category,\n  year,\n  manufacturer,\n  set_name,\n  brand_set,\n  subset,\n  player_character,\n  card_number,\n  variation,\n  serial_number,\n  autograph_present,\n  relic_present,\n  final_grade,\n  grade_label,\n  final_image_url,\n  finalized_at,\n  published_at\nfrom public.card_grading_certificates\nwhere published_at is not null;\n\ncreate or replace view public.card_grading_population_report\nwith (security_invoker = true)\nas\nselect\n  tenant_id,\n  category,\n  year,\n  manufacturer,\n  set_name,\n  brand_set,\n  subset,\n  player_character,\n  card_number,\n  variation,\n  serial_number,\n  autograph_present,\n  relic_present,\n  final_grade,\n  grade_label,\n  count(*)::bigint as pop_count\nfrom public.card_grading_certificates\nwhere published_at is not null\ngroup by\n  tenant_id, category, year, manufacturer, set_name, brand_set, subset,\n  player_character, card_number, variation, serial_number,\n  autograph_present, relic_present, final_grade, grade_label;\n\nrevoke all on public.card_grading_public_certificates from public;\nrevoke all on public.card_grading_population_report from public;\ngrant select on public.card_grading_public_certificates to anon, authenticated, service_role;\ngrant select on public.card_grading_population_report to anon, authenticated, service_role;\n\ninsert into public.card_grading_media(\n  tenant_id, card_id, kind, provider, delivery_url, is_current, is_public, created_at\n)\nselect c.tenant_id, c.id, v.kind, 'legacy_url', v.url, true,\n       case when v.kind = 'final' and c.status in ('ready','shipped','picked_up') then true else false end,\n       c.updated_at\nfrom public.card_grading_cards c\ncross join lateral (\n  values\n    ('front'::text, nullif(btrim(coalesce(c.front_image_url,'')),'')),\n    ('back'::text, nullif(btrim(coalesce(c.back_image_url,'')),'')),\n    ('final'::text, nullif(btrim(coalesce(c.slab_image_url,'')),''))\n) as v(kind, url)\nwhere v.url is not null\n  and not exists (\n    select 1 from public.card_grading_media m\n    where m.card_id = c.id and m.kind = v.kind and m.is_current\n  );\n\ninsert into public.card_grading_certificates(\n  tenant_id, card_id, cert_number, category, year, manufacturer, set_name, brand_set, subset,\n  player_character, card_number, variation, serial_number, autograph_present, relic_present,\n  final_grade, grade_label, final_image_url, finalized_at, published_at, created_by\n)\nselect\n  c.tenant_id, c.id, btrim(c.cert_number), c.category, c.year, c.manufacturer, c.set_name, c.brand_set, c.subset,\n  c.player_character, c.card_number, c.variation, c.serial_number, c.autograph_present, c.relic_present,\n  c.grade, c.grade_label, nullif(btrim(coalesce(c.slab_image_url,'')),''),\n  case when c.status in ('ready','shipped','picked_up') then coalesce(c.updated_at,c.created_at) else null end,\n  case when c.status in ('ready','shipped','picked_up') then coalesce(c.updated_at,c.created_at) else null end,\n  null\nfrom public.card_grading_cards c\nwhere c.grade is not null\n  and nullif(btrim(coalesce(c.cert_number,'')),'') is not null\non conflict (card_id) do nothing;\n\ninsert into public.card_grading_qc_reviews(\n  tenant_id, card_id, reviewer_user_id, outcome, notes, reviewed_at\n)\nselect c.tenant_id, c.id, null, 'approved', 'Legacy completed card backfill', coalesce(c.updated_at,c.created_at)\nfrom public.card_grading_cards c\nwhere c.status in ('ready','shipped','picked_up')\n  and not exists (\n    select 1 from public.card_grading_qc_reviews q where q.card_id = c.id\n  );\n\ninsert into public.card_grading_workflow_events(\n  tenant_id, submission_id, event_type, to_status, metadata, occurred_at\n)\nselect s.tenant_id, s.id, 'migration_snapshot', s.status, jsonb_build_object('source','card_grading_application_v1'), s.updated_at\nfrom public.card_grading_submissions s\nwhere not exists (\n  select 1 from public.card_grading_workflow_events e\n  where e.submission_id = s.id and e.event_type = 'migration_snapshot'\n);\n\ninsert into public.card_grading_workflow_events(\n  tenant_id, submission_id, card_id, event_type, to_status, metadata, occurred_at\n)\nselect c.tenant_id, c.submission_id, c.id, 'migration_snapshot', c.status, jsonb_build_object('source','card_grading_application_v1'), c.updated_at\nfrom public.card_grading_cards c\nwhere not exists (\n  select 1 from public.card_grading_workflow_events e\n  where e.card_id = c.id and e.event_type = 'migration_snapshot'\n);\n\ninsert into public.application_catalog(\n  id, slug, label, audience, workspace_surface, bootstrap_mode, default_installed,\n  capabilities, data_owners, external_url, supported_tenant_types, standalone_path,\n  login_path, bootstrap_version, route_adapter, config_contract\n) values (\n  'card-grading',\n  'card-grading',\n  'Card Grading',\n  'tenant-user',\n  'card-grading',\n  'vertical',\n  false,\n  '[\"intake\",\"imaging\",\"identify\",\"grade\",\"qa\",\"encapsulate\",\"certify\",\"population-report\",\"fulfill\",\"audit\"]'::jsonb,\n  '[\"card_grading_submissions\",\"card_grading_cards\",\"card_grading_media\",\"card_grading_grading_sessions\",\"card_grading_criterion_results\",\"card_grading_qc_reviews\",\"card_grading_exceptions\",\"card_grading_certificates\",\"card_grading_workflow_events\"]'::jsonb,\n  null,\n  '[\"MISC\"]'::jsonb,\n  '/card-grading',\n  null,\n  1,\n  'tenant-workspace',\n  '{\"schema\":\"application-bootstrap.v1\",\"applicationId\":\"card-grading\",\"applicationSlug\":\"card-grading\",\"registry_contract\":\"application-registry.v2\",\"registry_authority\":\"source-product-catalog\",\"availability_policy\":\"assigned\",\"domain\":\"card-grading\"}'::jsonb\n)\non conflict (id) do update set\n  slug = excluded.slug,\n  label = excluded.label,\n  audience = excluded.audience,\n  workspace_surface = excluded.workspace_surface,\n  bootstrap_mode = excluded.bootstrap_mode,\n  default_installed = excluded.default_installed,\n  capabilities = excluded.capabilities,\n  data_owners = excluded.data_owners,\n  supported_tenant_types = excluded.supported_tenant_types,\n  standalone_path = excluded.standalone_path,\n  login_path = excluded.login_path,\n  bootstrap_version = excluded.bootstrap_version,\n  route_adapter = excluded.route_adapter,\n  config_contract = excluded.config_contract,\n  updated_at = now();\n\nupdate public.tenant_applications ta\nset enabled = true, bootstrap_version = greatest(ta.bootstrap_version,1), updated_at = now()\nfrom public.tenants t\nwhere t.company_slug = 'pcg'\n  and ta.tenant_id = t.id\n  and ta.application_id = 'card-grading';\n\ninsert into public.tenant_applications(tenant_id, application_id, enabled, settings, bootstrap_version)\nselect t.id, 'card-grading', true, '{\"canonical_path\":\"/pcg/card-grading\"}'::jsonb, 1\nfrom public.tenants t\nwhere t.company_slug = 'pcg'\n  and not exists (\n    select 1 from public.tenant_applications ta\n    where ta.tenant_id = t.id and ta.application_id = 'card-grading'\n  );\n"},{"path":"src/__tests__/contracts/card-grading-application.contract.test.ts","content":"import fs from 'node:fs';\nimport path from 'node:path';\nimport {describe,expect,it} from 'vitest';\nconst read=(file:string)=>fs.readFileSync(path.join(process.cwd(),file),'utf8');\ndescribe('Card Grading first-class application',()=>{\n it('is registered and tenant bounded',()=>{const registry=read('src/config/applicationCapabilityRegistry.ts'),shell=read('src/PrivateAppShell.tsx');expect(registry).toContain(\"'card-grading': workspaceContract(\");expect(registry).toContain(\"app('card-grading', 'Card Grading'\");expect(shell).toContain('FirstClassAppTenantBoundary appSlug=\"card-grading\"')});\n it('provides QA and population surfaces',()=>{expect(read('src/pages/crm/PcgWorkspace.tsx')).toContain('PCGQualityControlPanel');expect(read('src/pages/card-grading/PCGModesWorkspace.tsx')).toContain('CardGradingPopulationReport')});\n it('ships canonical migration source',()=>{const migration=read('supabase/migrations/20260930015105_card_grading_application_v1.sql');expect(migration).toContain('card_grading_certificates');expect(migration).toContain('card_grading_qc_reviews');expect(migration).toContain('card_grading_population_report');expect(migration).toContain('security_invoker')});\n it('keeps current public records behind published certificates',()=>{const fn=read('supabase/functions/pcg-customer-progress/index.ts');expect(fn).toContain(\"from('card_grading_public_certificates')\");expect(fn).toContain(\"from('card_grading_population_report')\")});\n});"}],"branch":"ai/objective-first-repair-92964f0c60ea","writes":[],"patches":[],"version":1,"approved":true,"missionId":"92964f0c-60ea-4903-a573-31d680fefd52","sourceSha":"90ff83d0d106658abcb32b33aa78b68af409e5d4","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/PrivateAppShell.tsx","src/config/applicationCapabilityRegistry.ts","src/pages/card-grading/PCGModesWorkspace.tsx","src/pages/crm/PcgWorkspace.tsx","supabase/functions/pcg-customer-progress/index.ts"],"anchored_edits":[{"path":"src/config/applicationCapabilityRegistry.ts","new_content":"  'card-grading': workspaceContract('tenant-native', ['card-grading','grading','certificates','population','quality-control','intake'], ['panel','action','full-page'], ['intake','imaging','identify','grade','qa','encapsulate','certify','population-report','fulfill','audit'], ['storage']),\n  'operational-command': workspaceContract(","old_content":"  'operational-command': workspaceContract("},{"path":"src/config/applicationCapabilityRegistry.ts","new_content":"  withArchitecture(verticalWorkspace(app('card-grading', 'Card Grading', 'card-grading', ['intake','imaging','identify','grade','qa','encapsulate','certify','population-report','fulfill','audit'], ['card_grading_submissions','card_grading_cards','card_grading_media','card_grading_grading_sessions','card_grading_criterion_results','card_grading_qc_reviews','card_grading_exceptions','card_grading_certificates','card_grading_workflow_events'], 'vertical', false, 'tenant-user', null, ['MISC'], '/card-grading', 'tenant-workspace')), { maturity: 'production', availabilityPolicy: 'assigned', relationships: { owns: ['card-grading-lifecycle','certificate-publication','population-report'], provides: ['graded-card-record','published-certificate'], consumes: ['storage'], delegates: [] }, composition: { requires: [], optional: ['documents','mail'] } }),\n  orchestrator(app('operational-command'","old_content":"  orchestrator(app('operational-command'"},{"path":"src/config/applicationCapabilityRegistry.ts","new_content":"'inventory','card-grading','operations','claim-operations'","old_content":"'inventory','operations','claim-operations'"},{"path":"src/PrivateAppShell.tsx","new_content":"if(isPcgPrivateWorkspace)return <Suspense fallback={<RouteFallback/>}><FirstClassAppTenantBoundary appSlug=\"card-grading\"><PCGCanonicalWorkspaceRoute/></FirstClassAppTenantBoundary></Suspense>;","old_content":"if(isPcgPrivateWorkspace)return <Suspense fallback={<RouteFallback/>}><PCGCanonicalWorkspaceRoute/></Suspense>;"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"import {PCG_GRADING_SCALE,findPCGGrade,formatPCGGrade} from '@/pages/card-grading/pcgGradingScale';\nimport PCGQualityControlPanel from '@/pages/card-grading/PCGQualityControlPanel';","old_content":"import {PCG_GRADING_SCALE,findPCGGrade,formatPCGGrade} from '@/pages/card-grading/pcgGradingScale';"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"!card.front_image_url||!card.back_image_url","old_content":"!card.front_image_url&&!card.back_image_url&&!card.slab_image_url"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"!card.slab_image_url","old_content":"(!card.slab_image_url&&!card.front_image_url&&!card.back_image_url)"},{"path":"src/pages/crm/PcgWorkspace.tsx","new_content":"</div></section><PCGQualityControlPanel tenantId={tenantId||''} submissionId={selected.id} cards={selectedCards} active={selected.status==='qa'} onChanged={load}/><section className={`${panelClass} mt-4 p-4`}><div className=\"flex items-center justify-between\"><div className=\"text-[9px] font-black uppercase tracking-[.16em] text-[#d8bb78]\">Collector & payment</div>","old_content":"</div></section><section className={`${panelClass} mt-4 p-4`}><div className=\"flex items-center justify-between\"><div className=\"text-[9px] font-black uppercase tracking-[.16em] text-[#d8bb78]\">Collector & payment</div>"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"import {ArrowLeft,ArrowRight,BarChart3,Boxes,CheckCircle2,ClipboardCheck,Clock3,CreditCard,Database,Images,Settings,Truck,Users} from 'lucide-react';","old_content":"import {ArrowLeft,ArrowRight,Boxes,CheckCircle2,ClipboardCheck,Clock3,CreditCard,Database,Images,Settings,Truck,Users} from 'lucide-react';"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"import PCGCompletionCenter from '@/pages/card-grading/PCGCompletionCenter';\nimport CardGradingPopulationReport from '@/pages/card-grading/CardGradingPopulationReport';","old_content":"import PCGCompletionCenter from '@/pages/card-grading/PCGCompletionCenter';"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"type WorkspaceTab='today'|'vault'|'queue'|'submissions'|'certs'|'collectors'|'inventory'|'shipping'|'money'|'migration'|'readiness'|'population'|'settings';","old_content":"type WorkspaceTab='today'|'vault'|'queue'|'submissions'|'certs'|'collectors'|'inventory'|'shipping'|'money'|'migration'|'readiness'|'settings';"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"const ADMIN_TOOLS=[{id:'settings' as WorkspaceTab,label:'Settings',icon:Settings},{id:'money' as WorkspaceTab,label:'Payments',icon:CreditCard},{id:'readiness' as WorkspaceTab,label:'Readiness',icon:ClipboardCheck},{id:'migration' as WorkspaceTab,label:'Migration',icon:Database},{id:'population' as WorkspaceTab,label:'Pop Report',icon:BarChart3}] as const;","old_content":"const ADMIN_TOOLS=[{id:'settings' as WorkspaceTab,label:'Settings',icon:Settings},{id:'money' as WorkspaceTab,label:'Payments',icon:CreditCard},{id:'readiness' as WorkspaceTab,label:'Readiness',icon:ClipboardCheck},{id:'migration' as WorkspaceTab,label:'Migration',icon:Database}] as const;"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"readiness:'Readiness',population:'Pop Report',settings:'Settings'","old_content":"readiness:'Readiness',settings:'Settings'"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"'money','migration','readiness','population','settings'","old_content":"'money','migration','readiness','settings'"},{"path":"src/pages/card-grading/PCGModesWorkspace.tsx","new_content":"      {adminTool==='population'?<CardGradingPopulationReport tenantId={tenantId}/>:<PcgWorkspace initialTab={adminTool} embedded navigationScope={[adminTool]}/>}","old_content":"      <PcgWorkspace initialTab={adminTool} embedded navigationScope={[adminTool]}/>"},{"path":"supabase/functions/pcg-customer-progress/index.ts","new_content":"      const{data:currentCertificates,error:currentError}=await supabase.from('card_grading_public_certificates').select('cert_number,year,brand_set,player_character,card_number,variation,autograph_present,final_grade,grade_label,final_image_url').eq('tenant_id',tenant.id).order('published_at',{ascending:false}).limit(40);\n      const currentCards=(currentCertificates||[]).map((card:any)=>safeCard({id:card.cert_number,cert_number:card.cert_number,year:card.year,brand_set:card.brand_set,player_character:card.player_character,card_number:card.card_number,variation:card.variation,autograph_present:card.autograph_present,grade:card.final_grade,grade_label:card.grade_label,slab_image_url:card.final_image_url}));","old_content":"      const{data:currentCards,error:currentError}=await supabase.from('card_grading_cards').select('id,cert_number,year,brand_set,player_character,card_number,variation,card_description,autograph_present,grade,grade_label,front_image_url,back_image_url,slab_image_url,population_count').eq('tenant_id',tenant.id).limit(40);"},{"path":"supabase/functions/pcg-customer-progress/index.ts","new_content":"      const{data:publishedRows,error:currentError}=await supabase.from('card_grading_population_report').select('year,brand_set,player_character,card_number,variation,final_grade,grade_label,pop_count').eq('tenant_id',tenant.id).or(currentFilter).limit(1200);\n      const currentCards=(publishedRows||[]).flatMap((row:any)=>Array.from({length:Math.max(0,Number(row.pop_count||0))},()=>({year:row.year,brand_set:row.brand_set,player_character:row.player_character,card_number:row.card_number,variation:row.variation,grade:row.final_grade,grade_label:row.grade_label})));","old_content":"      const{data:currentCards,error:currentError}=await supabase.from('card_grading_cards').select('year,brand_set,player_character,card_number,variation,grade,grade_label').eq('tenant_id',tenant.id).or(currentFilter).limit(1200);"},{"path":"supabase/functions/pcg-customer-progress/index.ts","new_content":"      const{data:card,error}=await supabase.from('card_grading_public_certificates').select('cert_number,year,brand_set,player_character,card_number,variation,autograph_present,final_grade,grade_label,final_image_url').eq('tenant_id',tenant.id).ilike('cert_number',cert).maybeSingle();\n      if(error)throw error;\n      if(card?.cert_number)return json({ok:true,data:{card:safeCard({id:card.cert_number,cert_number:card.cert_number,year:card.year,brand_set:card.brand_set,player_character:card.player_character,card_number:card.card_number,variation:card.variation,autograph_present:card.autograph_present,grade:card.final_grade,grade_label:card.grade_label,slab_image_url:card.final_image_url})}});","old_content":"      const{data:card,error}=await supabase.from('card_grading_cards').select('id,cert_number,year,brand_set,player_character,card_number,variation,card_description,autograph_present,grade,grade_label,front_image_url,back_image_url,slab_image_url,population_count').eq('tenant_id',tenant.id).ilike('cert_number',cert).maybeSingle();\n      if(error)throw error;\n      if(card?.id)return json({ok:true,data:{card:safeCard(card)}});"}],"implementation":{"files":[],"writes":[]},"requestContract":null,"repairGeneration":null,"executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":"92964f0c-60ea-4903-a573-31d680fefd52","ownerApproved":true,"releaseIntent":null,"sourceTargets":["src/PrivateAppShell.tsx","src/config/applicationCapabilityRegistry.ts","src/pages/card-grading/PCGModesWorkspace.tsx","src/pages/crm/PcgWorkspace.tsx","supabase/functions/pcg-customer-progress/index.ts"],"requestContract":null,"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":false,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"proofRequirements":null,"controlPlaneUnfreeze":false,"durableMutationResume":true,"controlPlaneMaintenance":false,"controlPlaneMaintenancePaths":[],"controlPlaneMaintenanceReason":null},"recovery":false,"fingerprint":"89f1512c0baafcb517ca577366c486c8a8495ba7c514b3c55cb4080e9af4db59","replayCount":0,"serializedBytes":63119},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T02:17:35.733966+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:92964f0c-60ea-4903-a573-31d680fefd52:repository-mutation-intent:89f1512c0baafcb517ca577366c486c8a8495ba7c514b3c55cb4080e9af4db59:0","mission_step_id":"025462da-4fb5-4dd6-839f-692c7c4c610a","command_center_event_id":"92964f0c-60ea-4903-a573-31d680fefd52"},{"id":"3cd9fb3d-4dc1-48de-89fa-b34561a62976","source":"forgejo-runtime","status":"verified","payload":{"failed":[],"states":{"forgejo-main/source":"success","forgejo-release/workflow":"success","supabase-migrations/live":"success"},"mainSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","missing":[],"pending":[],"required":["forgejo-main/source","forgejo-release/workflow","supabase-migrations/live"],"sourceSha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","releaseState":"verified","sourceInMain":true,"compareStatus":"protected_main_push_exact_source","releaseTargets":{"frontend":false,"onrunner":false,"migrations":true,"ccExecution":false,"supabaseEdge":false,"edgeFunctionSlugs":[]},"releaseTargetStates":{"migrations":"success"},"requestContractHash":"0e6805541b80920ff0f2e97082a226bc83ed73b6332f1ad198e566ebe0efeccc","forgejoWorkflowProof":{"runId":9612,"source":"signed_push_receipt","status":"blocked","results":{},"conclusion":"blocked","targetStates":{"migrations":"success"},"targetJobCount":7,"observedTargetStates":{"migrations":"success"}},"onrunnerRuntimeProof":null,"releaseSourceVerified":true,"ccExecutionRuntimeProof":null,"releaseTargetRecoveryProof":null,"exactReleaseVerifiedAfterMainAdvanced":false},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-18T15:09:34.17879+00:00","proof_gate":"canonical_release_terminal_verified","source_sha":"e2cce4717289ffbfcbbcfb658cc56a20df1aab2f","external_id":"forgejo-main-e2cce4717289","receipt_type":"canonical_release_status","idempotency_key":"mission:b43a8d0c-a100-46d3-b813-a223cedef50d:forgejo-release-status:e2cce4717289ffbfcbbcfb658cc56a20df1aab2f:verified:forgejo-main/source=success|forgejo-release/workflow=success|supabase-migrations/live=success","mission_step_id":"fa4e0d55-4d2f-4094-858a-d01e266e4e72","command_center_event_id":"b43a8d0c-a100-46d3-b813-a223cedef50d"},{"id":"6b5a97cd-698a-4210-bcb1-e798729a9c66","source":"cc-execution","status":"recorded","payload":{"requestContract":{"valid":true,"intent":{"evidence":[],"confidence":null,"rawUtterance":"Recreate the clean maintenance branch and continue the exact authorized two-file control-plane timeout repair through PR, Gate, squash merge, cc-execution release, and runtime proof.","wordingChanged":false,"canonicalIntent":"Recreate the clean maintenance branch and continue the exact authorized two-file control-plane timeout repair through PR, Gate, squash merge, cc-execution release, and runtime proof.","resolutionStatus":"exact","uniqueResolution":true,"clarificationRequired":false},"source":"explicit","version":1,"outcomes":[{"id":"outcome-timeout","statement":"Scoped repository patches can survive 8-9 second Forgejo write latency without false timeout failure.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]}],"objective":"Recreate the clean maintenance branch and continue the exact authorized two-file control-plane timeout repair through PR, Gate, squash merge, cc-execution release, and runtime proof.","constraints":[{"id":"bounded-control-plane","statement":"Only scoped-repo-patch-policy.js and version.js change.","provenance":{"reason":null,"source":"explicit_request_contract","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]},{"id":"capability-completeness","statement":"Every dependency the implementation declares or relies on must be wired and proven across applicable frontend, backend/runtime, schema/data/storage, authentication/authorization, provider configuration, prerequisite/loading/empty/error states, release ownership, and live production behavior; owner-authorized unavailable dependencies must become explicit prerequisite states rather than runtime failures.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]},{"id":"atomic-capability-lifecycle","statement":"Changed capabilities remain non-active until dependency readiness, N/N-1 compatibility, affected-target release, and claim-matched production canary proof are satisfied; missing optional dependencies become prerequisite_required, and runtime drift or health-contract violation quarantines only the affected capability instead of breaking unrelated working capability.","provenance":{"reason":null,"source":"hard_safety_invariant","inherited":false,"blockingAuthority":true},"proofConditionIds":["proof-cc"]}],"terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"proof-cc","kind":"runtime","claim":"Updated cc-execution runtime is deployed and healthy.","route":null,"roleRef":null,"userRef":null,"required":true,"expectedText":null,"targetedActions":[],"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"],"requireCapacityAdmissible":false,"expectedWatchdogPolicyVersion":null,"minConsecutiveHealthyHeartbeats":1,"requirePositiveMemoryAttribution":false,"requireMemoryAdmissionPressureFalse":false}],"validationErrors":[],"capabilityManifest":{"id":"Recreate-the-clean-maintenance-branch-and-continue-the-exact-authorized-two-file-control-plane-timeo","driftPolicy":"exact_manifest_source_release_dependency_or_runtime_identity_mismatch_is_nonterminal","proofLedger":"command_center_mission_ledger_request_contract_hash_bound","schemaVersion":1,"releaseTargets":["ccExecution"],"lifecycleStates":["prepare","deploy","verify","activate"],"activationPolicy":"dependencies_and_claim_matched_live_proof_before_exposure","dependencyDomains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_required_not_runtime_failures","compatibilityWindow":["N","N-1"],"failureIsolationPolicy":"quarantine_or_rollback_affected_capability_only_preserve_unrelated_working_capabilities","canaryProofConditionIds":["proof-cc"]},"capabilityCompleteness":{"domains":["frontend","backend_runtime","schema_data_storage","authentication_authorization","provider_configuration","prerequisite_loading_empty_error_states","release_ownership","live_production_proof"],"required":true,"prerequisitePolicy":"expected_unavailable_dependencies_are_prerequisite_states_not_runtime_failures"}},"requestContractHash":"944fdd86fea2f3fc8e12a222e2b7b38ad83853b32a6a266cf3eb59a6585fbc71","requestContractRevision":4,"previousRequestContractHash":"c40689c33c725d204496f80448ef5ea39b179a221e6342826e7e30a16267c354"},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T07:15:51.531152+00:00","proof_gate":"request_contract_revision_recorded","source_sha":null,"external_id":null,"receipt_type":"request_contract_revision","idempotency_key":"mission:acdb7521-1245-4b43-881a-bd2345be622b:request-contract:944fdd86fea2f3fc8e12a222e2b7b38ad83853b32a6a266cf3eb59a6585fbc71","mission_step_id":"d6b7a3db-9925-440a-b818-536f37244864","command_center_event_id":"acdb7521-1245-4b43-881a-bd2345be622b"},{"id":"71efc5de-6daf-490a-aae7-040de1cc3018","source":"cc-execution","status":"waiting","payload":{"body":{"ship":true,"files":[{"path":"src/__tests__/contracts/command-center-visual-proof-inference.contract.test.ts","content":"import { readFileSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { describe, expect, it } from 'vitest';\n\ndescribe('command center visual proof inference contract', () => {\n  it('keeps explicit nonvisual proof intent authoritative over heuristic visual classification', () => {\n    const source = readFileSync(resolve(process.cwd(), 'workers/cc-execution/src/command-center-contracts.js'), 'utf8');\n    const start = source.indexOf('export function normalizeRequestContract');\n    const end = source.indexOf('export function', start + 1);\n    const block = source.slice(start, end > start ? end : undefined);\n    expect(block).toContain('const explicitVisualProofDisabled =');\n    expect(block).toContain('body.visualProofRequested === false');\n    expect(block).toContain('body.visual_proof_requested === false');\n    expect(block).toContain('requestedVisualProofScope === \"none\"');\n    expect(block).toContain('(explicit && !explicitVisualProofRequired) || explicitVisualProofDisabled');\n  });\n});\n"}],"branch":"ai/objective-first-repair-618c39d52c42","writes":[],"patches":[],"version":1,"approved":true,"missionId":"618c39d5-2c42-4512-906b-f385844795a3","repository":"noel/KnockLaunchOS","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"anchored_edits":[{"path":"workers/cc-execution/src/command-center-contracts.js","edits":[{"new_content":"  const classifiedVisualWorkIntent = classifyVisualWorkIntent({ ...body, objective });\n  const explicitVisualProofRequired = explicit && rawProofConditions.some((condition) => (\n    String(condition?.kind || condition?.proofKind || condition?.proof_kind || condition?.type || \"\").trim().toLowerCase() === \"visual\"\n    && condition?.required !== false\n  ));\n  const requestedVisualProofScope = String(body.visualProofScope || body.visual_proof_scope || \"\").trim().toLowerCase();\n  const explicitVisualProofDisabled =\n    body.visualProof === false\n    || body.visual_proof === false\n    || body.verifyVisual === false\n    || body.verify_visual === false\n    || body.visualProofRequested === false\n    || body.visual_proof_requested === false\n    || requestedVisualProofScope === \"none\";\n  const visualWorkIntent = (explicit && !explicitVisualProofRequired) || explicitVisualProofDisabled\n    ? { ...classifiedVisualWorkIntent, kind: \"not_visual_work\", implementation: false }\n    : classifiedVisualWorkIntent;","old_content":"  const classifiedVisualWorkIntent = classifyVisualWorkIntent({ ...body, objective });\n  const explicitVisualProofRequired = explicit && rawProofConditions.some((condition) => (\n    String(condition?.kind || condition?.proofKind || condition?.proof_kind || condition?.type || \"\").trim().toLowerCase() === \"visual\"\n    && condition?.required !== false\n  ));\n  const visualWorkIntent = explicit && !explicitVisualProofRequired\n    ? { ...classifiedVisualWorkIntent, kind: \"not_visual_work\", implementation: false }\n    : classifiedVisualWorkIntent;"}]},{"path":"workers/cc-execution/src/version.js","edits":[{"new_content":"export const CC_EXECUTION_VERSION = \"1.58.261-nonvisual-proof-precedence\";","old_content":"export const CC_EXECUTION_VERSION = \"1.58.260-release-actions-query-parity\";"}]}],"implementation":{"files":[],"writes":[]},"requestContract":{"version":1,"outcomes":[{"id":"nonvisual-proof-precedence","statement":"Explicit visualProofRequested=false or visualProofScope=none prevents heuristic visual-work classification from requiring visual proof for nonvisual repository maintenance.","proofConditionIds":["prime-runtime-proof"]}],"objective":"Repair Prime nonvisual proof inference precedence.","constraints":[{"id":"nonvisual-only","statement":"Do not require or run visual proof for this control-plane repair.","proofConditionIds":["prime-runtime-proof"]}],"sourceScope":"control_plane","terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"prime-runtime-proof","kind":"runtime","claim":"Deployed cc-execution accepts an otherwise identical nonvisual repository repair request with visualProofRequested=false and visualProofScope=none without inferred_visual_proof_route_required.","required":true,"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"]}]},"repairGeneration":null,"visualProofScope":"none","executionEnvelope":{"ship":true,"version":1,"approved":true,"missionId":"618c39d5-2c42-4512-906b-f385844795a3","ownerApproved":true,"releaseIntent":null,"sourceTargets":["workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"requestContract":{"version":1,"outcomes":[{"id":"nonvisual-proof-precedence","statement":"Explicit visualProofRequested=false or visualProofScope=none prevents heuristic visual-work classification from requiring visual proof for nonvisual repository maintenance.","proofConditionIds":["prime-runtime-proof"]}],"objective":"Repair Prime nonvisual proof inference precedence.","constraints":[{"id":"nonvisual-only","statement":"Do not require or run visual proof for this control-plane repair.","proofConditionIds":["prime-runtime-proof"]}],"sourceScope":"control_plane","terminalPolicy":"all_required_proof_conditions_satisfied_after_live_release","proofConditions":[{"id":"prime-runtime-proof","kind":"runtime","claim":"Deployed cc-execution accepts an otherwise identical nonvisual repository repair request with visualProofRequested=false and visualProofScope=none without inferred_visual_proof_route_required.","required":true,"allowedReleaseTargets":["ccExecution"],"requiredReleaseTargets":["ccExecution"]}]},"repairGeneration":null,"proofRequirements":null,"controlPlaneUnfreeze":true,"controlPlaneMaintenance":true,"controlPlaneMaintenancePaths":["src/__tests__/contracts/command-center-visual-proof-inference.contract.test.ts","workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"controlPlaneMaintenanceReason":"Repair Prime request-contract inference so explicit nonvisual proof intent cannot be overridden by heuristic visual classification."},"proofRequirements":null,"controlPlaneUnfreeze":true,"visualProofRequested":false,"durableMutationResume":true,"controlPlaneMaintenance":true,"controlPlaneMaintenancePaths":["src/__tests__/contracts/command-center-visual-proof-inference.contract.test.ts","workers/cc-execution/src/command-center-contracts.js","workers/cc-execution/src/version.js"],"controlPlaneMaintenanceReason":"Repair Prime request-contract inference so explicit nonvisual proof intent cannot be overridden by heuristic visual classification."},"recovery":false,"fingerprint":"d0e2956becdc695b1a978143dc8afd021b061a5e3e1df2f5d12ef061a9b8e06c","replayCount":0,"serializedBytes":6858},"tenant_id":"a3ffa31f-0c88-4fdd-b872-051db013ca3e","created_at":"2026-09-24T18:24:25.141799+00:00","proof_gate":"repository_mutation_intent_persisted","source_sha":null,"external_id":null,"receipt_type":"repository_mutation_intent","idempotency_key":"mission:618c39d5-2c42-4512-906b-f385844795a3:repository-mutation-intent:d0e2956becdc695b1a978143dc8afd021b061a5e3e1df2f5d12ef061a9b8e06c:0","mission_step_id":"e0126cbc-d2e9-4971-a61b-2834b39600ea","command_center_event_id":"618c39d5-2c42-4512-906b-f385844795a3"},{"id":"c347083a-2396-41b0-ac7d-951918bd43ed","source":"forgejo","status":"waiting","payload":{"branch":"ai/objective-first-repair-92964f0c60ea","prNumber":4194,"nextAction":"Follow the existing canonical release to terminal proof.","mergeCommitSha":"87d2ca4a13c9cb1fefca47f48094f7f5e343597a","branchDeletedAfterMerge":true,"correctiveGenerationCreated":false},"tenant_id":"9602e177-0cbb-496c-bdf5-2fbc93f1b859","created_at":"2026-09-30T02:26:24.181635+00:00","proof_gate":"forgejo_merged_pr_is_authoritative_source_lineage","source_sha":"87d2ca4a13c9cb1fefca47f48094f7f5e343597a","external_id":"4194","receipt_type":"source_lineage_merged_pr_authoritative","idempotency_key":"mission:92964f0c-60ea-4903-a573-31d680fefd52:merged-pr:4194:87d2ca4a13c9cb1fefca47f48094f7f5e343597a","mission_step_id":"4972ee9e-d3d4-4f28-9fc7-594057b0bb48","command_center_event_id":"92964f0c-60ea-4903-a573-31d680fefd52"}],"rows":200,"limit":200,"table":"command_center_receipts","format":"knocklaunch-table-chunk-v1","offset":21400,"schema":"public"}