Files
MikrotikManager/docs/mcp-poll-cost-reduction-progress-20261029.json
T

762 lines
24 KiB
JSON

{
"date": "2026-10-29",
"status": "coherent-principal-local-unwrapped-poll-accepted-whole-plan-open",
"fullPlanComplete": false,
"remainingDirectionCount": 7,
"pollDirectionComplete": false,
"wholeInstallation2GbAccepted": false,
"baseline": {
"log": "tmp/mcp-poll-cost-before-owned-20261029.log",
"exitCode": 1,
"diagnosticOnly": true,
"physicalClientSqlCalls": 394429,
"maxRssKiB": 250416,
"elapsedMs": 183220.7101,
"cpuUsageMicroseconds": {
"user": 85844000,
"system": 52781000
},
"failure": {
"phase": "approved-apply",
"elapsedMs": 180814,
"nativeGets": 4,
"admissionChecked": 4,
"protocolErrors": 0,
"progress": {
"used_rows": 182,
"receipt_rows": 0,
"quarantine_rows": 0,
"last_stage": "publish.86",
"ack_rows": 90
},
"code": "ERR_ASSERTION"
},
"sourceAndEmittedPins": "tmp/mcp-poll-cost-baseline-source-20261029/manifest.json",
"failureCauseProven": false
},
"changes": {
"sameInvocationGrantSource": "effective policy and raw grant proof use the same freshly read/validated rows; both before/after authority reads remain fresh",
"ownedJournalSnapshot": "four metadata reads become one fixed MATERIALIZED snapshot under the same private storage/global/admission ownership",
"legacyJournalUnchanged": true,
"fullRetainedPrefixMacAuditPreserved": true,
"rawProofsReceiptAndOperationV1FormatUnchanged": true,
"authorizationDecisionCacheIntroduced": false,
"deadlineIncreased": false
},
"acceptedChecks": {
"authorityComponentTests": 14,
"storeComponentReportedTests": 5,
"diagnosticsComponentTests": 8,
"newJournalSnapshotComponentGroups": 7,
"existingJournalScenarios": 28,
"bridgeComponentTests": 16,
"wholeManagementProfileExitCode": 0,
"actualSyntheticRestJournalSqlGroups": 3,
"actualQuotaGuardBlocksQuarantineByExactBackendPid": true,
"actualCommittedQuarantineDeniesNextAppend": true,
"actualPreexistingQuarantineSkipsIndependentAnchorLock": true,
"independentReadOnlyReview": "no-actionable-findings-for-both-source-changes",
"strictTypesAndScopedLint": "pass"
},
"pairedAfter": {
"status": "pass",
"sourceAndEmittedPins": "tmp/mcp-poll-cost-after-source-20261029.json",
"log": "tmp/mcp-poll-cost-after-owned-20261029.log",
"diagnosticOnly": true,
"unwrappedProductionAcceptance": false,
"exitCode": 0,
"elapsedMs": 146395.9153,
"physicalClientSqlCalls": 561889,
"maxRssKiB": 257248,
"completedPublications": 148,
"journalRows": 306,
"measurement": {
"compiledProductionApp": true,
"tsxLoaded": false,
"execArgv": [
"--max-old-space-size=192",
"--max-semi-space-size=16"
],
"heapLimitBytes": 251658240,
"heapLimitMiB": 240,
"diagnosticOnly": true,
"sqlCosts": {
"diagnosticOnly": true,
"wrappedPgQuery": true,
"categories": [
{
"category": "mcp_connections:BEGIN",
"count": 3,
"totalMs": 4.956499999999778,
"maxMs": 3.5802000000001044,
"errors": 0
},
{
"category": "mcp_connections:INSERT",
"count": 3,
"totalMs": 2.3935999999998785,
"maxMs": 1.6788000000001375,
"errors": 0
},
{
"category": "mcp_connections:OTHER",
"count": 1,
"totalMs": 11.821400000000267,
"maxMs": 11.821400000000267,
"errors": 0
},
{
"category": "mcp_connections:SELECT",
"count": 53535,
"totalMs": 14097.531299998624,
"maxMs": 13.068100000004051,
"errors": 0
},
{
"category": "mcp_connections:UPDATE",
"count": 4,
"totalMs": 1.1302999999793428,
"maxMs": 0.3276999999943655,
"errors": 0
},
{
"category": "mcp_credentials:BEGIN",
"count": 1,
"totalMs": 2.1077999999999975,
"maxMs": 2.1077999999999975,
"errors": 0
},
{
"category": "mcp_credentials:INSERT",
"count": 3,
"totalMs": 2.894999999999527,
"maxMs": 2.3398999999999432,
"errors": 0
},
{
"category": "mcp_credentials:OTHER",
"count": 1,
"totalMs": 2.4629000000004453,
"maxMs": 2.4629000000004453,
"errors": 0
},
{
"category": "mcp_credentials:SELECT",
"count": 53527,
"totalMs": 15828.776599998468,
"maxMs": 19.802199999998265,
"errors": 0
},
{
"category": "mcp_grants:SELECT",
"count": 88973,
"totalMs": 21593.90070000272,
"maxMs": 14.647799999999734,
"errors": 0
},
{
"category": "mcp_operation_steps:INSERT",
"count": 1,
"totalMs": 1.283100000000104,
"maxMs": 1.283100000000104,
"errors": 0
},
{
"category": "mcp_operation_steps:SELECT",
"count": 1,
"totalMs": 1.8616999999794643,
"maxMs": 1.8616999999794643,
"errors": 0
},
{
"category": "mcp_operation_steps:UPDATE",
"count": 2,
"totalMs": 1.113100000016857,
"maxMs": 0.8084000000089873,
"errors": 0
},
{
"category": "mcp_operations:BEGIN",
"count": 4,
"totalMs": 60.35699999999997,
"maxMs": 50.24579999999992,
"errors": 0
},
{
"category": "mcp_operations:INSERT",
"count": 1,
"totalMs": 0.8286000000002787,
"maxMs": 0.8286000000002787,
"errors": 0
},
{
"category": "mcp_operations:OTHER",
"count": 319,
"totalMs": 218.16169999998556,
"maxMs": 19.08660000000009,
"errors": 0
},
{
"category": "mcp_operations:SELECT",
"count": 20640,
"totalMs": 14844.555099999563,
"maxMs": 20.131099999998696,
"errors": 0
},
{
"category": "mcp_operations:UPDATE",
"count": 2,
"totalMs": 0.512700000021141,
"maxMs": 0.2998000000079628,
"errors": 0
},
{
"category": "mcp_owner_revocations:BEGIN",
"count": 1,
"totalMs": 5.331699999999955,
"maxMs": 5.331699999999955,
"errors": 0
},
{
"category": "mcp_owner_revocations:SELECT",
"count": 53530,
"totalMs": 11327.655299997794,
"maxMs": 18.80040000000008,
"errors": 0
},
{
"category": "mcp_plans:INSERT",
"count": 1,
"totalMs": 3.5207000000000335,
"maxMs": 3.5207000000000335,
"errors": 0
},
{
"category": "mcp_plans:OTHER",
"count": 1,
"totalMs": 4.614399999999932,
"maxMs": 4.614399999999932,
"errors": 0
},
{
"category": "mcp_plans:SELECT",
"count": 10,
"totalMs": 4.230300000011539,
"maxMs": 1.6359999999999673,
"errors": 0
},
{
"category": "mcp_plans:UPDATE",
"count": 3,
"totalMs": 0.6045999999987544,
"maxMs": 0.22659999999996217,
"errors": 0
},
{
"category": "mcp_protections:OTHER",
"count": 458,
"totalMs": 2587.3652000000093,
"maxMs": 14.404399999999441,
"errors": 0
},
{
"category": "mcp_protections:SELECT",
"count": 35620,
"totalMs": 6350.492600000693,
"maxMs": 15.589999999999236,
"errors": 0
},
{
"category": "mcp_settings:SELECT",
"count": 53528,
"totalMs": 12363.266799998317,
"maxMs": 22.228799999997136,
"errors": 0
},
{
"category": "mcp_settings:UPDATE",
"count": 2,
"totalMs": 1.496800000008534,
"maxMs": 1.250300000000152,
"errors": 0
},
{
"category": "other:BEGIN",
"count": 54211,
"totalMs": 12317.412199999571,
"maxMs": 28.092899999999645,
"errors": 0
},
{
"category": "other:COMMIT",
"count": 18508,
"totalMs": 2949.585199999971,
"maxMs": 35.32600000000093,
"errors": 0
},
{
"category": "other:DELETE",
"count": 1,
"totalMs": 0.1467000000002372,
"maxMs": 0.1467000000002372,
"errors": 0
},
{
"category": "other:INSERT",
"count": 53,
"totalMs": 45.27939999999603,
"maxMs": 13.834699999999884,
"errors": 0
},
{
"category": "other:OTHER",
"count": 1074,
"totalMs": 818.1294999998472,
"maxMs": 36.816900000001624,
"errors": 0
},
{
"category": "other:ROLLBACK",
"count": 35698,
"totalMs": 7016.334800000534,
"maxMs": 14.027500000000146,
"errors": 0
},
{
"category": "other:SELECT",
"count": 18972,
"totalMs": 8679.614599999504,
"maxMs": 1222.8971999999994,
"errors": 0
},
{
"category": "other:SET",
"count": 53507,
"totalMs": 12265.573299999305,
"maxMs": 14.646499999999833,
"errors": 0
},
{
"category": "other:UPDATE",
"count": 3,
"totalMs": 2.2207999999864114,
"maxMs": 1.369799999985844,
"errors": 0
},
{
"category": "server_poll_acks:OTHER",
"count": 152,
"totalMs": 160.85680000000775,
"maxMs": 6.9517999999989115,
"errors": 0
},
{
"category": "server_poll_acks:SELECT",
"count": 7,
"totalMs": 5.1117999999996755,
"maxMs": 2.01589999999851,
"errors": 0
},
{
"category": "server_poll_executions:OTHER",
"count": 314,
"totalMs": 603.5694999999764,
"maxMs": 16.441699999999855,
"errors": 0
},
{
"category": "server_poll_executions:SELECT",
"count": 7,
"totalMs": 2.135799999966821,
"maxMs": 0.48199999998905696,
"errors": 0
},
{
"category": "server_poll_intents:OTHER",
"count": 156,
"totalMs": 163.27279999988514,
"maxMs": 6.326000000000931,
"errors": 0
},
{
"category": "server_poll_intents:SELECT",
"count": 7,
"totalMs": 5.258099999991373,
"maxMs": 2.10130000000936,
"errors": 0
},
{
"category": "server_poll_quarantines:OTHER",
"count": 5,
"totalMs": 2.265900000013062,
"maxMs": 1.3605999999999767,
"errors": 0
},
{
"category": "server_poll_quarantines:SELECT",
"count": 7,
"totalMs": 1.2158000000322318,
"maxMs": 0.36229999999977736,
"errors": 0
},
{
"category": "server_poll_receipts:OTHER",
"count": 5,
"totalMs": 2.920799999992596,
"maxMs": 2.104800000000978,
"errors": 0
},
{
"category": "server_poll_receipts:SELECT",
"count": 7,
"totalMs": 1.2266999999628752,
"maxMs": 0.32529999999997017,
"errors": 0
},
{
"category": "server_poll_storage_admissions:INSERT",
"count": 1,
"totalMs": 3.509299999999712,
"maxMs": 3.509299999999712,
"errors": 0
},
{
"category": "server_poll_storage_admissions:OTHER",
"count": 2,
"totalMs": 27.996300000000247,
"maxMs": 14.121000000000095,
"errors": 0
},
{
"category": "server_poll_storage_admissions:SELECT",
"count": 335,
"totalMs": 170.5652000001287,
"maxMs": 5.786200000000463,
"errors": 0
},
{
"category": "server_poll_storage_admissions:UPDATE",
"count": 1,
"totalMs": 2.246399999999994,
"maxMs": 2.246399999999994,
"errors": 0
},
{
"category": "server_poll_storage_usage:SELECT",
"count": 8,
"totalMs": 3.0692000000253756,
"maxMs": 1.3568999999997686,
"errors": 0
},
{
"category": "servers:BEGIN",
"count": 2,
"totalMs": 12.62220000000002,
"maxMs": 9.165100000000166,
"errors": 0
},
{
"category": "servers:INSERT",
"count": 1,
"totalMs": 1.7817000000000007,
"maxMs": 1.7817000000000007,
"errors": 0
},
{
"category": "servers:OTHER",
"count": 314,
"totalMs": 503.7062999999823,
"maxMs": 272.615,
"errors": 0
},
{
"category": "servers:SELECT",
"count": 18354,
"totalMs": 3851.7631999987752,
"maxMs": 8.66939999999886,
"errors": 0
},
{
"category": "servers:UPDATE",
"count": 2,
"totalMs": 1.7625000000134605,
"maxMs": 1.1170000000001892,
"errors": 0
}
]
},
"cpu": {
"user": 69921000,
"system": 49641000
},
"before": {
"rss": 52756480,
"heapTotal": 6426624,
"heapUsed": 5006816,
"external": 1869571,
"arrayBuffers": 18201
},
"appReady": {
"rss": 221261824,
"heapTotal": 158748672,
"heapUsed": 133126744,
"external": 4057729,
"arrayBuffers": 81122
},
"after": {
"rss": 262168576,
"heapTotal": 194994176,
"heapUsed": 142482640,
"external": 4965729,
"arrayBuffers": 958296
},
"sampledPeak": {
"rss": 262168576,
"heapTotal": 194994176,
"heapUsed": 161518432,
"external": 4965729,
"arrayBuffers": 958296
},
"samples": 582,
"sampleIntervalMs": 250,
"maximumSamples": 10000,
"maxRssKiB": 257248,
"candidateBackendRssBudgetBytes": 536870912,
"elapsedMs": 146395.9153,
"currentMigrations": 41,
"actualNativeGets": 4,
"completedPublications": 148,
"journalRows": 306,
"schedulerStarted": false,
"productionDatabaseTouched": false,
"wholeInstallation2GbAcceptance": false
}
},
"currentSourceFullBackendRegressionAfterTheseEdits": "pending",
"remaining": [
"current-source whole backend regression",
"NetFlow template/accumulator/Worker memory boundaries",
"remaining poll lifecycle/336-source capacity/physical load",
"whole-installation Linux Node22 load within2GB"
],
"logs": [
"tmp/mcp-poll-cost-before-owned-20261029.log",
"tmp/mcp-poll-journal-snapshot-owned-20261029.log",
"tmp/mcp-poll-batched-management-20261029.log",
"tmp/mcp-poll-coherent-unwrapped-owned-20261029.log",
"tmp/mcp-principal-security-source-owned-20261029.log",
"tmp/mcp-poll-metadata-explicit-isolation-owned-20261029.log",
"tmp/mcp-poll-coherent-management-20261029.log",
"tmp/mcp-operation-origin-coherent-component-20261029.log",
"tmp/mcp-ipsec-existing-coherent-production-20261029.log"
],
"productionDatabaseTouched": false,
"remoteServerChanged": false,
"chrTouched": false,
"unwrappedAfter": {
"status": "failed",
"log": "tmp/mcp-poll-unwrapped-batched-owned-20261029.log",
"sameAppSourceAndEmittedByteProof": "tmp/mcp-poll-unwrapped-app-byte-proof-20261029.json",
"exitCode": 1,
"failure": {
"phase": "approved-apply",
"elapsedMs": 180908,
"nativeGets": 4,
"admissionChecked": 4,
"protocolErrors": 0,
"progress": {
"used_rows": 240,
"receipt_rows": 0,
"quarantine_rows": 0,
"last_stage": "publish.115",
"ack_rows": 119
},
"code": "ERR_ASSERTION"
},
"measurement": {
"nodeVersion": "v25.5.0",
"platform": "win32",
"arch": "x64",
"compiledProductionApp": true,
"execArgv": [
"--max-old-space-size=192",
"--max-semi-space-size=16"
],
"heapLimitBytes": 251658240,
"sampledPeak": {
"rss": 263700480,
"heapTotal": 195731456,
"heapUsed": 157372672,
"external": 4859022,
"arrayBuffers": 849336
},
"samples": 729,
"maxRssKiB": 258036,
"candidateBackendRssBudgetBytes": 536870912,
"elapsedMs": 183255.9537,
"diagnosticOnly": false,
"cpu": {
"user": 71953000,
"system": 54578000
},
"workloadAccepted": false,
"wholeInstallation2GbAcceptance": false
},
"accepted": false,
"causeProven": false,
"automaticReplayAttempted": false,
"deadlineIncreased": false
},
"comparisonLimits": [
"Baseline stopped at publish86; after completed148 publications, so total SQL counts are not equal-work ratios.",
"Instrumentation overhead and local background load were not controlled; do not attribute the entire timing difference to the patch.",
"Local compiled process is Windows Node25.5.0, while Docker target uses Linux Node22; whole installation remains unaccepted."
],
"staticOrdinaryBoundaryClientCalls": {
"before": 33,
"afterGrantReuse": 31,
"runtime": 11,
"ownedMetadataIncludingFraming": 5,
"authorityBefore": 17,
"authorityAfter": 15,
"scope": "successful ordinary fixture boundary; no routing/OSPF extras or pool startup wire messages",
"correction": "Earlier29 omitted4 owned metadata framing calls; measured394429 remains unchanged",
"afterCoherentPrincipalAndMetadataSetup": 22,
"currentRuntime": 9,
"currentOwnedMetadataIncludingFraming": 4,
"currentAuthority": 9
},
"coherentPrincipal": {
"captures": 2,
"filesystemCutoffBetweenCaptures": true,
"freshFinalGenerationAndClockChecks": true,
"authorizationDecisionCache": false,
"rawPolicyAndGrantSqlSha256": true,
"exactUtcTimestampFractionDigits": 6,
"connectionBytesLimit": 8388608,
"grantBytesLimit": 2097152,
"oversizedPresentSourcesNeverBecomeAbsent": true,
"portalPrincipalGrantFailureOrderPreserved": true,
"borrowedNonReadCommittedRefused": true,
"fullFormalZodDescriptorSpaceClaimedCovered": false,
"postFileExternalOnlyRevocationGapClaimedClosed": false,
"sqlCredentialExpiryStillUsesOriginalTransactionNow": true,
"actualComponentSqlGroups": 10,
"actualComponentSqlLog": "tmp/mcp-principal-security-source-owned-20261029.log",
"independentFinalReview": "previous-two-findings-closed-no-remaining-P1-P2-found"
},
"metadataSetup": {
"singleLocalSettingsQuery": true,
"explicitReadCommittedReadOnly": true,
"unitTests": 3,
"actualMetadataAndJournalSqlGroups": 4,
"sessionRepeatableReadOverrideAndPoolRestoration": true,
"log": "tmp/mcp-poll-metadata-explicit-isolation-owned-20261029.log"
},
"unwrappedCoherentAfter": {
"exitCode": 0,
"log": "tmp/mcp-poll-coherent-unwrapped-owned-20261029.log",
"runtime": {
"actualDefaultPublicRegistry": true,
"actualRuntimeHumanApprovalRequiredInAutonomousMode": true,
"originalSealedExpiryPreserved": true,
"actualOperationIdentityBound": true,
"actualNativeGets": 4,
"dispatchesAfterConsumedAdmission": 4,
"maintenanceEffects": 144,
"completedPublications": 148,
"journalRows": 306,
"persistedReadAndVerifyNoMutation": true,
"idempotentApplyNoNewNativeOrCharge": true,
"readOnlyAndScopeAndJsonDeniedBeforeNative": true,
"directServiceRequiresInheritedGuard": true,
"safeSnapshotOnly": true,
"elapsedMs": 148503
},
"measurement": {
"compiledProductionApp": true,
"tsxLoaded": false,
"nodeVersion": "v25.5.0",
"platform": "win32",
"arch": "x64",
"execArgv": [
"--max-old-space-size=192",
"--max-semi-space-size=16"
],
"heapLimitBytes": 251658240,
"heapLimitMiB": 240,
"diagnosticOnly": false,
"cpu": {
"user": 64203000,
"system": 42563000
},
"before": {
"rss": 52674560,
"heapTotal": 6426624,
"heapUsed": 5007208,
"external": 1869743,
"arrayBuffers": 18373
},
"appReady": {
"rss": 225460224,
"heapTotal": 161107968,
"heapUsed": 136395816,
"external": 4065988,
"arrayBuffers": 89314
},
"after": {
"rss": 263651328,
"heapTotal": 194445312,
"heapUsed": 133093120,
"external": 4679121,
"arrayBuffers": 671688
},
"sampledPeak": {
"rss": 263651328,
"heapTotal": 194646016,
"heapUsed": 156866992,
"external": 5113561,
"arrayBuffers": 1060936
},
"samples": 600,
"sampleIntervalMs": 250,
"maximumSamples": 10000,
"maxRssKiB": 258316,
"candidateBackendRssBudgetBytes": 536870912,
"elapsedMs": 150868.9248,
"currentMigrations": 41,
"actualNativeGets": 4,
"completedPublications": 148,
"journalRows": 306,
"schedulerStarted": false,
"productionDatabaseTouched": false,
"wholeInstallation2GbAcceptance": false
},
"compiledSinglePollAccepted": true,
"wholeInstallation2GbAccepted": false,
"dockerNode22LinuxAccepted": false,
"deadlineIncreased": false,
"previousUnknownOperationReplayed": false
},
"preCoherentSourceSha256": {
"backend/src/modules/mcp/store.ts": "5b041d387e2ceefbd01d016b532860c0988163dc02f4e3f2b72ca413714f562b",
"backend/src/services/server-poll-authority.ts": "f4e0d44fda4f4121d499473ae2cc49fd09a089d0f04bd33ada2dfcdfba067983",
"backend/src/services/server-poll-journal.ts": "4b278f95c3e9b668cc508f91b9b7b3464bd89822c3a2d19da90b15780e7fb6f8",
"backend/src/services/server-poll-cost-diagnostics.ts": "cf211dc058c7f61d3c4546863a71c87c6b0360443b4261c0942c63f4afd118ad"
},
"pollCoreSourceSha256": {
"backend/src/modules/mcp/store.ts": "1223aba67c9f13a439a07ce79b1b4a3cbe4e9fc918cb58e2f099ef628adfbb26",
"backend/src/modules/mcp/portal-revocation.ts": "55693a9ae2d828dc6726ce402f7db80054a8a850af41c2cee5e9f822a179cd89",
"backend/src/modules/mcp/server-poll-production.ts": "6ec83218625af865c209093a2754c1065ae9b32e9a8fce4f39dcf87e5049ab67",
"backend/src/services/server-poll-authority.ts": "d0f566b1059165e50dbde4d41d9d5fcc718be23d8c6eaeab4cc685b832571ee9",
"backend/src/services/server-poll-journal.ts": "4b278f95c3e9b668cc508f91b9b7b3464bd89822c3a2d19da90b15780e7fb6f8"
},
"loadedCompiledPollCoreSha256": {
"backend/dist-mcp-memory/modules/mcp/store.js": "9ee63a39b5e1a469a61380303a11946b2f66b35aa64805550455399eda2a8c9a",
"backend/dist-mcp-memory/modules/mcp/portal-revocation.js": "cef28ded7a1124c18a860cd3b0e4d69a279aa2836cb5c4c85d25358a78fc6a37",
"backend/dist-mcp-memory/modules/mcp/server-poll-production.js": "fc51afb3e584598f084e51c3b755f39aff45a97c413a47c2df27f1a8c974556d",
"backend/dist-mcp-memory/services/server-poll-authority.js": "ea869be30f241203cd2e09b2959ea381079ee0dfb54ecf8384006fda41252d01",
"backend/dist-mcp-memory/services/server-poll-journal.js": "58da9936c78294d0806b00a5abcde872c6c5d0ab9b560b42104f8bb66d4f5869"
}
}