Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
generated/go/platform
Package platform provides primitives to interact with the openapi HTTP API.
|
Package platform provides primitives to interact with the openapi HTTP API. |
|
cmd
|
|
|
ipc-codegen
command
cmd/ipc-codegen generates IpcClient.generated.ts from Go IPC annotations.
|
cmd/ipc-codegen generates IpcClient.generated.ts from Go IPC annotations. |
|
nightgauge
command
|
|
|
nightgauge/forge
Package forgecmd implements the `nightgauge forge` Cobra command tree — a parallel CLI surface that routes every operation through internal/forge.ForgeClient (ADR-006).
|
Package forgecmd implements the `nightgauge forge` Cobra command tree — a parallel CLI surface that routes every operation through internal/forge.ForgeClient (ADR-006). |
|
nightgauge/workspace
Package workspacecmd implements the `nightgauge workspace` Cobra command tree.
|
Package workspacecmd implements the `nightgauge workspace` Cobra command tree. |
|
internal
|
|
|
attention
Package attention implements the local-first DecisionRequest store — the single authoritative writer for `.nightgauge/attention/` (ADR 015).
|
Package attention implements the local-first DecisionRequest store — the single authoritative writer for `.nightgauge/attention/` (ADR 015). |
|
attention/sweep
Package sweep evaluates repo-scoped attention producers with no pipeline run in flight (issue #89).
|
Package sweep evaluates repo-scoped attention producers with no pipeline run in flight (issue #89). |
|
audit
Package audit provides cross-repo API endpoint extraction and alignment checking.
|
Package audit provides cross-repo API endpoint extraction and alignment checking. |
|
careful
Package careful implements the opt-in destructive-operation guardrail behind the /nightgauge-careful skill.
|
Package careful implements the opt-in destructive-operation guardrail behind the /nightgauge-careful skill. |
|
cmd/aggregatefindings
Package aggregatefindings reads .nightgauge/ assessment reports (health-check, security-audit, test-scaffold), applies severity normalization, deduplicates overlapping findings, and emits a stable JSON schema.
|
Package aggregatefindings reads .nightgauge/ assessment reports (health-check, security-audit, test-scaffold), applies severity normalization, deduplicates overlapping findings, and emits a stable JSON schema. |
|
cmd/backlogpreflight
Package backlogpreflight implements deterministic validation checks for backlog issues on a GitHub project board.
|
Package backlogpreflight implements deterministic validation checks for backlog issues on a GitHub project board. |
|
cmd/batchfailures
Package batchfailures implements deterministic extraction of pipeline failure rows from .nightgauge/pipeline/batch-state.json AND .nightgauge/pipeline/history/YYYY-MM-DD.jsonl.
|
Package batchfailures implements deterministic extraction of pipeline failure rows from .nightgauge/pipeline/batch-state.json AND .nightgauge/pipeline/history/YYYY-MM-DD.jsonl. |
|
cmd/epicgate
Package epicgate mirrors the Phase 2.9 epic-decomposition detection logic from skills/nightgauge-issue-create/SKILL.md (lines 875-1012) as a pure Go function so it can be unit-tested independently of the bash gate.
|
Package epicgate mirrors the Phase 2.9 epic-decomposition detection logic from skills/nightgauge-issue-create/SKILL.md (lines 875-1012) as a pure Go function so it can be unit-tested independently of the bash gate. |
|
cmd/health
Package health implements CLI-layer reading and aggregation of pipeline health data files (.nightgauge/health/*.jsonl).
|
Package health implements CLI-layer reading and aggregation of pipeline health data files (.nightgauge/health/*.jsonl). |
|
cmd/integrationprobe
Package integrationprobe implements the deterministic platform-API probe behind `nightgauge integration probe-platform`.
|
Package integrationprobe implements the deterministic platform-API probe behind `nightgauge integration probe-platform`. |
|
cmd/release
Package release implements deterministic GitHub-release fetch and changelog classification behind the `nightgauge release fetch` and `nightgauge release classify-changes` verbs.
|
Package release implements deterministic GitHub-release fetch and changelog classification behind the `nightgauge release fetch` and `nightgauge release classify-changes` verbs. |
|
cmd/runstate
Package runstatecmd wires the internal/runstate package up as the `nightgauge run state {get,set,resume,discard}` Cobra subcommand.
|
Package runstatecmd wires the internal/runstate package up as the `nightgauge run state {get,set,resume,discard}` Cobra subcommand. |
|
cmd/scanfailures
Package scanfailures implements deterministic scanning of pipeline session logs under .nightgauge/logs/ for known failure-signal patterns.
|
Package scanfailures implements deterministic scanning of pipeline session logs under .nightgauge/logs/ for known failure-signal patterns. |
|
cmd/spike
Package spike implements the spike-materialize stage: parses the YAML recommendations block from a spike artifact and creates follow-up GitHub issues idempotently.
|
Package spike implements the spike-materialize stage: parses the YAML recommendations block from a spike artifact and creates follow-up GitHub issues idempotently. |
|
cmd/tests
Package tests implements deterministic test inventory and risk scoring behind the `nightgauge test inventory` and `nightgauge test risk-score` verbs.
|
Package tests implements deterministic test inventory and risk scoring behind the `nightgauge test inventory` and `nightgauge test risk-score` verbs. |
|
config
Package config handles CLI configuration loading.
|
Package config handles CLI configuration loading. |
|
depgraph
Package depgraph constructs a unified cross-repo dependency DAG from GitHub issues, computes topological execution waves, and finds the critical path.
|
Package depgraph constructs a unified cross-repo dependency DAG from GitHub issues, computes topological execution waves, and finds the critical path. |
|
detect
Package detect provides shared project-framework detection for the deterministic layer.
|
Package detect provides shared project-framework detection for the deterministic layer. |
|
diagnostics
Package diagnostics persists per-stage forensic records to disk so failure post-mortems have evidence instead of guesswork.
|
Package diagnostics persists per-stage forensic records to disk so failure post-mortems have evidence instead of guesswork. |
|
dockercompose
Package dockercompose owns docker-compose teardown for the per-issue pipeline stacks (project name "issue-NNN").
|
Package dockercompose owns docker-compose teardown for the per-issue pipeline stacks (project name "issue-NNN"). |
|
docs
Package docs provides deterministic markdown documentation operations.
|
Package docs provides deterministic markdown documentation operations. |
|
doctor
Package doctor provides environment health checks for the nightgauge pipeline.
|
Package doctor provides environment health checks for the nightgauge pipeline. |
|
execution
Package execution manages pipeline execution — worktrees, skill process spawning, process lifecycle, and output streaming.
|
Package execution manages pipeline execution — worktrees, skill process spawning, process lifecycle, and output streaming. |
|
execution/adapters
Package adapters defines the SkillRunner interface and AI CLI adapters.
|
Package adapters defines the SkillRunner interface and AI CLI adapters. |
|
execution/codexprovision
Package codexprovision provisions Codex provider context on the Go-direct spawn path (ExecutionManagerRunner), at parity with the TypeScript StageExecutor / skillRunner paths:
|
Package codexprovision provisions Codex provider context on the Go-direct spawn path (ExecutionManagerRunner), at parity with the TypeScript StageExecutor / skillRunner paths: |
|
execution/context
Package context handles context file I/O between pipeline stages.
|
Package context handles context file I/O between pipeline stages. |
|
executor
Package executor implements type-based command dispatch for remote commands polled from the platform API.
|
Package executor implements type-based command dispatch for remote commands polled from the platform API. |
|
focus
Package focus manages the configurable ideation lens for self-improvement.
|
Package focus manages the configurable ideation lens for self-improvement. |
|
forge
Package forge — see forge.go for the canonical package overview.
|
Package forge — see forge.go for the canonical package overview. |
|
forge/output
Package output centralises the rendering layer used by every `nightgauge forge` subcommand.
|
Package output centralises the rendering layer used by every `nightgauge forge` subcommand. |
|
forge/types
Package forgetypes contains forge-agnostic data types used by the internal/forge interfaces and adapters.
|
Package forgetypes contains forge-agnostic data types used by the internal/forge interfaces and adapters. |
|
forge/webhook
Package webhook provides a forge-agnostic HTTP webhook abstraction that can be reused for GitHub, GitLab, Bitbucket, and other forge webhook receivers.
|
Package webhook provides a forge-agnostic HTTP webhook abstraction that can be reused for GitHub, GitLab, Bitbucket, and other forge webhook receivers. |
|
git
Package git provides in-process git operations using go-git, eliminating the need for the system git binary.
|
Package git provides in-process git operations using go-git, eliminating the need for the system git binary. |
|
github
Package github provides a typed GitHub GraphQL client with rate limiting and automatic retry for the nightgauge CLI.
|
Package github provides a typed GitHub GraphQL client with rate limiting and automatic retry for the nightgauge CLI. |
|
gitlab
Package gitlab is the GitLab adapter for the forge abstraction defined in internal/forge.
|
Package gitlab is the GitLab adapter for the forge abstraction defined in internal/forge. |
|
heal
Package heal contains the deterministic pattern registry consumed by the `pipeline-heal-base` recovery action (Issue #3683).
|
Package heal contains the deterministic pattern registry consumed by the `pipeline-heal-base` recovery action (Issue #3683). |
|
history
Package history provides shared append-only JSONL writer primitives used by the pipeline run-record writer (internal/state) and the knowledge telemetry emitter (internal/knowledge/telemetry).
|
Package history provides shared append-only JSONL writer primitives used by the pipeline run-record writer (internal/state) and the knowledge telemetry emitter (internal/knowledge/telemetry). |
|
hooks
Package hooks implements Claude Code hook logic for the Nightgauge pipeline.
|
Package hooks implements Claude Code hook logic for the Nightgauge pipeline. |
|
intelligence/acparse
Package acparse — Parse counts top-level Markdown acceptance-criteria checkboxes in an issue body and returns a deterministic verdict suitable for gating the feature-validate Phase 0.6 type:docs completion check.
|
Package acparse — Parse counts top-level Markdown acceptance-criteria checkboxes in an issue body and returns a deterministic verdict suitable for gating the feature-validate Phase 0.6 type:docs completion check. |
|
intelligence/approvalGate
Package approvalGate implements the default-on architecture-approval gate (#4098): high-impact architectural decisions stay human-owned.
|
Package approvalGate implements the default-on architecture-approval gate (#4098): high-impact architectural decisions stay human-owned. |
|
intelligence/baselineGate
Package baselineGate implements the baseline-CI dependency preflight gate.
|
Package baselineGate implements the baseline-CI dependency preflight gate. |
|
intelligence/batch
Package batch assesses epic sub-issues to recommend batch processing strategy (sequential vs parallel vs mixed).
|
Package batch assesses epic sub-issues to recommend batch processing strategy (sequential vs parallel vs mixed). |
|
intelligence/changeClassifier
Package changeClassifier deterministically classifies a set of changed files into a coarse change scope (docs-only / config-only / source / mixed) so the pipeline and CI can fast-track trivial changes.
|
Package changeClassifier deterministically classifies a set of changed files into a coarse change scope (docs-only / config-only / source / mixed) so the pipeline and CI can fast-track trivial changes. |
|
intelligence/complexity
Package complexity estimates issue complexity (size prediction) from issue metadata.
|
Package complexity estimates issue complexity (size prediction) from issue metadata. |
|
intelligence/disciplineScore
Package disciplineScore computes a per-repo verification-readiness / discipline score (#4100) and the autonomy gate built on it.
|
Package disciplineScore computes a per-repo verification-readiness / discipline score (#4100) and the autonomy gate built on it. |
|
intelligence/failure
Package failure classifies pipeline failures for retry/escalation decisions.
|
Package failure classifies pipeline failures for retry/escalation decisions. |
|
intelligence/groundingGate
Package groundingGate implements the pre-feature-dev grounding / context-sufficiency gate (#4099).
|
Package groundingGate implements the pre-feature-dev grounding / context-sufficiency gate (#4099). |
|
intelligence/health
Package health implements 7-dimension pipeline health analysis.
|
Package health implements 7-dimension pipeline health analysis. |
|
intelligence/learning
Package learning implements the pipeline learning system: outcome recording, calibration feedback, and model performance tracking.
|
Package learning implements the pipeline learning system: outcome recording, calibration feedback, and model performance tracking. |
|
intelligence/loopverdicts
Package loopverdicts analyzes self-improvement loop effectiveness by reading pipeline data files and returning deterministic verdicts per loop.
|
Package loopverdicts analyzes self-improvement loop effectiveness by reading pipeline data files and returning deterministic verdicts per loop. |
|
intelligence/routing
change_rules.go — routing.change_rules: the user-customizable mapping from file globs (and/or coarse change_types) to fast-track behavior.
|
change_rules.go — routing.change_rules: the user-customizable mapping from file globs (and/or coarse change_types) to fast-track behavior. |
|
intelligence/scopeDriftGate
Package scopeDriftGate implements the scope-drift preflight gate.
|
Package scopeDriftGate implements the scope-drift preflight gate. |
|
intelligence/sizeGate
Package sizeGate implements the issue size preflight gate.
|
Package sizeGate implements the issue size preflight gate. |
|
intelligence/suggestions
Package suggestions generates actionable suggestions from health analysis.
|
Package suggestions generates actionable suggestions from health analysis. |
|
intelligence/survival
Package survival implements the post-merge survival outcome model (#4151, spike #4134): it captures a survival record keyed by a merged PR's merge commit SHA, then finalizes that record deterministically — survived, reverted, broke, or unobserved — by observing whether the merged code held up on the base branch.
|
Package survival implements the post-merge survival outcome model (#4151, spike #4134): it captures a survival record keyed by a merged PR's merge commit SHA, then finalizes that record deterministically — survived, reverted, broke, or unobserved — by observing whether the merged code held up on the base branch. |
|
intelligence/teams
Package teams implements agent team infrastructure: wave calculation, dependency detection, budget splitting, and file conflict detection.
|
Package teams implements agent team infrastructure: wave calculation, dependency detection, budget splitting, and file conflict detection. |
|
intelligence/tokens
Package tokens tracks token budgets and cost estimation for pipeline runs.
|
Package tokens tracks token budgets and cost estimation for pipeline runs. |
|
intelligence/typeinfer
Package typeinfer — Infer consolidates the keyword-based `type:*` classification logic previously duplicated in shell across two pipeline skills:
|
Package typeinfer — Infer consolidates the keyword-based `type:*` classification logic previously duplicated in shell across two pipeline skills: |
|
intelligence/versionDowngradeGate
Package versionDowngradeGate implements the version-downgrade preflight gate.
|
Package versionDowngradeGate implements the version-downgrade preflight gate. |
|
ipc
Package ipc implements JSON-over-stdio IPC for VSCode ↔ Go communication.
|
Package ipc implements JSON-over-stdio IPC for VSCode ↔ Go communication. |
|
knowledge
Package knowledge — persistent metadata index for KB v2 (Issue #2964).
|
Package knowledge — persistent metadata index for KB v2 (Issue #2964). |
|
knowledge/graduation
Package graduation implements deterministic scoring of decisions.md ADR blocks against telemetry signals and structural heuristics, producing a ranked list of graduation candidates for the retro stage to surface.
|
Package graduation implements deterministic scoring of decisions.md ADR blocks against telemetry signals and structural heuristics, producing a ranked list of graduation candidates for the retro stage to surface. |
|
knowledge/metrics
Package metrics aggregates knowledge-events.jsonl into the typed Result surfaced by both `nightgauge knowledge metrics --json` and the `knowledge.metrics` IPC method.
|
Package metrics aggregates knowledge-events.jsonl into the typed Result surfaced by both `nightgauge knowledge metrics --json` and the `knowledge.metrics` IPC method. |
|
knowledge/recall
Package recall implements BM25 indexing and ranking for knowledge base documents.
|
Package recall implements BM25 indexing and ranking for knowledge base documents. |
|
knowledge/telemetry
Package telemetry emits one JSONL event per knowledge-base operation to .nightgauge/pipeline/history/knowledge-events.jsonl.
|
Package telemetry emits one JSONL event per knowledge-base operation to .nightgauge/pipeline/history/knowledge-events.jsonl. |
|
knowledge/workspace
Package workspace implements workspace-level knowledge directory scaffolding.
|
Package workspace implements workspace-level knowledge directory scaffolding. |
|
models
Package models exposes the single-source model registry: identity, token pricing, and capability metadata for every evaluable model.
|
Package models exposes the single-source model registry: identity, token pricing, and capability metadata for every evaluable model. |
|
notifications/inbound
Package inbound hosts the in-binary HTTP receiver that accepts Mattermost outgoing-webhook callbacks and dispatches verified commands to the rest of the system as IPC events.
|
Package inbound hosts the in-binary HTTP receiver that accepts Mattermost outgoing-webhook callbacks and dispatches verified commands to the rest of the system as IPC events. |
|
notifications/inbound/auth
Package auth provides per-user authorization for inbound Mattermost commands.
|
Package auth provides per-user authorization for inbound Mattermost commands. |
|
notify
Package notify is the single Discord-webhook delivery primitive shared by all Go-side alert sinks (release-watch findings #4058/#4063, stuck-epic detection #4073, …).
|
Package notify is the single Discord-webhook delivery primitive shared by all Go-side alert sinks (release-watch findings #4058/#4063, stuck-epic detection #4073, …). |
|
orchestrator
Package orchestrator — autonomous.go implements the AutonomousScheduler, a continuous monitoring loop that sits above the existing Scheduler.
|
Package orchestrator — autonomous.go implements the AutonomousScheduler, a continuous monitoring loop that sits above the existing Scheduler. |
|
orchestrator/gates
Package gates implements the stage post-condition verification framework (Issue #3266).
|
Package gates implements the stage post-condition verification framework (Issue #3266). |
|
orchestrator/recovery
Package recovery implements the FailureRecovery registry (Issue #3268) — a deterministic auto-triage framework consulted by the orchestrator on stage failure.
|
Package recovery implements the FailureRecovery registry (Issue #3268) — a deterministic auto-triage framework consulted by the orchestrator on stage failure. |
|
orchestrator/stages
PR-create deterministic runner — Go-native pipeline stage that bypasses the LLM skill when context is rich enough to render a PR title and body from a fixed template.
|
PR-create deterministic runner — Go-native pipeline stage that bypasses the LLM skill when context is rich enough to render a PR title and body from a fixed template. |
|
pipeline
Package pipeline provides deterministic readers and aggregators over the .nightgauge/pipeline/history/YYYY-MM-DD.jsonl files.
|
Package pipeline provides deterministic readers and aggregators over the .nightgauge/pipeline/history/YYYY-MM-DD.jsonl files. |
|
platform
Package platform wraps the generated OpenAPI client with auth, health polling, and offline fallback for the nightgauge platform API.
|
Package platform wraps the generated OpenAPI client with auth, health polling, and offline fallback for the nightgauge platform API. |
|
preflight
Deterministic acceptance-criteria reconciliation (#193 / Issue #3003).
|
Deterministic acceptance-criteria reconciliation (#193 / Issue #3003). |
|
runstate
Package runstate manages the durable pipeline lifecycle record at .nightgauge/pipeline/run-state.json.
|
Package runstate manages the durable pipeline lifecycle record at .nightgauge/pipeline/run-state.json. |
|
scan
Debt-marker scan verb.
|
Debt-marker scan verb. |
|
setup
Package setup provides deterministic project-bootstrap verbs.
|
Package setup provides deterministic project-bootstrap verbs. |
|
skills
Package skills provides deterministic readers and writers for skill-usage telemetry stored at .nightgauge/skills/usage.jsonl.
|
Package skills provides deterministic readers and writers for skill-usage telemetry stored at .nightgauge/skills/usage.jsonl. |
|
state
Package state implements board-driven pipeline state management.
|
Package state implements board-driven pipeline state management. |
|
trace
Package trace persists the per-run lifecycle decision trace: one durable, ordered JSONL stream per pipeline run capturing every stage boundary and every decision the pipeline made — with its rationale and the alternatives it rejected.
|
Package trace persists the per-run lifecycle decision trace: one durable, ordered JSONL stream per pipeline run capturing every stage boundary and every decision the pipeline made — with its rationale and the alternatives it rejected. |
|
validation
Package validation provides parallel validation infrastructure.
|
Package validation provides parallel validation infrastructure. |
|
pkg
|
|
|
types
Package types defines shared domain types for the nightgauge CLI.
|
Package types defines shared domain types for the nightgauge CLI. |
|
tests
|
|
|
integration/cmd/seed
command
Binary seed is the CLI entry point for the GitLab CE fixture seeder used by the integration test harness (#3366).
|
Binary seed is the CLI entry point for the GitLab CE fixture seeder used by the integration test harness (#3366). |
|
integration/mattermost-fixtures
Package mmfixtures provides a deterministic Mattermost fixture seeder for the integration test harness (#3381).
|
Package mmfixtures provides a deterministic Mattermost fixture seeder for the integration test harness (#3381). |
|
integration/seed
Package seed provides a deterministic GitLab CE fixture seeder for the integration test harness (#3366).
|
Package seed provides a deterministic GitLab CE fixture seeder for the integration test harness (#3366). |
Click to show internal directories.
Click to hide internal directories.