跳到正文
GitHub·· 7 天前AI 评分22

POLIS V6:面向 AI 辅助工程的确定性交付协议与 Go CLI

MarcosAlves90/polis

AI 导读

POLIS V6 是一个 Go CLI 与交付协议,用于验证、打包、检查、签名并安全应用代码变更,让需求、测试、证据与变更范围显式化。它会在捕获前用锁定的测试范围校验 Red probe 路径,并生成可验证的 .polis 交付包与分离签名,通过隔离验证和事务式应用保护仓库完整性。该版本还提供可移植的离线运行时,供没有源码树的编码智能体使用,需 Go 1.23 或更新版本及 Git。

正文

POLIS V6

Deterministic, evidence-driven software delivery for AI-assisted engineering.

POLIS is a Go CLI and delivery protocol for validating, packaging, inspecting, signing, and safely applying code changes.

POLIS banner

Why POLIS

  • Makes requirements, tests, evidence, and change scope explicit.
  • Checks proposed Red probe paths against the locked test scope before capture.
  • Applies configurable validation with strict, safe defaults.
  • Runs configured project gates locally without producing a delivery package.
  • Produces verifiable .polis delivery packages and detached signatures.
  • Preserves repository integrity through isolated validation and transactional apply.
  • Includes a portable offline runtime for coding agents without the source tree.

Installation

Go installation (recommended)

Requirements: Go 1.23 or newer and Git.

go install github.com/MarcosAlves90/polis/v6/cmd/polis@latest
polis help
polis doctor

For a reproducible installation, pin the release instead of using @latest:

go install github.com/MarcosAlves90/polis/v6/cmd/polis@v6.11.0

See the installation guide for PATH setup on Linux, macOS, and Windows, plus upgrade, removal, and source-checkout instructions.

Offline runtime

Download the polis-<tag>-offline-<GOOS>-<GOARCH>.zip asset that matches your platform from the latest release. Releases include native host builds plus Linux amd64 and Windows amd64 variants. Extract it and run bin/polis (or bin/polis.exe on Windows).

The offline runtime requires Git and the matching OS/CPU architecture. It does not require Go or another language runtime for POLIS operations. Read the offline runtime guide before transferring it to an AI.

Source checkout

For development or a checked-out revision:

git clone https://github.com/MarcosAlves90/polis.git
cd polis
go install ./cmd/polis
polis doctor

Documentation

The usage guide is the entry point for command reference, policy profiles, strict SDD/TDD, artifact trust, signatures, and exit categories.

来源:GitHub · github.com