Background
PR #1096 adds PTO-ISA build/run revision compatibility validation for simpler.
The current implementation records the actual PTO-ISA git HEAD used when pip install builds the a2a3 onboard runtime, then validates that revision when a2a3 onboard runtime binaries are looked up at test/runtime startup.
Current scope
- Build metadata is written to
build/lib/pto_isa_build.json after runtime builds complete.
- The recorded build revision is the actual PTO-ISA checkout HEAD, read with
git rev-parse HEAD.
- Runtime validation is scoped to a2a3 onboard runtime lookup only.
- a5, a2a3sim, and a5sim are intentionally outside this check because the current metadata represents the a2a3 onboard host runtime PTO-ISA dependency.
- Runtime non-git
PTO_ISA_ROOT falls back to explicit/default pin when possible; latest/HEAD without a concrete checkout remains an error.
- Build-time non-git
PTO_ISA_ROOT remains unsupported because metadata would be unverifiable.
Follow-up items to track
- Decide whether future support is needed for headers-only / packaged PTO-ISA directories.
- If needed, design an explicit resolved-version source, such as
PTO_ISA_ROOT/.pto_isa_commit or a build-time resolved commit override.
- If additional platforms start embedding PTO-ISA headers into prebuilt runtime binaries, extend metadata from one global a2a3-onboard record to per-platform or per-runtime records.
- Keep docs aligned with the actual build/run resolution order for
PTO_ISA_ROOT, --pto-isa-commit, SIMPLER_PTO_ISA_COMMIT, and DEFAULT_PTO_ISA_COMMIT.
Related PR: #1096
Background
PR #1096 adds PTO-ISA build/run revision compatibility validation for simpler.
The current implementation records the actual PTO-ISA git HEAD used when
pip installbuilds the a2a3 onboard runtime, then validates that revision when a2a3 onboard runtime binaries are looked up at test/runtime startup.Current scope
build/lib/pto_isa_build.jsonafter runtime builds complete.git rev-parse HEAD.PTO_ISA_ROOTfalls back to explicit/default pin when possible;latest/HEADwithout a concrete checkout remains an error.PTO_ISA_ROOTremains unsupported because metadata would be unverifiable.Follow-up items to track
PTO_ISA_ROOT/.pto_isa_commitor a build-time resolved commit override.PTO_ISA_ROOT,--pto-isa-commit,SIMPLER_PTO_ISA_COMMIT, andDEFAULT_PTO_ISA_COMMIT.Related PR: #1096