Skip to content

feat(chat): add notebook agent harness artifacts#97

Open
EricNGOntos wants to merge 2 commits into
mainfrom
feat/wuchengke/notebook-agent-harness-release
Open

feat(chat): add notebook agent harness artifacts#97
EricNGOntos wants to merge 2 commits into
mainfrom
feat/wuchengke/notebook-agent-harness-release

Conversation

@EricNGOntos

@EricNGOntos EricNGOntos commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the Notebook Agent Harness runtime with explicit intent declaration, context policy, retrieval ledger, manifest finalization, and validator feedback.
  • Route Notebook chat through the harness so KNOWHERE remains an evidence provider while the outer agent handles intent, planning, retrieval, artifact selection, and answer shaping.
  • Persist chat artifacts and render selected image artifacts before legacy image citation fallback, so requests like 'only 2 images' show the agent-selected set.
  • Add the chat message artifacts migration and clear local release checks, including the Next SWC lockfile patch.

Validation

  • pnpm run typecheck
  • pnpm test
  • pnpm run lint (passes with one existing warning in src/domains/sources/route-upload.ts)
  • pnpm run build
  • Real local trajectory checks with DeepSeek + local Knowhere: unrelated follow-up isolated with carryHistory=none; image-count request produced desiredCount=2/maxCount=2 and displayedArtifactCount=2.

Effect Guides Consulted

  • effect-solutions: basics
  • effect-solutions: data-modeling

Release notes

  • Requires production env to have AI_GATEWAY_API_KEY, DATABASE_URL, KNOWHERE_BASE_URL, NOTEBOOK_PUBLIC_URL, and QSTASH_TOKEN where background reconcile is expected.
  • Requires DB migration 0008_chat_message_artifacts.sql before relying on persisted artifacts.
  • No KNOWHERE-MAIN navigation changes are included; KNOWHERE remains the retrieval/evidence provider.

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
knowhere-notebook-staging Ready Ready Preview, Comment Jun 12, 2026 1:47pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
knowhere-notebook Ignored Ignored Jun 12, 2026 1:47pm

Request Review

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