{
  "generatedAt": "2026-07-05T14:57:40.465Z",
  "command": "pnpm exec vitest run tests/research/prd-04a-completed-node-growth.test.ts --reporter=verbose",
  "setupCaveat": ".agent/coder-AGENTS.md was absent in this dispatched worktree; continued from canonical PRD/task instructions.",
  "stagedReference": {
    "wholeGraphPath": "completeFromRoot.ts computes c3Interior with levels + levelCap = maxBFSr - 2.",
    "localDiagnosticInterpretation": "This diagnostic reuses that whole-graph staging rule on each verified local mirror by BFS from the selected center and setting levelCap = mirrorMaxLevel - 2."
  },
  "graphs": [
    {
      "name": "one-center baseline",
      "recipe": [
        {
          "centerId": "node-1",
          "candidateId": "service-default"
        }
      ],
      "completedCenters": [
        "node-1"
      ],
      "nodeCount": 41,
      "edgeCount": 52,
      "perCenter": [
        {
          "centerId": "node-1",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        }
      ],
      "currentLocalSummary": {
        "passingCenters": [],
        "failingCenters": [
          {
            "centerId": "node-1",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          }
        ]
      },
      "stagedLocalSummary": {
        "passingCenters": [],
        "failingCenters": [
          {
            "centerId": "node-1",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          }
        ]
      }
    },
    {
      "name": "accepted four-center",
      "recipe": [
        {
          "centerId": "node-1",
          "candidateId": "service-default"
        },
        {
          "centerId": "l3v1-node-1-one-b1",
          "candidateId": "1"
        },
        {
          "centerId": "l3v1-node-1-one-b2",
          "candidateId": "1"
        },
        {
          "centerId": "l3v1-node-1-one-b3",
          "candidateId": "1"
        }
      ],
      "completedCenters": [
        "l3v1-node-1-one-b1",
        "l3v1-node-1-one-b2",
        "l3v1-node-1-one-b3",
        "node-1"
      ],
      "nodeCount": 74,
      "edgeCount": 103,
      "perCenter": [
        {
          "centerId": "l3v1-node-1-one-b1",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        },
        {
          "centerId": "l3v1-node-1-one-b2",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        },
        {
          "centerId": "l3v1-node-1-one-b3",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        },
        {
          "centerId": "node-1",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        }
      ],
      "currentLocalSummary": {
        "passingCenters": [],
        "failingCenters": [
          {
            "centerId": "l3v1-node-1-one-b1",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          {
            "centerId": "l3v1-node-1-one-b2",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          {
            "centerId": "l3v1-node-1-one-b3",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          {
            "centerId": "node-1",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          }
        ]
      },
      "stagedLocalSummary": {
        "passingCenters": [],
        "failingCenters": [
          {
            "centerId": "l3v1-node-1-one-b1",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          {
            "centerId": "l3v1-node-1-one-b2",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          {
            "centerId": "l3v1-node-1-one-b3",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          {
            "centerId": "node-1",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          }
        ]
      }
    },
    {
      "name": "accepted five-center",
      "recipe": [
        {
          "centerId": "node-1",
          "candidateId": "service-default"
        },
        {
          "centerId": "l3v1-node-1-one-b1",
          "candidateId": "1"
        },
        {
          "centerId": "l3v1-node-1-one-b2",
          "candidateId": "1"
        },
        {
          "centerId": "l3v1-node-1-one-b3",
          "candidateId": "1"
        },
        {
          "centerId": "l3v1-node-1-one-b4",
          "candidateId": "32"
        }
      ],
      "completedCenters": [
        "l3v1-node-1-one-b1",
        "l3v1-node-1-one-b2",
        "l3v1-node-1-one-b3",
        "l3v1-node-1-one-b4",
        "node-1"
      ],
      "nodeCount": 77,
      "edgeCount": 112,
      "perCenter": [
        {
          "centerId": "l3v1-node-1-one-b1",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        },
        {
          "centerId": "l3v1-node-1-one-b2",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        },
        {
          "centerId": "l3v1-node-1-one-b3",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        },
        {
          "centerId": "l3v1-node-1-one-b4",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        },
        {
          "centerId": "node-1",
          "mirrorNodeCount": 41,
          "mirrorMaxLevel": 3,
          "stagedLevelCap": 1,
          "currentLocal": {
            "assessed": 41,
            "closed": 1,
            "notClosed": 40,
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          "stagedLocal": {
            "assessed": 5,
            "closed": 1,
            "notClosed": 4,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          "stagedPassesInterior": false
        }
      ],
      "currentLocalSummary": {
        "passingCenters": [],
        "failingCenters": [
          {
            "centerId": "l3v1-node-1-one-b1",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          {
            "centerId": "l3v1-node-1-one-b2",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          {
            "centerId": "l3v1-node-1-one-b3",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          {
            "centerId": "l3v1-node-1-one-b4",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          },
          {
            "centerId": "node-1",
            "notClosedInterior": 16,
            "notClosedBoundary": 24
          }
        ]
      },
      "stagedLocalSummary": {
        "passingCenters": [],
        "failingCenters": [
          {
            "centerId": "l3v1-node-1-one-b1",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          {
            "centerId": "l3v1-node-1-one-b2",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          {
            "centerId": "l3v1-node-1-one-b3",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          {
            "centerId": "l3v1-node-1-one-b4",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          },
          {
            "centerId": "node-1",
            "levelCap": 1,
            "notClosedInterior": 4,
            "notClosedBoundary": 0
          }
        ]
      }
    }
  ],
  "verdict": {
    "category": "staged-local-still-fails",
    "statement": "A bounded local-mirror port of the whole-graph staged C3 level-cap rule still fails for the one-, four-, and five-center PRD-04a graphs.",
    "nextHypothesis": "If staged local C3 is still meant to pass, the remaining hypothesis is a different local envelope or node-role gating rule, not the direct mirror BFS levelCap = maxLevel - 2 port."
  }
}
