Skip to content

feat(runtime)!: add durable goals and a bounded loop guard - #308

Merged
lg2m merged 1 commit into
mainfrom
feat/eng-1045-durable-goals
Oct 16, 2026
Merged

lg2m merged 1 commit into
mainfrom
feat/eng-1045-durable-goals

Conversation

@lg2m

@lg2m lg2m commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Adds durable session goals and the AC4 loop guard: client-owned controls, revision-fenced model updates, bounded goal notices across replay/compaction, and bounded progress detection. This is a G0/AC4 foundation checkpoint; full goal acceptance remains open.

Related: ENG-1045. Specification: goals G0; remaining core qualification is tracked in reliability.

Behavior

  • Captured goal identity and revision fence authority; check edits and denials preserve unrelated stopped states.
  • Frozen context and ordered notices survive side questions, replay and compaction. Goal-write admission observes cancellation/deadlines; admitted writes await durability.
  • Managed check denies use a closed set of inspected execution forms; unknown launchers refuse authority. Ordinary approvals and empty managed policy retain their existing behavior.

Removed PR319

The stack is based on clean main 73ff0647 and excludes the accidentally merged Jev protocol/transport work. Neither removed commit 60dd03db nor replay bf786880 is reachable. All four PR319-added files and its added approval provenance fields are absent. Runtime source and manifests match the reviewed pre-Jev foundation b39fd753; the legitimate installer and documentation consolidation remain. Independent exclusion review: Approve.

Verification and limits

  • Fresh workspace all-target/all-feature Clippy, formatting and lint pass; protocol/documentation checks: 87 passed.
  • Fresh current-head CI 38837857403 passes formatting, lint, Clippy, affected tests and smoke. Website build also passes. Older duplicate runs were cancelled by workflow concurrency; no test-failure claim is inferred from those cancellations.
  • Protocol 33 / store schema 51 are intentional goal compatibility changes; older binaries refuse upgraded stores.
  • Quiet-host performance, T13, complete G0/G2 and later goal slices remain open. No performance waiver or whole-roadmap completion is claimed. feat(runtime)!: drive durable goals and retain historical spending #309 supplies the stacked driver checkpoint.

lg2m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the implemented G0/AC4 foundation against its documented scope and repository review rules. This is a draft with explicitly open performance, T13 and later driver/check/surface gates. Focus on concrete correctness, durability, authority and bounds defects in the diff; do not treat stated unfinished later slices as implemented.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-10-16T02:06:20.178807Z f078cca New commits
ℹ️ 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.

lg2m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

Fresh controlled recording is running: https://github.com/retsu-AI/qq/actions/runs/38626845913

Baseline main007adcda75454958ed48ccc81d4cc66d663c80e9; candidate/common fixture9b0130cbe04205b9533b8d0b3b760d3ae6d33706. Existing runner records thirty A/B and thirty A/A pairs with source/fixture/binary/profile/pressure receipts. Artifacts must be checked before any current-head performance conclusion; the goal-enabled and T13 gates remain separate and open.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: f7806bf4e9

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

lg2m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Head 804948b repairs the native deadline test's phase premise: wait for actual process spawn, then advance paused time past the original deadline. Existing teardown, no-late-write and session-reuse assertions remain. Production code is unchanged. Isolated workspace: 2,431 top-level passed, 0 failed, 15 explicit skips; fmt, all-target/all-feature Clippy and build pass. Previous findings remain settled. Performance/T13 remain open as described; this requests review of the test-only delta.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 804948b08b

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

@lg2m
lg2m added this pull request to stack #310 October 14, 2026 20:43
@lg2m
lg2m marked this pull request as ready for review October 14, 2026 21:38

lg2m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Published current-main integration at 390110c1344d628c600f9dd856420fddafa75a08. GitHub now reports the PR mergeable with conflicts cleared. Deployed schema 47–50 notices/projections and descriptor 15 policies are preserved; goal migration uses schema 51. Workspace formatting, Clippy, build and full tests pass (2512 raw reported passes including nested subprocess tests, zero failures, 15 skips). The PR description records the initial timeout and subsequent isolated/full passes, and keeps performance/T13 acceptance open. Please review the new integration; earlier approvals apply to their reviewed heads.

@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: 3d4ea08f7b

ℹ️ 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 crates/qq-core/src/sessions/goals.rs Resolved
Comment thread crates/qq-core/src/sessions/goals.rs Resolved
Comment thread crates/qq-core/src/approval/classify.rs Resolved
Comment thread crates/qq-core/src/approval/classify.rs Resolved
Comment thread crates/qq-core/src/runtime/run_loop.rs Resolved
Comment thread crates/qq-core/src/runtime/run_loop.rs 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: bc7951d965

ℹ️ 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 crates/qq-core/src/approval/classify.rs 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: 0eeebea7d6

ℹ️ 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 crates/qq-core/src/approval/classify.rs 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: 0e85e5fc47

ℹ️ 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 crates/qq-core/src/approval/classify.rs 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: 02fd3ff803

ℹ️ 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 crates/qq-core/src/approval/classify.rs Resolved
@lg2m

lg2m commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator Author

Rebased and published onto current main 55936a1e (v0.1.7). Current #308 head: b39fd753; #309 is stacked at 82b2d7b7. Both refs updated atomically with explicit leases, and GitHub reports both MERGEABLE. #308 has11/11 review conversations resolved; #309 has20/20, with the two valid last findings fixed in the published driver and the ownership counterexample documented.

Validation: workspace formatting, repository lint and affected Clippy pass. Local affected tests:2240/2314pass,74fail,14skips;68failures are socket/callback restrictions and6are session timeouts. Isolated serial rerun of those6:5pass/1checkpoint timeout (a_truncated_slice_report_keeps_its_notice_on_replay). That test passed the prior isolated run, but the current local gate is RED and remains unqualified. No assertions/timeouts changed and no performance waiver. Fresh hosted CI must pass before merge.

@lg2m
lg2m force-pushed the feat/eng-1045-durable-goals branch from b39fd75 to 0a6adaf Compare October 16, 2026 01:33
@lg2m
lg2m force-pushed the feat/eng-1045-durable-goals branch 2 times, most recently from 2fb0e9d to 81eee50 Compare October 16, 2026 01:46
ENG-1045 / G0 / AC4 foundation checkpoint. Rebase onto current main 73ff064. Exclude accidentally merged PR319 (Jev protocol/transport provenance). Preserve reviewed pre-Jev runtime behavior, current installer, and main documentation consolidation. Full goal/performance acceptance remains open.
@lg2m
lg2m force-pushed the feat/eng-1045-durable-goals branch from 81eee50 to f078cca Compare October 16, 2026 01:56
@lg2m
lg2m merged commit 87d3ed1 into main Oct 16, 2026
8 checks passed
@lg2m
lg2m deleted the feat/eng-1045-durable-goals branch October 16, 2026 02:47
lg2m added a commit that referenced this pull request Nov 3, 2026
Removing session goals drops identifier!(GoalId), which restores the file
as it was before #308 added goals.

QQ-Allow-Revert: crates/qq-protocol/src/ids.rs
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