core: publish self-hosted weekly dashboard and Proxmox deployment (#20)
Reuse existing weekly/reset analysis in an authenticated dashboard and local official CLI workers. Add safe Proxmox installation and updates, account-attributed history, and MIT distribution. Provider credentials stay owned by each CLI. Closes #19
This commit was merged in pull request #20.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Architecture
|
||||
|
||||
- [2026-11-14] D14's Fleet library reuses Core Pace/LimitAnalysis/ApiPrices; the web host and outbound worker add no second forecast implementation. Working-time schedules remain outside D7.
|
||||
- [2026-11-14] Quota is one newest observation per account/window, not a sum. Source ids dedupe consumption across machines; local/session figures include shared copies and cannot be summed as machine-exclusive use.
|
||||
- [2026-11-15] Legacy hourly history needs one account-attributed source and UTC-hour cutoff; provider and DataEmail checks match raw usage even after rebinding. Reconcile Codex increases before clipping; without a pre-cutoff baseline, omit the first cumulative total and warn rather than counting imported use twice.
|
||||
- [2026-11-14] LoginCoordinator is memory-only and binds browser session/machine/profile/worker boot/deadline. CLI identity verification is separate from process success; never serialize login URLs, codes or authorization responses into fleet state.
|
||||
- [2026-11-14] Persist worker export metadata before cursor advancement. Server merges acknowledged source records so an empty restart heartbeat cannot erase history. Current login health and historical data attribution are separate fields.
|
||||
|
||||
- [2026-11-15] Proxmox setup creates an unprivileged Debian 13 CT and builds NativeAOT inside it as a separate user. `proxmox-update.sh CTID` fast-forwards a clean tracking clone and enters the fetched installer; the local-source entry point stays offline. Updates preserve role/config/keys/profiles/history with binary-health rollback; no automatic CT or old-release deletion.
|
||||
|
||||
- [2026-11-15] Public source uses MIT; notices travel with ZIP/plugin and Proxmox outputs. `tools/source_policy.py` excludes recognized live config/keys/runtime data from both publication checks and source archives. Audit disk and index separately; inspect all historical trees, not just one filename hint per blob. Visibility/history changes need explicit authorization.
|
||||
|
||||
## Archive
|
||||
@@ -5,4 +5,15 @@
|
||||
- [2026-10-18] Avalonia 12 `CustomPopupPlacementCallback` gets the target's bounds in window coordinates, and a flip mirrors anchor and gravity but not the offset. Put a gap into the anchor rectangle (see `DataTooltip.BesidePointer`).
|
||||
- [2026-10-18] Fluent caps `ToolTip` `MaxWidth` at 320 px, and a tooltip that covers the pointer takes pointer-over from its control, which raises `PointerExited`. `Ui.Theme` raises the cap; tall tips open beside the pointer.
|
||||
|
||||
- [2026-11-14] Official Claude manual-code login must be relayed to the original process, not a browser's remote localhost. Redirected-stdin support needs live verification; Codex uses device auth. Worker D3 print-mode quota probing is opt-in because current docs do not promise it as a non-interactive quota API.
|
||||
|
||||
- [2026-11-14] Proxmox `pct exec` environment defaults differ by version. Installer calls explicitly use `--keep-env 0`; build/CLI installation also uses a clean environment under the intended non-root user.
|
||||
|
||||
- [2026-11-15] Documentation checks must skip `artifacts/` as well as `.artifacts/`: ignored build/audit downloads can contain third-party Markdown and are not project documentation.
|
||||
|
||||
- [2026-11-15] Plain `git pull` can silently overwrite ignored files newly tracked upstream. The Proxmox updater fetches then merges with `--ff-only --no-overwrite-ignore`; a real-Git regression covers ignored operator-state collisions.
|
||||
|
||||
- [2026-11-15] npm's local `--prefix` install writes `node_modules/.bin`; the Linux worker's `.local/bin/codex` requires a user-owned global prefix. The regression installs an offline synthetic package with real npm.
|
||||
- [2026-11-15] Compare copied/archived license bytes with source bytes. `read_text()` normalizes Windows CRLF while ZIP reads retain it; explicit LF/CRLF fixtures cover both checkouts.
|
||||
|
||||
## Archive
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
> Always-loaded. Everything else is on-demand. Update TOC when files change.
|
||||
|
||||
## Current Focus
|
||||
- [2026-10-18] Reset history (D12), API value (D13) and panel fixes on issue #14, PR #16.
|
||||
- [2026-11-15] Validate live Linux/LXC/TLS and official provider login. D14 dashboard/workers and Proxmox delivery are implemented in 1.2.0.
|
||||
|
||||
## Invariants
|
||||
- No credential is ever read, stored or sent; providers are reached only through their CLIs (D2).
|
||||
- Provider access/refresh tokens, API keys and cookies stay with the CLIs; only a pending login's authorization response may be relayed transiently (D2, D14).
|
||||
- Everything shipped stays NativeAOT-safe on win-x64 and linux-x64 (D1).
|
||||
- A response counts once, across restarts, rescans and resumed sessions (D3, D4, D5).
|
||||
- `snapshot.json` is the only interface between the app and other processes (D9).
|
||||
- Desktop/Stream Deck retain `snapshot.json` (D9); the optional authenticated server/worker transport is separate (D14).
|
||||
|
||||
## Table of Contents
|
||||
- `gotchas.md` — 4 entries — CLI probing pitfalls on this machine; Avalonia tooltip placement.
|
||||
- `gotchas.md` — 10 entries — CLI login, Proxmox/npm/update safety, publication checks and Avalonia tooltips.
|
||||
- `architecture.md` — 7 entries — Fleet analysis, attribution, migration, authentication, durability, Proxmox and publication.
|
||||
|
||||
Reference in New Issue
Block a user