compat

package
v0.1.0-rc.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgainstTrunkCmd

type AgainstTrunkCmd struct {
	Project string `name:"project" placeholder:"ID" help:"Project id. Empty = read from the current project's lock."`
	Name    string `name:"name" placeholder:"NAME" help:"Initiative name. Empty = current git branch (main/master → trunk)."`
	Mode    string `name:"mode" placeholder:"dev|prod" default:"dev" help:"Environment mode for the gate decision."`
}

func (*AgainstTrunkCmd) Run

func (c *AgainstTrunkCmd) Run(parent *Cmd) error

type Cmd

type Cmd struct {
	Console string `` /* 178-byte string literal not displayed */

	Report       ReportCmd       `cmd:"" help:"Diff two snapshots by id (base → head)."`
	AgainstTrunk AgainstTrunkCmd `cmd:"" name:"against-trunk" help:"Diff the current branch's initiative head against trunk (the review semantic diff)."`
}

Cmd is `w17ctl compat` — the compatibility report between two compiled snapshots, with the dev/prod policy gate. w17ctl is a thin client: it fetches the two snapshots' compiled IR from console storage and ships them to the console's ClassifyIR RPC, which classifies + applies the gate (thin-client refactor Step 3d — the engine moved behind the API). CI can fail a build on a prod-mode block (non-zero exit).

type ReportCmd

type ReportCmd struct {
	Base string `name:"base" placeholder:"SNAP" help:"Base snapshot id (empty = initial state)."`
	Head string `name:"head" placeholder:"SNAP" required:"" help:"Head snapshot id."`
	Mode string `name:"mode" placeholder:"dev|prod" default:"dev" help:"Environment mode for the gate (dev=warn, prod=block breaking)."`
}

func (*ReportCmd) Run

func (c *ReportCmd) Run(parent *Cmd) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL