Trait outcome effects (v0.12.0) #43

Closed
opened 2026-10-01 14:50:59 +02:00 by kamilkrzywda · 1 comment
Owner

Spec: docs/superpowers/specs/2026-10-01-crew-driven-actions-design.md — §5 (outcome effects), §9

The two remaining good traits get real mechanical effects, deterministic and seeded.

Scope

  • FINDS HIDDEN THINGS → exploration hauls gain +1 item (extra roll on the same seeded per-planet stream)
  • TALKS TO ANYONE → crew-recruit chance 18% → 30%

Acceptance criteria

  • FINDS HIDDEN THINGS: when a crew member with this trait is assigned to an EXPLORE task, hauls gain +1 item via an extra roll on the existing seeded per-planet stream (same save+planet → same haul)
  • TALKS TO ANYONE: crew-recruit chance 30% instead of 18% when a crew member with this trait is assigned to the exploring task
  • Determinism preserved and unit-tested (§9): same seed + same assignments → identical outcomes

Process (AGENTS.md loop)

Same as #44 → version bump v0.12.0 + CHANGELOG entry at top → local verify (npx tsc --noEmit, npx vitest run, npx playwright test --list) → push, CI auto-merge on green (verify merged_at) → tag v0.12.0 on master → manual deploy → close issue with comment.

**Spec:** `docs/superpowers/specs/2026-10-01-crew-driven-actions-design.md` — §5 (outcome effects), §9 The two remaining good traits get real mechanical effects, deterministic and seeded. ## Scope - FINDS HIDDEN THINGS → exploration hauls gain +1 item (extra roll on the same seeded per-planet stream) - TALKS TO ANYONE → crew-recruit chance 18% → 30% ## Acceptance criteria - [ ] FINDS HIDDEN THINGS: when a crew member with this trait is assigned to an EXPLORE task, hauls gain +1 item via an extra roll on the existing seeded per-planet stream (same save+planet → same haul) - [ ] TALKS TO ANYONE: crew-recruit chance 30% instead of 18% when a crew member with this trait is assigned to the exploring task - [ ] Determinism preserved and unit-tested (§9): same seed + same assignments → identical outcomes ## Process (AGENTS.md loop) Same as #44 → version bump v0.12.0 + CHANGELOG entry at top → local verify (`npx tsc --noEmit`, `npx vitest run`, `npx playwright test --list`) → push, CI auto-merge on green (verify merged_at) → tag v0.12.0 on master → manual deploy → close issue with comment.
Author
Owner

Done in v0.12.0 (PR #50, merged 2026-10-04):

  • FINDS HIDDEN THINGS: the explore resolver does one extra rollExploration on the seeded per-planet stream, appended to the haul, when the assigned team (lead + helpers) carries the trait.
  • TALKS TO ANYONE: crew-recruit chance is 30% (RECRUIT_CHANCE_TALKER) instead of the base 18% (RECRUIT_CHANCE_BASE) when the assigned team carries the trait; rollCrewMember gained an optional chance param.
  • Determinism: outcome is still a pure function of (seed, planet, assigned team); the no-trait path is byte-identical to v0.11.0 (pinned by RECRUIT_CHANCE_BASE === CREW_CHANCE).
  • 3 new unit tests in lib/game/save.test.ts (no-trait regression pin; FHT +1 item / prefix / reproducible; TALKER 30% end-to-end); OpenAPI prose updated, response shape unchanged.
  • Tag v0.12.0 on master (a593cd0); deployed — https://space-wanderer.dev.kkhost.pl/api/version reports 0.12.0.
Done in **v0.12.0** (PR #50, merged 2026-10-04): - **FINDS HIDDEN THINGS**: the explore resolver does one extra `rollExploration` on the seeded per-planet stream, appended to the haul, when the assigned team (lead + helpers) carries the trait. - **TALKS TO ANYONE**: crew-recruit chance is 30% (`RECRUIT_CHANCE_TALKER`) instead of the base 18% (`RECRUIT_CHANCE_BASE`) when the assigned team carries the trait; `rollCrewMember` gained an optional `chance` param. - **Determinism**: outcome is still a pure function of (seed, planet, assigned team); the no-trait path is byte-identical to v0.11.0 (pinned by `RECRUIT_CHANCE_BASE === CREW_CHANCE`). - 3 new unit tests in `lib/game/save.test.ts` (no-trait regression pin; FHT +1 item / prefix / reproducible; TALKER 30% end-to-end); OpenAPI prose updated, response shape unchanged. - Tag `v0.12.0` on master (`a593cd0`); deployed — https://space-wanderer.dev.kkhost.pl/api/version reports 0.12.0.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/SpaceWanderer#43