{ "format": "mcp-server-poll-storage-acceptance-v1", "date": "2026-10-25", "scope": "Opt-in private quota/journal/retention assembly. Proposal schema applied only to guarded disposable PostgreSQL; no normal migration or public poll registration.", "policy": { "attemptJournalBytes": 8388608, "attemptMetadataBytes": 32768, "attemptJournalRows": 4019, "globalAttempts": 128, "ownerAttempts": 8, "retentionSource": "actual mcp_settings.requests_retention_days, persisted maximum retained", "minimumSafetyMs": 60000, "physicalHeapIndexWalDiskBoundClaimed": false }, "admission": { "reservationCommitAcknowledgedBeforeConsumeOrAnchor": true, "claimTokenNeverReissued": true, "existingNoAnchorMeansSpent": true, "matchingOriginalOwnerConnectionIdentityProofsAndExpiry": true, "maxStagesBoundToPrivatePlan": true, "globalStorageLockBeforeIdentityAndRowLocks": true }, "journal": { "allActualInsertsMeteredAfterInsert": true, "onConflictNoExtraCharge": true, "databaseNormalizesActivityClock": true, "oldBackendDestroyedBeforeIndependentQuarantine": true, "quarantineMs": 10000, "quarantineNeedsMatchingChargedAdmission": true, "quarantineSurvivesOriginalExpiryRevokeAbort": true, "callbackLifecycleAndMultiStatementBlocked": true, "lateFacadeAndCheckoutFenced": true }, "gc": { "scheduled": false, "boundedMs": 20000, "batch": 8, "sharedDatabaseGate": true, "allChildrenAdmissionAndRefundAtomic": true, "globalAndOwnerRefundExact": true, "gucAloneCannotDelete": true, "currentRetentionRowLockedUntilCommit": true, "originalExpiryLatestActivityPersistedAndCurrentRetentionSafetyAllRequired": true, "mcpRequiresActualTerminalOriginalOperationConnectionOwnerAndPollPlan": true, "updatesRemainForbidden": true, "expiredOriginalScopeCannotReclaimAfterGc": true }, "fullProductionPoll": { "fourActualNativeGets": 4, "allDispatchesAfterConfirmedConsumedAdmission": 4, "maintenanceEffects": 147, "completedPublications": 151, "fullJournalRows": 312, "logicalReservationBytes": "8421376", "knownReplayNoNewNativeOrCharge": true, "freshAuthorityReads": 73120, "elapsedWithReplayMs": 108911, "productionQuotaBoundAssembly": true, "actualNewRestAuthorityFactory": false, "publicRegistration": false }, "sqlAcceptance": { "cases": 10, "names": [ "owned historical synthetic rows inserted BEFORE guards; no clock alteration, trigger disabling or normal migration marker fabrication", "two-phase claim, exact reservation, durable spent identity, normalized activity, plan stage cap and idempotent quarantine actual-row metering", "ten concurrent independent factories atomically admit eight owner attempts, refuse two, never partially charge counters", "real acknowledged-on-server admission COMMIT with lost client ACK never dispatches anchor, remains spent on new factory and supports charged orphan quarantine", "real consume/anchor and intent COMMIT ACK losses preserve committed rows, destroy owner before fresh quarantine despite revocation and never reopen or recharge the attempt", "GUC alone cannot erase live data; increased current retention, recent quarantine and missing/running original MCP operation prevent GC; real terminal owner-linked operation permits atomic whole-journal deletion and exact refund", "injected failure after real DELETE/refund rolls back all child rows and both counters together", "lost acknowledgement after real GC COMMIT is explicit UNKNOWN; a later fresh pass refunds nothing twice, never repeats the spent identity", "actual quota-bound full production poll: all four native GETs observe committed consumed admission, every maintenance publication/ACK metered, known replay no new native or quota", "global 128-attempt cap holds across independent owners and concurrent actual commits; failed admissions leave no orphan counters" ], "normalMigrations": 38, "proposalOnly": true, "realPgTransactions": true, "realQuotaTriggers": true, "historicalFixtureBeforeGuards": true, "providerOrClockOverrides": false, "simulatedCommitAckLossAfterRealCommit": true, "publicRoutesRegistered": false, "journalAdapterIntegrated": true, "productionDatabaseTouched": false, "externalNetwork": false }, "afterRealTerminalRestore": { "tablesCompared": 7, "exactClaimTokensAndCiphertextHashes": true, "actualAdmissions": 128, "chargedAdmissions": 128, "allOwnerCountersReconciled": true, "restoredGlobalQuotaStillEnforced": true, "refusedAttemptChangesNoRows": true, "newNativeDispatches": 0, "productionDatabaseTouched": false }, "unit": { "newModel": 7, "newStorage": 16, "newBridge": 13, "newTotal": 36, "legacyJournalAndRestAndMaintenanceAndWriterRegression": true, "strictIncludingAllChangedTests": true, "eslint": true, "backendBuild": true }, "coverage": { "tools": 357, "routes": 262, "mediated": 194, "excluded": 62, "pending": 6, "unmapped": 0 }, "activation": { "normalMigrations": 38, "newSchemaProposalOnly": true, "newPrivateStorageSessionAvailable": true, "privateRestFactoryRequiresQuotaSession": true, "publicPollRegistered": false, "legacyRestRouteReplaced": false, "retentionWorkerAttached": false, "actualNewAuthorityFactoryWholePollAccepted": false, "actualHumanApprovedPollMcpRuntimeAccepted": false, "workingDatabaseTouched": false, "realChrTouched": false, "realKeysExported": false, "deployment": false }, "remaining": [ "Enroll reviewed poll-storage as a normal fresh-only migration; maintain explicit historical fixture prefix and exact manifest/reference/data expectations", "Attach bounded poll retention to existing worker and verify stop/drain/shared gate with storage enrollment", "Actual sealed human-approved MCP operation binding must preserve original prepared-plan expiry, source credential and true mcp_operations identity; no identity refresh after restart/GC", "Register exact public REST/MCP adapters only after whole current production authority SQL/HTTP/performance acceptance; 73120 authority fences observed in owned full-poll fixture", "Other five manual collector routes; broader database-control/backfill/multi-replica recovery, routing/controller/native inverse and final UI/client/network acceptance" ], "fixtureNotes": [ "Historical expiry cases are synthetic rows inserted before proposal guards in an owned initial schema; no clock travel, disabled trigger or forged normal migration marker", "Actual lost acknowledgements are injected only AFTER real database COMMIT; real rows/counters/cleanup observed independently", "Owned full poll uses real SQL/FS authority callbacks; it does not claim whole new REST/MCP production authority-factory acceptance", "Older full-poll148-maintenance expired-partition fixture remains separate; this actual quota-bound fixture has147 maintenance commands and151 publications" ], "evidence": { "tmp/poll-storage-sql-v6.log": "c3aa691a1af6e7c880dde84bf3069854650eab87a26cd77e562048d7d4580cfc", "tmp/poll-storage-management-final.log": "dd391c4214f0dd9a5cee79c6c3b7c43affb288e847ec42735d369f32fe6fef2a", "tmp/poll-storage-types-v3.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "tmp/poll-storage-lint-final.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "tmp/poll-storage-build-v3.log": "4f26b355b57fa516cf22f7286ea65b24c6b8d066f666278b5e704f5aa528e2d3", "tmp/poll-storage-coverage.log": "35a0e9246b857660ebb30b2e86eee901b06b6509e0bce61a7272312eb55b40d1" }, "sourceSha256": { "backend/src/db/proposals/server-poll-storage.sql": "f07842adeb6dfe9ff5d8bff91f29b163e4b1f56600ca8c504c892dafa38ae928", "backend/src/services/server-poll-storage-model.ts": "211d8d9d2eae79acf8dad2f3bb7624d4b0407013236ba27f9684ad7d8dc20542", "backend/src/services/server-poll-storage-model.test.ts": "7b7dc4c1b6fa2904225b2f9e8f256c25cf220df321fab76adb3ffa9752174156", "backend/src/services/server-poll-storage.ts": "64e6b63afb75722d5d9bbdfe49f4f157b6a7a07294825684921280592be1e721", "backend/src/services/server-poll-storage.test.ts": "49eceedfc2a74265cfd70ee849260c24b38298203f6dbae7df3558db2ac931e1", "backend/src/services/server-poll-storage-retention.ts": "269417bf967d88f8bc1c47784fd2e07bdd74420cd5714424e2170a26d2b24645", "backend/src/services/server-poll-storage-journal.ts": "8ede69ff158a1ca2a88233671a53e4ca1065debfbb3fb99375cbb52b0255f7be", "backend/src/services/server-poll-storage-journal.test.ts": "fdc7dd30417d582d92ce303d20f32d3453666375b6fb1fe2a0667ae69b4a675a", "backend/src/services/server-poll-storage.sql.test.ts": "44c5f770f832eebbb6b5d1ee670ca63e8f2d024405830e3433506b44a86cea7c", "backend/src/services/server-poll-storage-execution.sql-helper.ts": "9befb1670747a6c1dd59f2c94785346c6c98e6d81b69990c426060f9731883f0", "backend/src/services/server-poll-storage-restore-evidence.sql-helper.ts": "b95b598c9fc7f42d733945a6536c8c8c054f824dc11038944fda0f5e38708aba", "backend/src/services/server-poll-storage-restore.sql.test.ts": "9add6da209b92b97527e15cd229579b7702bc76fc02ce293c30c4e087ee74988", "backend/src/services/server-poll-journal.ts": "62552e37fce9650b0a1624ce24b5a54970c8ea31a89fdc302998aa3c90effd8a", "backend/src/services/server-poll-durable-session.ts": "2bfafa49fa2010af09a4d534ecdc9f2f08289f49c24f267074ea2e0190e00e02", "backend/src/services/server-poll-rest.ts": "21381f6b584b21936f38e0dfb245cc02f919cb87f9a8980d1c8fdabbac96ebcb", "backend/scripts/test-mcp-postgres.mjs": "9faad5c3ee66dda75972e2b434e9330033fef35897b58b2b473916b368743319", "backend/package.json": "589ac65edf63d4415896ce1e4da67e8c7288497c5d7706dacf7636aea166fd04" } }