cyberpunk mmo roguelike built on atproto protokill.sh

feat(hacking): breach device interfaces into a pluggable intrusion #503

targeting main from claude/hack-retire-net
Merged opened by compact-khopesh-2.test.pds.did.bot
targeting main from claude/hack-retire-net

What this does #

Devices expose their physical interfaces in pack data. Each interface names its protocol, the system it reaches, the reach it gives and the layers above its physical foothold; a drone can therefore expose several systems while a breach takes only one.

A new PlayerAction::BreachPort and verb:breach-port breach a data port. Every old hack-session entry point now goes through one IntrusionResolver: interacting with a terminal or hackable system, Connect over a link, and the NPC bus jack. The interim resolver is a minimal placeholder: each layer takes the fixed number of spent turns the interface names, the work pauses when the link no longer reaches the device, and the effect lands when the top layer falls. It is generic over digital and physical systems.

A breach records its route when the effect lands, not when it starts. The digital pane shows the active intrusion's device, layer and turn progress; the deck-themed full view comes with the real minigame.

Review fixes in this version #

  • A breached terminal now opens the door it controls: the session ladder's IntrusionHeld skip still publishes the open state to the door pass. There is a door test, and the route report counts the effect.
  • Breaching or interacting again resumes the existing work: no restart, no second trace charge. Both the terminal and the wireless-connect paths test it.
  • Interfaces reach a named system; only that system changes. A non-control system leaves the device's rung alone, so a bus breach no longer holds or powers down a whole machine. A test covers the non-control case.
  • The route pipeline skips a verb whose record action is intrude, not the verb:breach-port id.
  • The agent and mouse smokes drive the breach path, and the Noosphere intrusion indicator is what they assert.

What stays for the next PR #

The old hex session code and its standalone tests are still in the tree and registered, guarded by the IntrusionHeld marker. The deletion PR removes them; nothing in the game starts a session any more. There is no visual surface beyond the indicator yet; the digital theme view and the physical overlay arrive with the real minigame per design/intrusion.md.

Checks #

  • scripts/ci.sh d5f8954cf: hooks and native fast tier pass (1769 tests).
  • scripts/wasm-test.sh: 66 pass.
  • scripts/route-report.sh --map facility: 51/51 reach the objective.
  • scripts/route-report.sh --map floors-1-4: 51/51 reach an outcome, including core:firewall/verb:hack and core:drone/verb:hack counted on completion.
  • scripts/agent-smoke.sh and scripts/mouse-smoke.sh: PASS.

Intrusion indicator in the Noosphere, with the terminal's layer and turn progress

🤖 Generated with Claude Code

Commits 5

fix(hacking): keep the new breach code under the size gate
fix(web): carry the breach-port action to the agent bridge
refactor(hacking): keep the breach action beside the player systems
test(hacking): drive the terminal scenario through the intrusion path
feat(hacking): breach device interfaces into a pluggable intrusion
Sign up or Sign in to add to the discussion.