Skip to content

fix(calendar): require semester for subscription set#9

Merged
tiankaima merged 1 commit into
mainfrom
agent/require-subscription-set-semester
Jul 15, 2026
Merged

fix(calendar): require semester for subscription set#9
tiankaima merged 1 commit into
mainfrom
agent/require-subscription-set-semester

Conversation

@tiankaima

Copy link
Copy Markdown
Member

Goal

Prevent calendar set from issuing an unscoped subscription replacement. This command was the destructive call in the July 10 automated CLI sweep tracked in Life-USTC/server#431.

Changed Surfaces

  • Require a non-blank --semester-id for workspace calendar set before credentials or network access.
  • Clarify the flag help text.
  • Add a regression test for omitted and blank semester values.

Evidence

  • go test ./...
  • go vet ./...
  • go build -buildvcs=false ./...

Docs / Contracts

No CLI contract change. The companion server PR rejects unscoped batch action=set requests.

Risk Areas

Explicit unscoped calendar set calls now fail locally and must name the semester being replaced. Add/remove/query/import behavior is unchanged.

Cleanup

No generated files, scratch artifacts, or unrelated rewrites.

@tiankaima
tiankaima marked this pull request as ready for review July 15, 2026 16:15
@tiankaima
tiankaima merged commit c2f5228 into main Jul 15, 2026
2 checks passed
@tiankaima
tiankaima deleted the agent/require-subscription-set-semester branch July 15, 2026 16:16
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.

1 participant