Integrate LINA LIFE with owned memory, persona, context and shared resources - #7
Draft
thisisjun786 wants to merge 198 commits into
Draft
Integrate LINA LIFE with owned memory, persona, context and shared resources#7thisisjun786 wants to merge 198 commits into
thisisjun786 wants to merge 198 commits into
Conversation
Persist permitted event posts, generated replies and viewer interactions with shared execution accounting and restart recovery. Feed permissions and causal activity limits remain enforced at dispatch, commit and read boundaries. Validated with 2,885 native-enabled tests, 42 isolated HTTP scenarios and independent core/runtime reviews. Image/avatar integration remains the next unit.
Revalidate the pinned image engine and define shared job ports, image and storage reservations, scoped assets and avatar-only application. Resolve independent audit findings for historical restore, scheduler activation, source grants and stable cadence identities.
Connect frozen LIFE image intents, durable generation receipts, scoped post assets and avatar history to Fleet and the existing image owner. Preserve authored identity and fence automatic application during pause. Checkpoint the partial 070 implementation for review. Event-image performance and remaining recovery/acceptance work are recorded in the plan; this is not a completion or merge-readiness claim.
The inherited five-second Bun default covers a full event, publication, image, HTTP and cold-restart scenario. Use the existing LIFE integration budget of 30 seconds while retaining all sixteen assertions. This changes the test budget, not runtime performance.
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.
Change
Consolidate LINA LIFE and the LINA-owned memory, persona, context and shared-resource engines into one review candidate targeting
dev.This PR supersedes #3 and #6, which are now closed with their original branches preserved. Merge commit
6970941fb95090087f3e8ebc5d6ea0d7295057d0preserves both original heads as parents:cefaffcbb4d767848ace6bc0151b9271bf336bf2.d75a11f6a617f9de02cd1246ae27d87d94c4cce7.devatcd74c89ea642735a9eeee9f63f88651b900a7bef.The three overlapping files retain the already-ported LIFE recovery behavior, personal-growth connection, publication v3 assertions and owned-memory lifecycle tests. All runtime source remains identical to #6. Tests differ only by the explicit integration budget described below; their assertions are preserved. The merge restores #3's LIFE/recovery documentation, prior image QA evidence and synthetic image QA entry point. Original branches are preserved; neither source PR is merged into
dev.Consumer/review entry points: LIFE engine, context-engine acceptance, UI contracts, and integration record.
Verification
Fresh local checks on the integrated source:
LINA_LIFE_NATIVE_TEST=1 LINA_AUTHOR_NATIVE_TEST=1 bun test packages/lina-codex: 268 passed, 0 failed, 1,361 assertions across 45 files. Real local subprocesses, synthetic providers; no external model calls.bun run typecheck,bun run lint,bun run ci:validate,bun run ci:buildpassed. Lint retains 26 existing warnings.dev-gatecorrectly failed. Current-head hosted results are reported by GitHub checks.Risks and remaining work
This consolidation creates the baseline for a separate detailed feature review. It does not certify the full feature set, production data migration, installed runtime, UI journeys, long-conversation quality or live narrative/image quality. Historical provider evidence in the source PRs remains scoped to its original revisions and synthetic scenarios.
No
dev/mainmerge, branch deletion, release, deployment, installed-data change or external model call is part of this task. The consolidation is complete; this PR remains Draft for the owner's separate detailed review. #3 and #6 were closed as superseded, and their source branches remain available. The independent preservation review does not replace the deferred detailed feature review.Explicit image integration test budget
Two previous hosted runs hit the unchanged Bun default of 5 seconds in
packages/lina-runtime/test/life-image-fleet-event.test.ts(5,017ms and 5,027ms). The case covers Fleet setup, accepted event, publication, image persistence, HTTP/proxy reads, cold restart and revocation. There is no separately defined five-second product latency requirement.The final candidate gives this one functional test an explicit 30-second bound, matching the existing
life-e2e.test.tsintegration convention. All 16 assertions, production code, other tests and CI job limits remain unchanged. The focused case passes locally in 2.98s with 16 assertions; root/browser typecheck and lint pass on the final candidate. This is a test-budget correction, not evidence of faster runtime performance. Historical timeout results remain documented in the integration record for the later detailed review.