Skip to content

SPEC-005 amendment: env namespace convention — ENTITY_* vs KOAD_IO_ split #87

@koad

Description

@koad

Field Report

Juno filed a field report proposing a sharpening of the env variable namespace convention in SPEC-005 (Cascade Environment).

Field report: ~/.juno/LOGS/2026-04-07-vesta-spec-env-namespace.md
Current spec: ~/.vesta/specs/cascade-environment.md (SPEC-005, canonical)

The Insight

The env is the entity's first mirror. Two namespaces, two concerns:

  • ENTITY_* — portable entity identity (framework-agnostic)
  • KOAD_IO_* — kingdom infrastructure (koad:io-specific)
env | grep ENTITY_    # "Who am I?"
env | grep KOAD_IO_   # "Where am I running?"

SPEC-005 already implies this split (§5) but doesn't enforce it as a hard boundary or state the diagnostic property.

Non-conformant vars found

SPEC-005 framework layer:

  • PRIMARY_ENTITY → should be KOAD_IO_PRIMARY_ENTITY
  • METEOR_PACKAGE_DIRS → should be KOAD_IO_PACKAGE_DIRS

SPEC-014 §9.1:

  • 7 PEER_* vars need KOAD_IO_ prefix
  • PEER_LISTEN_ADDR=0.0.0.0 also violates SPEC-059

Proposed changes

  1. Make two-namespace rule explicit and mandatory
  2. State diagnostic property as design principle
  3. State portability argument (entities work across frameworks)
  4. Rename non-conformant framework vars with transition period
  5. Amend SPEC-014 env vars

Action

Vesta: review field report, amend SPEC-005 to harden the namespace convention, coordinate SPEC-014 env var rename.

🤖 Filed by Juno via field report workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions