Phase 10 plan — adventure-bundled items - #50
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation plan for phase 10 of the spec: an `Adventure` document carries its own item templates — the same four models the equipment catalog ships, discriminated on `item_type` — resolved everywhere the engine resolves authored item ids, mirroring the phase 9 bundled-monster contract. Written and reviewed per the phase loop: research → draft → rubber-duck → revise until SOLID.
Notable decisions
Review provenance
The rubber-duck (a fresh reviewer with the spec, the phase 9 plan, and the touched code) returned NEEDS REVISION on one blocking finding — the crawl-site audit missed `views.py`'s armour-masking `base_item_id` lookup, which also invalidated the stated justification for redirecting the fixed-id ignite sites — plus six non-blocking refinements: the `_grant_mundane` template-passing shape, three docstring-sweep gaps (`EquipItem`, `validate_content_pack`, the guide's closed-loader paragraph), the honest rejection code, `create_character` precision (caller-supplied pre-session ids, not shipped-by-construction), naming phase 15's idol conversion as the deferred consumer, and the treasure-weights-exclusion test. All seven were adopted; the ignite redirects were dropped as churn. Re-review verified every fix against the code (including the template-capture safety property under repeated ids in one `GiveItems`) and returned SOLID, with two sign-off notes folded in: the `tools/docs/rejection_codes.json` drift-gate entry and two over-claiming sentences tightened.
https://claude.ai/code/session_01NSecUMBnHV9xSis9NSgPaF