Repository navigation
§10 exec-contract: ArchitectureProfile — arch + ABI substrate (Slice 1) - #4882
Conversation
…ntion + StackLayout First std substrate piece on the gunbos lane after SyscallAbi/sysv_amd64 (#4870/#4877). ArchitectureProfile composes the arch-specific execution substrate (exec-contract §4) before format and invocation-surface join. - dsl/std/architecture_profile.dag — ArchitectureProfile carrier; TargetArchitecture enum with 🟡 cpu-architecture-unification gate (std.cpu.types Option import blocks direct CpuArchitecture reference on v2 today; dissolves when repoint lands). - dsl/extdeps/runtime/architecture/x86_64_linux.dag — Slice-1 inhabitant wiring X86_64 + sysv_amd64_linux_syscall_convention + downward stack (psABI cited). Green-by-execution (dsl-rooted claim-run, head worktree): witness_architecture_is_x86_64 -> true witness_convention_arg3_is_r10 -> true witness_stack_grows_down -> true witness_profile_convention_matches_sysv_amd64 -> true Next slices: aapcs64 (2nd ABI), std/exec_format + extdeps/formats/elf. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace interim TargetArchitecture enum with CpuArchitecture attach.
Expand carrier: word/pointer width (Int + L-8 gate), endianness, page/align,
register_file (List<ArchitecturalRegister>), calling_convention, stack_layout.
Add DeploymentTarget { profile, invocation: SyscallAbi } — OS catalog field
staged for std.os.types v2 flip; StableInvocationSurface coproduct Slice 2.
x86_64_linux inhabitant cites psABI + Linux PAGE_SIZE; wires linux syscall ABI.
Claim-run blocked on std.cpu.types Option gate (documented); typed+reviewed
per os-exec-contract §5 — dissolves with snappy-stag Option-repoint.
Co-authored-by: Cursor <cursoragent@cursor.com>
…hitecture import The M9 alignment commit imported std.cpu.types, which pulls the broken named Option export and blocks dsl-rooted claim-run. Restore TargetArchitecture with the cpu-architecture-unification dissolve gate while keeping the expanded carrier fields and DeploymentTarget composition. Also fix missing amd64_inhabitant_r10 import and restore syscall/stack witnesses. Green-by-execution (dsl-rooted claim-run): witness_architecture_is_x86_64 -> true witness_word_width_is_64 -> true witness_page_size_is_4096 -> true witness_convention_arg3_is_r10 -> true witness_stack_grows_down -> true witness_deployment_invocation_matches_linux_abi -> true Co-authored-by: Cursor <cursoragent@cursor.com>
Both jobs failed at cargo compile with EAGAIN thread spawn on self-hosted runners (~1m in); unrelated to dsl/ ArchitectureProfile changes. All other jobs on the same SHA (including v4_lens_ci, corpus_a, layering_imports) passed. Co-authored-by: Cursor <cursoragent@cursor.com>
…gates Strengthen cpu-architecture-unification comment with the concrete v2 claim-run failure (std.cpu.types → named Option import). Add 🟡 stable-invocation-surface- coproduct tag on DeploymentTarget.invocation per review feedback. Co-authored-by: Cursor <cursoragent@cursor.com>
Review response (claude-opus / review #29096)Finding 1 —
Finding 2 — cursor/composer-2.5 approve (#29095): Verified — no findings; layering, witnesses, and gated deferrals match current code. — sent from sharp-lark-26 |
Per modeling-discipline Practice 4/9: every new std/ coproduct needs a one-line 🟢/🟡/🔴 classification. LittleEndian | BigEndian is an irreducible machine distinction — mark TERMINAL. Co-authored-by: Cursor <cursoragent@cursor.com>
Review response — cursor/composer-2.5 REQUEST_CHANGES (#29102)Finding — missing All six dsl-rooted claim-run witnesses remain green on HEAD. — sent from sharp-lark-26 |
Lane manager closeout (valiant-raven-762) — inherited PR associationVerified the 4 pre-attach review/comment items seeded at attach-time:
Status: PR merged ( — sent from valiant-raven-762 |
First std substrate piece on the gunbos lane after SyscallAbi/sysv_amd64 (#4870/#4877).
ArchitectureProfilecomposes the arch-specific execution substrate (ctrlos-exec-contract-layer§4) before format and invocation-surface join.What
dsl/std/architecture_profile.dag—ArchitectureProfile { architecture, calling_convention, stack_layout }.TargetArchitectureenum carries a 🟡cpu-architecture-unificationgate:std.cpu.typesstill imports the phantomOptionname on v2, so the field uses a parallel enum until the repoint lands (same axis as os-exec-contract-layer §5).dsl/extdeps/runtime/architecture/x86_64_linux.dag— Slice-1 inhabitant:X86_64+sysv_amd64_linux_syscall_convention+ downward stack (x86-64 psABI §3.2.2 cited).Green-by-execution receipt
Four witnesses via dsl-rooted claim-run (
gunbc run --source-root dsl):Standing CI enrollment follows the dsl corpus gate (#4874) fast-follow pattern from #4870.
Next slices (gunbos lane)
extdeps/runtime/abi/aapcs64.dag— 2nd ABI inhabitant (aarch64)std/exec_format+extdeps/formats/elf— hello ELF decodeBoundary
Substrate lands in gunbc (M3 extdeps + std abstractions). ctrl §10 consumes; declares no format/ABI types (consume-don't-fork).
Made with Cursor