Prime-Compound Phase-Lane Token Protocol (PCPL): a deterministic no-handshake token protocol where a device emits one token per cycle and exactly one provider lane can validate it.
This repository contains protocol papers, deterministic validation scripts, and the Evolvo synthesis conclusions used for current design decisions.
Canonical status is defined by:
papers/main-paper.md(Version 1.8).papers/evolvo-conclusions.md(repository-local full-run synthesis).
Current paper-facing position:
- Core invariants are stable in tested evidence: exact 1-of-x matching, per-block fairness, permutation validity, replay rejection, and cross-lane separation.
- Evolved defenders confirm sparse activation as the best practical shape, but
do not beat the hand sparse baseline (
minimal-costfamily). - Observed attacker pressure is mainly lane/route inference from public structure; accepted-token recovery stays at zero in the complete valid evidence slice.
- Long-horizon synchronization drift remains the dominant unresolved weakness.
- Practical architecture is split into:
- sparse feed-forward token core,
- GPS-disciplined synchronization supervisor,
- route-hardening monitor,
- runtime/backend audit gates.
- No runtime challenge/response after initial provisioning.
- One token emitted per cycle; exactly one provider match per cycle.
- Providers must recompute locally from public data and their lane-local secrets only.
- Any control value that affects provider token derivation must be public, provider-observable, lane-local, or explicitly carried with the token.
- Post-init handshake-based recovery is out of scope by design.
- Public phase clock from coprime residues (
P,Q,R) and modular mixes. - Device-only per-block lane permutation enforcing exact 1-of-x routing.
- Per-lane secret bouquets (A/B/C) with sparse active subset evaluation.
- Domain-separated KDF/token hashing and truncation.
- Device-only state evolution/chaining after token emission.
papers/main-paper.md: current paper and implementation interpretation.papers/evolvo-conclusions.md: canonical synthesis and constraints.papers/phase-shift-tokens.md: main protocol spec and pseudocode.papers/symmetric-tokenizer-circuit-concept.md: broader concept notes.papers/pcpl-results.md: deterministic multi-configuration snapshots.papers/token-trace.md: exported per-lane deterministic traces.
Main deterministic validator:
python3 demo/pcpl_cycle_test.py --cycles 200Useful options:
--x--token-bits--seed--verbose--no-chaining-check
Token trace export:
python3 demo/export_token_trace.py --blocks 4 --out papers/token-trace.mdWhat demo/pcpl_cycle_test.py checks:
- per-block schedule is a true permutation,
- exactly 1-of-x provider match per cycle,
- each provider appears once per full block,
- optional device-chaining divergence checks.
Evolvo tooling lives in demo/pcpl-evolvo/ and is used for design-space
exploration, not as a correctness proof replacement.
Quick run:
python3 demo/pcpl-evolvo/run_experiments.py --profile fast --rounds 1For paper claims, prefer papers/evolvo-conclusions.md as the canonical
repository-local synthesis rather than transient run-folder artifacts.
README.md: project snapshot and quickstart.papers/: spec, paper, conclusions, and trace/results material.demo/pcpl_cycle_test.py: deterministic cycle-by-cycle validator.demo/export_token_trace.py: deterministic trace exporter.demo/pcpl-evolvo/: co-evolution experiments and analysis tooling.
- Promote profile parameters explicitly: bouquet
inventory_sizeand per-cycleactive_count(start with active=1, compare active=2). - Add stronger route-hardening objectives and attacker panels focused on lane prediction and schedule bias.
- Specify and test GPS-disciplined synchronization supervisor regimes (steady/recovery/fail-closed) without introducing post-init handshakes.
- Keep runtime/backend evaluability as a separate promotion gate from token correctness.
- Extend property checks to larger
x, replay windows, and adversarial cross-lane attempts, then mirror chosen concrete parameters in demo defaults.