[PR #1064] [MERGED] feat(slurp2): map every generation step in Deep details #1276

Closed
opened 2026-10-21 05:07:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1064
Author: @Gunterlie
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @Gunterlie

Base: staging ← Head: slurp2-deep-details-timeline


📝 Commits (3)

  • ff2a407 feat(slurp2): map every generation step in Deep details (#1063)
  • 24ba6a6 fix(slurp2): address Deep details review findings (#1063)
  • 1f59f1e feat(slurp2): open Deep details from Stories and locked posts (#1063)

📊 Changes

43 files changed (+3704 additions, -1010 deletions)

View changed files

➕ artifacts/slurp2-0.2.36.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+12 -12)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+12 -12)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+12 -12)
📝 packages/slurp2/CHANGELOG.md (+10 -0)
📝 packages/slurp2/client.js (+56 -47)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+339 -292)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenMoments.tsx (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenProfile.tsx (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+17 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpConnectionsPanel.tsx (+20 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/de.json (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+3 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/ko.json (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/pl.json (+2 -0)
➕ packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpDeepDetailsCanvas.tsx (+319 -0)

...and 23 more files

📄 Description

Pull request

Linked issue

Closes #1063

Why this change

  • When a Slurp2 picture looks wrong, Deep details could not explain why. It kept the writing prompt and the final provider prompt, but none of the image pipeline in between, and redraws or reviewed images never updated it. On a production install this left grey, off-identity pictures impossible to diagnose.
  • The AI writing connection (modelBudget.connectionId) was only reachable deep inside World › Audiences and was missing from the Connections panel.

What changed

  • Recorded image runs (server). generateCreatorPostImage now builds an image run and hands it to an onImageRun recorder: trigger, settings snapshot, appearance source and text, reference count, rendered template, style profile and who chose it (Creator or Slurp), styled prompt, rewrite status, reason, model, full chat and answer, final and negative prompt, which setting chose the image connection, the fallback connection, and each provider attempt with timing, route, served-by fallback, and the provider's effective prompt. Only display fields of connections are copied; no API key or base URL reaches the record. The last 5 runs are kept (appendSlurpPostDeepDetailsImageRun).
  • Runs are recorded from every path with a Deep details record: generation, prompt review, reviewed confirmation, automatic retry (slp-reviewed-images-service.ts), and the reserve. A busy-connection deferral records nothing.
  • rewriteSlpImagePrompt reports the connection, model, and chat it sent; the post record now also stores the text connection id and name.
  • Structure. The reviewed and retried image service moved out of slp-images-service.ts into slp-reviewed-images-service.ts, and run bookkeeping lives in slp-image-run.ts, keeping every file under the 800-line limit. tests/slurp2-source.ts maps the split. The shared provider request is built once instead of twice.
  • Deep details UI (client). Three views of one graph (slp-deep-details-flow.ts):
    • Flowchart: numbered steps from plan to saved picture, each with what happens, why, input, output, and exact text as expandable previews with copy.
    • Canvas: the same graph as a drag-and-zoom diagram; choosing a card opens its full record.
    • All data: the previous detailed list, now with every image run.
    • A data map (slp-deep-details-origins.ts) gives every value its origin and where to change it, and draws source arrows from one table.
    • Posts without a recorded run (reused pictures, text-only, older posts) still explain their picture half; missing steps say "Not recorded" and are never filled from current settings.
  • Connections panel. Adds the AI writing connection with the correct fallback text (it falls back to the text generation connection, not the Engine default); locales en, de, ko, pl.
  • Slurp2 0.2.34 → 0.2.36 (0.2.35 was a sideload-only test build; both entries are in the changelog and splash notes). Rebuilt payloads, manifest, artifact, and catalogs.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none; still Capability API 1.31. Uses the existing effectiveConnection / effectivePrompt fields of the Engine image result when present.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: the Deep details record gains optional imageRuns (capped at 5) and optional model fields; older records still load and show "Not recorded". Records remain Creator-private and are deleted with their post.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-run checks (not a substitute for the human checklist above):

  • npm run check: 0 errors (warnings unchanged from staging).
  • validate-catalog, test-catalog-lanes, validate-package-locales, catalog-release-notes regression, typecheck-packages slurp2, git diff --check: pass.
  • tests/slurp2-architecture.regression.ts, tests/slurp-deep-details.regression.ts (run recording, attempt order, credential exclusion, failure recording, graph order, origins for every step input, reused and legacy picture halves), slurp2-release-notes, slurp-image-prompt-wiring, slurp2-image-prompt-boundaries, slurp-generation-integrations, slurp-image-brief, slurp2-explicit-level, slurp2-artwork-options, slurp-automatic-posting: pass.
  • Full slurp/slurp2 regression comparison against clean staging: no new failures (the pre-existing failures on staging are unchanged).
  • Sideloaded to a production Engine: the package loads, and an automatic retry recorded a full image run (style profile, accepted rewrite, provider 401 error). The redesigned UI has not been visually checked by the agent (no browser available).

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Not captured yet.

Summary by CodeRabbit

  • New Features
    • Deep Details now offers numbered generation steps, a connected flowchart, and a zoomable canvas showing how text and images were produced.
    • Image-generation history now records prompts, settings, connection choices, provider attempts, and results, with details available for recent runs.
    • The Connections panel now includes the AI writing connection used for replies, messages, and activity.
  • Release
    • Updated Slurp Remastered to version 0.2.36.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1064 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/24/2026 **Status:** ✅ Merged **Merged:** 9/24/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `slurp2-deep-details-timeline` --- ### 📝 Commits (3) - [`ff2a407`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ff2a407ed3e3bb2cd4d4139a12fabd74bd9c035a) feat(slurp2): map every generation step in Deep details (#1063) - [`24ba6a6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/24ba6a67e8c03833cf6695b075f3a0a6f3e163bc) fix(slurp2): address Deep details review findings (#1063) - [`1f59f1e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1f59f1ec5bb5c78109eeb481748ee189d1c53f4d) feat(slurp2): open Deep details from Stories and locked posts (#1063) ### 📊 Changes **43 files changed** (+3704 additions, -1010 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.2.36.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+12 -12) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+12 -12) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+12 -12) 📝 `packages/slurp2/CHANGELOG.md` (+10 -0) 📝 `packages/slurp2/client.js` (+56 -47) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+339 -292) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenMoments.tsx` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenProfile.tsx` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+17 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpConnectionsPanel.tsx` (+20 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/de.json` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+3 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/ko.json` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/pl.json` (+2 -0) ➕ `packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpDeepDetailsCanvas.tsx` (+319 -0) _...and 23 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1063 ## Why this change - When a Slurp2 picture looks wrong, Deep details could not explain why. It kept the writing prompt and the final provider prompt, but none of the image pipeline in between, and redraws or reviewed images never updated it. On a production install this left grey, off-identity pictures impossible to diagnose. - The AI writing connection (`modelBudget.connectionId`) was only reachable deep inside World › Audiences and was missing from the Connections panel. ## What changed - **Recorded image runs (server).** `generateCreatorPostImage` now builds an image run and hands it to an `onImageRun` recorder: trigger, settings snapshot, appearance source and text, reference count, rendered template, style profile and who chose it (Creator or Slurp), styled prompt, rewrite status, reason, model, full chat and answer, final and negative prompt, which setting chose the image connection, the fallback connection, and each provider attempt with timing, route, served-by fallback, and the provider's effective prompt. Only display fields of connections are copied; no API key or base URL reaches the record. The last 5 runs are kept (`appendSlurpPostDeepDetailsImageRun`). - Runs are recorded from every path with a Deep details record: generation, prompt review, reviewed confirmation, automatic retry (`slp-reviewed-images-service.ts`), and the reserve. A busy-connection deferral records nothing. - `rewriteSlpImagePrompt` reports the connection, model, and chat it sent; the post record now also stores the text connection id and name. - **Structure.** The reviewed and retried image service moved out of `slp-images-service.ts` into `slp-reviewed-images-service.ts`, and run bookkeeping lives in `slp-image-run.ts`, keeping every file under the 800-line limit. `tests/slurp2-source.ts` maps the split. The shared provider request is built once instead of twice. - **Deep details UI (client).** Three views of one graph (`slp-deep-details-flow.ts`): - Flowchart: numbered steps from plan to saved picture, each with what happens, why, input, output, and exact text as expandable previews with copy. - Canvas: the same graph as a drag-and-zoom diagram; choosing a card opens its full record. - All data: the previous detailed list, now with every image run. - A data map (`slp-deep-details-origins.ts`) gives every value its origin and where to change it, and draws source arrows from one table. - Posts without a recorded run (reused pictures, text-only, older posts) still explain their picture half; missing steps say "Not recorded" and are never filled from current settings. - **Connections panel.** Adds the AI writing connection with the correct fallback text (it falls back to the text generation connection, not the Engine default); locales en, de, ko, pl. - Slurp2 0.2.34 → 0.2.36 (0.2.35 was a sideload-only test build; both entries are in the changelog and splash notes). Rebuilt payloads, manifest, artifact, and catalogs. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none; still Capability API 1.31. Uses the existing `effectiveConnection` / `effectivePrompt` fields of the Engine image result when present. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: the Deep details record gains optional `imageRuns` (capped at 5) and optional model fields; older records still load and show "Not recorded". Records remain Creator-private and are deleted with their post. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-run checks (not a substitute for the human checklist above): - `npm run check`: 0 errors (warnings unchanged from staging). - `validate-catalog`, `test-catalog-lanes`, `validate-package-locales`, `catalog-release-notes` regression, `typecheck-packages slurp2`, `git diff --check`: pass. - `tests/slurp2-architecture.regression.ts`, `tests/slurp-deep-details.regression.ts` (run recording, attempt order, credential exclusion, failure recording, graph order, origins for every step input, reused and legacy picture halves), `slurp2-release-notes`, `slurp-image-prompt-wiring`, `slurp2-image-prompt-boundaries`, `slurp-generation-integrations`, `slurp-image-brief`, `slurp2-explicit-level`, `slurp2-artwork-options`, `slurp-automatic-posting`: pass. - Full slurp/slurp2 regression comparison against clean staging: no new failures (the pre-existing failures on staging are unchanged). - Sideloaded to a production Engine: the package loads, and an automatic retry recorded a full image run (style profile, accepted rewrite, provider 401 error). The redesigned UI has not been visually checked by the agent (no browser available). ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not captured yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Deep Details now offers numbered generation steps, a connected flowchart, and a zoomable canvas showing how text and images were produced. * Image-generation history now records prompts, settings, connection choices, provider attempts, and results, with details available for recent runs. * The Connections panel now includes the AI writing connection used for replies, messages, and activity. * **Release** * Updated Slurp Remastered to version 0.2.36. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:07:32 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1276
No description provided.