Skip to content

Regenerate CTK vectors for the reference 0.3.0 query-fold#9

Merged
koishore merged 1 commit into
mainfrom
ctk/regen-0.3
Jun 10, 2026
Merged

Regenerate CTK vectors for the reference 0.3.0 query-fold#9
koishore merged 1 commit into
mainfrom
ctk/regen-0.3

Conversation

@koishore

Copy link
Copy Markdown
Member

What

The reference now implements protocol 0.3 (delego#12 — the §4.2 query-fold). Per §4.2, the updated hashing vectors ship when the reference implements the fold:

  • ctk/vectors/hashing.json regenerated by reference 0.3.0 on the 0.3 preimage (the fingerprint preimage carries the canonical query, [] for a bare URL — every fingerprint changed), with six new query cases: substitution (?to=me vs ?to=attacker differ), encoding equivalence (%20 vs +, pair order), duplicate/valueless pairs, fragment exclusion.
  • ctk/vectors/hashing-v0.2.json — the prior fixtures, preserved for ≤ 0.2-preimage implementations; the versions/ documents now point there.
  • ctk/vectors/resolve.json — embedded fingerprints/intent hashes recomputed on the 0.3 preimage; cases and expectations unchanged.
  • ctk/vectors/broker_query.json marked superseded at reference ≥ 0.3.0 (the query is fingerprint-bound; a 0.3 broker forwards it and refuses only a #fragment). Still applies to ≤ 0.2-preimage brokers.
  • ctk/README.md + changelog updated. spec.md is untouched (frozen at 0.3); its §4.1 worked example remains the 0.2-preimage illustration and matches hashing-v0.2.json.

Verification

validate.py and conformance.py both pass locally against reference 0.3.0: "reference reproduces every CTK vector; spec leads the reference." The conformance CI on this PR installs delego@main, which now carries 0.3.0.

hashing.json is regenerated on the 0.3 preimage (canonical query folded into
the fingerprint, [] for a bare URL) with new query cases: substitution,
encoding equivalence, duplicate/valueless pairs, fragment exclusion. The prior
fixtures move to hashing-v0.2.json for <= 0.2-preimage implementations; the
versions/ documents point there. resolve.json's embedded hashes are recomputed
on the 0.3 preimage (cases unchanged). broker_query.json is marked superseded
at reference >= 0.3.0. spec.md is untouched (frozen).
@koishore koishore merged commit 321519d into main Jun 10, 2026
2 checks passed
@koishore koishore deleted the ctk/regen-0.3 branch June 10, 2026 11:18
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.

1 participant