Files
CyberGril/docs/rework/hel896/budget-split/budget-split.json
T
zonggongandmultica-agent c121c42e39 HEL-896 release completion: the A/B/C budget becomes an executable two-instance split, the real-browser false positive is fixed precisely (product untouched), the SDK gap list is corrected to the honest 41-distribution closure with the pip-download erratum, and release archiving becomes a consistency snapshot - (1) budget split: the manager's independent review reproduced on a temp store that writing A's total_requests=55 into the shared product ledger blocks B's mem0_extract and C's dialogue_main with budget_total_requests_exhausted:55/55 while budget_total/request_usage/token_usage have no stage or authorization-source column; docs/budget-package-hel895.md gains §6 making the split executable: A lives ONLY on the isolated 8360 team-test instance with its own DB and models.yaml (55/500000 one-shot totals plus same-value daily category caps), the user instance NEVER carries one-shot totals (its budget_total rows are record-only, no gate), A is sealed by stop+consistent-snapshot archiving with budget_total never zeroed and restart/archive proving the seal holds, old test data has no import path into the user instance (release checklist forbids copying the 8360 data dir), B starts only after baiqizhi approval writes llm_cap/embed_cap per the 500+180 formula with the authority frozen prefix, the real-Mem0 smoke is counted INSIDE B's 60/180, B cap-hit queues batches (no retry burn, no lost rows, FTS fallback, chat uninterrupted) and first-week end requires a fresh approval to continue, and §6.4 gives one responsible limited recommendation (A 55/500k isolated, B 60 LLM/180 embeds, C daily table) plus errata for the two unsafe original claims ('A shares C's daily account' and 'WAL single file copies whole'); tools/verify_budget_split_hel896.py 8/8 on temp stores and stand-ins only (S0 exact-shape repro of the manager's finding, S1 team instance consumes the §1 step plan to 55 then hard-stops with the tightest gate winning - life daily 8/8 rejects before the total, S2 seal survives restart and backup-API archive, S3 user instance B/C unblocked after A with dialogue 60/semantic 40/daily-token stacking and rejections booking nothing, S4 the misconfigured-total guard on the user instance, S5 repo configs and authoritative facts untouched, real caps all stay 0); (2) browser false positive fixed without touching any product file: web/tests/hel895_real.mjs B3 used '!!stage || any visible button' and clicked the FIRST button containing 回 which is the 日子与回忆 home nav button, so stage=false still PASSed and the screenshot stayed on days - the verbatim original rerun reproduces the false 7/7 with B3 stage=false (docs/rework/hel896/browser-before/), and the revised test passes 9 checks by precise interaction: B2 asserts the letter card carries her exact words plus the talk-nav unread aria-label, B3a waits for the VISIBLE reach card (aside.reach.show, aria-hidden=false, non-zero box, exact words) over days, B3b clicks only THAT card's 回她 button and strictly asserts the conversation stage .conversation .sr contains the reach-out text with the unread mark cleared, B4/B5 prove dedup by server message id (data-mid in the record panel: zero duplicates, gap and live reach-outs each exactly once), B5 asserts /api/health epoch bumps exactly +1 (1->2) before rechecking, B6 counts the page's OWN permissions.query/getUserMedia calls from first document load (0/0, instrumented via Page.addScriptToEvaluateOnNewDocument after Page.enable), B7 runs the service under a temp loopback models config (CYBERGRIL_MODELS, all caps 0) plus a sitecustomize socket guard that REJECTS and eagerly reports non-loopback connects (0 attempts, 0 non-loopback DNS lookups, report survives signal death) - under precise interaction the stage really plays, unread really clears, dedup and epoch semantics really hold: it was a test defect, not a product defect, so no interface change and nothing to escalate; (3) SDK honesty: tools/audit_sdk_offline_hel896.py (read-only, zero downloads/installs/inference) computes the 3.11-Linux closure from the installed 3.10 pinned metadata - 55 dists, 41 missing from the product venv (28 pure + 13 native incl. grpcio/numpy/onnxruntime/tokenizers/sqlalchemy/protobuf), all three top-level pins are py3-none-any (no 'cp311 wheel' needed for them), mem0ai's installed direct_url is the local fixed source hel857-src and hel857-data/mem0-2c81af3.tar.gz hashes exactly to the lock's 9dcef930...dda23 (an index mem0ai==2.2.1 wheel proves nothing), the wheel built during hel857 lived only in an ephemeral cache and hatchling is not offline-available, exactly 3 of the 41 are cache-reusable today for 3.11 (greenlet 3.5.6 cp311, pillow 12.3.0 cp311, truststore 0.10.5 py3-none-any - version+tag verified), the fastembed model cache is measured (Qdrant/bge-small-zh-v1.5 + bm25, ~92MB, placement = instance data dir copy), and the seq48-51 pip event is settled by cache forensics: uv's pip-26.2.2 wheel entry (files.pythonhosted.org, sha256 fd7f4dfa...) was CREATED 2026-10-27 02:10:04 inside the HEL-895 run window as the ONLY new cache entry, so that step DID fetch from the network - the prior card's zero-download claim is corrected to 'download' by the conservative reading (byte-level download vs conditional request is indistinguishable from cache evidence) while the lock install itself added no new cache entries; deploy/hel895-release-candidate.md §4 is rewritten to this accurate list, all future installs forced offline/no-index; (4) release archiving: tools/release_snapshot_hel896.py implements the two safe modes (stop+wal_checkpoint(TRUNCATE)+copy, or online SQLite backup API), writes per-file sha256 manifests carrying the exact code commit, per-table row-count verification and a verify-mode rollback drill; its selftest reproduces the manager's WAL finding (online naive copy of the main .db: 'no such table: companion') and proves both fixed modes complete (backup API and checkpoint copies both hold companion=1/chat_message=1, archive hashes+rows verify, commit 04eff61 recorded); §5 of the release doc now carries the copy-paste commands covering the product DB, semantic vector root, history root and the authoritative embed ledger, archives are never deleted, and the section explicitly does NOT claim R6 complete backup; regression on this head: pytest 299/299 (3.11.16 venv + requirements.lock offline), ruff clean (src/tests/tools), web typecheck 0 errors / lint 0 errors 1 pre-existing warning / vitest 55/55 / build passes with CSS still index-DdDYzR5S.css, pinned-SDK reruns all green (close-ownership 16/16, shutdown-queued 12/12, inflight 6/6, semantic-recovery 7/7, mem0-real 12/12, reports in docs/rework/hel896/regression/), check_release_offline R1-R7 passes, real-HTTP pagination 7/7 rerun saved as docs/rework/hel896/http-pagination-rerun.json with the original hel895 evidence byte-untouched, requirement checks 6/6 (origin/main, de8874a3803b, 152479b, each with and without handoff-HEL-896.json); handoff-HEL-896.json written; zero real LLM, zero real embeddings, zero new downloads beyond existing caches, authoritative ledgers and freezes (39/60, 498/500, 2 frozen, HEL-835 gate) untouched, not deployed, PR#11 appended-not-merged, no visual changes, R5/R6/R7 honestly deferred
Co-authored-by: multica-agent <github@multica.ai>
2026-10-27 03:06:23 +08:00

128 lines
4.1 KiB
JSON

{
"head": "04eff611e7d85e539d43717711172441420ac853",
"no_provider_calls": true,
"temp_only": true,
"scenes": {
"S0_single_ledger": {
"team_test_used": 55,
"B_after_A": "budget_total_requests_exhausted:55/55",
"C_after_A": "budget_total_requests_exhausted:55/55",
"table_columns": {
"budget_total": [
"key",
"value"
],
"request_usage": [
"day",
"category",
"requests"
],
"token_usage": [
"day",
"scene",
"used"
]
}
},
"S1_team_instance": {
"used": 55,
"tokens_used": 550,
"step_plan": [
[
"fact_extract",
4
],
[
"dialogue_main",
16
],
[
"life_event",
8
],
[
"memory_gist",
20
],
[
"proactive_message",
3
]
],
"after_55": {
"dialogue": "budget_total_requests_exhausted:55/55",
"life": "budget_requests_exhausted:life:8/8",
"semantic": "budget_total_requests_exhausted:55/55"
}
},
"S2_seal": {
"after_restart": "budget_total_requests_exhausted:55/55",
"archive_after_backup_api": "budget_total_requests_exhausted:55/55"
},
"S3_user_instance": {
"B_after_A": "allowed",
"C_after_A": "allowed",
"dialogue_daily_reject": "budget_requests_exhausted:dialogue:60/60",
"semantic_daily_reject": "budget_requests_exhausted:semantic:40/40",
"token_pool_reject": "budget_tokens_exhausted:1000/2000000+2000000000",
"budget_total_rows": 100
},
"S4_misconfig": {
"B": "budget_total_requests_exhausted:55/55",
"C": "budget_total_requests_exhausted:55/55"
},
"S5": {
"config_sha256_before": {
"models.yaml": "baed2a8042c330823c08aba0ebcd95899e8d3a1b8446655854b24e2b62289eb7",
"semantic.example.yaml": "32173b89234abab76df0d4334fc25d4f2ad285fde001294a666ef4f6299b0199"
},
"config_sha256_after": {
"models.yaml": "baed2a8042c330823c08aba0ebcd95899e8d3a1b8446655854b24e2b62289eb7",
"semantic.example.yaml": "32173b89234abab76df0d4334fc25d4f2ad285fde001294a666ef4f6299b0199"
}
}
},
"checks": [
{
"name": "S0_single_ledger_repro_A55_blocks_B_and_C",
"ok": true,
"detail": "B=budget_total_requests_exhausted:55/55 C=budget_total_requests_exhausted:55/55"
},
{
"name": "S0_tables_have_no_stage_or_source_columns",
"ok": true,
"detail": "{\"budget_total\": [\"key\", \"value\"], \"request_usage\": [\"day\", \"category\", \"requests\"], \"token_usage\": [\"day\", \"scene\", \"used\"]}"
},
{
"name": "S1_team_instance_A_consumes_55_then_hard_stops",
"ok": true,
"detail": "used=55 dialogue=budget_total_requests_exhausted:55/55 life=budget_requests_exhausted:life:8/8 semantic=budget_total_requests_exhausted:55/55"
},
{
"name": "S2_seal_survives_restart_and_archive",
"ok": true,
"detail": "restart=budget_total_requests_exhausted:55/55 archive=budget_total_requests_exhausted:55/55 used=55"
},
{
"name": "S3_user_instance_B_and_C_unblocked_after_A",
"ok": true,
"detail": "B=allowed C=allowed cumulative_counter=2 (record-only, no gate)"
},
{
"name": "S3_daily_caps_stack_on_user_instance",
"ok": true,
"detail": "dialogue=budget_requests_exhausted:dialogue:60/60 semantic=budget_requests_exhausted:semantic:40/40 tokens=budget_tokens_exhausted:1000/2000000+2000000000 used d=60 s=40"
},
{
"name": "S4_misconfigured_total_on_user_instance_blocks_B_C",
"ok": true,
"detail": "B=budget_total_requests_exhausted:55/55 C=budget_total_requests_exhausted:55/55"
},
{
"name": "S5_repo_configs_unchanged_no_authoritative_writes",
"ok": true,
"detail": "{\"models.yaml\": \"baed2a8042c330823c08aba0ebcd95899e8d3a1b8446655854b24e2b62289eb7\", \"semantic.example.yaml\": \"32173b89234abab76df0d4334fc25d4f2ad285fde001294a666ef4f6299b0199\"}"
}
],
"ok": true
}