Skip to content

增加 Makefile 与安全的 gateway run/stop 便利命令 #12

Closed

Description

@tbrandenburg

目标

新增 Makefile,将 install/test/lint/check/build/conformance/clean 连接到现有工具。增加 gateway-only 的 background run、stop、status;不启动/停止 upstream,不隐式选择 exclusive,不修改既有 V2 deployment boundary。

验收

  • Basic targets 使用现有 uv/scripts。
  • Run 继承现有 environment/.env;记录独立 gateway process,输出私有 log,等待监听。
  • Stop 仅终止本 helper 创建并能验证 identity 的 gateway;不按进程名/端口 kill,不触碰已有服务。
  • 实际验证 run/duplicate run/status/stop、缺配置、占用端口、stale PID refusal;doctor 通过。
  • 更新 README,commit 并 push feature branch;不重开 V2 epic、不创建 upstream PR/新 release。

Activity

  1. tbrandenburg commented on Oct 25, 2026

    @tbrandenburg
    OwnerAuthor

    已按请求 commit 并 push

    Commit:f287bc5 ,分支 chore/makefile。本任务要求的 commit/push 已完成;未合并 main、未创建 PR、未修改 release/tag。

    新增 Makefile basic targets 和 Linux gateway-only run/stop/status。继承现有 environment/.env,不管理 upstream、不隐式启用 exclusive。Native PID descriptor + lifetime lock/identity 验证避免误 kill unrelated/reused PID;私有日志和 process metadata 在 run/gateway,clean 不删除 runtime state/databases。

    验证:make check 1031 passed / 0 failed,typing/lint/format/secret scan/coverage/build/wheel smoke 通过;make conformance 8/8。实际 make install、make lint、make build 通过。五个新测试覆盖实际 gateway run/duplicate/status/stop、missing auth、occupied port、unrelated PID refusal 和 clean preserves state。测试后未发现遗留的本 helper gateway。

    README 和 scripts index 已更新;没有重开 V2 epic 或增加后续 capability 承诺。按本任务的已交付 commit/push scope 关闭。

  2. tbrandenburg commented on Oct 25, 2026

    @tbrandenburg
    OwnerAuthor

    已合并并清理 feature branch

    #13 已 normal merge 到 fork main:7c67017cd863347995884064d87c61848d79c1be,merge tree 与测试候选 f287bc5 相同。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions