Skip to content

Port upstream #641: durable skill reflection run records - #13

Open
bruno320x wants to merge 2 commits into
bruno320x:integration/upstream-prsfrom
spacedriveapp:capy/skill-reflection-run-record
Open

bruno320x wants to merge 2 commits into
bruno320x:integration/upstream-prsfrom
spacedriveapp:capy/skill-reflection-run-record

Conversation

@bruno320x

Copy link
Copy Markdown
Owner

Compatibility/port PR for spacedriveapp#641. Persists skill-reflection lifecycle records and surfaces them on the activity timeline. Staged on integration/upstream-prs.

…rface

Add a persisted reflection_run lifecycle table and event for the
skill-reflection pump. Every reflection pass (riding the memory-
persistence branch) now records agent/channel identity, trigger
provenance, referenced worker IDs, start/end timestamps, terminal
status (success/no_op/error), declared rationale distinct from
observed actions, outcome summary, and affected skill identifiers.

ReflectionRunCompleted flows through the shared ProcessEvent bus,
the existing ApiEvent SSE pipeline, and renders as an inline card
in the portal timeline — same pattern as chronicle checkpoints,
no parallel event system.

Deferred curation (snapshots, stale/archive passes, consolidation)
and full SkillInspector surface remain for follow-up PRs as
documented in the updated skill-lifecycle.md shipped-status section.
The reflection_run timeline type is client-only (not in the OpenAPI
TimelineItem union). Use double-cast through unknown for pushItem and
Record<string,unknown> for the type discriminator in PortalTimeline,
matching the existing pattern used by checkpoint rendering.
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: f88e019d-0602-4bb2-8de4-16c03e2cf052

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-15T13:35:42.351793Z c9b31d8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

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

2 participants