* fix(#2414): mempalace-capture rooms example must be dicts with name key
The skill's Step 3 'Add the drawer (verbatim)' example wrote a flat list
of bare strings under rooms: in the embedded mempalace.yaml. mempalace's
miner (detect_room + _mine_impl) indexes room["name"] — a bare-string
list crashes the first 'mempalace mine' invocation with
TypeError: string indices must be integers, not 'str'
Following the documented example verbatim and running the capture crashed
every time, before any file was routed. The bug shipped in #2220's fix
(commit d8af61be4) — the same commit that replaced the invalid --room
flag with detect_room() staging also introduced this rooms: block with
the wrong (string, not dict) entry shape.
Fix: convert each '- <room>' to '- name: <room>' in both shipped source
files (skills/gsd-mempalace-capture/SKILL.md and commands/gsd/mempalace-capture.md).
The two files are byte-for-byte duplicates of the broken block; both are
corrected in lockstep so the installer regenerates consistent copies into
the user's runtime config dir (gsd-pristine/ and gsd-local-patches/ are
install-time-generated, no separate edit needed).
Tests: tests/mempalace-capture-headless-invocation.test.cjs gains a #2414
describe block that extracts the YAML block from each file, parses it with
js-yaml, and asserts every entry under rooms: is a dict carrying a
non-empty 'name' string. A second belt-and-suspenders check forbids any
bare '- <word>' line under rooms: so a future reversion can't slip back in
silently if the YAML parser is ever removed/refactored.
References: #2414; #2220 (same origin commit, distinct failure mode);
mempalace's miner dict-shape contract (miner.py:1708 built-in default
uses [{"name": "general", "description": "All project files"}]).
* chore(#2414): backfill pr:2464 in .changeset/eager-pandas-jump.md
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
"commands/gsd-ingest-docs.md": "b47c812c247e58a4",
|
||||
"commands/gsd-manager.md": "86ece154b34b6d1b",
|
||||
"commands/gsd-map-codebase.md": "9aba6b4eed565912",
|
||||
"commands/gsd-mempalace-capture.md": "8b6bc24d7baf1e9b",
|
||||
"commands/gsd-mempalace-capture.md": "081236c25ce5b337",
|
||||
"commands/gsd-mempalace-recall.md": "d358cdd89c935877",
|
||||
"commands/gsd-milestone-summary.md": "86a827271bc647c5",
|
||||
"commands/gsd-mvp-phase.md": "d45fd76cb9cff3ef",
|
||||
@@ -465,7 +465,7 @@
|
||||
"skills/gsd-ingest-docs/SKILL.md": "8f294b4894f782a5",
|
||||
"skills/gsd-manager/SKILL.md": "cf40f237b4f20aa7",
|
||||
"skills/gsd-map-codebase/SKILL.md": "73f714297815f74c",
|
||||
"skills/gsd-mempalace-capture/SKILL.md": "80ffe0ee9b833502",
|
||||
"skills/gsd-mempalace-capture/SKILL.md": "ddb5c1322d6237ad",
|
||||
"skills/gsd-mempalace-recall/SKILL.md": "2091c48e6e986e28",
|
||||
"skills/gsd-milestone-summary/SKILL.md": "175366bb500b5e64",
|
||||
"skills/gsd-mvp-phase/SKILL.md": "0531d0e907af41ce",
|
||||
|
||||
Reference in New Issue
Block a user