Build(deps): Bump inquirer from 8.2.6 to 12.7.0#88
Closed
dependabot[bot] wants to merge 1 commit into
Closed
Conversation
--- updated-dependencies: - dependency-name: inquirer dependency-version: 12.7.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
Author
|
The |
Contributor
Author
|
Superseded by #97. |
joelteply
added a commit
that referenced
this pull request
May 31, 2026
…strate (L1-L5) Crystallizes the design discussion from 2026-05-31 around persona cognition memory architecture. Captures the unified frame the substrate has been growing toward. Five tiers analogous to the foundry's existing L1-L5 genome cache: - L1 RAG working memory (raw, model context window) - L2 engram cache (in-memory, compressed) - L3 longterm.db (persisted semantic engrams) - L4 forge (local LoRA adapter cache) - L5 grid (distributed gene pool) Lossy compression only at L1→L2 boundary. Working memory is verbatim; older data gets outlined-and-cached when it ages out. One always-on outline-and-cache tick per persona, yielding on CNS context-switch per RTOS-brain doctrine. Per-activity L1, shared L2+ — Algorithm 1's focus/periphery split generalized to per-activity instantiation. Recent-universal floor in periphery pool (top N msgs across all activities, N budgeted by model context size) guarantees cross-activity awareness without severance. Forgetting is intrinsic to L1 budget. Smaller models forget more in the moment but accumulate engrams at the same rate as bigger ones — long-term knowledge is model-size-independent. Novelty detection via embedding-space distance + magnitude: the hotdogs-at-a-tech-meeting canonical example shows how high-distance outliers get protected-until-ms grace windows and earn long-term retention via recall hits. Activity context save/restore via existing EngramKind::SelfReflection meta-engrams; no separate sidecar needed. The engram graph is the storage; SelfReflection is the type marker. Implementation slice scoped: Engram metadata fields (salience, access_count, last_accessed_ms, protected_until_ms) on Engram or RecallMetadata sidecar; outline-and-cache tick; L1 budgeter; decay + consolidation policies; cross-activity integration test. Related tasks: #88 (disk pressure as substrate concern), #89 (this design + implementation scoping). References: COGNITION-ALGORITHMS.md (existing 7 algorithms), BRAIN-REGIONS-SUBSTRATE.md (region trait, sleep-region cadence), GENOME-FOUNDRY-SENTINEL.md (parallel L1-L5 framework), memories source-drain-is-the-universal-pattern, RTOS-brain-no-region-on- hot-path, local-worktree-is-temp-dir. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
joelteply
added a commit
that referenced
this pull request
May 31, 2026
… + recording decorator (task #95) Slice 11. The mechanic-shop's lift + diagnostic gauges for RAG. Per Joel (2026-05-31): "We have often needed to see how a model would work to debug it. Within harness with real world rag." … "These things are complex machines. Make sure we can act as mechanics." Per memory persona-record-replay-is-a-product-requirement + existing LiveTurnReplayFixture infra — this slice wires capture for the RAG layer specifically. ### What ships persona/rag_capture.rs (~600 lines, 9 tests, all green): - **RagCaptureEvent** enum tagging each fact about a turn: TurnStart (context + budget request), BudgetAllocated (the allocator's decision), SourceDelivered (auto-emitted by the decorator after every deliver/deliver_continuation), TurnEnd. Every variant carries persona_id + optional turn_id for cross- event correlation. - **RagCaptureSink** trait — abstract recording surface. Synchronous `record(event)` keeps simple sinks simple; async sinks layer over it by spawning internally. - **NoopRagCaptureSink** — production-safe default. Drops events on the floor; zero overhead beyond a trait-object virtual call when capture isn't turned on. - **JsonlRagCaptureSink** — file-based, one JSON object per line, Mutex<File> for within-process atomic appends. Reopen-append semantics tested. Capture-failure-must-not-fail-cognition rule: serialize errors + write errors log via tracing::warn + drop; the substrate stays up. - **InMemoryRagCaptureSink** — buffers events in Mutex<Vec> behind a clone-able snapshot accessor. For tests + the upcoming golden-trace harness (slice 11.5). - **RecordingRagSource<S>** decorator wraps any RagSource + intercepts deliver / deliver_continuation. Records the call + result via the sink; returns the delivery unchanged. Drop-in around production sources. source_id() pass-through; behavior pass-through; only adds recording. ### Refactor cascade RagSourceBudget.source_id changed from &'static str to String to support serde Deserialize (captured budgets must roundtrip for replay). FlexboxRagBudgetAdapter's allocation HashMap key similarly changed; test budget() helper now uses .to_string(); sort_by tiebreak now borrows source_id by reference. All 15 existing rag_budget tests + 12 existing engram_source tests still pass (regression-free). ### Tests cargo test persona::rag_capture --features metal,accelerate exits 0, 9 tests: - noop_sink_drops_events_silently - in_memory_sink_records_and_exposes_events - jsonl_sink_writes_one_json_object_per_line (round-trip: records 2 events, reads file back, asserts both lines parse as the expected variants) - jsonl_sink_appends_across_reopens (close + reopen + write + re-read; both events accumulate) - recording_decorator_passes_through_delivery (wrapped source's items + source_id come through unchanged) - recording_decorator_records_each_deliver (one SourceDelivered event per deliver call, with budget + resolution captured) - recording_decorator_records_continuation_with_cursor (cursor field populated when continuation is recorded) - recording_decorator_records_persona_and_turn_id (cross-event correlation primitives work) - captured_event_serde_roundtrip (event roundtrips through JSON without losing variant discriminant) ### Doctrine alignment - substrate-is-a-good-citizen-on-the-host: NoopRagCaptureSink as default (opt-in capture, zero overhead); observability honest via per-source telemetry-grade events; failures log + drop rather than panic - RTOS-brain-no-region-on-hot-path: capture writes synchronous- after the source returns; off the cognition critical path - organization-purity-as-we-migrate: decorator pattern keeps RagSource impls untouched; clean no-backwards-compat seam; string-key refactor propagated atomically - source-drain-is-the-universal-pattern: captures are a source (accumulating events); slice 12 wires rotation policy as the drain - persona-record-replay-is-a-product-requirement: this slice implements the capture half of the long-standing requirement ### What's next - Slice 11.5: ReplayRagSource — reads captured deliveries from a sink, returns them instead of hitting live state. Symmetric to RecordingRagSource. Golden-trace harness uses this to replay captured turns against current substrate for regression detection. - Slice 12: PromptAssembly emits TurnStart + BudgetAllocated + TurnEnd around source.deliver calls; airc rag-inspect CLI reads JSONL traces; rotation policy under disk-pressure (#88). References: docs/architecture/EVERY-MODEL-INCLUDED-VIA-L1-BUDGET.md (the substrate's inclusivity thesis these captures make verifiable), memory persona-record-replay-is-a-product-requirement, the existing LiveTurnReplayFixture infra this complements. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)