feat: bring up ASL-generated functional model for gfrun - #183
Closed
zhoubot wants to merge 82 commits into
Closed
Conversation
This was referenced Aug 29, 2026
Contributor
Author
|
Superseded by #188. The new draft keeps the ASL-owned fetch/step architecture and AVS evidence, removes PTO-owned model lifecycle/custom MIR runtime, and will link the public asl-model and downstream consumer PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Single PTO-SPEC Draft PR for the ASL-generated functional-model producer and checked ELF corpus consumed by gfrun. Keep this PR Draft and do not merge until the remaining governance/toolchain items below are reviewed.
Implemented
request_type=1,a7=94,a0=statusconvention is hosted ABI in the SuperscalarModel model NDF; nonmatching ACRC always retains PTO service-request behavior.PTO-STATE-MODEL-*inventory identity and model reset is called only by model initialization.pto-mir-v1, executable MIR, fail-closed unsupported-node handling, and generated runtime image.PTOASLModel0.4.0 package with opaque C ABI, per-instance state, exact descriptor negotiation, generated reset/step/host completion, C/C++ consumers, 1,000-step isolation/concurrency coverage, Werror, and sanitizer tests.pto-bundle-tile-state-sha256-v1observation. The selected state comes from generated ASL global bindings; the digest does not enter PTO architectural state or affect execution.requirements/avs_idsfrom SuperscalarModelSSM-MODEL-*andSSM-ABI-*requirements.TLOAD(U32) -> TADD -> TSTORE, result 50;exit_group(94), full argument 7 and process status 7.libpto_asl_model, and gfrun emit one schema and compare every exported step field plus result bytes.SuperscalarModel gfrun and model NDF branch
The canonical consumer is pushed at
codex/pto-asl-model-ndf, head411ae88e, without opening another PR. Its positive model NDF lives indocs/pto-asl-functional-model-ndf-v1.jsonwith separate model-architecture, model-ABI, hosted-ABI, and implementation clauses:--engineis removed and fails closed.soft_core,isa_blockisa, orsoftfloat; the symbol/link canary rejects legacy functional reachability..note.pto.isaand compares its ABI/fingerprint with the loaded model descriptor. Missing, malformed, duplicate, or mismatched identities fail closed.exit_group, the full XLEN argument, the low-eight-bit process status, and returns that status.SSM-*requirement against that model NDF.Passing evidence
82f21ec3all pass: source-contract, tooling-tests, validate, and Site validate.make pr-check: 769 script tests passed, 2 expected skips; 3,742 architecture ASL points closed. Model lifecycle/ABI evidence moved to SuperscalarModel tests instead of being counted as PTO AVS.make repo-check: repository closure passed; 542 encoded forms.make check: strict ASLRef check passed with zero warnings.82f21ec3: CTest 5/5 passed; installed descriptor reports commit82f21ec39cedf11600670c1ec131aae05bdf6053, tree8177612afaf19e9cbf8281ef18f770fcafa82f52, ABI 262144, snapshot v1, summary v1, and descriptor SHA-2564abe82abd25853c566e23c41690c8cc0b405df31f7265f1b3d2f9295cef9c073.result.binacross ASLRef, standalone library, and gfrun, including memory-write count/log/SHA fields. Standalone library and gfrun additionally match Bundle/Tile digests at every step.0x200..0x203 = 19 00 00 00; Tile commit evidence: sequence 20 writes0xF00..0xF03 = 32 00 00 00. All three models report identical ordered logs and digests.TLOAD -> TADD -> TSTORE, result32 00 00 00.0x10e, exit status 7.LLVM and G7 review-only precursors
An LLVM branch is pushed at
codex/pto-v0585-sync, headfe1a663d5511, without opening another PR. It consumes the generated 0.58.5 codec exactly, updates the canonical ELF identity, B.FPATR's tenth field, B.ASSEMBLE/B.SUBVIEW round-trip support, Shared S0..S63, and the current 85 TEPL operations. The focused LLVM evidence passes: 57/57 LinxISA MC plus LLD identity tests, 3/3 directly affected CodeGen tests, exact generated-codec comparison, and fresh Clang/LLD linx64 plus linx32 object/ELF production with the exact 0.58.5 note. The broader LLVM CodeGen/Clang directory is not claimed fully green: untouched SIMT-autovec and inline-asm expectation tests still expose existing failures outside this PTO synchronization slice.A LinxISA branch is pushed at
codex/asl-functional-model-g7, head209e37ec, without opening another PR. It pinstools/pto-specto PTO82f21ec3/tree8177612aand adds the correcttools/SuperScalarModelgitlink at411ae88e.isa/v0.58/pto-functional-model.lock.jsonbinds both gitlinks, the PTO lock/release manifest, model NDF, ABI/snapshot/summary schemas, descriptor4abe82…, and corpus92a15d…; mismatch canaries fail closed. Existing LLVM and LinxCoreModel reviewed pins remain unchanged.Remaining review blockers
make release-verifyreaches the Reader Guide release gate and stops because eight architecture Reader Guides remain pending owner acceptance: six functional-model/fetch/hook pages and two indexed-memory lane-choice pages. English and zh-CN drafts contain the required reader roles and documentation/publication checks pass; evidence remainspending. Do not label the exact release lane successful yet.Review order
411ae88efor the model NDF, ASL-only cutover, identity enforcement, hosted exit, memory-write trace copy-out, and model-summary recording.fe1a663d5511, then decide the leaf-review and final superproject pin path without creating an unreviewed topic-head lock.Do not merge this PR yet.