mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4264] [Feature]: Expose chat branch lineage to capability agents #2307
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2307
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4264
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Capability agents can access chat records, but they cannot reliably determine whether a chat is a branch, identify its immediate parent, or locate the fork boundary. That prevents lineage-aware agent workflows and forces packages to depend on storage-specific metadata.
Proposed solution
Expose normalized branch metadata on
CapabilityChatRecord, including the branch title, immediate parent chat ID, source fork message ID, and copied child message ID. Persist lineage for Engine-created branches, return null lineage fields for roots and branches without known relationships, and keep parent lineage unchanged when a parent is deleted.Remove branch IDs from generic chat export, backup, and imported metadata because IDs are installation-specific. Bump the supported Capability API to 1.7, document the contract, and add regression coverage for the lineage and sanitization paths.
Alternatives considered
Additional context
The implementation includes
scripts/regressions/chat-branch-lineage.regression.tsand updates the chat branch and optional agent package documentation.Template check