Skip to content

Require explicit Filesystem selection - #25

Merged
Icemap merged 1 commit into
mainfrom
agent/explicit-file-system-selection
Jul 27, 2026
Merged

Require explicit Filesystem selection#25
Icemap merged 1 commit into
mainfrom
agent/explicit-file-system-selection

Conversation

@Icemap

@Icemap Icemap commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • remove the persistent default Filesystem model and the set-default-file-system, unset-default-file-system, and --set-default interfaces
  • require every FS operation to select its target through --file-system-name or TDC_FS_FILE_SYSTEM_NAME, without registry-cardinality fallback
  • remove default markers from local registry output and migrate the legacy config key idempotently
  • update unit, black-box, live e2e, README, AGENTS, principles, and requirement specs

Why

A saved or inferred default can silently redirect an agent operation when resources are added or deleted. Explicit process-level selection makes the target deterministic while still allowing repeated commands to use TDC_FS_FILE_SYSTEM_NAME.

Control-plane create, describe, and delete commands continue to require the flag itself. Data-plane, mount, Git, Journal, and Vault commands accept either the flag or environment selector. List-all and mount-locator cleanup commands do not require an FS selector.

Compatibility

Existing per-resource registry credentials remain unchanged. The obsolete fs_default_file_system_name key is never used for selection and is removed through the existing local migration path. No backend, Drive9 CLI, CGO, or third-party dependency change is required.

The corresponding public documentation update is in pingcap/docs#23306.

Validation

  • make test
  • make e2e
  • TDC_LIVE_FS_NAME=tdc-token-manual-20260725114849 make live-e2e-fs
  • TDC_LIVE_FS_NAME=tdc-token-manual-20260725114849 make live-e2e-fs-git
  • TDC_LIVE_FS_NAME=tdc-token-manual-20260725114849 make live-e2e-fs-journal
  • TDC_LIVE_FS_NAME=tdc-token-manual-20260725114849 make live-e2e-fs-vault
  • TDC_LIVE_FS_NAME=tdc-token-manual-20260725114849 make live-e2e
  • git diff --check

@Icemap
Icemap marked this pull request as ready for review July 27, 2026 08:25
@Icemap
Icemap merged commit 5671e31 into main Jul 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant