Skip to content

M1 — Envelope + serializer re-baseline #10

@nficano

Description

@nficano

Goal

Envelope + serializer re-baseline. The envelope speaks v1.0 wire (draft-02 §5) before any message class is touched.

Scope

  • Add arcp: "1" literal version field (src/Envelope/Envelope.php, src/Envelope/EnvelopeSerializer.php — move from src/Json/)
  • Reject unknown arcp values; ignore unknown top-level keys
  • W3C 32-hex trace_id validation
  • Drop ext-json, drop ext-pdo* from core require
  • PHP floor >=8.3
  • Drop justinrainbow/json-schema
  • Drop vimeo/psalm, delete psalm.xml
  • Regenerate envelope fixtures (tests/Unit/fixtures/envelopes/13.*.json)
  • EnvelopeTest updated to assert §5.1 shape

Spec §

§5.1, §11, §13

Gate

composer gates (lint → stan → test), coverage ≥87% on touched files. No v1.1 features touched yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions