Skip to content

Commit 3f53084

Browse files
feat(identity): separate immutable agent IDs from addresses
agent-identity: dev3.direct.omp.2ahzpbs3 agent-persona: generalist agent-supervisor: unavailable agent-tool: OMP agent-tool-version: 18.1.2 agent-runtime: OMP 18.1.2 tooling-profile: dotfiles@7534055
1 parent b30bc54 commit 3f53084

58 files changed

Lines changed: 12621 additions & 1286 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

INVARIANTS.md

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

crates/agent-spec/src/discovery.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,12 @@ fn unobservable_entry_may_hide_declaration(
332332
/// gain fields without breaking readers.
333333
#[derive(Debug, Clone, Default, PartialEq, Eq)]
334334
pub struct Declared {
335+
/// `id` as written in the file. `None` for an unmigrated legacy declaration.
336+
pub id: Option<String>,
335337
/// `identity` as written in the file. `None` when the file relies on [`path_defaults`].
336338
pub identity: Option<String>,
339+
/// `address` as written in the file. `None` when the positional identity is the fallback.
340+
pub address: Option<String>,
337341
/// `host` as written in the file. `None` when the file relies on [`path_defaults`].
338342
pub host: Option<String>,
339343
/// `type` as written, before it is normalized to `JobType::Service`. `None` when unset.
@@ -343,6 +347,8 @@ pub struct Declared {
343347
impl From<&RawSpec> for Declared {
344348
fn from(raw: &RawSpec) -> Self {
345349
Self {
350+
id: raw.id.clone(),
351+
address: raw.address.clone(),
346352
identity: raw.identity.clone(),
347353
host: raw.host.clone(),
348354
job_type: raw.job_type.clone(),

0 commit comments

Comments
 (0)