Files
anonymous_github/backend/reports/main-alignment.json

151 lines
9.3 KiB
JSON

{
"mainCommit": "511dcd706791e551243fd2682765825f82473afc",
"restoredGoFrom": "bff2e343fdc6fc09ff0f373a34bef9716b06bc00^",
"status": "Current-main implementation and open-PR review verified; production deployment gates remain separate",
"removedTypeScriptRoutes": [],
"notes": [
"Node reference is committed main 511dcd706791e551243fd2682765825f82473afc, not uncommitted work in another checkout.",
"Route coverage is supplemented by differential fixtures, isolated MongoDB/Redis integration tests and mocked upstream lifecycle tests; it is not a proof of complete behavioral equivalence.",
"Live Stripe test-mode checkout/webhooks, Resend delivery, OAuth/App callbacks and a sanitized production-data upgrade still require staging validation.",
"No production or beta deployment was performed."
],
"validation": {
"goIntegrationRace": "Final clean full run passed on Go 1.27.4 with disposable MongoDB/Redis, including executable signals, queue heartbeats, provider lifecycle, BullMQ handoff, cache compatibility and repository recovery. Server package: 398.107s.",
"goVet": "passed on Go 1.27.4",
"nodeContracts": "65 scripts passed after PR #953 source integration",
"routeInventory": "127 TypeScript routes verified, including the two email-history routes from PR #953",
"goDockerBuild": "Fresh final Go image build passed: sha256:416b628b5ae3fe333ffc5102c9159afb24d3da6b1168b0f64af59f102796e8e4",
"deploymentSmoke": "Fresh final image passed isolated startup, non-root writes, static routes, graceful shutdown and rollback Compose-model checks; no Node executable in Go runtime.",
"reachableVulnerabilities": "none reported by govulncheck v1.9.0; four advisories remain in required modules without reachable calls",
"existingNodeIndexes": "passed with race detector: pre-existing named submodule index and repeated Go startup",
"openPRFocusedNodeTests": "42 email-history, expiration and admin UI tests passed; final 25-test activity/error-code/preview regression set passed",
"frontendBuild": "passed with regenerated asset manifest and bundles",
"nodeSuite": "Broad run: 1676 passed, 436 skipped, five failures. Fixed missing cache_miss translation, three stale Mongoose query mocks and one stale preview-button selector; all five failures passed in a 25-test focused rerun. Full suite not repeated after these fixes.",
"typescript": "tsc --noEmit passed",
"structuredLogging": "Passed race tests for private-data filtering, concurrent output, request traces, process samples, webhook failure diagnostics and persistent job traces. Actual Go records passed the unmodified Vector 0.61.0 sanitizer using the PR-pinned image digest. Final focused regression run and go vet passed.",
"oauthDiscoveryDenial": "Disposable database race test passed for OAuth/App discovery, OAuth 401, permission 403 and App reconnect semantics.",
"nodeRollback": "Fresh rollback image build and native SQLite/Zstandard round trips passed."
},
"changes": [
"Restore Go backend and Go deployment on top of current main",
"Update Node rollback Dockerfile to current main runtime and native dependency checks",
"Migrate shared cache decision classification column and clear stale classification when Go replaces a decision",
"Implement billing checkout, drafts, portal, signed webhooks, reconciliation, grants, revocation, scoped quotas and admin reporting",
"Preserve existing unmanaged hosting and implement paid conference activation/immutable plans",
"Implement source tree/file previews through optional provider capabilities",
"Implement preserveFiles rules for previews, individual files and ZIP output",
"Implement email preferences, verified registration email capture and owner access alerts with durable recipient guards",
"Expand direct public GitHub submodules and retain source provenance without sharing parent credentials",
"Implement mounted review capabilities endpoint and protected review page",
"Refresh current Node contract fixtures and add preservation, billing, review, provider preview, submodule and notification tests",
"Patch reachable vulnerabilities GO-2026-6859 and GO-2026-6865 by updating Go and klauspost/compress",
"Reuse the existing Node submodule index name during Go startup",
"Integrate PR #953 expiration notifications and admin delivery-history UI/API in both backends; add Go delivery claims, metadata-only audit records and pagination tests",
"Stop automatic hosting-quota retries, preserve HTTP 402, and retain explicit owner recovery",
"Preserve Node HTTP status mappings for stored repository failures",
"Recognize named Express Router imports in route inventory generation",
"Repair current Node activity-test query mocks and preview-button selector; add the missing cache_miss translation",
"Emit safe structured JSON logs, persist job/request trace correlation, add process memory heartbeats and webhook failure phases",
"Normalize confirmed legacy OAuth discovery credential denial without changing App reconnect errors",
"Emit bounded periodic queue diagnostics with delayed-retry classification and no false healthy samples on database failure",
"Support Redis error-mirror opt-out and preserve historical reads",
"Use a numeric JSON startup port for executable signal/shutdown validation"
],
"implementedTypeScriptRoutes": [
{
"method": "GET",
"path": "/api/admin/billing/grants"
},
{
"method": "GET",
"path": "/api/admin/billing/summary"
},
{
"method": "GET",
"path": "/api/billing"
},
{
"method": "GET",
"path": "/api/billing/draft/:id"
},
{
"method": "GET",
"path": "/api/repo/:owner/:repo/file"
},
{
"method": "GET",
"path": "/api/repo/:owner/:repo/tree"
},
{
"method": "GET",
"path": "/github/connections/email"
},
{
"method": "POST",
"path": "/api/billing/checkout"
},
{
"method": "POST",
"path": "/api/billing/draft"
},
{
"method": "POST",
"path": "/api/billing/portal"
},
{
"method": "POST",
"path": "/api/billing/refresh"
},
{
"method": "POST",
"path": "/api/billing/webhook"
},
{
"method": "POST",
"path": "/github/connections/email"
},
{
"method": "GET",
"path": "/api/admin/emails"
},
{
"method": "GET",
"path": "/api/admin/emails/summary"
}
],
"routeCount": 127,
"contractScripts": 65,
"implementationDifferences": [
"Owner notification history is conservatively rescanned at startup rather than using Node migration checkpoints.",
"Submodule ZIP entries use bounded per-file source reads after the parent tar stream, rather than a second tar stream for each child.",
"Stripe price display and admin summary responses are not cached; checkout/reconciliation persistence and idempotency are retained."
],
"openPRReview": {
"953": {
"head": "99bf9f173e5e748dec59fb37450142edd7fc4ec5",
"result": "Source/UI integrated in migration branch; Go implementation added. PR remains open."
},
"954": {
"head": "c227bf0421cfed14a0fcf404b1ca93c6f1450507",
"result": "Reviewed upstream redirect and response-header isolation against existing Go protections. No PR merge performed."
},
"955": {
"head": "b456ab8739374bf8bb3a690ad55698fb61615dd1",
"result": "Quota retries/status mapping fixed; webhook failure phases and structured error severity implemented. Legacy OAuth discovery 401 maps to token_expired while App and permission errors remain distinct. Go direct-folder queries already use equality."
},
"956": {
"head": "f084f5cbfc7b328a04b4e7e859ce9fa224c605c4",
"result": "Safe Go JSON logs and queue/process heartbeats implemented; LOG_REDIS_MIRROR=off supported without deleting history. Actual Go records validated against the pinned Vector sanitizer. Stack deployment remains an operator task; fixed Go ZIP stage/reason fields remain local only."
},
"checks": "GitHub Actions jobs did not start because the account is locked due to a billing issue. This is not a test failure.",
"957": {
"head": "20621c0660ec68ab2b7090f9faec5ba42b737717",
"base": "f084f5cbfc7b328a04b4e7e859ce9fa224c605c4",
"result": "Reviewed as a new, unmerged feature. Its two investigation/correlation routes, new Redis projection/pagination fields and admin UI are not part of current main or this migration branch. Port those together if adopting #957. Its hard-coded four-streamer health expectation must be adapted for the single Go process; existing Go UUID request/job traces are compatible.",
"securityReview": "Admin middleware precedes both routes; query inputs are allowlisted, operator endpoints are fixed configuration, redirects rejected, concurrency limited to two, deadline four seconds and response cap 2 MiB. Responses use safe field projection.",
"reviewThreads": "Three formally unresolved, outdated threads. Inspected fixes for Redis transaction queue capacity, absent/unknown releases and info-severity edge 5xx in 88d696c/20621c0; author replies describe real Redis/Vector/VictoriaLogs validation. No review comments or resolutions posted by this migration task."
}
},
"completionAudit": "backend/reports/current-main-completion-audit.json"
}