Skip to content

Add amber manifest#11

Merged
staverm merged 1 commit intomainfrom
staverm/add-manifest
Mar 3, 2026
Merged

Add amber manifest#11
staverm merged 1 commit intomainfrom
staverm/add-manifest

Conversation

@staverm
Copy link
Member

@staverm staverm commented Mar 2, 2026

No description provided.

@staverm staverm force-pushed the staverm/add-manifest branch 2 times, most recently from 66c7a2d to 57191a1 Compare March 2, 2026 21:58
@staverm staverm requested a review from peterjgilbert March 2, 2026 22:03
// TODO: Pass config values as environment variables.
env: {
MY_API_KEY: "${config.my_api_key}",
PROXY_URL: "${slots.proxy.url}", // keep even if your agent doesn't use it directly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking: might be nice for the comment to explain why this needed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's complicated 🙈

Copy link
Member Author

@staverm staverm Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Purple agents need a proxy slot for cases where e.g. green agent sends MCP URL to purple over a2a, gateway rewrites it, and then purple reaches that MCP over the gateway. The gateway will bind to this slot if it exists. If we don't use the slot interpolation in the manifest, Amber will complain (warning) that the slot is unused.

The agent dev doesn't typically need the env var, we just need the slot so that amber creates a channel to the gateway. the env var is essentially used to suppress the warning.

Copy link
Member Author

@staverm staverm Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I think I'd like to remove the env var all together
Amber will still compile but will give an "unused slot" warning (not nice to be shipping a template that gives a warning). Is that acceptable?
When we move away from the gateway approach, the manifest will still play nicely because the proxy slot is 'optional'. If however we keep the env var, it effectively makes the slot required, so migrating away from the gateway approach, we would need something to bind to this slot just to be able to compile.

@staverm staverm force-pushed the staverm/add-manifest branch from 57191a1 to 101c505 Compare March 3, 2026 17:14
@staverm staverm merged commit abe4532 into main Mar 3, 2026
1 check 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.

2 participants