Add: [H3] seal and validate HBG execution slots - #2175
Draft
TaoZQY wants to merge 1 commit into
Draft
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
TaoZQY
force-pushed
the
codex/hbg-pr-h3
branch
from
September 9, 2026 09:14
8cde116 to
81d8e64
Compare
This was referenced Sep 9, 2026
TaoZQY
force-pushed
the
codex/hbg-pr-h3
branch
from
September 9, 2026 11:41
81d8e64 to
7501f24
Compare
4 tasks
TaoZQY
force-pushed
the
codex/hbg-pr-h3
branch
from
September 10, 2026 08:48
7501f24 to
89b00a9
Compare
- Reserve context-owned registry storage outside mutable graph images and seal frozen addresses, capacities and runtime identity at prepare. - Publish immutable device registrations and compare complete packet bindings before exposing a restore view, with no writes on rejection. - Carry device and binary identity in the versioned HBG packet while preserving the 64-byte K1 envelope and invocation-owned callable data. - Cover registration, forged bindings, stale generations, publication and context ownership on both architectures; document owner hooks. Include the kernel-mode C ABI, state and invocation headers required by this implementation. Retain the preceding HBG resource and packet changes present in this draft where applicable. Public kernel launch integration remains pending. Co-authored-by: sunkaixuan2018 <baiyi@mail.ustc.edu.cn>
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.
A graph packet must not authorize writes using its own claimed addresses. Seal actual frozen context resources during prepare and publish them into an independent context-owned AICPU registry. Before exposing a restore view, compare the packet's complete bindings, device, generation and runtime binary identity against this record.
Reserve a separate 192-byte registry slice outside all mutable graph images, retaining two physical allocations. Ready registrations are immutable; duplicates must match exactly. The resident DSO stores only a registry pointer. Rejected packets leave working memory, registry and output unchanged. HBG packet version 2 carries device and binary identity while preserving the 64-byte K1 envelope and invocation-owned callable identity.
Validation
mkdocs build --strictpassed separately at all five PR heads. The HBG contract page is included in navigation from H1; the execution-slot page is included from H3.The Host prepare callback and device control/admission interfaces are implemented. H4 must supply semantic validation and pristine restore; H5/common owner must connect CANN registration, PrepareTail ordering and device detachment before context close. Unit cache operations are stubbed; no onboard coherence or capture/replay claim is made.
Dependency and review scope
Draft 5/5: H3. Depends on #2174.
7501f24c.This draft is rebased onto
mainata1aa7fddf42b2d28849bc3fb6fe1eb50ab891324and squashed to one commit. The rebase retains the upstream documentation-theme update. Source and test files match the previous PR head exactly; the squash preserves the complete rebased tree. Applicable pre-commit checks passed again.All five HBG drafts target
main. Each PR has exactly one commit, containing K1 plus all HBG milestones through the stage in its title. Squashing changes commit history, not the cumulative code scope. The original isolated diff above remains available to review this stage alone. Rebase in dependency order after prerequisites land.The K1 snapshot originally carried from
21fb15c0is included in this squashed commit, with its human author retained as co-author. Upstream #2064 remains open and has advanced; alignment with its final version remains public execution integration work.No idle onboard devices were available. Simulation golden checks cover existing program-mode regression; mixed ACLGraph capture/replay, DSV4 CSA device accuracy and comparative performance remain unvalidated.