Skip to content

Strengthen session-topic ordering contract on current main - #172

Draft
MoonCaves wants to merge 1 commit into
mainfrom
test/pr156-main-contract-tick1415
Draft

MoonCaves wants to merge 1 commit into
mainfrom
test/pr156-main-contract-tick1415

Conversation

@MoonCaves

Copy link
Copy Markdown
Owner

Strengthens the existing session-topic test with repeated labels, distinct segment references and summaries, and non-monotonic tag timestamps. This detects timestamp sorting and label collapse while preserving current XDG isolation and render assertions. No runtime behavior changes.

This extracts the bounded fixture from #156 onto current main. #114 contains the same fixture and must retain only one definition when reconciled.

Validation: Go 1.24 full race suite, static build, vet and lint passed; independent semantic/source review passed. The race run selected installed GNU coreutils through invocation-local PATH after Apple nohup failed the same focused hook test on both unchanged main and candidate. No product or test workaround was added. Normal pre-push provenance approval is recorded separately.

Adopt the pinned PR114/PR156 fixture strengthening in the existing TestTopicsSessionFlag only: three insertion-ordered segments, repeated labels, distinct references/summaries and nonmonotonic tag times. Preserve current main XDG/gdu attribution, neutral render header and summary assertions. Add the seven-line published-source record additively before the port; every existing source section remains.

Fresh main-relative unit only; no merge or cherry-pick of rejected broader integration 7ece05d and no runtime/hooks/serializer changes. Source reuse is same-repository published precedent, not independent external prior art. Parent owns final exact-head review/gates/publication.

Prior-Art: MoonCaves/rawclaw internal/agentproto/agentproto_test.go L1253-L1326 (MIT) @767be51bcca2bdbccf2f63c5e95d3edcff147032 -> internal/agentproto/agentproto_test.go
Prior-Art: dundee/gdu pkg/remove/trash_error_test.go L116-L116 (MIT) @4361b09ccc5850413bfec35bb2b904d96d2e5cb7 -> internal/agentproto/agentproto_test.go
Prior-Art: MoonCaves/rawclaw internal/agentproto/agentproto_test.go L1260-L1342 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/agentproto/agentproto_test.go
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