Skip to content

Track PTO-ISA build/run revision compatibility validation #1106

Description

@vegetabledoww

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions