8000 fix(ci): retain verifiable history across rebased pushes by dominicnunez · Pull Request #197 · dominicnunez/agentos · GitHub
[go: up one dir, main page]

Skip to content

fix(ci): retain verifiable history across rebased pushes - #197

Closed
dominicnunez wants to merge 1 commit into
mainfrom
fix/ci-rebased-history
Closed

dominicnunez wants to merge 1 commit into
mainfrom
fix/ci-rebased-history

Conversation

@dominicnunez
Copy link
Copy Markdown
Owner

Rebasing and force-pushing a branch left push CI unable to resolve its previous head. Simply fetching that commit was insufficient: it could also cease to be an ancestor, which the history verifier correctly rejects.

Fetch the previous branch head through the pinned checkout action before checking out the assessed source, with credentials removed after each checkout. For existing branch pushes, resolve one common ancestor and verify every current commit after it. Rewinds still verify the target commit against its parent. Missing, unrelated, ambiguous, invalid, or root-only history fails explicitly. PRs retain the exact tested base; new-branch and tag selection remain unchanged. The committed-source and history verifier is unchanged.

Validation: 84 Python tests passed, covering real Git fast-forwards, rebases, unreachable previous heads, rewinds, and rejection paths alongside existing source/history safeguards. Actionlint passed. The exact PR #193 before/head pair resolved to its shared ancestor and produced two byte-identical verified assessment bundles.

Closes #196. Unblocks #193; the broader #178 acceptance work remains separate.

@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Sep 12, 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
📝 Code Review ✅ Completed 2026-09-12T11:50:36.721857Z 5995789 New commits
🔒 Security Review ✅ Completed 2026-09-12T10:58:36.611403Z 837fc5c 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.

dominicnunez added a commit that referenced this pull request Sep 12, 2026
Long writer validation could occupy the ledger's sole working connection long enough to prevent safety reads, cancelling otherwise healthy execution with `containment_unavailable`. This is a confirmed failure mechanism consistent with the two distinct-account routing failures blocking #197; the original CI scheduling failure was not independently reproduced.

Authority observations now use a separate, single-connection pool against the same committed ledger. Writer admission remains transactional and serialized. The existing one-second watchdog, 250-ms poll deadline, 50-ms database wait, freeze history, and exact cancellation causes are preserved. Startup rejects connection-private database paths whose observer cannot see the migrated ledger; normal file storage and `:memory:` remain supported. Both pools are closed with the store, and the private-memory keeper remains independent.

Regression coverage checks live observation, dispatch rechecks, and nested admission during writer validation; subsequent committed holds must still cancel with the exact hold cause. Existing unavailable-reader tests now occupy the observation connection. Real exclusive-lock tests remain intact, and forced observer disposal verifies private-memory authority survives.

Validation:
- The final regression fails on main for blocked dispatch authority reads in both memory and file storage.
- New/updated focused cases passed three race repetitions; five distinct-account routing repetitions passed.
- Full ledger, application, inference, and recovery race suites passed. The final startup-query cleanup also passed focused race regressions.
- Build, vet, lint, architecture boundaries, and controlled-document validation passed.

Closes #198.
@dominicnunez
dominicnunez deleted the fix/ci-rebased-history branch September 12, 2026 14:33
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.

fix(ci): verify push history after rebasing

1 participant

0