Skip to content

feat(datagen): environment foundations for simulated host identity (PIPE-1036) - #278

Open
Dylan-M wants to merge 7 commits into
dylanmyers/pipe-1067-eliminate-global-loggerfrom
dylanmyers/pipe-1036-wire-environment
Open

feat(datagen): environment foundations for simulated host identity (PIPE-1036)#278
Dylan-M wants to merge 7 commits into
dylanmyers/pipe-1067-eliminate-global-loggerfrom
dylanmyers/pipe-1036-wire-environment

Conversation

@Dylan-M

@Dylan-M Dylan-M commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Stacked on #277

Proposed Change

Adds the foundations for generators to describe a simulated host from a
datagen.Environment rather than the machine blitz runs on. Nothing emits the
identity yet; this is the plumbing the rest of the stack builds on.

  • An environment: config block that builds a datagen.Environment (domain, seed
    config, per-type counts).
  • embed.Host.Environment, for an embedding host to supply its own environment.
  • Environment.SystemForKey, a deterministic key-to-host selector.
  • OS taxonomy helpers (ParseOSType, OSTypeFromGOOS, SemconvOSType), including
    accepting macos/darwin for the hostmetrics OS knob.
  • StaticResources, which splits a worker's constant resource attributes from the
    per-record ones so identity is projected once and reused.

No generator behavior changes; existing output is byte-identical.

Validation: load a config with an environment: block and confirm it parses and
runs with no change to output. Tests cover the config round-trip, SystemForKey
determinism, the OS helpers, and StaticResources merge semantics.

Checklist
  • Changes are tested
  • CI has passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant