Phase 41i.1 — in-memory unified OODA and ThinkingLoop trace envelope #372

Open
toasterson wants to merge 13 commits from anima/01a08262-3ea3-7460-b2de-b2a08e28cd74 into main
Owner

Work item: 01a08262-3ea3-7460-b2de-b2a08e28cd74 (WI-405)

Production OODA decisions and ThinkingLoop steps share an in-memory trace envelope. It closes on completion and abandons on errors/unwind; legacy records without trace IDs remain readable. Safe-tool policy and trace ordering are preserved.

WI-405 keeps its existing Forgejo non-draft status; this does not assert exact-head CI/review approval or merge readiness.

ThoughtStep retains enum ordinal/index tag 110 and SeshatSynthesis uses 111; main 0–109 ordinals remain stable. Both branches use the exact shared TraceId declaration through the public provenance::TraceId re-export. WI-405 retains its AKHPRV2 codec and legacy AgentDecision 8/Delegation 89 decoder. Literal binary and actual ledger reopen/index fixtures cover both additions.

Old experimental WI-368/369 unversioned synthesis 110 redb data is incompatible with this canonical layout. No feature deployment occurred; exercised ledgers were disposable. Retained branch data requires its exact producer schema for export or an explicitly selected offline migration with rebuilt indexes. No heuristic dual decoding is provided. Named PostgreSQL/WAL JSON is unaffected.

Integration evidence: ordinary Git, selected only for the validation command (merge.mergiraf.driver=git merge-file %A %O %B), produces tree 28764bc82a53e7ba6bc916bfbf6722c084b5afc8, compiled/tested as unpublished validation commit 60e692fa25f5c7b677929c02ae031f7660a52445. All shared provenance files exactly match final WI-405 source. The local Mergiraf timeout/fallback duplicated imports despite reporting success; that result was rejected. Any merge must retain exactly one shared TraceId declaration/import and one explanation arm per new variant. No persistent Git configuration changed.

No deployment, paid inference, lifecycle advance, hold removal or dependency override occurred. Native exact-head CI/review and integration gates remain separate.

Validation on source 5da8ea8fc7: 41 named tests passed (provenance: test result: ok. 33 passed; 0 failed; 0 ignored; 0 measured; 4035 filtered out; finished in 2.58s; thinking-traces: test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 4063 filtered out; finished in 0.03s; ooda-traces: test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 4065 filtered out; finished in 2.35s). Server lib/akhomed and no-default lib checks, plus ordinary server-lib Clippy, passed; existing warnings remain. Combined tree: 68 provenance, synthesis, emitted-WAL, trace and explanation tests plus server lib/akhomed check passed. Reviewed source 5da8ea8fc7 differs from the named branch test source only by the explicitly reviewed equivalent explanation-arm relocation where applicable; final combined tests/compile cover that placement. Published head 7d01775f47 adds evidence documentation only. Both independent source reviews approved.

Work item: 01a08262-3ea3-7460-b2de-b2a08e28cd74 (WI-405) Production OODA decisions and ThinkingLoop steps share an in-memory trace envelope. It closes on completion and abandons on errors/unwind; legacy records without trace IDs remain readable. Safe-tool policy and trace ordering are preserved. WI-405 keeps its existing Forgejo non-draft status; this does not assert exact-head CI/review approval or merge readiness. ThoughtStep retains enum ordinal/index tag 110 and SeshatSynthesis uses 111; main 0–109 ordinals remain stable. Both branches use the exact shared TraceId declaration through the public provenance::TraceId re-export. WI-405 retains its AKHPRV2 codec and legacy AgentDecision 8/Delegation 89 decoder. Literal binary and actual ledger reopen/index fixtures cover both additions. Old experimental WI-368/369 unversioned synthesis 110 redb data is incompatible with this canonical layout. No feature deployment occurred; exercised ledgers were disposable. Retained branch data requires its exact producer schema for export or an explicitly selected offline migration with rebuilt indexes. No heuristic dual decoding is provided. Named PostgreSQL/WAL JSON is unaffected. Integration evidence: ordinary Git, selected only for the validation command (merge.mergiraf.driver=git merge-file %A %O %B), produces tree 28764bc82a53e7ba6bc916bfbf6722c084b5afc8, compiled/tested as unpublished validation commit 60e692fa25f5c7b677929c02ae031f7660a52445. All shared provenance files exactly match final WI-405 source. The local Mergiraf timeout/fallback duplicated imports despite reporting success; that result was rejected. Any merge must retain exactly one shared TraceId declaration/import and one explanation arm per new variant. No persistent Git configuration changed. No deployment, paid inference, lifecycle advance, hold removal or dependency override occurred. Native exact-head CI/review and integration gates remain separate. Validation on source 5da8ea8fc70a8c5ccb0e59b91c00e86228394e37: 41 named tests passed (provenance: test result: ok. 33 passed; 0 failed; 0 ignored; 0 measured; 4035 filtered out; finished in 2.58s; thinking-traces: test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 4063 filtered out; finished in 0.03s; ooda-traces: test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 4065 filtered out; finished in 2.35s). Server lib/akhomed and no-default lib checks, plus ordinary server-lib Clippy, passed; existing warnings remain. Combined tree: 68 provenance, synthesis, emitted-WAL, trace and explanation tests plus server lib/akhomed check passed. Reviewed source 5da8ea8fc70a8c5ccb0e59b91c00e86228394e37 differs from the named branch test source only by the explicitly reviewed equivalent explanation-arm relocation where applicable; final combined tests/compile cover that placement. Published head 7d01775f47893d12b594ef7d8569d26f1f2854a8 adds evidence documentation only. Both independent source reviews approved.
feat(provenance): unify in-memory thinking trace envelopes (WI-405)
Some checks failed
CI / check-seshat (pull_request) Successful in 30m41s
CI / test-session-platform (pull_request) Failing after 32m36s
CI / publish-chart (pull_request) Successful in 16m56s
CI / check-akh-medu (pull_request) Failing after 28m10s
CI / test-akh-medu (pull_request) Failing after 30m48s
CI / docker-seshd (pull_request) Failing after 33m56s
753e6cabc3
WI-405: 01a08262-3ea3-7460-b2de-b2a08e28cd74; working phase a0f4dd54-9f6a-5709-a704-ac9662f21328; attempt 2; base d82a712519.
Wire WI-405 trace envelopes into production OODA
Some checks failed
CI / check-seshat (pull_request) Successful in 3m27s
CI / test-sokar (pull_request) Successful in 11m53s
CI / test-akh-medu (pull_request) Successful in 10m35s
CI / docker-sokard (pull_request) Successful in 9m52s
CI / test-session-platform (pull_request) Successful in 18m19s
CI / check-akh-medu (pull_request) Successful in 13m49s
CI / docker-seshd (pull_request) Successful in 14m59s
CI / docker-akh-transcripts (pull_request) Successful in 16m54s
CI / publish-chart (pull_request) Failing after 31m2s
7e260db2e0
Author
Owner

Full-lane babysit 2026-10-01 — WI-405.

Exact head 7e260db2e003704030be7f9deb6379eb386e58d6, current main ad441fe9e2359a1bf315eda28a4b072cc56cee2d. Real merge-tree conflicted; branch is not already on main.

Trace implementation now includes deliberate_for_ooda and production_decide_joins_decisions_and_thoughts, so old missing-wiring diagnosis is stale. Merge conflicts with safe-tool OODA candidate policy and provenance tags108/109 now occupied by DelegatedCall/MemoryHygiene. Requires semantic integration preserving wire compatibility and policy, then exact-head review/CI.

Individual disposition also recorded in the Anima WI thread. No approval or CI gate was overridden.

Full-lane babysit 2026-10-01 — WI-405. Exact head `7e260db2e003704030be7f9deb6379eb386e58d6`, current main `ad441fe9e2359a1bf315eda28a4b072cc56cee2d`. Real merge-tree conflicted; branch is not already on main. Trace implementation now includes deliberate_for_ooda and production_decide_joins_decisions_and_thoughts, so old missing-wiring diagnosis is stale. Merge conflicts with safe-tool OODA candidate policy and provenance tags108/109 now occupied by DelegatedCall/MemoryHygiene. Requires semantic integration preserving wire compatibility and policy, then exact-head review/CI. Individual disposition also recorded in the Anima WI thread. No approval or CI gate was overridden.
Record current trace integration validation evidence
Some checks failed
CI / check-seshat (pull_request) Successful in 5m16s
CI / docker-seshd (pull_request) Successful in 16m49s
CI / check-akh-medu (pull_request) Successful in 24m9s
CI / docker-akh-transcripts (pull_request) Successful in 12m26s
CI / docker-sokard (pull_request) Successful in 27m19s
CI / test-sokar (pull_request) Successful in 59m57s
CI / publish-chart (pull_request) Successful in 41m51s
CI / test-session-platform (pull_request) Successful in 1h26m39s
CI / test-akh-medu (pull_request) Successful in 2h19m40s
CI / platform-images-home (pull_request) Has been cancelled
CI / platform-images-core (pull_request) Has been cancelled
CI / platform-images-daemons (pull_request) Has been cancelled
CI / platform-images-fleet (pull_request) Has been cancelled
CI / platform-images-collect (pull_request) Has been cancelled
3c969c08e3
docs: record exact provenance compatibility validation and merge limits
Some checks failed
CI / test-sokar (pull_request) Successful in 15m32s
CI / docker-seshd (pull_request) Successful in 10m46s
CI / publish-chart (pull_request) Successful in 4m9s
CI / docker-akh-transcripts (pull_request) Successful in 9m56s
CI / test-akh-medu (pull_request) Failing after 26m56s
CI / docker-sokard (pull_request) Successful in 22m9s
CI / check-seshat (pull_request) Successful in 47m2s
CI / check-akh-medu (pull_request) Successful in 1h1m57s
CI / test-session-platform (pull_request) Successful in 1h21m53s
CI / platform-images-home (pull_request) Has been skipped
CI / platform-images-core (pull_request) Has been skipped
CI / platform-images-daemons (pull_request) Has been skipped
CI / platform-images-collect (pull_request) Has been skipped
CI / platform-images-fleet (pull_request) Has been skipped
7d01775f47
Some checks failed
CI / test-sokar (pull_request) Successful in 15m32s
CI / docker-seshd (pull_request) Successful in 10m46s
CI / publish-chart (pull_request) Successful in 4m9s
CI / docker-akh-transcripts (pull_request) Successful in 9m56s
CI / test-akh-medu (pull_request) Failing after 26m56s
CI / docker-sokard (pull_request) Successful in 22m9s
CI / check-seshat (pull_request) Successful in 47m2s
CI / check-akh-medu (pull_request) Successful in 1h1m57s
CI / test-session-platform (pull_request) Successful in 1h21m53s
CI / platform-images-home (pull_request) Has been skipped
CI / platform-images-core (pull_request) Has been skipped
CI / platform-images-daemons (pull_request) Has been skipped
CI / platform-images-collect (pull_request) Has been skipped
CI / platform-images-fleet (pull_request) Has been skipped
This pull request has changes conflicting with the target branch.
  • src/agent/ooda.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin anima/01a08262-3ea3-7460-b2de-b2a08e28cd74:anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git switch anima/01a08262-3ea3-7460-b2de-b2a08e28cd74

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git switch anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git rebase main
git switch main
git merge --ff-only anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git switch anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git rebase main
git switch main
git merge --no-ff anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git switch main
git merge --squash anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git switch main
git merge --ff-only anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git switch main
git merge anima/01a08262-3ea3-7460-b2de-b2a08e28cd74
git push origin main
Sign in to join this conversation.
No reviewers
No labels
follow-up
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
toasterson/akh-medu!372
No description provided.