docs/usage/core-development.md。本页保留英文规范正文,中文导航和摘要页已提供双语入口。Core development(英文规范)
This guide covers the two Go services and their owned PostgreSQL schemas. The Console, sample Agents, Compose assembly, and product E2E are maintained in NeKiro-Stack and the other satellite repositories listed in the root README.
Requirements
- Go 1.26 or newer
- PostgreSQL 17 for integration tests and local service execution
- Docker only when building Core images
Run commands from the repository root.
Local quality checks
PostgreSQL integration
Use a dedicated database whose name ends in _test. The suites own and reset
their schemas, so never point them at a shared, staging, or production database.
Catalog migrations are embedded from
apps/control-plane/internal/catalog/postgres/migrations, Workspace migrations
from apps/control-plane/internal/workspace/postgres/migrations, and Ledger
migrations from apps/a2a-router/internal/ledger/migrations. Service startup
checks schema readiness but never performs an implicit migration.
Service commands
Both services require explicit validated configuration. Missing database, identity, endpoint, size, deadline, or credential values fail at startup; no localhost, weak-key, no-op Ledger, or alternate endpoint defaults exist.
Apply migrations before serving:
After setting the full Control Plane configuration, start it with:
After setting the full Router configuration, start it with:
The owning configuration packages are the canonical variable inventory:
apps/control-plane/internal/configapps/a2a-router/internal/config
Do not commit local bearer tokens, token digests, database URLs, Ed25519 keys, or production origins. The Router private key remains only on the Router; Agent verifiers consume the corresponding public key from their own deployment.
Images
Use NeKiro-Stack when both images must be assembled with Console, SDK, and sample releases. Stack pins exact revisions and owns teardown, sanitized logs, browser acceptance, and the complete Register -> Discover -> Install -> Invoke -> Record proof.