AI-ready CLI — Phase: shared foundations (T011–T019)

Đang mở
#208 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust

Hướng nghiên cứu

Start with the baseline gate in T010 and the existing src/cli.rs; the issue names the planned CLI modules, src/cli/invocation.rs, src/outcome.rs, Cargo.toml, and tests/order_list_process.rs. Work through T011–T019 and their listed checks, including SDK notification observability and required gates. Done means the shared foundations are implemented and the results are recorded in research.md or tests/TEST_SUMMARY.md as specified.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement status: accepted

Part of #206.

Goal: Establish the shared parsing, outcome and test boundaries the pilot
needs, with no story (US1/2/3) work yet. Behavior-preserving extraction plus the
machine-output scaffolding.

Tasks

  • T011 Split src/cli.rs into cli/args.rs, cli/commands.rs, cli/context.rs, cli/legacy.rs with facade re-exports (preserve behavior, 400-line limit)
  • T012 Enable explicit Serde derive + add schemars 1.2.3 (defaults off, only derive/std) in Cargo.toml; check resolved graph/MSRV
  • T013 Portable process harness in tests/order_list_process.rs (generated keys, loopback ports, isolated env, closed stdin, watchdog, cleanup)
  • T014 Adversarial output-intent tests vs Clap metadata + recovery prototype in src/cli/invocation.rs (cover the CLI-contract decision table)
  • T015 Prove SDK notification observability (EOSE-empty, CLOSED, disconnect, silent relay); record in research.md or stop for design correction
  • T016 Typed envelope/error/warning/stage constructors + invariant tests in src/outcome.rs
  • T017 Fallible args_os/Clap parsing, global human/json default, grammar-aware recovery (cli/args.rs, cli/invocation.rs)
  • T018 Canonical-name/capability registry + pre-RPC/context JSON guard + buffered serializer/output boundary
  • T019 Run shared parser/envelope/guard/harness checks + required gates; record in tests/TEST_SUMMARY.md

Depends on: baseline gate (T010).

Ngôn ngữ chính
Rust
Star
39
Fork
16
Merge trung bình
4 giờ 6 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MostroP2P/mostro-cli

Tất cả issue của MostroP2P/mostro-cli

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.