[PR #6674] [CLOSED] Feat/unified client policy backends #6404

Closed
opened 2026-11-02 04:08:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6674
Author: @0x3f3f3f3f3f3f3f3f3f3f3
Created: 9/28/2026
Status: ❌ Closed

Base: main ← Head: feat/unified-client-policy-backends


📝 Commits (2)

  • 4e2ff8c docs(services): record full scope, baseline audit and integration plan
  • 3e226ae feat(policy): add exact fixed-point traffic accounting primitives

📊 Changes

11 files changed (+1265 additions, -0 deletions)

View changed files

➕ docs/managed-services/README.md (+16 -0)
➕ docs/managed-services/audit.md (+103 -0)
➕ docs/managed-services/design.md (+115 -0)
➕ docs/managed-services/matrix.md (+94 -0)
➕ docs/managed-services/operations.md (+48 -0)
➕ docs/managed-services/plan.md (+159 -0)
➕ docs/managed-services/requirements.zh-CN.md (+334 -0)
➕ docs/managed-services/semantics.md (+50 -0)
➕ docs/managed-services/validation.md (+65 -0)
➕ internal/clientpolicy/accounting.go (+97 -0)
➕ internal/clientpolicy/accounting_test.go (+184 -0)

📄 Description

Summary

Why

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

Screenshots / recordings

Breaking changes

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6674 **Author:** [@0x3f3f3f3f3f3f3f3f3f3f3](https://github.com/0x3f3f3f3f3f3f3f3f3f3f3) **Created:** 9/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/unified-client-policy-backends` --- ### 📝 Commits (2) - [`4e2ff8c`](https://github.com/MHSanaei/3x-ui/commit/4e2ff8c6d91cb8c37177f79f8f211005e6b1c0f2) docs(services): record full scope, baseline audit and integration plan - [`3e226ae`](https://github.com/MHSanaei/3x-ui/commit/3e226aeaca84392dd3b534b1c341baa955cdbd0f) feat(policy): add exact fixed-point traffic accounting primitives ### 📊 Changes **11 files changed** (+1265 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/managed-services/README.md` (+16 -0) ➕ `docs/managed-services/audit.md` (+103 -0) ➕ `docs/managed-services/design.md` (+115 -0) ➕ `docs/managed-services/matrix.md` (+94 -0) ➕ `docs/managed-services/operations.md` (+48 -0) ➕ `docs/managed-services/plan.md` (+159 -0) ➕ `docs/managed-services/requirements.zh-CN.md` (+334 -0) ➕ `docs/managed-services/semantics.md` (+50 -0) ➕ `docs/managed-services/validation.md` (+65 -0) ➕ `internal/clientpolicy/accounting.go` (+97 -0) ➕ `internal/clientpolicy/accounting_test.go` (+184 -0) </details> ### 📄 Description ## Summary <!-- What does this PR do? One or two sentences. --> ## Why <!-- What problem does this solve, or what use case does it enable? Link related issues here: "Closes #123", "Refs #456". --> ## Type of change - [ ] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [ ] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? <!-- Concrete steps the reviewer can repeat. For UI changes: which page, which actions, which browser. For backend: which endpoint, which payload, which response. Mention any new unit/integration tests added. --> ## Screenshots / recordings <!-- Required for UI changes. Drag images or GIFs here. Remove if N/A. --> ## Breaking changes <!-- Does this change require existing users to update their config, run a migration, or change their API calls? If yes, describe the migration path. Write "None" if there are no breaking changes. --> ## Checklist - [ ] I tested the change locally and confirmed the described behavior. - [ ] I added or updated tests for the new behavior (when applicable). - [ ] `go build ./...` and the test suite pass locally. - [ ] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [ ] I updated the Wiki / README / API docs if user-facing behavior changed. - [ ] My commits follow the project's existing message style. - [ ] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:08:31 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6404
No description provided.