Skip to content

Implement LINA LIFE world, social, work and image engine with recovery - #3

Draft
thisisjun786 wants to merge 29 commits into
devfrom
codex/world-engine
Draft

Implement LINA LIFE world, social, work and image engine with recovery#3
thisisjun786 wants to merge 29 commits into
devfrom
codex/world-engine

Conversation

@thisisjun786

@thisisjun786 thisisjun786 commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Change

Implement the LINA LIFE backend alongside ordinary Codex work: user-confirmed world revisions, places/scenes/time and seeded events; individual knowledge, secrets, beliefs, asymmetric relationships and personality growth; explicit task/memory provenance; internal posts, replies, reactions and later experience; permitted event images and scheduled avatars with original-request recovery, pin/history/restore and separate delivery receipts.

Integrate the current dev image-owner baseline and preserve authored identity. Ordinary conversations share permitted growth/relationships while event and secret access remains separately controlled. Fix confirmation-mode world reads and reject out-of-range event revisions at startup. A rejected LIFE database now preserves its original files and leaves ordinary chat/tasks usable, with owner-only recorded health.

Consumer contracts and recovery instructions: LIFE_ENGINE.md. Requirement/evidence map: 010–080 roadmap.

Verification

  • Local native-enabled full suite: LINA_LIFE_NATIVE_TEST=1 LINA_AUTHOR_NATIVE_TEST=1 bun test3,369 passed, 0 failed; 19,757 assertions / 481 files. Source hashes unchanged during the run.

  • Root/browser typecheck, Biome lint, runtime asset build/out-of-checkout CLI smoke, CI validation and dependency audit passed. Complete-history secret scan is recorded for the final commit. Hosted CI is reported separately by GitHub checks.

  • Independent implementation review: PASS, no blockers. Focused reviewer run: 11 tests / 105 assertions, plus integrated causal story.

  • Isolated task receipt → work-dependent event → directed relationship → pictured post → viewer feedback → later experience, with replay after restart and captured private-text exclusion.

  • Actual child SIGKILL/WAL recovery and offline checkpoint restore: reopen world/agent/image owners, validate UUID/usage/terminal/archive bindings and asset hashes; reject active owner capture.

  • Actual HTTP: 27 image-owner cases and 11 health/isolation cases; zero external provider calls. Owned listeners stopped and temporary state removed.

  • PR delivery repairs preserve verbatim Ensemble inputs with nine exact Git-attribute paths, and reduce canonical JSON overhead while retaining bytes, digests and validation. The three hosted timeout scenarios pass locally with their original limits; 1,910 differential assertions and independent review passed. Final commit cefaffc passed hosted CI and dev-gate: 3,140 package tests passed, 45 native qualification cases intentionally skipped, zero failures. The local native-enabled suite covers those gated cases. All three former timeout scenarios passed without changing their test limits.

Risks and remaining work

  • This is the engine/backend and consumer handoff. LIFE renderer/user journeys, real narrative/image quality and likeness, and installed-user-data rollout are not qualified. Native transport and synthetic services are distinguished in the unit documents.
  • World, cadence, audience, model and admission budgets remain explicit/unset. No live generation, external SNS, merge or deployment was performed.
  • Startup audits a private DB/WAL/journal copy before the original; memory and startup cost grow with retained history. A rejected shared LIFE database quarantines all its worlds until offline recovery.
  • Checkpoints cover local state, not external memory/provider history, credentials or the external ima2 service configuration. See the guide for the exact recovery boundary.
  • Risu-inspired behavior is a bounded declarative subset; the pinned Ensemble social adapter retains upstream notices. This is not arbitrary Risu script execution or a replacement conversation engine.

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.
@thisisjun786
thisisjun786 marked this pull request as draft September 8, 2026 12:42
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.
@thisisjun786 thisisjun786 changed the title Add persistent world state and scoped agent context Add LINA LIFE world simulation, social feed and image integration checkpoint Sep 8, 2026
@thisisjun786 thisisjun786 changed the title Add LINA LIFE world simulation, social feed and image integration checkpoint Implement LINA LIFE world, social, work and image engine with recovery Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant