Skip to content

feat: add durable activity history#62

Merged
roodboi merged 12 commits into
mainfrom
codex/hack-932-activity-history
Jul 15, 2026
Merged

feat: add durable activity history#62
roodboi merged 12 commits into
mainfrom
codex/hack-932-activity-history

Conversation

@roodboi

@roodboi roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • persist immutable, idempotent per-run activity event segments with opaque scope/resource lineage
  • add bounded cursor-paginated history queries with scope, time, item, and event filters
  • make retention, no-backfill migration, corruption, pruning, and aggregate truncation explicit
  • preserve the existing fast activity snapshot and keep history machine-local and vendor-free

Boundaries

  • no action-locator or action-plan schema changes
  • no typed MCP route in this PR; the CLI/JSON contract is the authoritative consumer surface
  • no export or external mutation capability

Verification

  • bun run check
  • bun run type-check
  • ./scripts/test-safe.sh (572 tests)
  • bun run build
  • bun run build:verify
  • bun run pack:dry-run
  • isolated compiled-binary history JSON smoke

Closes HACK-932

@linear-code

linear-code Bot commented Jul 15, 2026

Copy link
Copy Markdown

HACK-932

@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Please review exact head 865d762, including append/idempotency, retention and lineage-head bounds, migration/corruption/truncation completeness, cross-scope identity collisions, cursor semantics, and portable privacy. The full 572-test suite, typecheck/lint, compiled binary verification, pack dry-run, and isolated binary smoke pass.

@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Please review exact head 5e2cbca. This supersedes the prior head after a bounded-pagination progress fix: segment-level time/cursor pruning prevents rescanning newer pages, and aggregate scopes receive fair per-scope scan budgets. The full 572-test pre-commit suite, focused history/CLI tests, typecheck, and lint pass on this head.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e2cbcaafd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/activity-history.ts
Comment thread src/activity-history.ts Outdated
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review Please review the exact latest head f096106. The two prior findings are fixed, replied to with regression evidence, and resolved. Please report any remaining actionable issues against this exact head.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f096106f08

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/activity-history.ts Outdated
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review Please review exact latest head ae70e80696d68a025e35309a361cfd302464c4ea. All three prior findings are fixed with regression coverage, replied to, and resolved. Please report any remaining actionable issues against this exact head.

@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Correction: the exact latest head is ae70e80. @codex review Please use this GitHub head SHA; all prior findings are fixed with regression coverage, replied to, and resolved.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae70e8064d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/activity-history.md Outdated
@roodboi roodboi force-pushed the codex/hack-932-activity-history branch from ae70e80 to 28b4f09 Compare July 15, 2026 20:06

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Please review exact latest head 28b4f09ae96316990d93d8459ae14073568b3d2d, rebased onto current main 33f5615. All prior findings are fixed, replied to with evidence, and resolved. Please report any remaining actionable issue against this exact head, especially append/idempotency, bounded retention and pagination, composite scope/run identity, corruption/migration/truncation signaling, and portable privacy.

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review exact head 28b4f09ae96316990d93d8459ae14073568b3d2d.

The prior exact-head request remains at an eyes-only in-progress reaction with no submitted review or new thread. Please complete this one exact-head review and report clean or actionable findings; do not review an earlier SHA.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 28b4f09ae9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/evolution-loop.ts
Comment thread src/activity-history.ts Outdated

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Please review exact latest head b26481b8fdd58a2dda5205fd4d02c6d2e7bfa0f0. The two findings from the prior review are fixed with focused regressions, replied to, and resolved. Please report any remaining actionable issue against this exact head; if clean, provide the terminal clean reaction.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b26481b8fd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/evolution-loop.ts Outdated

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Please review exact latest head 63989ebbb23b0ecc0374c621370e3168778e7e1b. The prior finding is fixed with a malformed-history regression, replied to, and resolved. Please report any remaining actionable issue against this exact head; if clean, provide the terminal clean reaction.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 63989ebbb2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review exact head 63989ebbb23b0ecc0374c621370e3168778e7e1b.

The prior request removed its eyes reaction without adding a review, thread, or clean 👍. Please complete the exact-head review and leave an explicit terminal clean reaction or actionable finding.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63989ebbb2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/evolution-loop.ts
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4f69908023

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ai.ts Outdated
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@roodboi roodboi force-pushed the codex/hack-932-activity-history branch from 0fe81b8 to d2da380 Compare July 15, 2026 21:01
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: d2da380f60

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d2da380f60

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/activity-history.ts
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d876774efa

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ai.ts Outdated
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 204bd3a53d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/evolution-loop.ts
@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: c03d64060e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@roodboi

roodboi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: c03d64060e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@roodboi roodboi merged commit 1a0080e into main Jul 15, 2026
3 checks passed
@roodboi roodboi deleted the codex/hack-932-activity-history branch July 15, 2026 21:54
github-actions Bot pushed a commit that referenced this pull request Jul 15, 2026
## [2.27.0](v2.26.0...v2.27.0) (2026-07-15)

### Features

* add durable activity history ([#62](#62)) ([1a0080e](1a0080e))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.27.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant