Commit Graph
37 Commits
Author SHA1 Message Date
Зарубин Филипп e2dd73c98a Complete Mnemazine intake gate 2026-06-18 23:14:29 +03:00
Зарубин ФилиппandClaude Opus 4.8 73cbc0d30c feat(swarm): async LLM bridge + bounded-concurrency research swarm in deep synthesize
E3: llm bridge now uses async spawn (non-blocking) instead of spawnSync, so agent calls run concurrently. Deep synthesize processes clusters through a bounded pool (MNEMAZINE_CONCURRENCY, default 4) — cheap and fast. Each task is isolated (inner + outer try/catch): one cluster failing never blocks the swarm. Docs cover recognition fallback, swarm, concurrency.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 17:33:11 +03:00
Зарубин ФилиппandClaude Opus 4.8 b92328837e feat(run): per-file recognition isolation + LLM extraction fallback (deep)
E1: each file's extraction is isolated — a recognition failure logs extract_error, leaves the file in inbox, and never breaks the rest of the batch (failed count surfaced). E2: local-first recognition stays 0 tokens (Apple Vision OCR / markitdown / whisper); only when local yields nothing usable AND --deep is on does a vision-capable LLM (llmText, Read tool) transcribe the file. New llmText() in the provider bridge (Claude primary, Codex parity).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 17:29:34 +03:00
Зарубин ФилиппandClaude Opus 4.8 fb0831bb92 feat(llm): robust Claude binary discovery (npm/Homebrew/standalone/Desktop/VSCode)
Resolve claude independently of install method: explicit env -> login-shell PATH (respects however the user installed it: Desktop, npm global, standalone) -> common absolute locations -> newest VSCode extension binary. No longer tied to the VSCode path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 17:22:35 +03:00
Зарубин ФилиппandClaude Opus 4.8 b470ca9ab7 feat(digest): D Russian humanizer Spravka per note + session summary, after Graphify
mnemazine-digest.mjs writes a humanizer-style RU Справка (Что это/О чём/Почему важно мне/Связи) into each note with real connections from the Graphify graph, plus one session summary note mapping all atoms. Idempotent. Wired into run.mjs --deep after the graph pass; npm run digest. Owner context kept out of the public repo (MNEMAZINE_OWNER_CONTEXT / gitignored .mnemazine/owner-context.txt). Stub-tested injection + summary.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 17:19:22 +03:00
Зарубин ФилиппandClaude Opus 4.8 4cae8f5fb2 feat(synthesize): B knowledge enrichment stage before atomize (--deep)
Web-capable LLM agent researches and EXPANDS captured material (kb-enrich philosophy: recon, primary sources, practitioner experience, anti-hallucination fact->URL) before atomization, so atoms are built from grown knowledge not just the raw capture. On within --deep; disable via --no-enrich / MNEMAZINE_ENRICH=0. Reports enriched count; degrades to raw atomize on failure. Stub-tested enrich->atom chain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 17:14:40 +03:00
Зарубин ФилиппandClaude Opus 4.8 bc60800660 feat(llm): provider abstraction — Claude primary, Codex parity
New mnemazine-llm.mjs: llmJson(prompt,schema,{provider,tools}). MNEMAZINE_LLM=claude(default)|codex. Claude via headless 'claude -p --output-format json' (JSON instructed in-prompt, no --dangerously-skip-permissions; tools opt-in). Codex backend unchanged at parity. codex.mjs is now a back-compat shim. synthesize/verify route through llm; verify selftest exercises codex stub via the shared contract.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 17:12:53 +03:00
Зарубин ФилиппandClaude Opus 4.8 e60d5bcad1 feat(security): scan extraction cache for token-secrets in release gate
Captured screenshots/PDFs can carry credentials that flow into notes. Token-only, dir-scoped, skipped on clean checkout. Positive-tested with planted AWS key.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:57:35 +03:00
Зарубин ФилиппandClaude Opus 4.8 6714bec65a fix(codex/synthesize/verify): neutralize prompt injection + harden error/edge paths
CRITICAL: untrusted extracted text fenced (inert-data delimiter + sentinel neutralize) before codex calls that run with headless bypass. HIGH: codexJson + listRecords JSON.parse guarded; fingerprint/atomFingerprint scoped by cluster id (no silent skip on shared/empty source refs); headOk uses a fresh timeout per request; synthesize reports degraded when --deep falls back. Codex scratch in one private 0700 mkdtemp. verifyDeep now covered by a stub-codex selftest.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:52:10 +03:00
Зарубин ФилиппandClaude Opus 4.8 45c03a499a fix(weekly): basename-collision data-loss + state path matches README:224
KGB adversarial proved two same-basename notes in different sections clobbered on move. Now keyed by full vault-relative path (slashes->__). State dir defaults to ~/Desktop/Mnemazine/.mnemazine/state (README:224). ENOENT->missing, no crash. Selftest covers collision + collision-content survival.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:52:10 +03:00
Зарубин ФилиппandClaude Opus 4.8 840a8daf35 chore(release-check): copy + syntax-check new codex/verify/weekly-state modules
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:19:05 +03:00
Зарубин ФилиппandClaude Opus 4.8 58b80aa52b feat(runner): G3 wire --deep/MNEMAZINE_DEEP through run -> synthesize (default conservative)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:19:05 +03:00
Зарубин ФилиппandClaude Opus 4.8 b9f3aaa7c6 feat(weekly): G2 apply read/work/forget to vault (work->backlog, forget->quarantine, never delete)
Browser exports weekly-state.json; weekly:state CLI applies it. Path-escape refused. --selftest covers move-not-delete + escape.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:19:05 +03:00
Зарубин ФилиппandClaude Opus 4.8 cc751dd6eb feat(synthesize): honest draft notes + idempotent fingerprints; G4 LLM atomize + G5 hybrid verify
C2 status:draft/verified:false. U2/U3 content-fingerprint naming + skip-existing. G4: --deep atomizes one cluster into focused atoms via shared codex bridge (default off -> local template). G5: verification_status verified/assumed/unknown — local structural gate by default, --deep adds HEAD+codex web cross-check.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:19:05 +03:00
Зарубин ФилиппandClaude Opus 4.8 dc909f4bc5 feat(graph): U5 prune graphify backups (keep N, default 3)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:18:52 +03:00
Зарубин ФилиппandClaude Opus 4.8 b61dd0bb4a feat(ingest): G1 site ingest — JSON-LD, API hints, meta/description, doc links
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:18:52 +03:00
Зарубин ФилиппandClaude Opus 4.8 aa87a85d9b feat(security): C1 broaden token markers + scan untracked; C3 resolveVault util
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 16:18:52 +03:00
Зарубин Филипп 86a68b6c64 Stop semantic shard runner on provider quota 2026-06-18 15:20:26 +03:00
Зарубин Филипп 42ca8cdbd4 Add strict semantic shard runner 2026-06-18 15:08:32 +03:00
Зарубин Филипп ccb8004f63 Fix same-vault Graphify semantic merge 2026-06-18 00:54:10 +03:00
Зарубин Филипп bb640adcfe Allow partial Graphify semantic success 2026-06-18 00:44:45 +03:00
Зарубин Филипп 18028c720e Limit Graphify API concurrency 2026-06-18 00:07:55 +03:00
Зарубин Филипп 3f58c7f8b9 Merge Graphify semantic API output safely 2026-06-17 23:46:24 +03:00
Зарубин Филипп d782c7faca Support API-backed Graphify semantic refresh 2026-06-17 23:32:16 +03:00
Зарубин Филипп 42c96d2b8c Add protocol synthesis stage 2026-06-17 22:52:06 +03:00
Зарубин Филипп 4ed7a71518 Enforce Mnemazine vault protocol 2026-06-17 22:32:54 +03:00
Зарубин Филипп 24cf2b937e Add report synthesis quality gate 2026-06-17 22:23:39 +03:00
Зарубин Филипп 2d2b1ee4b6 Improve video intake and graph refresh semantics 2026-06-17 21:57:24 +03:00
Зарубин Филипп 081988af7b fix: исключить graphify-out* бэкап-дирки из walk (не переобрабатывать) 2026-06-17 00:22:52 +03:00
tv5171621-source 2cf669fb0c docs: bilingual README pair (README.md EN + README.ru.md RU)
- README.md: full English, language toggle to README.ru.md
- README.ru.md: full Russian translation (replaces patchy inline RU)
- release-check: enforce two-file bilingual parity + H2 section drift guard
2026-06-15 15:45:28 +03:00
tv5171621-source dc323329d6 Ignore graph artifacts in release smoke 2026-06-15 14:47:35 +03:00
tv5171621-source f9e4049f02 Add release readiness gate 2026-06-15 14:46:29 +03:00
tv5171621-source af17f4e20e Harden local intake quality gate 2026-06-15 14:40:56 +03:00
tv5171621-source 79cd8c4944 Harden graph refresh defaults and smoke tests 2026-06-15 14:30:49 +03:00
tv5171621-source 65b36a93d0 Add guarded Graphify refresh helper 2026-06-15 14:22:32 +03:00
tv5171621-source 60289f787d Add YouTube channel ingestion 2026-06-15 03:11:15 +03:00
tv5171621-source 5c59152c06 Initial open source release 2026-06-15 02:47:14 +03:00