Expand description
Types and traits for the Goal-Oriented Resource Negotiation & Allocation (GORNA) protocol.
Structs§
- Agent
Frame Status - Per-frame execution metrics for one agent, measured and written by the
scheduler — agents hold no per-frame counters of their own. An agent
reads its own slot in
report_statusto derivehealth_scorefrom the GORNA time budget it retains. - Agent
Hints - The accumulated hint state for one agent, folded from the
EngineHints the DCC has received. ANonefield means “no developer hint — use the engine default”. Persists across ticks until overwritten by a newer hint. - Agent
Status - A snapshot of an Agent’s current health and performance.
- Decision
Trace - An ordered, replayable recording of GORNA’s per-tick decisions.
- Negotiation
Request - A request sent by the DCC to an Agent to negotiate resources.
- Negotiation
Response - A response from an Agent offering various execution strategies.
- Resource
Budget - An allocated resource budget issued by the DCC to an Agent.
- Resource
Constraints - Hard resource constraints the DCC imposes on an Agent during negotiation.
- Strategy
Option - A specific execution strategy offered by an Agent.
- Timing
Adjustment - Suggested timing adjustment from GORNA to an agent. GORNA can NEVER force a phase — only suggest importance changes.
Enums§
- Adaptation
Mode - How much latitude GORNA has to change an agent’s strategy — the developer-control surface over the adaptive core.
- AgentId
- Unique identifier for engine agents with implicit priority ordering.
- Engine
Hint - A developer/editor hint that biases GORNA arbitration without changing game
semantics — the “adapt the HOW, not the WHAT” control surface, on the same
axis as
AdaptationMode. Hints are advisory: a death-spiral safety stop and aManualpin both still win over them. Sent to the DCC over the hint channel; the DCC folds them per agent (seeAgentHints) and feeds the accumulated state into each arbitration round. - Strategy
Id - Generic strategy identifier for budget allocation.
Functions§
- measured_
frame_ time_ ms - Reads the scheduler-measured
executetime (ms) foridout of a sharedAgentFrameStatusMap, yielding0.0when the map is absent or has no entry yet. Agents call this fromreport_statusso they never cache per-frame timing themselves.
Type Aliases§
- Agent
Frame Status Map - Shared, scheduler-owned map of the latest
AgentFrameStatusper agent. - Tick
Decisions - One arbitration tick’s outcome: the strategy issued to each agent, in issuance order.