feat: integrate token point usage v2
This commit is contained in:
1 parent
9fed0cc7c4
commit
83ad10d95e
14 files changed
+907
-201
No files matched your search
@@ -0,0 +1,75 @@
|
||||
# Task: Integrate Token Point V2 account usage
|
||||
|
||||
## Identity
|
||||
|
||||
- Task ID: 20260906-integrate-token-points-v2-7b4e1c92
|
||||
- Mode: Integration
|
||||
- Branch: main
|
||||
- Worktree: D:\Datas\OthersProjects\makelore
|
||||
- Base commit: 9fed0cc7c45df6b4ef01a52abc5045de478faa9c
|
||||
- Owner: codex
|
||||
- Status: Ready for Integration
|
||||
|
||||
## Scope
|
||||
|
||||
- Integrate completed MakeLore Token Point V2 account-usage source commits
|
||||
`8e5abd8` and `6348e40` from task
|
||||
`20260906-trace-makelore-usage-3d7a5c1e` onto local `main@9fed0cc`.
|
||||
- Reconcile the source task's accepted promotion candidate into canonical
|
||||
`current-state.md` without changing its source task record.
|
||||
- Preserve the already integrated Agent Browser repair and three explicitly adopted
|
||||
untracked task records in the primary worktree.
|
||||
|
||||
## Intent And Constraints
|
||||
|
||||
- Preserve ADR-004: Renderer uses fixed Host API routes while Electron Main owns
|
||||
Works Square credentials and response projection.
|
||||
- Preserve Works Square as the sole Token Point balance authority; do not restore
|
||||
the retired five-hour or rolling-seven-day contract and do not derive ledger state
|
||||
in Renderer.
|
||||
- Preserve the non-manager privacy boundary using `can_manage_membership`, not
|
||||
`family_shared`, because youth self entitlements are also non-managing.
|
||||
- Apply the two source commits as patches on the latest main rather than advancing to
|
||||
the old source branch head, which would reverse the newer Agent Browser integration.
|
||||
- Do not modify or stage the three adopted untracked task records, deploy services,
|
||||
run migrations, package the client, publish, or push remotely.
|
||||
|
||||
## Outcome
|
||||
|
||||
- Re-anchored the integration at `main@9fed0cc` after the blocking Main-worktree
|
||||
owner was explicitly released, then applied source commits `8e5abd8` and
|
||||
`6348e40` with `--no-commit` and no conflicts.
|
||||
- Verified the staged source task record is byte-for-byte identical to source head
|
||||
`6348e40` and registered it as an unchanged adopted foreign document.
|
||||
- Integrated the V2 points route, strict Main projection, account-menu presentation,
|
||||
privacy handling, and focused tests without changing any Agent Browser file.
|
||||
- Promoted the durable V2 account-usage contract and remaining live-release gaps to
|
||||
canonical `current-state.md`.
|
||||
- The three pre-existing untracked task records remain unstaged and unchanged.
|
||||
|
||||
## Verification
|
||||
|
||||
- Source verification is recorded in task
|
||||
`20260906-trace-makelore-usage-3d7a5c1e`: 72 focused tests, typecheck, scoped lint,
|
||||
all Vite targets, diff/source checks, and two matching server contract tests passed.
|
||||
- Passed the same four focused Vitest files on `main@9fed0cc` plus the staged V2
|
||||
integration (72 tests).
|
||||
- Passed `pnpm run typecheck` and scoped ESLint over all changed TypeScript/TSX files.
|
||||
- Passed `pnpm run build:vite` for Renderer, Electron Main, preload, and utility
|
||||
bundles. Only the repository's existing Browserslist, dynamic-import, and chunk-size
|
||||
advisories were reported.
|
||||
- Verified the staged source task record matches source head `6348e40` and the staged
|
||||
path set contains no Agent Browser or README file.
|
||||
- Passed task-aware project-document drift checks with the source task record and the
|
||||
three pre-existing untracked task records unchanged.
|
||||
|
||||
## Follow-ups
|
||||
|
||||
- Verify that the deployed Works Square API and database are on the V2 release and
|
||||
migration head before releasing the paired client.
|
||||
- Run a signed-in packaged-client smoke against the deployed V2 service.
|
||||
|
||||
## Promotion Candidates
|
||||
|
||||
- None. This Integration Gate applies the accepted source promotion directly to
|
||||
`.project-docs/30-worklog/current-state.md`.
|
||||
Reference in new issue
Block a user