Help us shape the future of Go! Take the 2026 Go Developer Survey

sleep

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package sleep implements the "sleep" CLI command: the offline consolidation cycle (SPEC-ADDITIONS §18.4). Before trusting the loop it runs the negative-control gate self-test (a planted regression must be rejected, exit 15). `run` harvests closed arcs, asks the optimizer for a bounded edit, gates it on a strict held-out improvement, and stages an accepted proposal under .adh/sleep/staging/<id>/ without touching live files (exit 14 while a proposal awaits adoption). `adopt` is the only verb that mutates live guiding docs, backing them up first; `status` lists what is staged. All decisions live in internal/consolidate; this file is the imperative shell around it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config
	Artifact string
	Response string
	Relay    bool

	Flags   *ff.FlagSet
	Command *ff.Command
	// contains filtered or unexported fields
}

Config holds the configuration for the sleep command.

func New

func New(parent *root.Config) *Config

New creates and registers the sleep command with the given parent config.

Jump to

Keyboard shortcuts

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