mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #280] [CLOSED] feat(validation): centralize identifier and metadata validation #313
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#313
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/280
Author: @yingjun8
Created: 9/12/2026
Status: ❌ Closed
Base:
main← Head:feat/identifier-validation📝 Commits (1)
811c7effeat(validation): centralize identifier and metadata validation📊 Changes
2 files changed (+163 additions, -0 deletions)
View changed files
📝
src/lib.rs(+1 -0)➕
src/validation.rs(+162 -0)📄 Description
Several entry points validate user-supplied identifiers inline and have drifted apart. Add a single validation module holding the project-wide identifier grammar ([a-z_][a-z0-9_-]*, already documented for setup runtime users), port and environment-entry checks, plus metadata normalization for sandbox creation.
Includes unit tests covering the accepted grammar, boundary length, port zero, KEY=VALUE environment entries and metadata normalization.
Note: cargo is not available in the environment this was authored in, so the crate has not been compiled locally.
What
Why
Related issue
Closes #
Scope and non-goals
Design and behavior changes
Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetCommands and results:
Skipped checks and reasons:
Risks and reviewer notes
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.