docs: plan bounded streaming contacts import v2 #815

Closed
kayg wants to merge 1 commit from docs/contacts-import-v2-plan into dev
Owner

Contacts import v1 permits multiplicative output and exceeded its published full-path resource ceiling. This docs-only plan specifies bounded conversion, downstream history/merge/recovery/publication cursors, durable staged references, per-filesystem disk admission, exact source retention and accepted duplicate-suggestion keys.

Provisional output bounds: note <= min(8 × raw-card bytes, 8 MiB); pair <= min(9 × raw-card bytes, 16 MiB). A generated Apple/Google/Outlook-style corpus must measure strictly <0.1% realistic skips overall and per family/stratum, or the plan's caps must be revised with evidence. Photo folding gets explicit parser limits. Full-path HTTP/disk, restart and undo remain gated below 192 MiB absolute peak RSS; successful-card/emitted-byte minimums prevent early skips from making the workload artificially small.

The plan defines staged ownership, flush/transaction order, Home-only recovery, identical-upload replay, cleanup and a conservative peak-space reservation formula. It separates storage lifecycle review from import integration in five slices. No implementation or repository settings change.

Validation at 023abf2213: git diff f97f322b..HEAD --check, plan-content and relative-link checks passed; worktree clean and remote head verified. Corpus skip rates, RSS, disk peaks and latency remain future implementation gates, not measured results. Targets dev; never merge automatically.

Contacts import v1 permits multiplicative output and exceeded its published full-path resource ceiling. This docs-only plan specifies bounded conversion, downstream history/merge/recovery/publication cursors, durable staged references, per-filesystem disk admission, exact source retention and accepted duplicate-suggestion keys. Provisional output bounds: note <= min(8 × raw-card bytes, 8 MiB); pair <= min(9 × raw-card bytes, 16 MiB). A generated Apple/Google/Outlook-style corpus must measure strictly <0.1% realistic skips overall and per family/stratum, or the plan's caps must be revised with evidence. Photo folding gets explicit parser limits. Full-path HTTP/disk, restart and undo remain gated below 192 MiB absolute peak RSS; successful-card/emitted-byte minimums prevent early skips from making the workload artificially small. The plan defines staged ownership, flush/transaction order, Home-only recovery, identical-upload replay, cleanup and a conservative peak-space reservation formula. It separates storage lifecycle review from import integration in five slices. No implementation or repository settings change. Validation at 023abf2213786a4bec21448a70321764edc5136f: `git diff f97f322b..HEAD --check`, plan-content and relative-link checks passed; worktree clean and remote head verified. Corpus skip rates, RSS, disk peaks and latency remain future implementation gates, not measured results. Targets dev; never merge automatically.
docs: plan bounded streaming contacts import v2
Some checks failed
CI / web (pull_request) Has been cancelled
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
f97f322b3a
Author
Owner

Plan review

Reviewed f97f322b3ac11b0f28199413819c0b67f01b0c2c, docs/plans/0064-contacts-import-v2.md, all three #800 review rounds (71487, 71541, 71675), ADRs 0063/0064, and kayg's contacts decisions memory. This is a plan review, not runtime validation.

Verdict: approve with changes. The sink budget plus borrowed, chunked rendering is the right correction for round 3. The plan explicitly prohibits owned repeated labels, parameter combinations, full formatted output and late link-rendering bypasses. Those requirements close the known converter expansion in principle. Output limits alone do not establish the complete memory or disk bound; resolve the blocking contracts below before implementation.

Blocking

  1. Specify bounds beyond the note/companion sink, including recovery and index publication. The plan covers replacing job-sized Fresh, Step, seed and JSON collections, but “stream serialization/history blobs” does not define the largest history row, seed, merge document, decoded recovery record or queued publication batch. Current interfaces illustrate the boundary: bulk::Body owns Vec<Step>/Vec<Option<Value>> and a JSON summary; creates::prepare builds seed rows in parallel; History::updates collects all revisions of one note; Home::record accepts an event vector. A current note/companion below 8 MiB does not bound its accumulated history or reconstructed merge state. Name the replacement cursor/reader APIs for forward commit, restart and undo, with byte/capacity limits and backpressure before allocations. Give history/JSON/seed overhead separate bounds rather than charging it implicitly to D (which only counts pairs). All final note/companion bytes, including server-key canonicalization and post-path rendering, must use the writer or be verified byte-identical copies of its hashed staged artifacts. Other encoded bytes need their own budgets; they cannot inherit the note budget by assertion.

    Also distinguish fixed import working memory from persistent server metadata: the normal note identity index retains IDs/paths for the growing book, so absolute server memory is not independent of N/E. Define which index metadata remains resident, its bound at the gate's populated-book size, and bounded publication queues. Include scratch concurrently held by old pair, incoming card, merge/history work and output buffers in a concrete live-memory ledger. Add a small-current-note/large-history update plus restart/undo resource case. This is the remaining recurring allocation class, rather than another missing label counter.

  2. Make staged-reference durability and disk growth a contract. “Existing recovery policy” is insufficient once anonymous ranges become durable file references. State the persisted job phases, file/directory flush and transaction order, reference ownership across source publication/history commit/pair placement, and when each staging artifact may be collected. A committed history plan must not depend on an unprotected temp path; Home-only recovery needs the source ranges/outcomes as well as the source file if exact skipped-card extraction is promised after state loss. Define replay after lost response, restart at every transition, and simultaneous identical uploads so digest-based replay cannot publish two recovery sources or two imports.

    D <= 900 MiB is a derived-pair bound, not a peak-space bound. Budget upload/source copies, staged pairs, private images, history/seed encodings, SQLite journals, planning indexes (including existing-book facts), and update/undo retention on their actual disks. Set admission/reservation and abandoned-job cleanup rules, including bounded outstanding jobs. Test disk exhaustion and restart during cleanup, with no deletion of referenced recovery artifacts. Streaming converts a memory risk into disk usage; the plan must state that usage before implementation.

  3. Align duplicate matching with accepted decisions. Step 3 specifies exact normalized name matching and explicit E.164 phones. T4 and ADR 0064 specify name and company, or the same phone ignoring spaces/formatting, or email. Name alone suggests unrelated people; E.164-only omits matching local-format numbers that can be compared without guessing a country. Write the exact key rules, including missing-company behavior and same-UID update versus suggestion behavior. Keep the existing caps and separate contacts. Add same-name/different-company and equivalent local-number tests; a change to the owner rule needs an explicit decision rather than inheritance from #800.

Should change

  • Validate the multiplier and compatibility limits with a corpus. 8×/8 MiB is a reasonable explicit engineering starting point, not an established compatibility threshold. Inline photos stay outside Markdown under ADR 0063, so note expansion is not the main photo concern. The retained 2 MiB unfolded-line/4,096 physical-line limits can reject photos before the nominal 4 MiB encoded-PHOTO ceiling: a conventionally folded ~300 KiB base64 property alone uses roughly 4,096 lines. A >2 MiB unfolded PHOTO also fails the line limit. Test Apple/Google exports, photo sizes/folding, tiny valid cards, all supported field kinds and ordinary shared labels. Report accepted/skipped counts and reasons per corpus; the real-world skipped fraction is unknown from this plan. Source preservation is valuable recovery, but is not equivalent to importing the contact. Also test a small incoming update against substantial preserved local text: its budget is based on incoming bytes and can refuse an otherwise small update.
  • Strengthen the already useful full-scale gate. Require minimum successful-card and emitted-byte counts for accepted variants, separate deliberate limit-rejection variants, and cover near-8-MiB emitted notes, not only near-8-MiB raw cards. Otherwise early skips can make 20,000 cards/100 MiB cheap. Include peak temporary disk bytes and populated-book size/history depth. Verify bounded queues under slow publication, fresh-process recovery and undo, not just replay of completed outcomes. Retain all listed parameter/shared-label shapes, exact boundaries and three fresh-process runs below 192 MiB. Do not claim those future measurements have passed.
  • Split S3 at the storage contract. Disk planning, legacy-compatible streaming history, restart/undo and publication are several independently reviewable changes. A storage/reference lifecycle slice should precede import integration. The 8–12-file / 800–1,400-production-line estimate is provisional until that API design exists; do not use it to compress review. Name exact SSD/HDD latency commands and thresholds alongside the memory gate, since the owner requires one transaction/one publication cycle and background search indexing.

Nits

  • Clarify whether N counts BEGIN records, recovered malformed records, or accepted cards, consistently across HTTP and direct callers.
  • A pure converter can write to caller-provided Write without opening files; say “does not open files or perform network access” rather than “performs no I/O” alongside a writing API.

The salvage list is appropriately selective. Keep exact sources, ADR companions, no automatic merge, grouped readable fields, Notes through EOF, guarded updates and one history transaction. The full upload recovery file is additional storage with explicit quota consequences, as the plan acknowledges. No code changed or pushed; no builds/tests ran on the control host. Validation was document/source inspection and boundary analysis only.

## Plan review Reviewed `f97f322b3ac11b0f28199413819c0b67f01b0c2c`, `docs/plans/0064-contacts-import-v2.md`, all three #800 review rounds (71487, 71541, 71675), ADRs 0063/0064, and kayg's contacts decisions memory. This is a plan review, not runtime validation. **Verdict: approve with changes.** The sink budget plus borrowed, chunked rendering is the right correction for round 3. The plan explicitly prohibits owned repeated labels, parameter combinations, full formatted output and late link-rendering bypasses. Those requirements close the known converter expansion in principle. Output limits alone do not establish the complete memory or disk bound; resolve the blocking contracts below before implementation. ### Blocking 1. **Specify bounds beyond the note/companion sink, including recovery and index publication.** The plan covers replacing job-sized `Fresh`, `Step`, seed and JSON collections, but “stream serialization/history blobs” does not define the largest history row, seed, merge document, decoded recovery record or queued publication batch. Current interfaces illustrate the boundary: `bulk::Body` owns `Vec<Step>`/`Vec<Option<Value>>` and a JSON summary; `creates::prepare` builds seed rows in parallel; `History::updates` collects all revisions of one note; `Home::record` accepts an event vector. A current note/companion below 8 MiB does not bound its accumulated history or reconstructed merge state. Name the replacement cursor/reader APIs for forward commit, restart and undo, with byte/capacity limits and backpressure before allocations. Give history/JSON/seed overhead separate bounds rather than charging it implicitly to `D` (which only counts pairs). All final note/companion bytes, including server-key canonicalization and post-path rendering, must use the writer or be verified byte-identical copies of its hashed staged artifacts. Other encoded bytes need their own budgets; they cannot inherit the note budget by assertion. Also distinguish fixed import working memory from persistent server metadata: the normal note identity index retains IDs/paths for the growing book, so absolute server memory is not independent of `N`/`E`. Define which index metadata remains resident, its bound at the gate's populated-book size, and bounded publication queues. Include scratch concurrently held by old pair, incoming card, merge/history work and output buffers in a concrete live-memory ledger. Add a small-current-note/large-history update plus restart/undo resource case. This is the remaining recurring allocation class, rather than another missing label counter. 2. **Make staged-reference durability and disk growth a contract.** “Existing recovery policy” is insufficient once anonymous ranges become durable file references. State the persisted job phases, file/directory flush and transaction order, reference ownership across source publication/history commit/pair placement, and when each staging artifact may be collected. A committed history plan must not depend on an unprotected temp path; Home-only recovery needs the source ranges/outcomes as well as the source file if exact skipped-card extraction is promised after state loss. Define replay after lost response, restart at every transition, and simultaneous identical uploads so digest-based replay cannot publish two recovery sources or two imports. `D <= 900 MiB` is a derived-pair bound, not a peak-space bound. Budget upload/source copies, staged pairs, private images, history/seed encodings, SQLite journals, planning indexes (including existing-book facts), and update/undo retention on their actual disks. Set admission/reservation and abandoned-job cleanup rules, including bounded outstanding jobs. Test disk exhaustion and restart during cleanup, with no deletion of referenced recovery artifacts. Streaming converts a memory risk into disk usage; the plan must state that usage before implementation. 3. **Align duplicate matching with accepted decisions.** Step 3 specifies exact normalized name matching and explicit E.164 phones. T4 and ADR 0064 specify name **and company**, or the same phone ignoring spaces/formatting, or email. Name alone suggests unrelated people; E.164-only omits matching local-format numbers that can be compared without guessing a country. Write the exact key rules, including missing-company behavior and same-UID update versus suggestion behavior. Keep the existing caps and separate contacts. Add same-name/different-company and equivalent local-number tests; a change to the owner rule needs an explicit decision rather than inheritance from #800. ### Should change - **Validate the multiplier and compatibility limits with a corpus.** `8×`/8 MiB is a reasonable explicit engineering starting point, not an established compatibility threshold. Inline photos stay outside Markdown under ADR 0063, so note expansion is not the main photo concern. The retained 2 MiB unfolded-line/4,096 physical-line limits can reject photos before the nominal 4 MiB encoded-PHOTO ceiling: a conventionally folded ~300 KiB base64 property alone uses roughly 4,096 lines. A >2 MiB unfolded PHOTO also fails the line limit. Test Apple/Google exports, photo sizes/folding, tiny valid cards, all supported field kinds and ordinary shared labels. Report accepted/skipped counts and reasons per corpus; **the real-world skipped fraction is unknown from this plan**. Source preservation is valuable recovery, but is not equivalent to importing the contact. Also test a small incoming update against substantial preserved local text: its budget is based on incoming bytes and can refuse an otherwise small update. - **Strengthen the already useful full-scale gate.** Require minimum successful-card and emitted-byte counts for accepted variants, separate deliberate limit-rejection variants, and cover near-8-MiB *emitted notes*, not only near-8-MiB raw cards. Otherwise early skips can make 20,000 cards/100 MiB cheap. Include peak temporary disk bytes and populated-book size/history depth. Verify bounded queues under slow publication, fresh-process recovery and undo, not just replay of completed outcomes. Retain all listed parameter/shared-label shapes, exact boundaries and three fresh-process runs below 192 MiB. Do not claim those future measurements have passed. - **Split S3 at the storage contract.** Disk planning, legacy-compatible streaming history, restart/undo and publication are several independently reviewable changes. A storage/reference lifecycle slice should precede import integration. The 8–12-file / 800–1,400-production-line estimate is provisional until that API design exists; do not use it to compress review. Name exact SSD/HDD latency commands and thresholds alongside the memory gate, since the owner requires one transaction/one publication cycle and background search indexing. ### Nits - Clarify whether `N` counts BEGIN records, recovered malformed records, or accepted cards, consistently across HTTP and direct callers. - A pure converter can write to caller-provided `Write` without opening files; say “does not open files or perform network access” rather than “performs no I/O” alongside a writing API. The salvage list is appropriately selective. Keep exact sources, ADR companions, no automatic merge, grouped readable fields, Notes through EOF, guarded updates and one history transaction. The full upload recovery file is additional storage with explicit quota consequences, as the plan acknowledges. No code changed or pushed; no builds/tests ran on the control host. Validation was document/source inspection and boundary analysis only.
Author
Owner

Updated the plan for review 71699, pushed through 023abf2213786a4bec21448a70321764edc5136f.

Review item Plan change Validation / gate
Downstream allocations Named forward/seed/history/recovery/merge/undo/publication readers; byte-bounded records, pages and queues; separate encoding budgets; O(n + o) update structures; 133 MiB live-category ledger and 16 MiB resident identity metadata cap Small current note with 10,000 revisions / >=256 MiB history; fresh-process recovery/undo; slow publication; full server RSS <192 MiB
Durable references Persisted phases, file/directory flush order, history pins, Home recovery bundle and retained source/range/outcome manifest Kill at every transition, Home-only rebuild, exact skipped-range extraction, lost-response replay and coalesced identical uploads
Disk admission / cleanup Explicit U/P/O/X/I/H/R/J estimates by actual filesystem; need_f = A_f + max(256 MiB, ceil(A_f / 10)); refuse up front below estimate, reserve atomically; bounded outstanding jobs and resumable reference-aware cleanup Admission at need_f-1 / need_f, shared/separate disks, disk exhaustion and restart during collection; report peak reserved/actual bytes
Accepted duplicate rules Quoted contacts T4 and ADRs 0063/0064; name and company, formatting-insensitive local phones, email; no missing-company name key; same-UID update separate from suggestions; existing caps retained Same-name/different-company, repeated ORGs, missing company, local phone equivalence, country/extension distinctions and UID replay/update
Corpus compatibility Deterministic generated Apple/Google/Outlook-style cards, no real data; >=10,000/family, photos, many phones/emails, long Notes and preserved-local-text updates; report counts/reasons per stratum Strictly <0.1% skipped overall and per family/stratum; failure blocks acceptance and requires justified plan/cap revision plus reruns
Photo limits Propose 131,072 physical lines/card and PHOTO-specific 4 MiB encoded-value ceiling; retain 2 MiB non-PHOTO line ceiling Arithmetic shows 4,096 lines can reject a folded ~300 KiB PHOTO; new limits still require corpus/resource validation
Full-scale gates / review slices Accepted variants require all 20,000 placements and emitted-byte minimums; near-8-MiB emitted notes, populated-book history, disk peaks and exact proposed SSD/HDD commands; S3 split into storage lifecycle then integration Three fresh-process runs, <192 MiB RSS; 1,000 <0.5 s, 20,000 <2 s SSD / <5 s HDD; background search does not block publication

Commits: 2042c707 allocation/key contracts; 95bd6492 durability/admission; 04232300 corpus/resource gates; 023abf22 prior-pair/history complexity consistency. Each step was committed and pushed.

Docs checks passed: git diff f97f322b..HEAD --check, plan-content assertions and relative-link checks; clean worktree and matching remote head. Size: one Markdown file, +310/-28 lines versus the reviewed head. No builds or runtime tests ran on the control host. Corpus skip rates, RSS, disk peaks and latency are explicitly pending implementation gates, not measured results. The disk estimate is intentionally conservative and may refuse an import into a large existing book before receiving its body; reservation precision can be reviewed in S3a without weakening the up-front check. No repository settings changed or merge performed.

Updated the plan for [review 71699](https://git.kayg.org/kayg/calternal/pulls/815#issuecomment-71699), pushed through `023abf2213786a4bec21448a70321764edc5136f`. | Review item | Plan change | Validation / gate | |---|---|---| | Downstream allocations | Named forward/seed/history/recovery/merge/undo/publication readers; byte-bounded records, pages and queues; separate encoding budgets; `O(n + o)` update structures; 133 MiB live-category ledger and 16 MiB resident identity metadata cap | Small current note with 10,000 revisions / >=256 MiB history; fresh-process recovery/undo; slow publication; full server RSS <192 MiB | | Durable references | Persisted phases, file/directory flush order, history pins, Home recovery bundle and retained source/range/outcome manifest | Kill at every transition, Home-only rebuild, exact skipped-range extraction, lost-response replay and coalesced identical uploads | | Disk admission / cleanup | Explicit `U/P/O/X/I/H/R/J` estimates by actual filesystem; `need_f = A_f + max(256 MiB, ceil(A_f / 10))`; refuse up front below estimate, reserve atomically; bounded outstanding jobs and resumable reference-aware cleanup | Admission at `need_f-1` / `need_f`, shared/separate disks, disk exhaustion and restart during collection; report peak reserved/actual bytes | | Accepted duplicate rules | Quoted contacts T4 and ADRs 0063/0064; name **and company**, formatting-insensitive local phones, email; no missing-company name key; same-UID update separate from suggestions; existing caps retained | Same-name/different-company, repeated ORGs, missing company, local phone equivalence, country/extension distinctions and UID replay/update | | Corpus compatibility | Deterministic generated Apple/Google/Outlook-style cards, no real data; >=10,000/family, photos, many phones/emails, long Notes and preserved-local-text updates; report counts/reasons per stratum | Strictly <0.1% skipped overall and per family/stratum; failure blocks acceptance and requires justified plan/cap revision plus reruns | | Photo limits | Propose 131,072 physical lines/card and PHOTO-specific 4 MiB encoded-value ceiling; retain 2 MiB non-PHOTO line ceiling | Arithmetic shows 4,096 lines can reject a folded ~300 KiB PHOTO; new limits still require corpus/resource validation | | Full-scale gates / review slices | Accepted variants require all 20,000 placements and emitted-byte minimums; near-8-MiB emitted notes, populated-book history, disk peaks and exact proposed SSD/HDD commands; S3 split into storage lifecycle then integration | Three fresh-process runs, <192 MiB RSS; 1,000 <0.5 s, 20,000 <2 s SSD / <5 s HDD; background search does not block publication | Commits: `2042c707` allocation/key contracts; `95bd6492` durability/admission; `04232300` corpus/resource gates; `023abf22` prior-pair/history complexity consistency. Each step was committed and pushed. Docs checks passed: `git diff f97f322b..HEAD --check`, plan-content assertions and relative-link checks; clean worktree and matching remote head. Size: one Markdown file, +310/-28 lines versus the reviewed head. No builds or runtime tests ran on the control host. Corpus skip rates, RSS, disk peaks and latency are explicitly pending implementation gates, not measured results. The disk estimate is intentionally conservative and may refuse an import into a large existing book before receiving its body; reservation precision can be reviewed in S3a without weakening the up-front check. No repository settings changed or merge performed.
Author
Owner

Plan review, round 2

Verdict: approve. Blocking items: none.

Reviewed docs/plans/0064-contacts-import-v2.md at 023abf2213786a4bec21448a70321764edc5136f, limited to the three blockers in #issuecomment-71699 and the first-slice corpus gate; checked the response in #issuecomment-71714 and ADRs 0063/0064.

  • Downstream allocations: the plan now specifies forward/history/recovery/merge/undo/publication cursor and reader contracts, separate history encoding limits, bounded records/pages/queues and backpressure before allocation. The simultaneous 133 MiB ledger includes prior/base snapshots and shared scratch; resident identity metadata has a separate cap. Large-history restart/undo and slow-publication gates cover the previously missing paths. Final pair bytes remain writer-checked or verified identical to immutable staged artifacts.
  • Durability and disk admission: persisted phases define flush/rename/transaction ordering, history pins and Home recovery ownership. Per-filesystem reservations account for source copies, pairs, old snapshots, history, indexes and journals. Identical-upload coalescing, lost-response replay, bounded active jobs and reference-aware resumable cleanup have explicit contracts and fault tests.
  • Duplicate keys: name-and-company tuples exclude missing company and preserve repeated company occurrences. Formatting-insensitive local phone keys retain country/extension distinctions without inferring a country. Email matching, same-UID update/replay separation and existing suggestion caps remain explicit, with the requested regression cases.
  • S1 corpus gate: acceptance explicitly requires the realistic-corpus gate to pass. Strictly <0.1% skips is required overall and per family/stratum; accepted cards must preserve fields. Failure blocks acceptance, requires justified cap/plan revision and reruns of corpus and resource gates. Measurements are pending and must be reviewed before S1 acceptance.

This approves the plan contracts only. Corpus compatibility, RSS, disk peaks and latency remain implementation gates; no runtime validation was performed. No code changed or pushed.

## Plan review, round 2 **Verdict: approve. Blocking items: none.** Reviewed `docs/plans/0064-contacts-import-v2.md` at `023abf2213786a4bec21448a70321764edc5136f`, limited to the three blockers in #issuecomment-71699 and the first-slice corpus gate; checked the response in #issuecomment-71714 and ADRs 0063/0064. - **Downstream allocations:** the plan now specifies forward/history/recovery/merge/undo/publication cursor and reader contracts, separate history encoding limits, bounded records/pages/queues and backpressure before allocation. The simultaneous 133 MiB ledger includes prior/base snapshots and shared scratch; resident identity metadata has a separate cap. Large-history restart/undo and slow-publication gates cover the previously missing paths. Final pair bytes remain writer-checked or verified identical to immutable staged artifacts. - **Durability and disk admission:** persisted phases define flush/rename/transaction ordering, history pins and Home recovery ownership. Per-filesystem reservations account for source copies, pairs, old snapshots, history, indexes and journals. Identical-upload coalescing, lost-response replay, bounded active jobs and reference-aware resumable cleanup have explicit contracts and fault tests. - **Duplicate keys:** name-and-company tuples exclude missing company and preserve repeated company occurrences. Formatting-insensitive local phone keys retain country/extension distinctions without inferring a country. Email matching, same-UID update/replay separation and existing suggestion caps remain explicit, with the requested regression cases. - **S1 corpus gate:** acceptance explicitly requires the realistic-corpus gate to pass. Strictly <0.1% skips is required overall and per family/stratum; accepted cards must preserve fields. Failure blocks acceptance, requires justified cap/plan revision and reruns of corpus and resource gates. Measurements are pending and must be reviewed before S1 acceptance. This approves the plan contracts only. Corpus compatibility, RSS, disk peaks and latency remain implementation gates; no runtime validation was performed. No code changed or pushed.
Author
Owner

Orchestrator budget wording decision recorded at 2cc70e0b: incoming-derived note bytes remain <= min(8 * incoming bytes, 8 MiB). Exact prior ranges are accounted separately and must be copied by immutable range reference or streaming, never re-derived or credited after rendering. New wrappers remain charged. No general absolute note-file size limit was found in the notes/server write paths; the existing 128 MiB room work budget is not a file-size limit. The planned 8 MiB prior-artifact admission check remains. Updated pair, time, history and disk formulas: placed pairs <= 9B + S (S <= O), P = 9U + O, H = 4 * (9U + 2O) + 64 KiB * C. Live-memory ledger remains unchanged because preserved output streams in fixed buffers. S1 gates remain pending; no cap increase or measured gate success is claimed.

Orchestrator budget wording decision recorded at `2cc70e0b`: incoming-derived note bytes remain <= min(8 * incoming bytes, 8 MiB). Exact prior ranges are accounted separately and must be copied by immutable range reference or streaming, never re-derived or credited after rendering. New wrappers remain charged. No general absolute note-file size limit was found in the notes/server write paths; the existing 128 MiB room work budget is not a file-size limit. The planned 8 MiB prior-artifact admission check remains. Updated pair, time, history and disk formulas: placed pairs <= 9B + S (S <= O), P = 9U + O, H = 4 * (9U + 2O) + 64 KiB * C. Live-memory ledger remains unchanged because preserved output streams in fixed buffers. S1 gates remain pending; no cap increase or measured gate success is claimed.
Author
Owner

housekeeping #1009: rebased+green, left open for review.

rebased contacts importer v2 proposal.

head: 643e6f70d1d1e9c3ab0a5925900ef4657cb47110. rebased onto dev cd7f84432febfc63b788fbb9b9f9950452982d74 and pushed with the original exact force-with-lease.

validation on the Mac VM, through Nix and the shared Mac lock/slot: root bun install --frozen-lockfile; in apps/web, bun run check, bun run lint, bun run build, bun run test; PERF_DIST=<worktree>/apps/web/dist bash perf/web.sh --bundle-only --gate. all passed. this documentation-only branch has no targeted browser specs or Rust implementation changes. exact commands, logs, and dev bundle control.

original-head missing-commit/patch inventory, file pr-815.md.

housekeeping #1009: rebased+green, left open for review. rebased contacts importer v2 proposal. head: `643e6f70d1d1e9c3ab0a5925900ef4657cb47110`. rebased onto dev `cd7f84432febfc63b788fbb9b9f9950452982d74` and pushed with the original exact force-with-lease. validation on the Mac VM, through Nix and the shared Mac lock/slot: root `bun install --frozen-lockfile`; in `apps/web`, `bun run check`, `bun run lint`, `bun run build`, `bun run test`; `PERF_DIST=<worktree>/apps/web/dist bash perf/web.sh --bundle-only --gate`. all passed. this documentation-only branch has no targeted browser specs or Rust implementation changes. [exact commands, logs, and dev bundle control](https://git.kayg.org/attachments/64244177-fd81-4992-860e-4d5d22ca01cd). [original-head missing-commit/patch inventory](https://git.kayg.org/attachments/fe3c09dc-dea3-47a0-92e2-b44a777083e5), file `pr-815.md`.
Author
Owner

triage 2026-11-11: closing as covered plan: streaming-import plan is covered by implementation #817 and ADR 0064; feature remains incomplete.

triage 2026-11-11: closing as covered plan: streaming-import plan is covered by implementation #817 and ADR 0064; feature remains incomplete.
kayg closed this pull request 2026-11-11 08:33:17 +00:00
Some checks failed
CI / web (pull_request) Has been cancelled
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
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
kayg/calternal!815
No description provided.