Skip to content

Comments

refactor(ampd): standardize env var names with AMP_prefix#1702

Merged
LNSD merged 1 commit intomainfrom
standardize-ampd-env-vars
Feb 23, 2026
Merged

refactor(ampd): standardize env var names with AMP_prefix#1702
LNSD merged 1 commit intomainfrom
standardize-ampd-env-vars

Conversation

@mitchhs12
Copy link
Contributor

@mitchhs12 mitchhs12 commented Feb 5, 2026

Standardize environment variable names under the AMP_ namespace and rewrite subcommand help text with precise behavioral descriptions.

  • Rename FLIGHT_SERVER, JSONL_SERVER, ADMIN_SERVER to AMP_FLIGHT_SERVER, AMP_JSONL_SERVER, AMP_ADMIN_SERVER in solo/server subcommands
  • Remove GM_* env var bindings from ampctl generate (CLI-only flags)
  • Rewrite clap doc comments with port numbers, behavioral notes, and endpoint-selection semantics
  • Update feature docs with configuration tables, env var references, and status frontmatter

Note

Medium Risk
Changes CLI configuration surface and environment-variable compatibility, which can break existing deployments/scripts despite added deprecation fallbacks.

Overview
Standardizes CLI environment variable bindings to the AMP_ namespace and clarifies ampd subcommand semantics.

ampd now uses AMP_FLIGHT_SERVER, AMP_JSONL_SERVER, and AMP_ADMIN_SERVER for endpoint toggles (with runtime backward-compat support for the old FLIGHT_SERVER/JSONL_SERVER/ADMIN_SERVER names), and updates help text to document ports and “enable-only-flagged-endpoints” behavior. ampctl manifest generate removes all GM_* env var bindings, making its inputs CLI-flag-only.

Docs are updated to reflect the new env var names/behavior, add configuration reference tables, and introduce/mark feature pages as stable (including a new app-ampd-migrate doc).

Written by Cursor Bugbot for commit ed64d9b. This will update automatically on new commits. Configure here.

@mitchhs12 mitchhs12 self-assigned this Feb 5, 2026
@mitchhs12
Copy link
Contributor Author

Not sure whether the deprecation notice for this should be in the upgrading.md file.

How long should we keep this in here?

@mitchhs12 mitchhs12 requested review from LNSD and shiyasmohd February 5, 2026 18:38
@LNSD LNSD assigned LNSD and unassigned mitchhs12 Feb 20, 2026
@LNSD
Copy link
Contributor

LNSD commented Feb 20, 2026

@mitchhs12 I am taking over this PR

@LNSD LNSD force-pushed the standardize-ampd-env-vars branch from d2b63ee to 8590030 Compare February 21, 2026 13:36
@LNSD LNSD force-pushed the standardize-ampd-env-vars branch from 8590030 to 00784ae Compare February 21, 2026 13:53
@LNSD LNSD requested review from LNSD and removed request for LNSD February 21, 2026 13:58
@LNSD LNSD force-pushed the standardize-ampd-env-vars branch from 00784ae to e21086f Compare February 23, 2026 09:11
Copy link
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

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

LGTM ✅
Minor nits added in comments.

@LNSD LNSD force-pushed the standardize-ampd-env-vars branch from e21086f to f03c703 Compare February 23, 2026 11:22
Support deprecated env var names (FLIGHT_SERVER, JSONL_SERVER,
ADMIN_SERVER) with runtime deprecation warnings to stderr.

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD force-pushed the standardize-ampd-env-vars branch from f03c703 to ed64d9b Compare February 23, 2026 12:12
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@LNSD LNSD merged commit 1334bb5 into main Feb 23, 2026
8 checks passed
@LNSD LNSD deleted the standardize-ampd-env-vars branch February 23, 2026 12:15
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.

3 participants