Luigit
repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by admin

.system/issues/SMH-ISSUE-P1NS3SSN-worker-session-resume-mutation/index.md

Raw
Rendered preview

id: SMH-ISSUE-P1NS3SSN type: issue title: "Worker-backed tool session resume mutation survives" specs: [SMH-SPEC-SPEC0001]

Worker-backed tool session resume mutation survives

Boundary

Smith Specification: resumed session state remains authoritative when persistence moves to a worker.

Evidence

Narrow B1 authorization mutation run also generated constructor-field deletions outside its function-name filter. Deleting the supplied session field from ToolSession::with_persist survived every smith-core library test. Authorization bypass mutant was caught. Final run: five mutants, four caught, one missed; exit 2. Evidence: target/mutants.out/outcomes.json, target/mutants.out/missed.txt. No production state-loss failure observed without mutation.

Missing proof

Construct worker-backed tool session from nonempty resumed history. Assert original identity, selected branch, messages survive before and after worker persistence. Reject replacement with fresh session state. Rerun constructor mutation with owning test.

---
id: SMH-ISSUE-P1NS3SSN
type: issue
title: "Worker-backed tool session resume mutation survives"
specs: [SMH-SPEC-SPEC0001]
---

# Worker-backed tool session resume mutation survives

## Boundary

[Smith Specification](../../specs/SMH-SPEC-SPEC0001-smith-specification/index.md): resumed session state remains authoritative when persistence moves to a worker.

## Evidence

Narrow B1 authorization mutation run also generated constructor-field deletions outside its function-name filter.
Deleting the supplied `session` field from `ToolSession::with_persist` survived every smith-core library test.
Authorization bypass mutant was caught.
Final run: five mutants, four caught, one missed; exit 2.
Evidence: `target/mutants.out/outcomes.json`, `target/mutants.out/missed.txt`.
No production state-loss failure observed without mutation.

## Missing proof

Construct worker-backed tool session from nonempty resumed history.
Assert original identity, selected branch, messages survive before and after worker persistence.
Reject replacement with fresh session state.
Rerun constructor mutation with owning test.