← back to Tk11438 Postgres Migration
verification/fleet-classification/norma-followons.json
126 lines
{
"task_id": "TK-11438-migrate-218-tcp-style-postgres-consumers",
"status": "complete read-only classification; unresolved deployment rows retained",
"classification_counts": {
"fixture-evidence": 1,
"unresolved": 8,
"local-cli": 24
},
"runtime_evidence": "/tmp/tk11438-fleet-classification/verification/runtime.json",
"actual_norma_email": {
"pm2_name": "norma-email",
"pid": 9224,
"next_pid": 9254,
"cwd": "/Users/macstudio3/Projects/Norma",
"launcher": "/opt/homebrew/bin/npm start",
"driver": "pg",
"configured_database": "sdcc",
"authority_host": "127.0.0.1",
"port": 5432,
"socket_host": null,
"transport": "TCP configured; live database session not probed",
"evidence": [
{
"path": "/Users/macstudio3/Projects/Norma/package.json",
"line": 8,
"reason": "start script next start -p 7400; ps confirms npm PID9224 -> next-server PID9254."
},
{
"path": "/Users/macstudio3/Projects/Norma/node_modules/next/dist/server/config.js",
"line": 1049,
"reason": "Next loads environment for cwd."
},
{
"path": "/Users/macstudio3/Projects/Norma/node_modules/@next/env/dist/index.js",
"line": 1,
"reason": "Production env loader includes .env.production.local, .env.local, .env.production and .env in precedence order."
},
{
"path": "/Users/macstudio3/Projects/Norma/.env.local",
"line": 1,
"reason": "Sanitized DATABASE_URL target sdcc at127.0.0.1:5432, no host query; no .env.production(.local) or .env found."
},
{
"path": "/Users/macstudio3/Projects/Norma/app/api/clients/route.ts",
"line": 3,
"reason": "Application API imports lib/db query."
},
{
"path": "/Users/macstudio3/Projects/Norma/lib/db.ts",
"line": 1,
"reason": "Imports pg Pool."
},
{
"path": "/Users/macstudio3/Projects/Norma/lib/db.ts",
"line": 4,
"reason": "Pool connectionString takes DATABASE_URL."
}
],
"limitation": "PM2 snapshot exposes no DATABASE_URL; Next startup loader+current env establish configured source, not a captured in-process environment/session. No app import, start, route call or restart performed."
},
"actual_norma_instagram": {
"pm2_name": "norma-instagram",
"pid": 8546,
"driver": "pg",
"database": "sdcc",
"fallback_host": "127.0.0.1",
"port": 5432,
"socket_host": null,
"evidence": [
{
"path": "/Users/macstudio3/Projects/Norma/agents/instagram-agent/server.js",
"line": 14,
"reason": "dotenv.config loads cwd .env; no DATABASE_URL entry found in this file."
},
{
"path": "/Users/macstudio3/Projects/Norma/agents/instagram-agent/server.js",
"line": 15,
"reason": "Imports agent-base."
},
{
"path": "/Users/macstudio3/Projects/Norma/agents/shared/agent-base.js",
"line": 21,
"reason": "Imports audit-logger."
},
{
"path": "/Users/macstudio3/Projects/Norma/agents/shared/audit-logger.js",
"line": 8,
"reason": "Imports shared/db query."
},
{
"path": "/Users/macstudio3/Projects/Norma/agents/shared/db.js",
"line": 11,
"reason": "DATABASE_URL override or TCP fallback sdcc127.0.0.1:5432."
}
],
"limitation": "No DB connection was triggered; fallback source proven, live socket not probed."
},
"follow_on_paths": [
"/Users/macstudio3/Projects/Norma/.env.local",
"/Users/macstudio3/Projects/Norma/lib/db.ts",
"/Users/macstudio3/Projects/Norma/agents/shared/db.js"
],
"counterparts": {
"existing_original_path_counterparts": 30,
"identical_original_path_counterparts": 27,
"note": "Counterpart existence/identity does not establish invocation of every script. Expand inventory to actual Norma checkout; do not apply Norma-platform edit expecting live service to change."
},
"blockers": [
"8 original runtime-role paths have unknown actual deployment; datasource launcher points /root/Projects/Nora spelling, not proven remote service.",
"Changing actual Norma .env.local or shared DB requires an approved service/scheduler scope and customer-facing verification; none authorized to classifier.",
"Current live DB sessions and effective Next process environment were not probed; configured TCP source is established."
],
"commands_and_checks": [
"Read all33original files, relevant CLAUDE and session docs, package and launcher configs, Next env loader and app import chain.",
"Read only sanitized database target fields from env files.",
"Read PM2 parent-provided metadata and ps process ancestry.",
"Asserted33unique classified paths; exact match to input path set.",
"No app imports, app starts/restarts, database queries, API/mail writes, source/env/config edits, further delegation or terminal painting."
],
"changed_paths": [
"/tmp/tk11438-fleet-classification/norma-classified.json",
"/tmp/tk11438-fleet-classification/norma-followons.json",
"/tmp/tk11438-fleet-classification/classify-norma.py"
],
"commits": []
}