Skip to content

feat(changelog): workspace changelog of releases with markdown bodies and the Sim changelog tool - #8859

Merged
TheodoreSpeaks merged 13 commits into
stagingfrom
feat/changelog
Oct 10, 2026
Merged

TheodoreSpeaks merged 13 commits into
stagingfrom
feat/changelog

Conversation

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator

Summary

  • Workspace changelog: a timeline of releases, each with a title, an editable version label, a bump reason, change lines, and a markdown body (```dashboard fences, mermaid, tables)
  • Release bodies are owned workspace files (context='changelog', changelog/<id>.md); generalized the test-file special cases into an owned-file registry (lib/workspace-files/owned-files.ts) that tests and changelog both register in, so reads, edits, versions, and secret provenance go through one path
  • Version is computed server-side from the workspace's highest release plus a major/minor/patch bump; a unique index guards duplicates and a revision guard rejects stale edits
  • changelog Mothership tool (list / get / publish / update) behind a changelog entitlement; each change defaults its chat link to the publishing chat
  • UI ported from the playground prototype: date + version rail, "N workflows deployed" modal (name + deployed version), inline notes editing, title/version modal; gated by the changelog feature flag with a sidebar entry
  • Retention purge treats changelog bodies as billed and removes an archived workspace's releases with their bodies (same as test sources)
  • Migration 0404: changelog_release, changelog_change (new tables only)

Type of Change

  • New feature

Testing

  • bun run lint, bun run check:audits, block registry check, docs-manifest:check, check:migrations origin/staging, drizzle-kit generate clean
  • cleanup-soft-deletes.integration.ts (real Postgres): new changelog purge case, fails without the fix
  • bun run test: all packages pass except 3 rate-limit / execution-timeout tests that fail identically on staging in my local env
  • E2E via the Sim CLI against a local worker: list, publish (bump + workflow/deploy/chat links), update (revision guard), body file edit

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

🤖 Generated with Claude Code

https://claude.ai/code/session_0158kHaMvbWMkHpNCoxeSsRx

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Oct 9, 2026 11:23pm UTC

Request Review

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 76 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/background/cleanup-soft-deletes.ts
Comment thread apps/sim/lib/changelog/version.ts Outdated
Comment thread apps/sim/lib/api/contracts/changelog.ts
Comment thread apps/sim/lib/changelog/application/changelog.ts Outdated
Comment thread apps/sim/lib/changelog/repository.ts
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 78 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/uploads/shared/types.ts
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The change since the last review appears safe to merge.

Summary

Adds a workspace release timeline and the changelog tool. Release bodies use the shared file paths for reads, edits, history, and stored secret records.

  • Sim publishes workspace releases with calculated versions and linked changes.
  • Sim can publish and update releases with the changelog tool.
  • Release notes use the same owned-file path as workflow test files.
  • The workspace changelog shows releases in a timeline people can edit.
  • Expired release notes and releases are removed together during workspace cleanup.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  Tool["changelog tool"] --> Access["Check workspace access and feature flag"]
  Access --> Publish["Publish release"]
  Publish --> Transaction["Save body, release, and change lines together"]
  Transaction --> DB[("Postgres")]
  Page["Workspace changelog"] --> List["List release details"]
  List --> DB
  Page --> Files["Shared file reads and edits"]
  Files --> Body["Release Markdown body"]
Loading

Reviews (7) · Last reviewed commit: "test(changelog): assert the losing publi..." · Reviewed by Greptile

Comment thread apps/sim/background/cleanup-soft-deletes.ts
Comment thread apps/sim/lib/changelog/application/changelog.ts Outdated
Comment thread apps/sim/lib/changelog/application/changelog.ts
Comment thread apps/sim/app/workspace/[workspaceId]/changelog/changelog.tsx Outdated
Comment thread apps/sim/lib/changelog/application/changelog.ts Outdated
Comment thread packages/db/schema.ts Outdated
Comment thread apps/sim/lib/changelog/application/changelog.ts Outdated
Comment thread apps/sim/lib/changelog/version.ts Outdated
Comment thread apps/sim/app/workspace/[workspaceId]/changelog/changelog.tsx Outdated
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 80 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/changelog/application/changelog.ts Outdated
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 80 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 81 files

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/api/contracts/mothership-management-tools.ts
Comment thread apps/sim/lib/changelog/repository.integration.ts Outdated
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 81 files

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/changelog/repository.integration.ts Outdated
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 81 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

@TheodoreSpeaks
TheodoreSpeaks merged commit 4beed5a into staging Oct 10, 2026
48 checks passed
@TheodoreSpeaks
TheodoreSpeaks deleted the feat/changelog branch October 10, 2026 00:39

This branch was previously deployed

1 inactive deployment
Preview — eece5368 Deployed Oct 9, 2026 by vercel[bot]
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