Qiao-yq opened a new pull request, #1609:
URL: https://github.com/apache/dubbo-admin/pull/1609

   **Please provide a description of this PR:**
   
   Draft. This PR is blocked by and must be merged after 
[#1596](https://github.com/apache/dubbo-admin/pull/1596) and the prerequisite 
snapshot fix [#1608](https://github.com/apache/dubbo-admin/pull/1608). Merge 
order: #1596 → #1608 → this PR.
   
   Add the Phase 1 PR4 production authentication and usage/audit foundations 
for #1539.
   
   - verify HS256 JWT signatures, issuer, audience, required expiration, and 
not-before claims; propagate trusted identities through HTTP and Store access 
checks, with cross-user and cross-tenant regression tests
   - persist privacy-safe Usage/Audit metadata in Memory and GORM, including 
model CallID and tool-call identifiers; record each completed model call once 
and preserve missing provider usage as unknown
   - persist interaction lifecycle and model/tool completion events without 
prompt, response, or tool payloads; retain detailed stage and iteration events 
in tracing
   - preserve identity when recording final events after cancellation, with an 
independent persistence timeout; apply independent usage/audit rollout flags 
and consistent version metadata
   - enforce capacity and retention limits, system-only maintenance, 
cancellable bounded cleanup, and transactional GORM capacity reservations
   - document the authentication and accounting guarantees in an ADR and retain 
PricingRecord/PricingResolver contracts for later cost accounting
   
   Full pricing, Source attribution, Admin/JWKS integration, and Context 
Compiler work remain outside this PR. Persistence remains best effort when 
storage fails or capacity is exhausted. This PR does not declare the Phase 1 G1 
gate passed.
   
   While the dependencies are open, GitHub's comparison against `ai` includes 
their changes. Review the PR4-only changes 
[here](https://github.com/Qiao-yq/dubbo-admin/compare/fix/ai-1539-context-window...feat/ai-1539-production-auth-usage-audit).
   
   Validation from `ai/`:
   
   - `go test ./... -timeout 120s`
   - `go test -race ./security ./component/hooks ./component/server/... 
./component/agent/react ./component/memory/... ./store/... -timeout 180s`
   - `go vet ./...`
   - `git diff --check fix/ai-1539-context-window..HEAD`
   
   Coverage includes JWT identity isolation, cancelled-call persistence, 
unknown usage, call correlation with Usage disabled, independent flags, version 
metadata, cleanup permissions, capacity concurrency, and existing-table 
migration. GORM tests use SQLite; production MySQL/PostgreSQL concurrency and 
migration acceptance remain to be performed.
   
   Part of #1539. Blocked by #1596 and #1608.
   
   **To help us figure out who should review this PR, please put an X in all 
the areas that this PR affects.**
   
   - [x] Docs
   - [x] Installation
   - [ ] User Experience
   - [ ] Dubboctl
   - [x] Console
   - [x] Core Component
   
   **Please check any characteristics that apply to this pull request.**
   
   - [x] Includes tests
   - [x] Changes security-sensitive behavior
   - [x] Adds database tables and migration
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to