prod

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package prod is the production driver aggregator — the single sanctioned home of Harbor's driver blank-import block (Phase 110c, D-196; AGENTS.md §4.4).

Importing this package for effect:

import _ "github.com/hurtener/Harbor/internal/drivers/prod"

seats EVERY production driver + LLM-wrapper registration the `harbor` binary boots with: the §4.4 self-registering factories (artifacts / audit / distributed / events / llm / memory / skills / state / tasks / telemetry / tools-OAuth / planner drivers), the LLM wrapper hooks (corrections / output-downgrade / retry / governance), and the notifications event-type registration. `cmd/harbor/main.go`, `harbortest/devstack`, and headless embedders all import this ONE package — closing the SDK friction audit's §7 finding (devstack previously hand-curated a partial list and composed the LLM client WITHOUT corrections / downgrade / retry; invisible under the mock driver, divergent against live providers).

The package exports no identifiers. Deliberately NOT included:

  • `internal/llm/mock` — the dev-only mock LLM driver. It is never part of the production set (CLAUDE.md §13 "test stubs as production defaults"); `harbor dev` conditionally imports it at the subcommand boundary behind HARBOR_DEV_ALLOW_MOCK=1 (D-089), and tests blank-import it explicitly.

Adding a new driver: add its blank import here (with a one-line comment naming the phase/decision) — not to main.go, not to devstack. The §4.4 rule "drivers are pulled in via blank import at the binary entry point" reads, since 110c, "…via this aggregator, which the binary entry points import."

Jump to

Keyboard shortcuts

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