CUDA Rust 所有权与启动契约控制
agent-cuda-rust
采用改编自 NVIDIA CUDA Rust(cuda-oxide / cutile-rs)的失败即关闭(fail-closed)、Tile 优先的所有权与启动契约控制,拒绝 GPU 云支出。
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- agent-cuda-rust
- description
- Fail-closed Tile-first ownership and launch-contract controls adapted from NVIDIA CUDA Rust (cuda-oxide / cutile-rs). Deny GPU cloud spend.
02 资源文件 1
- 参考文档references/detailed-guide.md13.6 KB
03 SKILL.md 正文
Agent CUDA Rust
Use when parallel agents share artifacts, before launching multi-step store/IAP automation, or when choosing high-level vs low-level control paths.
Instructions
- Prefer Tile (safe high-level defaults) before SIMT (explicit/low-level control).
- Reject plan-time aliasing (same buffer as input and mutable output).
- Give parallel workers exclusive write slots; deny shared mutable ownership.
- Declare a launch contract and validate config before launch.
- Run doctor before scaffold/launch.
- Record a lazy chain; execute only on sync, then return ownership.
- Do not claim alpha tooling as production.
- Keep interop; do not lock into one path.
- Deny CUDA cloud / paid GPU rental under the monthly cap.
python3 scripts/agent_cuda_rust.py \
--platform ops_ownership_gate \
--kernels scripts/tests/fixtures/agent_cuda_rust.json \
--cite crs:iap-alias-gate \
--prefer-tile 1 \
--input-ids catalog,entitlement --output-ids iap_attempt \
--exclusive-write-slots 1 \
--contract-declared 1 --config-validated 1 \
--doctor-pass 1 \
--chain-recorded 1 --synced 1 --ownership-returned 1 \
--maturity alpha --claim-production 0 \
--lock-in 0 --shared-contract 1
Examples
- Allow: Tile-first IAP catalog read with disjoint evidence slots and validated Maestro contract.
- Deny: “rent A100”; “SIMT without need”; “output buffer reused as input”; “alpha is production”.
Performance Notes
- Zero external spend path.
- Ranker zeros GPU TFLOPS / crates vanity metrics.
Troubleshooting
- Exit
2: inspectaliasing,track,launch_contract,doctor,readinesskeys. - See
docs/AGENT_CUDA_RUST.md.
04 同仓库更多 Skills
任务实施计划编写
writing-plans
当你有某个多步骤任务的规格说明或需求时,在动手编写代码之前使用。
AI 工作流经济性评估
workflow-economics-lite
逃离 AI 试点炼狱:要求构建闭环(completion-loop)工作流,包含单一负责人、基线、经济指标、记录系统(system-of-record)集成和审计轨迹。阻断孤立的聊天机器人以及将“兴趣”当作 ROI 的说法。
完成前验证确认
verification-before-completion
当准备声称工作已完成、已修复或已通过时,在提交或创建 PR 之前使用——要求在做出任何成功声明之前先运行验证命令并确认输出;始终遵循“证据先于断言”。
价值中心五问评估
value-center-lite
应用 InfoQ Rohrer 的价值中心 / VSM 五问法(自主性 + 一致性)。在规划工作、发布版本或审计智能体自主性声明时使用。对于没有 WQTU/付费墙价值的纯产品口号,采取 fail closed(默认拒绝)的严格判定。
技能发现与调用规范
using-superpowers
在每次对话开始时使用——建立如何查找和使用技能的方法,要求在任何回应(包括澄清性问题)之前都必须先调用技能。
Git 工作树隔离开发
using-git-worktrees
在开始需要与当前工作区隔离的功能开发时,或在实施计划执行前使用——通过原生工具或 git worktree 回退机制确保存在隔离的工作区。