Skip to content

test(id-sync): part C profile compatibility consumer test (#10211) - #17024

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/10211-part-c-compat
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/10211-part-c-compat

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Implements the scoped slice of #10211: pkgs/id/crates/id-sync/tests/part_c_profile_compat.rs, a consumer integration assertion with a golden oracle.

  • Legacy profile: the production writer reproduces the pinned Preserve legacy artifact preimages and define new canonical profile #10176 golden vector byte-for-byte (hash afab18a…, signature pinned), the wire form equals the pinned preimage form, record_profile classifies it LegacyArtifactJson, and the parsed-back artifact passes verify() + the receipt parsed() check.
  • Versioned profile: a signed envelope's canonical CBOR bytes classify as SignedEnvelopeCbor, decode back equal, and verify through ProfileDispatch.
  • EnvelopeId stays outside the signed preimage: the preimage is reconstructed byte-for-byte (domain prefix ‖ length-framed domain ‖ canonical body), the envelope ID digest does not occur in it, and flipping a signature byte changes the EnvelopeId while body, payload ID and preimage are unchanged.
  • Unknown record bytes (empty, non-map JSON, whitespace-led JSON) are reported via ProfileError, never guessed.

No production code changes; no new dependencies. Verification: remote fleet-command run of cargo test -p id-sync --test part_c_profile_compat from pkgs/id — run id and executed counts will be recorded on #10211 before merge.

Closes #10211

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T23:50:01Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Golden oracle: the id-sync consumer accepts the exact legacy
artifact profile (pinned #10176 vector, byte-for-byte wire form,
classified LegacyArtifactJson, receipt checks pass) and the new
versioned signed-envelope profile (classified SignedEnvelopeCbor,
decode + verify), with EnvelopeId proven outside the signed
preimage and unknown record bytes reported, not guessed.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9096af47-b5d7-4488-9957-226e65a32752

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification of record (Felix lane 0640-FE): fleet-command run 46326067059, job log read firsthand — cargo test -p id-sync --test part_c_profile_compat from pkgs/id: 4 passed / 0 failed, all four tests named ok, marker FE-10211-MARKER present. Full verdict on #10211. Ready for Felix to merge.

@developing-today-fleet
developing-today-fleet Bot merged commit df2b281 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/10211-part-c-compat branch November 30, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve signed-artifact bytes while resolving codec mismatch

0 participants