Files
MikrotikManager/docs/mcp-speed-integration-progress-20261028.json
T

395 lines
20 KiB
JSON

{
"date": "2026-10-28",
"status": "accepted-scoped-components",
"progress": {
"closedStageItems": 5,
"totalStageItems": 10,
"openStageItems": [
"S3-06",
"S3-07",
"S3-08",
"S3-09",
"S3-10"
],
"fullMcpPlanComplete": false
},
"evidence": {
"speedAndRunIds": "tmp/mcp-speed-current-integration-owned-pg-20261028.log",
"scheduledOriginal": "tmp/mcp-scheduled-speed-original-owned-pg-20261028.log",
"routerGuard": "tmp/mcp-router-configuration-guard-owned-pg-20261028.log",
"v1Compatibility": "tmp/mcp-router-guard-v1-compatibility-owned-pg-20261028.log",
"restProbeFence": "tmp/mcp-rest-speed-original-probe-fence-owned-pg-20261028.log"
},
"validatedSourceFreeze": {
"date": "2026-10-28",
"sha256": {
"backend/package.json": "a66cdfeae1c81ab653dc9e4dab9089e344752ffea646d9854bb21dc09a892116",
"backend/scripts/test-mcp-postgres.mjs": "a9b52da7a6b581bab09c44ffef2037a451115911974604e45964a7397fc27dc1",
"backend/src/services/config-mutation-policy.ts": "76e99ad403f3fadd77175446bd8dcfc56c6f00e43cd8d7a701f88fb96da01385",
"backend/src/services/bandwidth-speed-run-identity.ts": "d9f9ec571506c1354403334cd5acddf51f68daddf0cc4eee2e6a73317d5894c3",
"backend/src/services/bandwidth-rest-speed-original.ts": "5e6425b018a808b21674f05d760e5ef2927447ab174d76ebee5c65096fdd8dfa",
"backend/src/services/bandwidth-rest-speed-original.sql-helper.ts": "8446f55c3b936acc143464a858a6c1833bf2efbbd888870da043970a04f6b86b",
"backend/src/services/bandwidth-scheduled-speed-original.ts": "38462a3405bf5a513d2326af469a3a888116f7952f058cdab899e4df83badc7b",
"backend/src/services/bandwidth-scheduled-speed-original.sql-helper.ts": "3d61e501d436c6dce2e09569e84b5667206568481278904c6d9b174aec068a9e",
"backend/src/modules/mcp/speed-bandwidth-original.ts": "dca9a36405e729c7b1601f97fc80225e70a02bf354ab40743a24d15b92bfb01a",
"backend/src/modules/mcp/speed-bandwidth-original.test.ts": "407532d9189b98efcaffad9cb764ef77b75dee0946ceffdc92f56f63b72acf2c",
"backend/src/services/bandwidth-speed-workflow.ts": "b70eaa7121e35d6707b78b17edcbb317a4ebd3b95785d9a0ed454234f562e78d",
"backend/src/services/bandwidth-speed-workflow.test.ts": "40dca7f9187a5d6bab8adbe8bc2dd4114afed8fe196f2904db53c9b8ea37cf86",
"backend/src/services/bandwidth-speed-workflow.sql-helper.ts": "76b89c0db97bc3843570b5e26388107057486a49f2e4bfee5d4cc323897211bb",
"backend/src/services/bandwidth-native-dispatch-composite.ts": "c204fc9c802ac2a701c6e4c472d295c1f478a5ee511bedafa651fcfde64f78e4",
"backend/src/services/bandwidth-native-dispatch-composite.test.ts": "520800e60ad4b7a4f7e95ddbb8ea6b80810d17a6f4f51849df2833cf9b43e484",
"backend/src/services/bandwidth-native-dispatch.test.ts": "5f584a47668bb0ffb5998f342edf468508267512c84b5d04a744ef36d5f9c7f6",
"backend/src/services/bandwidth-peer-execution-host.ts": "65d8fd5dd0700d1a52baf5ff1c47fe72e47af5e28a1b0e7cec1c158a314a6dfe",
"backend/src/services/router-configuration-guard.ts": "b62025b1f777af13f9e3e8435b35cd01797fc4c383ffdb8b67f1f298d76cf7c5",
"backend/src/services/router-configuration-guard-schema.ts": "42b14d561913f16a2f62ac98f32ba6f04f0c2c4d06dffdec9a419e61e13dac1a",
"backend/src/services/router-configuration-guard.sql-helper.ts": "d60326547e56ff599c1f4651ea909e83b0a76b9d710cd870159cbe85972129ab",
"backend/src/services/router-configuration-guard.sql-fixture.ts": "1606bec29a16038bbe86c416c6c51bc496363219dbd433c7635f9703bd651b02",
"backend/src/services/router-configuration-guard-compatibility.sql-helper.ts": "a5abcfcbf985c6a0764cd9295cb515adcfb785ff9bd26ef4735400e0a9e50553"
},
"postPgChanges": [
{
"file": "backend/src/services/bandwidth-native-dispatch-composite.ts",
"oldSha256": "bc8ad12848b7ee97ba46bd986de3e29a1e10d4a1418718f065d93b4385b8a4dc",
"currentSha256": "c204fc9c802ac2a701c6e4c472d295c1f478a5ee511bedafa651fcfde64f78e4",
"change": "ESLint prefer-const: timer is declared const at its single initialization; no barrier or authority checks changed.",
"validation": "tmp/mcp-speed-integration-final-native-v2-20261028.log"
}
],
"pgSourceFreeze": "tmp/mcp-speed-current-source-freeze-20261028.json"
},
"validation": [
{
"command": "npm --prefix backend run build",
"exitCode": 0,
"evidence": "tmp/mcp-speed-integration-final-build-20261028.log"
},
{
"command": "tsc -p tmp/tsconfig-bandwidth-resumed-final.json",
"exitCode": 0,
"evidence": "tmp/mcp-speed-integration-final-types-20261028.log"
},
{
"command": "npm --prefix backend run test:auth",
"exitCode": 0,
"includesFullMcpRegression": true,
"evidence": "tmp/mcp-speed-integration-final-auth-20261028.log"
},
{
"command": "npm --prefix backend run test:bandwidth-native-dispatch",
"exitCode": 0,
"tests": 70,
"evidence": "tmp/mcp-speed-integration-final-native-v2-20261028.log"
},
{
"command": "npm --prefix backend run test:mcp:speed-original",
"exitCode": 0,
"tests": 14,
"actualDatabase": false,
"evidence": "tmp/mcp-speed-integration-final-mcp-original-20261028.log"
},
{
"command": "npm --prefix backend run test:speed-workflow",
"exitCode": 0,
"workflowAndRunIdentityTests": 41,
"includesExistingSpeedBaseline": true,
"evidence": "tmp/mcp-speed-integration-final-speed-20261028.log"
},
{
"command": "ESLint current scope",
"exitCode": 0,
"evidence": "tmp/mcp-speed-integration-final-lint-v2-20261028.log"
}
],
"accepted": {
"workflowAndRunIds": {
"checks": [
"positive: genuine REST + signed v2 actual broker completion receipt + exact native/ping + real atomic history; no second failure/native replay",
"zero: genuine REST + signed v2 actual broker completion receipt + exact native/ping + real atomic history; no second failure/native replay",
"probe-edit: genuine REST + signed v2 actual broker completion receipt + exact native/ping + real atomic history; no second failure/native replay",
"probe-delete: genuine REST + signed v2 actual broker completion receipt + exact native/ping + real atomic history; no second failure/native replay",
"commit-loss: genuine REST + signed v2 actual broker completion receipt + exact native/ping + real atomic history; no second failure/native replay",
"real native socket drop leaves unknown-busy pair occupancy; no ping/failure row/replay"
],
"runIdChecks": [
"legacy app-history ID with no control attempt refuses before credential projection/native and writes no failure",
"after DELETE of exactly one owned history row, fresh genuine JWT actor/same run ID cannot send again; permanent released control attempt remains unchanged (not a database restore claim)",
"two synchronized actual REST/JWT requests with one new run ID yield exactly one native POST/history COMMIT, at most one success, no failure write or automatic replay",
"actual control journal global attempt PK rejects same run ID across rest-speed/scheduled-speed after first release; explicit synthetic fixture authority, no fake SQL driver"
],
"runIdResults": [
{
"case": "legacy-history",
"nativePosts": 0,
"nativeGets": 0,
"credentialPayloadRows": 0,
"failureWrites": 0
},
{
"case": "owned-history-row-delete",
"removedHistoryRows": 1,
"nativePosts": 0,
"pingPosts": 0,
"failureWrites": 0,
"preservedControlAttempts": 1
},
{
"case": "concurrent-real-requests",
"requests": 2,
"emptyHistoryArrivals": 2,
"nativePosts": 1,
"pingPosts": 1,
"successes": 1,
"historyRows": 1,
"historyCommits": 1,
"failureWrites": 0
},
{
"case": "crosscaller-actual-control-journal",
"callerKinds": [
"rest-speed",
"scheduled-speed"
],
"preservedAttempts": 1,
"nativePosts": 0,
"syntheticAuthority": true,
"actualSql": true
}
],
"metrics": [
{
"mode": "positive",
"requestId": "req-1",
"runId": "owned-workflow-run-e82067d2-34ac-4024-86c2-8089c7069372",
"phase": "done",
"elapsedMs": 16524,
"applicationSql": 2257,
"controlSql": 618
},
{
"mode": "zero",
"requestId": "req-2",
"runId": "owned-workflow-run-9d0f1df3-98f3-4376-9041-dd005e13c263",
"phase": "done",
"elapsedMs": 16695,
"applicationSql": 2257,
"controlSql": 618
},
{
"mode": "probe-edit",
"requestId": "req-3",
"runId": "owned-workflow-run-51145ddd-9408-461e-9e57-00434ff707bd",
"phase": "done",
"elapsedMs": 18406,
"applicationSql": 2257,
"controlSql": 618
},
{
"mode": "probe-delete",
"requestId": "req-4",
"runId": "owned-workflow-run-1bdfa667-c2db-418a-84f8-959d7031548d",
"phase": "done",
"elapsedMs": 17440,
"applicationSql": 2257,
"controlSql": 618
},
{
"mode": "commit-loss",
"requestId": "req-5",
"runId": "owned-workflow-run-1b071317-a6e3-42c5-a945-bffa2261b2fc",
"phase": "unknown",
"elapsedMs": 17529,
"applicationSql": 2258,
"controlSql": 618
},
{
"mode": "runid-legacy",
"requestId": "req-6",
"runId": "owned-workflow-run-legacy-afedc989-35cb-4ac4-a703-70d3ca09a381",
"phase": "unknown",
"failureCode": "BANDWIDTH_SPEED_RUN_ID_UNAVAILABLE",
"elapsedMs": 24,
"applicationSql": 15,
"controlSql": 0
},
{
"mode": "runid-history-delete",
"requestId": "req-7",
"runId": "owned-workflow-run-e82067d2-34ac-4024-86c2-8089c7069372",
"phase": "unknown",
"failureCode": "OUTCOME_UNKNOWN",
"peerPhase": "quarantine",
"elapsedMs": 6823,
"applicationSql": 1036,
"controlSql": 161
},
{
"mode": "runid-concurrent",
"requestId": "req-9",
"runId": "owned-workflow-run-concurrent-1e68dcc9-eaf3-424d-8b1a-c8cbe74a5833",
"phase": "unknown",
"failureCode": "OUTCOME_UNKNOWN",
"peerPhase": "quarantine",
"elapsedMs": 7693,
"applicationSql": 988,
"controlSql": 147
},
{
"mode": "runid-concurrent",
"requestId": "req-8",
"runId": "owned-workflow-run-concurrent-1e68dcc9-eaf3-424d-8b1a-c8cbe74a5833",
"phase": "done",
"elapsedMs": 19114,
"applicationSql": 2257,
"controlSql": 618
},
{
"mode": "native-drop",
"requestId": "req-a",
"runId": "owned-workflow-run-7470f3da-40d6-496c-9208-6c376b8e283f",
"phase": "unknown",
"failureCode": "OUTCOME_UNKNOWN",
"peerPhase": "quarantine",
"elapsedMs": 14249,
"applicationSql": 2247,
"controlSql": 614
}
],
"nativePosts": 7,
"nativeGets": 132,
"pingPosts": 6,
"protocolErrors": 0,
"failureWrites": 0,
"credentialPayloadRows": 18,
"historyCommitsObserved": 6,
"commitLossInjected": true,
"actualFastifyJwt": true,
"actualApplicationAndControlSql": true,
"actualNativeHttp": true,
"actualPrivateCompletionReceipt": true,
"syntheticEnrollmentQuiescence": true,
"syntheticWireMapping": true,
"productionMappingVerified": false,
"runtimeAllCallersActivated": false,
"realChrCalls": 0
},
"scheduledOriginal": {
"checks": [
"genuine actual fixed uptime_speed ticket/executor/root ALS enters through real settings SELECT; exact body/address/30s and original mono expiry, all eligible probes despite future last_run_at, cross-factory one-probe issuance and fake/copy/foreign refusal",
"actual missing/disabled settings/probe/endpoint and missing existing key/generation refuse before credential projection or native GET; no default settings/key creation",
"actual SQL same-snapshot credential predicates disclose no payload on settings/probe/trigger-generated endpoint epoch drift at projection boundary",
"real current settings/probe/epoch/key/generation/directory changes, actual scheduler stop generation revocation and original signal cancellation reject retained private original before credentials",
"unchanged real SQL protocol/direction and zero/negative duration normalization: tcp/transmit/10s and minimum3s, host fallback when no interface",
"actual fixed execution completion aborts genuine private authority signal and closes a pending native TCP GET without second GET, POST, history or replay"
],
"actualSql": true,
"actualSchedulerRoot": true,
"actualFixedSchedulerExecutor": true,
"moduleMocks": false,
"actualReadOnlyNativeGets": 5,
"actualNativePosts": 0,
"metadataQueries": 51,
"credentialQueries": 49,
"credentialPayloadRows": 92,
"genuineSchedulerEntries": 22,
"actualPendingTcpClosed": true,
"historyUnchanged": true,
"automaticReplay": false,
"realChrCalls": 0,
"runtimeCallerActivation": false
},
"restCredentialProbeFence": {
"checks": [
"actual signed JWT/Fastify request -> original provider -> real bounded metadata/credentials/probe SQL -> two actual localhost Basic-auth GETs; exact static-first body/address/interfaces/30s baseline; private cap cannot recapture",
"actual credential SELECT preserves exact disabled manual-probe snapshot and NULL ad-hoc probe; no enabled=true restriction added",
"actual SQL/file changes after metadata await: key/generation/owner revocation/probe projection/disabled participant refuse before any native GET or credential payload transfer",
"real separate PG session rotates endpoint epoch at actual credential SELECT boundary; MATERIALIZED complete-pair gate returns zero credential rows and zero native GET",
"actual separate-session probe duration/enabled UPDATE immediately before unchanged credential SQL dispatch returns zero credential payload rows and zero native GET; complete-pair and exact captured probe share one MATERIALIZED SELECT",
"private capability retains original key/generation/epoch/probe/owner after capture; real subsequent changes refuse readOriginal without renewing intent or performing a native call",
"real Fastify TCP caller disconnect aborts original private request signal and closes a genuinely pending native HTTP GET socket; no second GET, POST, history or automatic replay"
],
"actualReadOnlyNativeGets": 7,
"actualNativePosts": 0,
"metadataQueries": 17,
"credentialQueries": 13,
"credentialPayloadRows": 18,
"actualSql": true,
"actualFastifyJwt": true,
"actualPendingTcpClosed": true,
"historyUnchanged": true,
"automaticReplay": false,
"realChrCalls": 0,
"runtimeCallerActivation": false
},
"routerGuard": {
"checks": [
"constructor rejects encoded same DB/role and query authority overrides before any checkout",
"actual held shared mapping ownership excludes the global writer on another backend",
"actual application driver COMMIT is the private terminal source; journal and authenticated head become idle",
"nested compound/application/native work uses one physical exclusive guard lease and records child bindings",
"lost-native-ack: no synthetic terminal receipt, unresolved head blocks mapping",
"forged-json: no synthetic terminal receipt, unresolved head blocks mapping",
"async-post: no synthetic terminal receipt, unresolved head blocks mapping",
"error-json: no synthetic terminal receipt, unresolved head blocks mapping",
"guard restart/close never erases unresolved WAL-backed intent; separate configured source must refuse it",
"ALWAYS trigger refuses authenticated-head rewind instead of trusting a filtered empty pending query",
"genuine pending -> DB-role valid-shape forged ACK/idle with preserved sequence/event binding refuses mapping because MAC is invalid",
"no-send derives from zero private transport/driver activity; returned JSON never becomes an acknowledged receipt",
"own mapping-shared context cannot upgrade itself into an exclusive writer or borrow a new pool client",
"sql-semicolon-control: actual driver command results/ReadyForQuery refuse transaction escape, even when callback catches error",
"sql-comment-control: actual driver command results/ReadyForQuery refuse transaction escape, even when callback catches error",
"sql-caught-error: actual driver command results/ReadyForQuery refuse transaction escape, even when callback catches error",
"intent-commit-loss: real server COMMIT followed by wire ACK loss; no driver-result replacement or automatic replay",
"application-commit-loss: real server COMMIT followed by wire ACK loss; no driver-result replacement or automatic replay",
"terminal-commit-loss: real server COMMIT followed by wire ACK loss; no driver-result replacement or automatic replay"
],
"actualPgRun": true,
"activation": false,
"realChrCalls": 0,
"scenarios": 18,
"additionalPureDsnChecks": 8
},
"sameControlDatabaseCompatibility": [
{
"version": 1,
"exactRoleCatalogPinsUnchanged": true,
"genuineConfiguredCoreAndNodeQueriesPassed": true,
"guardActivated": false,
"schemaMigrationsChanged": false
},
{
"version": 2,
"exactRoleCatalogPinsUnchanged": true,
"genuineConfiguredCoreAndNodeQueriesPassed": true,
"guardActivated": false,
"schemaMigrationsChanged": false
}
],
"v1RegressionCases": 25
},
"runtime": {
"workingDatabaseTouched": false,
"realChrCalls": 0,
"deployed": false,
"allCallersActivated": false,
"actualWireMappingVerified": false,
"publicMcpSpeedActionActivated": false,
"normalMigrations": 39
},
"limitations": [
"RouterOS/Q/wire mapping in whole workflow remain explicit synthetic fixtures; actual PostgreSQL and localhost HTTP are real.",
"Cross-caller raw-journal case uses explicit synthetic authority with real SQL, not a full genuine scheduled native workflow.",
"The run-ID replay scenario deletes exactly its own history row; it does not claim a full application dump/restore.",
"Permanent control attempts protect run IDs while that independently retained ledger is preserved; restoring/resetting the control provider remains outside this guarantee.",
"Legacy history without backfilled control attempts requires an explicit cutover/backfill policy before activation.",
"Guard kernel/source and same-DB compatibility are accepted components; every actual native and application metadata writer must still participate.",
"RouterOS asynchronous commands cannot use a plain HTTP 200 as terminal acknowledgement; unresolved guard heads are not cleared by TTL/GC.",
"Operating Docker stop/restart acceptance remains separately pending; no service was stopped by these checks.",
"MCP full-speed original and three-provider workflow are unit-tested; actual positive MCP speed SQL/HTTP/native completion remains pending, with no public action registered.",
"Managed private-permit diagnostics and ambient MCP application locks still need mapping-before-server/application lock integration before activation."
],
"earlierSnapshots": [
"docs/mcp-bandwidth-native-window-acceptance-20261028.json",
"docs/mcp-speed-workflow-acceptance-20261028.json"
]
}