# Community roadmap / 社区项目路线图

This roadmap records proposed priorities as of 2026-11-10. Each milestone needs
implementation, public API review, documentation and repeatable acceptance before
being described as supported. Version numbers and dates will follow acceptance.

本文记录截至 2026-11-10 的建议优先级。每个里程碑须完成实现、公共 API 审查、
文档及可重复验收后才能列为已支持能力。版本号和发布日期随验收确定。

## Starting point / 现有基础

The checkout contains typed RTNetlink queries, mutations and monitoring, pure
state planning, ordered application, compensation, coverage gates and registry
consumer checks. Dummy, veth and bridge creation, link deletion and master
assignment/detachment are in the unreleased source.
See [release](release.md), [coverage](coverage.md) and [comparison](comparison.md)
for their contracts and evidence. A configured check needs a successful run for
the specific commit before it serves as release evidence.

当前源码包含类型化 RTNetlink 查询、修改、监听、纯状态规划、顺序执行、补偿、
覆盖率门禁及注册表 consumer 验证。dummy、veth、bridge 创建、链路删除与
master 设置/解除位于未发布源码。
能力约定和证据见[发布说明](release.md)、[覆盖率](coverage.md)及[对照契约](comparison.md)。
检查配置须在对应提交上成功运行，才能作为该版本的发布证据。

## 1. Container networking primitives / 容器网络基础能力

Implement exclusive veth pair creation first, then bridge creation and typed
master assignment. Add namespace placement only after defining descriptor
ownership and lifetime. Keep codecs in `route` and socket operations in `transport`.
Each slice includes a runnable public SDK example and an isolated kernel test.

先实现排他创建 veth 对，再实现 bridge 创建与类型化 master 设置。命名空间迁移
须先定义描述符所有权和生命周期。协议留在 `route`，socket 操作留在 `transport`。
每个切片提供可运行的公共 SDK 样例及隔离内核测试。

Acceptance covers duplicate names, invalid peers, permission failures, deletion,
cleanup after partial failure and comparison against `ip -j`. A downstream module
must create a topology, configure addresses and routes, and remove its resources.
Resource ownership must be explicit before adding creation to desired state.

验收覆盖重名、非法 peer、权限失败、删除、中途失败清理及 `ip -j` 对拍。
独立下游模块须完成拓扑创建、地址和路由配置及资源删除。
将创建能力纳入 desired state 前，须明确资源归属。

## 2. Continuous reconciliation / 持续状态收敛

Build a controller on the existing planner and executor. Treat events as reasons
to observe again. Resynchronize after event loss, debounce bursts, bound retries
and support cancellation. Recheck resource identity before mutation and expose
drift, retry and uncertain-operation outcomes to the application.

复用现有规划器与执行器构建控制器。事件触发重新观测，丢事件后重新同步，
合并突发事件，限制重试并支持取消。修改前复查资源身份，将漂移、重试及
操作结果未确定的状态提供给应用处理。

Acceptance injects external drift, interface deletion and recreation, lost events,
timeouts and shutdown during execution. Check bounded resource usage, preservation
of unmanaged resources and eventual empty plans after the environment settles.

验收注入外部漂移、接口删除重建、事件丢失、超时及执行期间退出。
检查资源使用有界、未管理资源得到保留，以及环境稳定后计划最终为空。

## 3. Independent adoption / 独立应用接入

Deliver a network lab provisioner using a published package, followed by a
read-only drift monitor. Track installation, first successful run, integration
code and downstream feedback. Invite an external developer to reproduce the
documented workflow and record issues and resolutions with their consent.

先交付依赖已发布包的网络实验环境配置应用，再提供只读漂移监控应用。
记录安装、首次成功运行、接入代码及下游反馈。邀请外部开发者复现文档流程，
经其同意记录问题与处理结果。

Acceptance requires independent dependency resolution, reproducible failure
handling and tagged application versions. Real adoption evidence includes
downstream repositories and upgrade results. This remains an adoption target.

验收要求独立依赖解析、可复现的失败处理及应用版本标签。
实际采用证据包括下游仓库和升级验证结果。这一项仍是待实现的生态目标。

## 4. Quality gates for every milestone / 各阶段质量门禁

- Measure in-process SDK queries and large codec fixtures with fixed inputs,
  warmup, repeated samples and environment records. Keep CLI process costs distinct.
  固定输入、预热、重复采样及环境记录，补齐进程内 SDK 查询和大规模 codec 基线，
  单独记录 CLI 进程成本。
- Add an independently tested Linux environment and then arm64 when available.
  Publish exact kernel, architecture, compiler and dependency versions with results.
  增加独立 Linux 环境复验，具备条件后加入 arm64，公开内核、架构、编译器及依赖版本和结果。
- Publish contribution setup, API compatibility rules and a documented issue
  triage process. Offer bounded starter tasks with explicit acceptance criteria.
  完善贡献者安装流程、API 兼容规则和问题处理流程，提供带明确验收标准的小型入门任务。
- Preserve coverage and critical-failure gates, run registry consumer checks for
  each release, and retain reports tied to the source commit.
  保持覆盖率与关键失败门禁，每次发布执行注册表 consumer 验证，保留关联源码提交的报告。

## Quarterly review evidence / 季度评选证据

Prepare a capability matrix separating published and unreleased work, three
reproducible scenarios, failure demonstrations, measurement reports, downstream
feedback and links to successful CI runs. Track effective changes since the
previous submission. The official quarterly program accepts community projects
and publishes its schedule separately. Confirm the applicable notice when submitting.
[Official program](https://moonbitlang.github.io/Hackathon2026/)

准备区分已发布与未发布工作的能力矩阵、三个可复现场景、失败演示、测量报告、
下游反馈及成功 CI 运行链接，并记录上次申报以来的有效改进。
官方季度评选接受社区项目报名，具体安排另行通知，提交时核对适用公告。
[官方活动页面](https://moonbitlang.github.io/Hackathon2026/)
