Hackpert: defend transition reason inspection strings #154

Open
nsaspy wants to merge 2 commits from hackmode-rage-hackpert/transition-reason-copy into master
Owner

Slice

Bug-first Hackpert operator-inspection hardening for #29/#27.

expert-loop-transition-inspection already defensively copies operation/run scope, but a mutable string decision reason is still stored and returned by alias. That lets source or caller mutation rewrite a supposedly side-effect-free historical transition snapshot.

RED contract commit: 74900d58537ea798de9a1bbce28863c5c6449222.

Scope is confined to Hackpert transition inspection/tests; no database persistence internals, provider execution, or StarIntel product work.

## Slice Bug-first Hackpert operator-inspection hardening for #29/#27. `expert-loop-transition-inspection` already defensively copies operation/run scope, but a mutable string decision reason is still stored and returned by alias. That lets source or caller mutation rewrite a supposedly side-effect-free historical transition snapshot. RED contract commit: `74900d58537ea798de9a1bbce28863c5c6449222`. Scope is confined to Hackpert transition inspection/tests; no database persistence internals, provider execution, or StarIntel product work.
fix: snapshot mutable transition reason strings
Some checks failed
agent-pr-serialization / one-open-pr-per-agent-lane (pull_request_target) Failing after 2s
agent-framework-boundary / keep-agent-framework-out-of-product-tree (pull_request) Successful in 5s
core / common-lisp-core (pull_request) Failing after 42s
monorepo / hygiene (pull_request) Successful in 3m0s
e01da8f61e
Some checks failed
agent-pr-serialization / one-open-pr-per-agent-lane (pull_request_target) Failing after 2s
agent-framework-boundary / keep-agent-framework-out-of-product-tree (pull_request) Successful in 5s
core / common-lisp-core (pull_request) Failing after 42s
monorepo / hygiene (pull_request) Successful in 3m0s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin hackmode-rage-hackpert/transition-reason-copy:hackmode-rage-hackpert/transition-reason-copy
git switch hackmode-rage-hackpert/transition-reason-copy

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 master
git merge --no-ff hackmode-rage-hackpert/transition-reason-copy
git switch hackmode-rage-hackpert/transition-reason-copy
git rebase master
git switch master
git merge --ff-only hackmode-rage-hackpert/transition-reason-copy
git switch hackmode-rage-hackpert/transition-reason-copy
git rebase master
git switch master
git merge --no-ff hackmode-rage-hackpert/transition-reason-copy
git switch master
git merge --squash hackmode-rage-hackpert/transition-reason-copy
git switch master
git merge --ff-only hackmode-rage-hackpert/transition-reason-copy
git switch master
git merge hackmode-rage-hackpert/transition-reason-copy
git push origin master
Sign in to join this conversation.
No description provided.