Repository navigation
Connect to Muster: its incidents open on the map and run from there - #59
Merged
Merged
Conversation
Mark assets compromised, suspected or contained, from their sheet or from a Muster playbook decision. The incident sheet lists who to call, the flows to cut (ranked, with the firewall where to cut each), what depends on the assets hit and what an attacker reaches next, plus a timeline. The 3D model and the 2D diagram ring the assets hit and draw the flows to cut. A Muster incident opens on the map; each playbook step points at it through `targets` selectors, and decisions can mark assets. Each asset sheet gets anonymised AI prompts: major risks, and a guide that has a public AI write response playbooks in muster/v1 YAML. Names, addresses, contacts and the IS name become placeholders, a leak check runs on the text, and pasted answers get the real names back locally. Server: GET/PUT /api/incidents (contributors and up, no proposal), kept in incidents.json with an `incidents` live event. `npm run build:online` writes the whole interface as one page that runs without a server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ke7yEW5dhDYFVpV2cdgs87 Signed-off-by: Claude <noreply@anthropic.com>
Inside a host page the api/me request could stay unanswered, and the map waited for it forever on "Loading". The one-page build no longer sends it. three.js is now imported by absolute URL from jsDelivr's ES module builds, with no import map, and an error at start-up shows on the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ke7yEW5dhDYFVpV2cdgs87 Signed-off-by: Claude <noreply@anthropic.com>
With MUSTER_URL, MUSTER_USER and MUSTER_PASSWORD, the server signs in to Muster with an analyst account, reads its incidents every few seconds and passes calls on (api/muster: read for every role, act for contributors and up). The incident sheet lists the responses linked to the IS, or naming its assets, and offers the others. Opening one marks the assets it names; the playbook then runs from the map with the targets Muster stores on each step. Answers, finished steps and tasks move the response in Muster, what Muster's analysts do shows on the map, and a decision answered anywhere applies its effects. Marks and flows cut go to Muster's timeline, written by the Strata account with the name of the person who did them. Without MUSTER_URL the two example incidents stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ke7yEW5dhDYFVpV2cdgs87 Signed-off-by: Claude <noreply@anthropic.com>
Example runs were saved with source "muster", so with the Muster code in place the sheet waited for a Muster incident that does not exist and showed no step. A run now points to Muster only with a Muster id; the examples, including those saved by the previous version, run as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ke7yEW5dhDYFVpV2cdgs87 Signed-off-by: Claude <noreply@anthropic.com>
Opening another incident on an IS puts the marks and cuts of the previous one aside, with a line in the timeline; marks made by hand before any incident was opened stay. The incident keeps which incident its marks belong to (`from`), on the server too, so Muster's report of a new incident lists only its own assets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ke7yEW5dhDYFVpV2cdgs87 Signed-off-by: Claude <noreply@anthropic.com>
0b3l1X-SolidGeeks
force-pushed
the
claude/strata-incident-muster-entlk7
branch
from
October 27, 2026 21:33
4acb91d to
87db00c
Compare
0b3l1X-SolidGeeks
force-pushed
the
claude/strata-incident-mode
branch
from
October 27, 2026 21:33
def9437 to
17efdce
Compare
The build took the three script tags out of index.html with a regular expression, which CodeQL flags (it would miss forms such as "</script >"). It now removes exactly the three tags it inlines, and stops if index.html loads any other script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ke7yEW5dhDYFVpV2cdgs87 Signed-off-by: Claude <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…branch Signed-off-by: Claude <noreply@anthropic.com>
5 tasks done
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.
Follows #58 (incident mode, merged). It needs SolidGeeks/muster#21 on the Muster side.
What changes
Server. Set
MUSTER_URL,MUSTER_USER,MUSTER_PASSWORD(orMUSTER_PASSWORD_FILE) andMUSTER_POLL_SECONDS(default 10).server/muster.jsthen:musterevent when they change;GET /api/musterandGET /api/muster/incidents/{id}: every role;POST /api/muster/incidents/{id}/advance|tasks|strata: contributors and up.Muster's refusals reach the user as they are, and an unreachable Muster gives a 502 with a clear message. The author of each log entry is set by the server, not by the page.
api/megainsmuster: {url}.Interface. The incident sheet of an IS lists the Muster responses linked to it, or naming its assets, and offers the others with Open on this IS.
targetsMuster stores on each step.One incident, its own assets. Opening another incident on an IS puts the marks and cuts of the previous one aside, with a line in the timeline. Marks made by hand before any incident stay.
Without
MUSTER_URLnothing changes: the example incidents from #58 stay. A run points to Muster only when it carries a Muster id, so examples saved before this change keep working (that was a regression on this branch, fixed and tested).Known limit
A decision answered in Muster marks the assets in Strata when a contributor next has that IS open in Strata, not on the server. Nothing is lost in between. This is documented.
Tests
npm test: 76 pass. New:tests/muster.test.mjsruns a real Strata against a stand-in Muster and covers:Unit tests cover the conversion of a Muster incident into a run, answers applied once, the link between incidents and IS, and putting marks aside.
npm run test:e2e: both pass locally.End to end with a real Muster (muster#21) on both sides:
hmi-01andjump-winsuspected in Strata;🤖 Generated with Claude Code
https://claude.ai/code/session_01Ke7yEW5dhDYFVpV2cdgs87