Replace rich SPM provenance with compact typed receipts

Geschlossen
#3,862 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

@anth-volk arbeitet bereits daran.

Seit 01.10.2026.

  • #3863 von @anth-volk — offen

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
42/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python

Rechercherichtung

Start by tracing the current rich SPM diagnostic payloads and household and society-wide cache identities. Review the existing API contracts, OpenAPI definitions, documentation, changelog, and tests named in the scope; done means compact typed receipts meet the size limits, old receipts are rejected or recalculated, numeric results remain unchanged, and removed fields are absent.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Summary

Replace large country-package SPM diagnostic payloads with strict compact, versioned provenance receipts across household and society-wide API results.

Scope

  • publish typed individual and comparison provenance contracts
  • reduce country-owned rich receipts through typed builders
  • validate adjacent resolved SPM configuration and receipt agreement
  • persist and cache only compact receipts
  • invalidate older household and economy cache identities instead of translating them
  • update OpenAPI, documentation, changelog, and tests

Acceptance criteria

  • compact individual receipts remain under 1 KiB
  • compact 20-segment comparisons remain under 2 KiB
  • old rich receipts are rejected or recalculated
  • household and society-wide numeric results remain unchanged
  • OpenAPI excludes removed diagnostic and mapping fields
Vorherrschende Sprache
Python
Sterne
18
Forks
33
Ø Merge
2 T. 3 Std.
Gemergte PRs (30 T.)
72

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PolicyEngine/policyengine-api

Alle Issues in PolicyEngine/policyengine-api

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.