Skip to content

[PROD-007] .NET source-specific master/detail insert runtime #625

Description

@ktalpay

Task ID: PROD-007
Lane: dotnet
Status: merged
Agent: dotnet-agent
Depends on: PROD-006

Goal:
Add .NET source-specific master/detail insert runtime for production parity.

Scope:

  • Map parsed source-family output into source-specific master/detail tables.
  • Support GHG Protocol, DEFRA/DESNZ, and IPCC EFDB tables.
  • Use the PostgreSQL schema/year-state baseline from PROD-005.
  • Use source-cycle parsing output from PROD-006.
  • Insert records idempotently and skip duplicates safely.
  • Update source-family year-state only after successful master/detail insert.
  • Keep run-once guarded until E2E parity is complete if needed.

Non-goals:

  • No final production-ready claim.
  • No Python runtime changes.
  • No uncontrolled live network calls.
  • No destructive DB operations.
  • No production credentials.

Acceptance:

  • Master/detail mapping exists for all three source families.
  • Idempotent insert behavior is tested.
  • Duplicate source/year/artifact reruns do not duplicate rows.
  • Year-state update occurs only after successful insert.
  • Diagnostics are redacted.
  • Docker PostgreSQL opt-in validation is added or documented.
  • No generated artifacts.

Task-ID: PROD-007

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:dotnetTask is assigned to dotnet-agentlane:dotnet.NET implementation lanestatus:mergedTask PR has been merged and the task is completetype:implementationProduct or platform implementation task

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions