target-revenue/examples/phase-001/ledger.json
tegwick 57c7111cbc Implement TREV-WP-0002 Stage 0 foundation: schemas, pure fold, golden Phase
Delivers the offline runnable specification foundation for the Trust Layer
(TSD §3-§6), not a hosted Trust Service:

- JSON Schemas for Phase Manifest, Ledger Entry, Extension Contract, and
  Conversion Attestation, encoding the Stage 0 working defaults (Q3 future
  license enum, Q6 single-currency Phases, Q8 required longstop_at).
- src/target_revenue: pure Outstanding Target fold, SHA-256 hash-chain
  verification, Ed25519 signing helpers, extension conformance checks
  (including a core-term-redefinition heuristic), and conversion detection
  that never requires an attestation document to determine conversion status.
- examples/phase-001: golden Phase package matching the concept doc's
  worked example, generated via scripts/generate_golden_phase.py so the
  hash chain is computed by the library itself, not hand-typed.
- 32 passing pytest tests covering manifest/ledger/extension conformance,
  tamper/reorder detection, and the full lifecycle fold to conversion.
- docs/adr/ADR-0001: proposed (not accepted) Stage 0 stack choice, per the
  WP-0002-T01 human-accept gate — implementation proceeded against the
  proposal as the workplan note permits, but the task stays open.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 18:47:29 +02:00

86 lines
2.7 KiB
JSON

[
{
"id": "trsl:entry:example0010001",
"phase": "trsl:phase:example-001",
"type": "development-credit",
"amount": 25000,
"currency": "USD",
"recognized_at": "2026-09-01T09:00:00Z",
"extension": {
"id": "trsl:extension:development-license",
"version": "1.0"
},
"evidence_reference": "confidential:evidence:example-001-dc-0001",
"previous_entry_hash": "GENESIS"
},
{
"id": "trsl:entry:example0010002",
"phase": "trsl:phase:example-001",
"type": "development-credit",
"amount": 10000,
"currency": "USD",
"recognized_at": "2026-09-15T09:00:00Z",
"extension": {
"id": "trsl:extension:phase-sponsorship",
"version": "1.0"
},
"evidence_reference": "confidential:evidence:example-001-dc-0002",
"previous_entry_hash": "5a67c0dc3407de30db7db5183fc3f609ae687dd529336b74fcba4a6ba75580c9"
},
{
"id": "trsl:entry:example0010003",
"phase": "trsl:phase:example-001",
"type": "development-credit",
"amount": 2000,
"currency": "USD",
"recognized_at": "2026-10-01T09:00:00Z",
"extension": {
"id": "trsl:extension:service-with-development-allocation",
"version": "1.0"
},
"evidence_reference": "confidential:evidence:example-001-dc-0003",
"previous_entry_hash": "d9bc08b582a1ffb59adc818b93bf0946619f4a18bde8d4fa96ef07249a2ce58e"
},
{
"id": "trsl:entry:example0010004",
"phase": "trsl:phase:example-001",
"type": "remission-credit",
"amount": 18000,
"currency": "USD",
"recognized_at": "2026-12-01T00:00:00Z",
"extension": {
"id": "trsl:policy:linear-longstop-v0",
"version": "1.0"
},
"evidence_reference": "confidential:evidence:example-001-rc-0001",
"previous_entry_hash": "1285da9f580663a8a3fce847ed64fc81c14b29d566243a7f65eb6b4237f5bf4a"
},
{
"id": "trsl:entry:example0010005",
"phase": "trsl:phase:example-001",
"type": "development-credit",
"amount": 30000,
"currency": "USD",
"recognized_at": "2027-03-01T09:00:00Z",
"extension": {
"id": "trsl:extension:development-license",
"version": "1.0"
},
"evidence_reference": "confidential:evidence:example-001-dc-0004",
"previous_entry_hash": "244af54599234f8320e3f3f294d1e0890e62bbf1f1c5f4dd27b0d96abc9f330a"
},
{
"id": "trsl:entry:example0010006",
"phase": "trsl:phase:example-001",
"type": "remission-credit",
"amount": 15000,
"currency": "USD",
"recognized_at": "2027-06-01T00:00:00Z",
"extension": {
"id": "trsl:policy:linear-longstop-v0",
"version": "1.0"
},
"evidence_reference": "confidential:evidence:example-001-rc-0002",
"previous_entry_hash": "5c360e5510dd860d68198abf80d25d5bf7509b0527cd5acc5f5bea93d31b5e3b"
}
]