Files
MikrotikManager/docs/mcp-bandwidth-core-same-lease-acceptance-20261026.json
T

102 lines
9.5 KiB
JSON

{
"date": "2026-10-26",
"stage": "Bandwidth journal event signing on its own active source lease",
"componentAccepted": true,
"fullPlanComplete": false,
"productionDispatchWired": false,
"normalMigrationCount": 39,
"publicPendingRoutes": 5,
"method": "eventProofOnConnection(event, connection, scope)",
"sqlAcceptance": {
"cases": [
"three actual restricted LOGIN roles; control owner owns target DATABASE and schema, app-restorer receives only public USAGE/CREATE for normal39 objects; restorer lacks database CREATE and actual outside-session DROP DATABASE is denied by permission",
"actual runtime role verifier accepts precise DML role and refuses owner/admin sessions, extra schema CREATE, extra attempt DELETE and dangerous owner membership; restored least privilege accepted",
"configured control cannot reuse application database name; authentic signed files without externally installed source row refuse without automatic identity enrollment or ledger writes",
"actual filesystem cannot flush directories: explicit issuer refuses before SQL/pending publication with no ledger/file changes; reader tests continue with explicitly synthetic owner-installed identity, not an issuer durability claim",
"four actual runtime leases saturate pool and sign captured events on the same four backend PIDs without fifth checkout; foreign/fake/released leases, oversized payload, abort, expiry and revoked original dispatch guard refuse with exact control data unchanged",
"genuine owned Ed25519 signed record, pinned SPKI key, private raw event key and immutable source row verified by configured runtime-role source; journal uses that source for every connection and event MAC",
"four real journal transactions reach signing barrier together with all four pool leases held, commit reserves through same-lease MACs and release only proven-no-send occupancy without nested checkout",
"actual restricted runtime completes strict synthetic terminal attempt and releases reserved synthetic no-send attempt with exact DELETE rights; duplicate completion refused and unrelated quarantined pair stays occupied",
"actual least-privilege runtime commits keyed reserve/arm/quarantine while preserving both unknown node owners",
"actual app-restorer cannot read/write/drop/alter control, SET ROLE owner/runtime/admin, or use its own crafted PUBLIC SECURITY DEFINER function to reach control; rows and ALWAYS guards unchanged",
"actual public-only dump and transactional restore AUTHENTICATED AS non-superuser app-restorer restore public marker, preserve unknown control rows/ALWAYS metadata, and leave overlapping runtime reserve blocked",
"actual loopback TCP peer accepts but never completes PostgreSQL handshake: physical checkout timeout and pool close finish within 8s, no SQL or ledger mutation and no abandoned healthy connection",
"live configured lease and new checkout refuse unsigned changed generation; event MAC refuses private key drift; restoring exact trusted files creates no ledger writes",
"actual malformed signature, noncanonical payload, unknown envelope field, substituted issuer and disabled ALWAYS source guard refuse live/new source leases without changing ledger; restoring exact files/catalog recovers only the same identity",
"actual external owner source quarantine blocks new leases/event signing and never clears existing unknown occupancy"
],
"normalMigrationCount": 39,
"productionReady": false,
"productionIssuerAccepted": false,
"operatorIssuerAccepted": false,
"nativeChrCalls": 0,
"actualRestrictedRoles": 3,
"sourceGenerationClaimed": false,
"runtimeDispatchIntegrated": false,
"limits": [
"Role isolation is proven only for the explicit exercised SQL/function/restore attempts",
"Control-provider rollback/clone fencing, physical router identity and mandatory native dispatch integration remain unproven; explicit issuer does not supply native readiness"
]
},
"nodeSourceRegression": {
"cases": 17,
"checks": [
"actual separate owner/combined least-privilege runtime/restricted application roles, explicit external core+registry DDL with 12 functions, normal39 unchanged, no bootstrap rows auto-created",
"actual configured core+node source, genuine native reader and registry host compose register/resolve through one session with actor sealed intent; same claims preserve canonical UUID across aliases",
"binding/HMAC never grant actor permission; unknown/malformed/root-mismatched signing inputs refuse, proof input captured before await, closed session unusable and actor denial changes no row",
"bootstrap verifier requires its own active genuine core lease: different factory, fake facade and released lease cannot establish provenance",
"four concurrent sessions saturate actual core pool: binding/proof/query retain four distinct original backend PIDs with no nested fifth checkout/deadlock",
"wrong issuer key/pin, same-key-as-core bootstrap, cross-install/schema/signature/unknown-field records and missing bootstrap refuse; valid different signed bootstrap cannot replace original live session; no auto rows or data mutation",
"actual excess runtime ACL and disabled registry guard refuse via fixed source/role/catalog verification; guard disabling is metadata-only negative fixture with zero data writes",
"real original actor revoke DURING global catalog observation before INSERT: final core dispatch guard forbids physical write/COMMIT and preserves exact data",
"real original actor revoke DURING global catalog observation before COMMIT: final core dispatch guard forbids physical write/COMMIT and preserves exact data",
"actual issuer-key file changes AFTER PostgreSQL node-catalog result and before HMAC: operation refuses without returning stale proof or changing any control row",
"actual bootstrap file changes AFTER PostgreSQL node-catalog result and before HMAC: operation refuses without returning stale proof or changing any control row",
"closing an actual session while original actor guard is stalled rejects before gate/deadline; releasing late guard dispatches no further physical SQL and changes no row",
"direct actual core lease release rejects query stalled AFTER checkout within750ms while guard gate is closed; late guard continuation sends zero main/late SQL and preserves all eight tables",
"captured genuine raw dispatch fence expires when actual query finishes: retained query and valid signed bootstrap verification reject without any new physical driver query",
"real restricted-application-role public-only dump/shared restore changes public marker while all eight external control tables and canonical UUID survive; fresh operational resolve succeeds",
"valid externally signed core-generation renewal rejects original leased core/node sessions; fresh session resolves SAME persistent canonical UUID with unchanged seven non-identity tables and unchanged issuer/bootstrap",
"terminal registry authority and core source quarantine reject new operational sessions while every node/alias/event/core-occupancy row stays unchanged"
],
"nativeLocalhostGets": 8,
"realChrCalls": 0,
"normalMigrationCount": 39,
"explicitOwnedExternalInstallation": true,
"productionReady": false,
"runtimeDispatchIntegrated": false,
"limitations": [
"Genuine signatures/native localhost observations but synthetic operator/quiescence and actor grants; no production enrollment/physical uniqueness/clone fencing/native dispatch readiness",
"No automatic schema/bootstrap/key creation, external-provider rollback guarantee or production source catalog promotion is inferred from this fixture"
]
},
"verification": {
"strictTypes": true,
"lint": true,
"backendBuild": true,
"actualJournalTransactionsSimultaneouslyHeld": 4,
"additionalSignerPoolCheckout": false,
"samePhysicalPids": true,
"payloadCapturedBeforeAwait": true,
"foreignFakeReleasedLeasesRefused": true,
"abortExpiryAndOriginalGuardRevocationRefused": true,
"keyFileDriftRefused": true,
"existingIpsecApprovalSourceAndEvidenceHashesUnchanged": true
},
"limitations": [
"Original general eventProof API is retained; production broker still must explicitly compose the same-lease signer",
"Synthetic journal and operator authority only; no real CHR mutations or private-key exports",
"No global atomic writer barrier, physical identity, control provider clone/rollback fencing or public speed acceptance inferred"
],
"sha256": {
"backend/src/services/bandwidth-control-source.ts": "598e36c6286bb563636a3c377902f0c803f19f8395d437c6698892aabc0ddbdc",
"backend/src/services/bandwidth-control-source.sql.test.ts": "d9d28d60953d08fa8467d16da9c17462fa0cd4608d91dcf45c4d46b43fa6a5ef",
"docs/mcp-bandwidth-control-source.md": "29d15c1d0e8d36255416d05f64963f63b62bc13669c3bcaf28c1df4032be0900",
"tmp/bandwidth-core-same-lease-sql-verified.log": "1293efc27fd0ef7053ee51fd7cf8cbb119d92a8f9bcff5a6bea525aad5bfa4da",
"tmp/bandwidth-core-same-lease-node-regression.log": "5ad8c8376b11cc4e3fb9304c85d4198ef507972291f30cc5e137385434edd174",
"tmp/bandwidth-core-same-lease-types-verified.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"tmp/bandwidth-core-same-lease-lint-verified.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"tmp/bandwidth-core-same-lease-build-final.log": "4f26b355b57fa516cf22f7286ea65b24c6b8d066f666278b5e704f5aa528e2d3"
}
}