Skip to content

v0.2.0 — 全层润滑剂 / All-Layer Lubricant Pass

Choose a tag to compare

@leslie520-bye leslie520-bye released this 15 Oct 16:24
· 77 commits to main since this release
c3f1282

OriEra v0.2.0

🌐 在线体验(11 个浏览器 demo,零安装): https://oriera-engine.github.io/engine/
📹 54 秒官方演示: oriera-official-demo.mp4


AI 原生应用的负载是概率性、突发、昂贵的:模型调用会突然吃掉 200ms,生成管线会倾泻一批资产,幻觉会写出 1e9 的倍速。这一版不给引擎加新系统,而是给已有的十一层每层加一次润滑——把 AI 的毛刺在引擎内吸收掉,让上层以为世界永远是平滑的。

每层一个摩擦点,每层一刀

  • L0 TokenUsage:全引擎统一的 token 计量词汇(L7 产出 / L9 累计)
  • L1 route(caps, RouteHint):端云路由在 PAL 一次决策;隐私任务无条件钉在端侧
  • L2 Scheduler::system_timings():逐系统毫秒——「这帧被谁吃了」一眼可见;with_budget_ns 按平台画像 grading
  • L3 for_each_mut 零分配;resource_or_default 自愈资源;类型化事件队列
  • L4 insert_named/get_named:命名资产原位热替换——AI 重新生成的贴图/网格同名换入,实体零重建
  • L5 observe_frame 迟滞画质调速:持续过载 → 降档 batching,真有余力才缓慢升档
  • L6 TimeScale:慢动作/子弹时间/暂停是一个资源;物理步长钳制 [0,8],幻觉值最多变快进、不会 NaN 世界
  • L7 帧预算命令队列:单帧最多执行 N 条命令,洪峰计入 deferred 摊到后续帧;UsageMeter 让每次调用的 token 成本进世界状态
  • L9 认知/导演系统自愈启动(裸世界 boot 成为测试契约);parse 否定语义(「别清空」不再清空)
  • L11 PC 壳全量接线示范

兼容性

全部为加法式变更:现有 API 签名不变。

验证

cargo test --workspace(CI/Linux);新增 28 个测试覆盖每层新契约(全仓 78 个)。


English

The loads of AI-native apps are probabilistic, bursty and expensive. This pass adds no new subsystem — it lubricates each of the eleven existing layers so the engine absorbs the AI spikes before apps ever feel them: unified token metering, one-shot edge/cloud routing at the PAL boundary, per-system frame timings and per-platform budget curves, zero-alloc iteration + self-healing resources + typed events, named in-place asset hot swap, hysteresis quality governor, clamped TimeScale pacing, frame-budgeted inference queue with deferred accounting, negation-aware parsing and panic-free cognition boot, all wired end-to-end in the PC shell. Additive-only: no existing API signature changed.

Verified by 78 tests (28 new) in CI.


🎃 Hacktoberfest 2026: 本仓库所有 good first issues 参与今年活动,10 月 31 日截止——欢迎来提你的第一个 PR。
⭐ 觉得方向对,给个 Star 支持开源路线。