Files
MikrotikManager/docs/mcp-bandwidth-control-source-acceptance-20261026.json
T

167 lines
10 KiB
JSON

{
"stage": "Signed bandwidth control reader and actual restricted SQL roles",
"date": "2026-10-26",
"fullPlanComplete": false,
"componentSourceReaderAccepted": true,
"actualRestrictedRoleAcceptance": true,
"normalMigrationCount": 39,
"normalStartupEnrollmentChanged": false,
"automaticKeyOrGenerationCreation": false,
"publicCoverage": {
"tools": 358,
"routes": 262,
"mediated": 195,
"excluded": 62,
"pending": 5,
"changedThisStage": false
},
"source": {
"signature": "Ed25519",
"trustPin": "SHA256 public SPKI DER, independent operator configuration",
"eventKey": "Preexisting raw 32-byte private HMAC key",
"namespace": "mmapp_control",
"separateDatabaseRequired": true,
"sqlLeaseBudgetMs": 10000,
"physicalConnectTimeoutMs": 3000,
"queryTimeoutMs": 5000,
"urlOverridesRejected": true,
"liveSignedFileRoleCatalogChecks": true,
"applicationSchemaReady": false,
"actualPhysicalHandshakeBlackholeAccepted": true,
"physicalCheckoutAndIdempotentCloseUnderMs": 8000
},
"operatorIssuer": {
"implemented": true,
"positiveFinalIssuerAccepted": false,
"currentPlatform": "win32",
"directorySyncObserved": "EPERM",
"actualUnsupportedFilesystemRefusalBeforeSqlAndFiles": true,
"manualSyntheticIdentityUsedForReaderFixture": true,
"noUnsafeFilesystemFallback": true,
"source": "backend/src/services/bandwidth-control-provision.ts",
"fixes": [
"TLS-only URL parameters reject pg user/host/dbname/options overrides",
"Parent directory sync required before SQL, after pending fsync, and after no-replace link",
"Explicit synchronous_commit=on",
"Borrowed owner error absorber with retired-owner fence",
"Physical reader connection and query timeouts bound verification pool shutdown"
],
"pending": [
"Positive Linux/supported-filesystem final issuer acceptance",
"Actual issuer COMMIT/publish/fault acceptance"
],
"historicalPreDirectoryHardeningLog": "tmp/bandwidth-control-source-final-v2.log",
"historicalPositiveIsFinalAcceptance": false
},
"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",
"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",
"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"
]
},
"regression": {
"roleCatalogUnitCases": 16,
"priorJournalSqlGroups": 28,
"priorJournalProfileExitCode": 0,
"speedWorkflowExitCode": 0,
"backendBuildExitCode": 0,
"targetedTypesExitCode": 0,
"targetedLintExitCode": 0,
"diffCheckExitCode": 0
},
"review": {
"findingsFixed": 4,
"originalOccupancyUpdatePrivilegeRemoved": true,
"occupancySnapshotProtectedByAttemptRowAndOccupancyTriggerOwnerLocks": true
},
"historicalFailures": [
{
"log": "tmp/bandwidth-control-source-sql-v1.log",
"reason": "Synthetic application URL used privileged admin; corrected to actual app-restorer role"
},
{
"log": "tmp/bandwidth-control-source-sql-v2.log",
"reason": "Occupancy FOR UPDATE required intentionally absent UPDATE privilege; owner attempt lock already serializes guarded occupancy mutations"
},
{
"log": "tmp/bandwidth-source-speed-final.log",
"reason": "Sandbox EACCES on synthetic loopback HTTP; identical profile passed with loopback permission"
},
{
"log": "tmp/bandwidth-control-source-hardened-v2-final.log",
"reason": "Blackhole test called close twice; source close was made idempotent and actual blackhole/close final profile passed"
}
],
"remaining": [
"Final issuer positive/fault evidence on supported durable filesystem",
"Canonical CHR identity and explicit legacy quiescence/enrollment",
"Capacity and terminal retention without automatic unknown release",
"Mandatory common capability across all native bandwidth callers",
"Full public speed workflow, history/error persistence and HTTP/SQL/runtime acceptance",
"Control-provider rollback/clone external fence and broader DB-1..4",
"Remaining manual collectors, routing lifecycle, live UI/client and network acceptance"
],
"linuxRuntimeInventory": {
"localWslInstalled": false,
"sshAuthenticationSucceeded": true,
"fixedReadonlyInventoryCompleted": false,
"latestFailure": "TimeoutError during read-only runtime command",
"serverMutations": 0,
"positiveIssuerAcceptanceSupplied": false
},
"nativeChrCalls": 0,
"productionDatabaseChanged": false,
"deployed": false,
"committed": false,
"pushed": false,
"sha256": {
"backend/src/services/bandwidth-control-source.ts": "495bee04a887099f35ee1f1c8fda9fd2a129fea7018eec649025dce9dbbf3f49",
"backend/src/services/bandwidth-control-source-schema.ts": "1d7273bd26dd1311ef43806ad51a1f39f288813722e24cf63d62adb5c8b4cec6",
"backend/src/services/bandwidth-control-role.ts": "2efd5a6332f0cbb838cb84830a53bfb210e8262be0924fbc386291bbcf97e18d",
"backend/src/services/bandwidth-control-role.test.ts": "10f9ec4988ef8d02a0bba1392fa699e52750cddde1059f04758060d9a12eca7b",
"backend/src/services/bandwidth-control-catalog.ts": "c9618cbd5d62ff1741c7996b312821ffcf36db30bf5ddd9f8677503a949e2858",
"backend/src/services/bandwidth-control-catalog.test.ts": "a881742b66e6f678d2b0a59d88f4239e5cbcd223df1b2bcdea4611bf883c4aa8",
"backend/src/services/bandwidth-control-provision.ts": "bab5be1e1fe7dce503186a8d623d90397ef7c3b36fb0f81006d74799c935920b",
"backend/src/scripts/seal-bandwidth-control-source.ts": "fe3648387352283600d33e0248fe962201a6d96cd5d28ddb0dfe9267b660e68d",
"backend/src/services/bandwidth-control-source.sql.test.ts": "070636b73ecd98f055844bb460c1dd36fefda6c3c4d4aba00bab17dba3b3c04d",
"backend/src/services/bandwidth-admission-storage.ts": "b7b8c0537550df49cc02fbf68f60cbfcbe4d19594d7d4fe66b9219ac80242ae1",
"backend/src/services/bandwidth-admission-schema.ts": "70345b9ac44432b32d8b78fcf0fccc2c5757dd0663923be913c51fed13e4328b",
"backend/src/services/bandwidth-admission.sql.test.ts": "8cb276c76977329e06d43f6ebd55f752596d6edf146e6633976b97fa85319b17",
"backend/scripts/test-mcp-postgres.mjs": "327fed6e82efbc0ce72b1de781da17e152fecd26daebd3e8f6ece66da3a230b6",
"backend/package.json": "f5208f30277b345734411d8aeb830bf9fbca93e81099f36bbcf845cba44ca3a8",
"backend/.env.example": "5dd7f2db7ae48b2131e7d13b74a0a9a09a3488c8c0bba2ba452be9038884603c",
"docs/mcp-bandwidth-control-source.md": "449d892c203ecdcf37a778ffe71fdb7e232f23b9d0976788f12d597360ccd655",
"tmp/bandwidth-control-source-hardened-v3-final.log": "7e20dd41386852efc96c7cbbc1f55e2d7088f9fb0b2ebf00fa5bab3c7b4ba517",
"tmp/bandwidth-source-regression.log": "96b1c66df40f21c9704a1035e73c8bc44b20650f4efabb1b1877304e348f28ef",
"tmp/bandwidth-source-units-final.log": "cbdf92b1931946b5567fef6203af8cc1cb8962f6bf44f8eae44762b91c16e264",
"tmp/bandwidth-source-types-final.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"tmp/bandwidth-source-lint-final.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"tmp/bandwidth-source-build-final.log": "4f26b355b57fa516cf22f7286ea65b24c6b8d066f666278b5e704f5aa528e2d3",
"tmp/bandwidth-source-speed-final-loopback.log": "ea9c93fe5e8eac35cb589678efda8bd8a8771700a79bc3dcbd8cdac919d66c26",
"tmp/bandwidth-linux-runtime-inventory.json": "7d275c9c07ec9193b63912400d110b2f7fb5fd77290e05f3732a322507ddb10e"
}
}