Files
MikrotikManager/docs/mcp-server-poll-storage-enrollment-acceptance-v1.json
T

205 lines
12 KiB
JSON

{
"format": "mcp-server-poll-storage-enrollment-acceptance-v1",
"date": "2026-10-26",
"scope": "Normal fresh-only poll-storage migration and existing-worker retention lifecycle, without public poll activation.",
"enrollment": {
"normalMigrations": 39,
"selfManaged": 22,
"ownerManaged": 17,
"migrationStatements": 25,
"opaqueBodies": 6,
"requiredNewTables": 2,
"pristineSeedTables": 18,
"globalUsageZeroSeedOnly": true,
"atomicOwnMarker": true,
"historyAndMarkersOverflowLimit": 40,
"legacyProbeFixturePrefixUnchanged": 36,
"fixedPollFixturePrefix": 38,
"unmarkedAndNonemptyJournalRefused": true,
"historicalBackfillPerformed": false,
"independentReferenceReissuedFor39": true,
"readyAuthorized": false
},
"normalFirstInstall": {
"normalStartupTwice": true,
"migrations": 39,
"globalZeroSeed": true,
"legacyPrefix": 38,
"nonemptyJournalRefusedBeforeDdl": true,
"oldRowsPreserved": true,
"noForgedMarker": true,
"actualWorkerTickWithMcpDisabled": true
},
"normalFullQuotaPoll": {
"fourActualNativeGets": 4,
"allDispatchesAfterConfirmedConsumedAdmission": 4,
"maintenanceEffects": 147,
"completedPublications": 151,
"fullJournalRows": 312,
"logicalReservationBytes": "8421376",
"knownReplayNoNewNativeOrCharge": true,
"freshAuthorityReads": 73120,
"elapsedWithReplayMs": 118878,
"productionQuotaBoundAssembly": true,
"actualNewRestAuthorityFactory": false,
"publicRegistration": false
},
"afterNormalTerminalRestore": {
"tablesCompared": 7,
"exactClaimTokensAndCiphertextHashes": true,
"actualAdmissions": 128,
"chargedAdmissions": 128,
"allOwnerCountersReconciled": true,
"restoredGlobalQuotaStillEnforced": true,
"refusedAttemptChangesNoRows": true,
"newNativeDispatches": 0,
"productionDatabaseTouched": false
},
"currentExpiredPartitionDropAndWriterExclusion": {
"fourNativeGets": 4,
"maintenanceEffects": 148,
"parents": 12,
"completedPublications": 152,
"sameBackendLeaseAndTransactions": true,
"ordinaryWriterBlockedBeforeRelationSql": true,
"realJournal": true,
"repeatedApplyNoNewNative": true,
"outerInputMutationCannotReplaceCapturedIdentityOrAuthority": true,
"changedPlanBindingRefused": true,
"lateRevocationRefused": true,
"actualHttpAuthenticationMiddleware": false,
"productionRegistration": false,
"externalNetwork": false,
"authorityReads": 73637
},
"lifecycleSql": {
"cases": 12,
"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",
"direct GC predicate itself locks current retention until transaction end; concurrent retention increase cannot race a GUC-enabled delete",
"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 existing worker tick collects an eligible original terminal poll admission and refunds quota while MCP is disabled",
"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"
],
"migrations": 39,
"actualMigrationFileStagedForOwnedHistoricalFixtures": true,
"allFileStatementsAndRealTerminalMarker": true,
"realPgTransactions": true,
"realQuotaTriggers": true,
"historicalFixtureBeforeGuards": true,
"providerOrClockOverrides": false,
"simulatedCommitAckLossAfterRealCommit": true,
"publicRoutesRegistered": false,
"journalAdapterIntegrated": true,
"productionDatabaseTouched": false,
"externalNetwork": false
},
"worker": {
"actualTickWithMcpDisabled": true,
"actualExpiredAdmissionDeletionAndRefund": true,
"existingTickAfterProbeRetention": true,
"newTimer": false,
"existingStopAwaitsTick": true,
"retentionUnitCases": 9,
"sharedGateAndConcurrentDrainTested": true,
"wallBudgetMs": 20000,
"sqlBudgetMs": 5000,
"batch": 8
},
"gcFix": {
"predicateItselfLocksAuthoritativeRetentionForShare": true,
"directGucDeleteCannotRaceRetentionIncrease": true,
"actualConcurrentUpdateLockTimeoutObserved": true,
"collectorAlsoHoldsSettingLock": true
},
"tests": {
"storageUnitCases": 45,
"manifestCases": 17,
"controlledMigrationAndPristineUnit": true,
"actualControlledReference39And18Seeds": true,
"actualPublicDiagnosticTools": 6,
"actualIpsecCertificateRoles": 4,
"actualRestMcpOwnerPortalAndExpiry": true,
"fullManagementAndPartitionWriterRegression": true,
"strictTypesIncludingChangedTests": true,
"eslint": true,
"backendBuild": true
},
"activation": {
"normalSchemaInstalledByApplicationMigrationCode": true,
"pollGcWorkerAttached": true,
"publicPollToolRegistered": false,
"publicRestPollRouteReplaced": false,
"actualWholeNewAuthorityFactoryPollAccepted": false,
"actualHumanApprovedPollMcpRuntimeAccepted": false,
"deployment": false,
"productionDatabaseTouched": false,
"realChrTouched": false,
"realPrivateKeysExported": false
},
"coverage": {
"tools": 357,
"routes": 262,
"mediated": 194,
"excluded": 62,
"pending": 6,
"unmapped": 0
},
"fixtureNotes": [
"Normal current first-install acceptance executes ALL39 through real applySqlMigrations twice; a separate owned database validates refusal on an existing uncharged orphan journal row",
"The separate lifecycle profile executes the fixed historical38 prefix then every literal statement of actual0039 on one backend/transaction; synthetic aged rows are seeded between table DDL and guard installation. The real file marker is executed unchanged; no standalone fabricated0039 marker, clock override or trigger disabling is used",
"Both current39 profiles include actual full quota-bound native poll, quota cap and terminal dump/restore; all seven tables are compared including claim tokens/ciphertext and owner/global counters",
"Independent reference run printed two old case labels with38 although actual pinned counts/prefix/digest were39; labels were subsequently corrected only, without logic changes"
],
"remaining": [
"Add a strictly read-only authenticated persisted poll receipt reader for verify/reconcile, without calling claim or execute",
"Implement sealed original principal/owner/receipt/expiry binding, real runtime operation ID, inherited verified guard and human approval for servers.poll",
"Run full actual REST/MCP authority factory SQL/HTTP acceptance under the existing180s budget; duplicate authority boundaries need consolidation without caching policy decisions",
"Before public REST replacement, validate practical retained-admission capacity and quota reporting: current128/global and8/owner reservations are retained until GC, not merely concurrent slots",
"Public poll registration and exact REST wiring; remaining five manual collector routes; broader database-control/backfill/recovery/native routing and final UI/client/network acceptance"
],
"evidence": {
"tmp/poll-0039-fresh-sql-v2.log": "b00d83ec8922ca86fb84ba357ed943546a5537df279fd8db815b7d70e29010c3",
"tmp/poll-0039-lifecycle-sql-v1.log": "8a882acfdb3ef3c4867a62d7811903322d53c45e9c02d80aabed1866af06dde5",
"tmp/poll-0039-reference-sql-v1.log": "ffa00e25898fc608f0e039341ba462122ef92bcc67a8a73997428f321e052dd1",
"tmp/poll-0039-diagnostics-regression.log": "7c8ef64a50a33fc6f00a3e840a9b1ab391b98dc5c0c585351cbf0a21527b196f",
"tmp/poll-0039-ipsec-regression.log": "ea0c1eac9f74e7ddb3a93877462ba8c532984bed59d5c88563238b3832a98ab0",
"tmp/poll-0039-management-final.log": "8aa7e2acef0e84bd1988700d7bcbd36c66c587bb5276604824e7209e758be5de",
"tmp/poll-0039-control-unit.log": "3d6603735bdef64d1398bdcc62c3ccaa739515d760411e873dc57f872e61470e",
"tmp/poll-0039-manifest-v2.log": "fa5bcfc7c6575e31387c63c836949e66e21175a8f8a2dc7a4934c72b678eb732",
"tmp/poll-0039-storage-types.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"tmp/poll-0039-control-types.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"tmp/poll-0039-lint-final.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"tmp/poll-0039-build-final.log": "4f26b355b57fa516cf22f7286ea65b24c6b8d066f666278b5e704f5aa528e2d3",
"tmp/poll-0039-coverage.log": "35a0e9246b857660ebb30b2e86eee901b06b6509e0bce61a7272312eb55b40d1",
"tmp/poll-0039-durable-drop-regression.log": "03cc74937c95b8bb4ad02c748607819cf53b489a77abfad24a1b00f63c9fc4cc"
},
"sourceSha256": {
"backend/drizzle/0039_server_poll_storage.sql": "ce3957c2c0196114e85856c93db63fc6e31b61a4866486bc685e017477023f27",
"backend/src/db/proposals/server-poll-storage.sql": "28f98baa2f74617157f37f346f5fde064b8cee0fc60b4731b6715669b19cafef",
"backend/src/db/legacy-poll-storage-fixture.ts": "e183b651651d1977074534bc1409b10500d30e48a67fbee15a73c8fa4a6440ff",
"backend/src/db/legacy-probe-fixture.ts": "662200c3862c72912f8c2e34ea541d7e32d4a2a4486b16ef16422d26d885dab9",
"backend/src/db/migration-manifest.ts": "5ead21cd617ea47daf81d8899f80077cb955e03481323d95d30d1f9740ca5a69",
"backend/src/db/migration-manifest.test.ts": "b123a755a8314ce16793372e834d526111fffe5c03a0a2dcb6b7abec0053ae05",
"backend/src/db/controlled-migrations.ts": "188ddaae53adc16cf957bbf4cf6863db56f58d68279ed7f94282668cca11f861",
"backend/src/db/controlled-schema-reference.ts": "0f2c3bf38edec8babdde9b7e6b0f4a4ebe2519aa7555b8152a99e32e67dd6237",
"backend/src/db/controlled-schema-verification.ts": "da5499f9eb942a2fc5937c7496498267bb1b3378ce128196e70ac97863fc676e",
"backend/src/services/server-poll-storage-fresh.sql.test.ts": "87fb7b39855f1740475d1cee520fcc3c81f06bf6c42ae04e160135497f6ca4a0",
"backend/src/services/server-poll-storage.sql.test.ts": "83746be76e446a663891ed69530425c5e3a9dbee05613b48d0d50e0809341fb4",
"backend/src/services/server-poll-storage-fill.sql-helper.ts": "446c21f6f6eeef25f04081f559b38596967aac1ad9b9e003adc6937e76ebf8ec",
"backend/src/services/server-poll-storage-retention.ts": "8c5a4b9f52d889118622ba5203404bad3f69bd0d9d9b3f44f2ff50739aecdbeb",
"backend/src/services/server-poll-storage-retention.test.ts": "c3de55d25b2114e6942d473d2c854b821af634184a3d787fb6cf167c1bf685ec",
"backend/src/services/server-poll-durable-session.sql.test.ts": "610bc28fc112a78462358b03b00683b882aec96755858261356f6e334aa5a5b7",
"backend/src/modules/mcp/workers.ts": "dc5a973145efafc93337a903a0f89fe4d924b4d6af9d2d1fa2ada74f65844c16",
"backend/scripts/test-mcp-postgres.mjs": "0d3d7661bd92c9b4564d6f2899cf09b167777b7c0dbed951656754b6d9ca451e",
"backend/package.json": "0d97eda0949a13f9cc7fe946f7d6696834f24e20b6698847cb9cdbc033037997"
}
}