Skip to content

Implement LINA-owned memory, persona, context and shared resource engines - #6

Closed
thisisjun786 wants to merge 188 commits into
devfrom
codex/context-engines
Closed

Implement LINA-owned memory, persona, context and shared resource engines#6
thisisjun786 wants to merge 188 commits into
devfrom
codex/context-engines

Conversation

@thisisjun786

Copy link
Copy Markdown
Owner

Change

Honcho·LCM·OpenViking에서 흡수하려던 기능을 LINA 소유의 개인 기억·페르소나·대화 컨텍스트·공유 자료 엔진으로 구현했습니다. 외부 기억 엔진의 실행 의존성을 제거하고 Fleet·도구·API 소비자를 연결했습니다.

  • 근거와 정정을 추적하는 기억, 작성 정체성을 보존하는 성향 학습, 출처가 있는 계층 요약과 원문 확장, 재시작 복구 및 중복 처리 방지.
  • LLM이 탐색·검색·점진적으로 읽는 비코드 논리 자료 공간과 공유 업무 기억. 업무는 개발·비개발·단순 검색을 포함하며 Codex에 종속되지 않습니다.
  • LIFE와 성격·관계는 공유하고 사건·비밀 공개는 별도로 제어합니다. 공개 자료만 게시 모델에 전달하고 피드 저장·재생을 검증했습니다.
  • 내부 모델 선택은 quick/standard/deep/intensive 처리 등급을 사용합니다. 현재 Ollama 검증 구성은 DeepSeek Flash / GLM 5.3 Flash / DeepSeek Pro / GLM 5.3이며, 일반 대화·기본 모델은 고정 GLM 5.3 Flash입니다.
  • 제공자 카탈로그가 LIFE/AUTHOR 도구 정책을 덮어쓰는 문제, native 재시작과 압축 후 원문 복원, 대화의 사실·가정 구분을 보완했습니다.

인수 결과 · UI 연결 계약 · 요구사항

PR 관계: #3의 LIFE/world 기반에서 분기한 작업입니다. 검토된 world 변경을 일부 포팅했으며 #3 최신 HEAD 전체를 병합한 것은 아닙니다. 따라서 dev 대비 diff에는 LIFE 기반 변경도 포함됩니다. #3과 이 PR의 통합 순서 및 겹치는 변경을 머지 전에 검토해야 합니다. GitHub native stack은 사용하지 않습니다.

Verification

  • bun test: 3,684 pass / 47 skip / 0 fail (523파일). 최종 코드 4b496d4 기준이며 PR HEAD d75a11f까지의 차이는 인수 문서뿐입니다. 최종 HEAD에서 소스 동일성과 문서 링크 58개를 별도 검사했습니다.
  • LINA_LIFE_NATIVE_TEST=1 LINA_AUTHOR_NATIVE_TEST=1 bun test packages/lina-codex: 268 pass / 0 fail. 실제 native 프로세스와 합성 provider로 격리·복구를 검사했습니다.
  • bun run typecheck, bun run lint, bun run ci:validate, bun run ci:build 통과. lint 기존 경고 26개는 남아 있습니다.
  • 실제 Ollama 호출: Quick 관찰 저장, Deep 근거 기반 추론 저장, Standard 요약·일반 대화·LIFE 게시, Intensive 관찰 응답 파싱을 확인했습니다. 격리된 합성 입력과 임시 DB를 사용했습니다.
  • 실제 모델 시나리오에서 압축 2회·재시작 2회·정정 회상·원문 확장, 자료 비공개 전환 후 차단, 페르소나 근거 철회, LIFE 게시·피드 재열기·재생을 확인했습니다.
  • 기존 모델 설정 컴포넌트는 격리된 Chromium 검사에서 내부 등급 모델 선택 비활성화와 대화 모델 선택 유지를 확인했습니다. 화면 증거와 원본 실행 로그는 로컬 인수 증거에 보관되어 있으며 이 PR에 첨부하지 않았습니다.
  • 최종 독립 검토 PASS. GitHub CI 결과는 PR 생성 후 별도로 확인합니다.

Risks and remaining work

  • 실제 모델 기능 검증 일부는 테스트용 출력 예산을 늘렸습니다. 제품 기본 예산 전체나 장기 대화 품질을 보증하지 않습니다. reasoning: off는 effort override 생략이며 제공자 측 추론 비활성을 보장하지 않습니다.
  • 이전 Honcho/OpenViking 데이터는 보존하고 이전 필요 상태를 알립니다. 외부 데이터를 자동으로 가져오지 않습니다.
  • 사용자 장기 대화 평가와 전체 UI 기획은 후속 단계입니다. 실제 LIFE 증거는 게시 저장·피드 경로이며 모든 Fleet HTTP/주기 실행을 검증했다는 의미는 아닙니다.
  • 설치본 코드 교체·서비스 재시작·머지·배포는 하지 않았습니다. 세계 설정·주기·예산 등 미정인 제품 결정을 확정하지 않았습니다.

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.
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