routine: dynamic-workflow-tripwire (2026-05-29)#23
Draft
jim4226 wants to merge 1 commit into
Draft
Conversation
Claude Code v2.1.154 introduced dynamic workflows — a feature that can spawn hundreds of parallel agents in a single session (T2+ capability in CSIS's tier model). The same release added a keyword guard to prevent accidental invocation. CSIS needs the equivalent defensive primitive. Adds dynamic_workflow_escalation to _TRIP_PATTERNS. Fires when agent-produced text requests explicit dynamic workflow creation or large-scale (100+) parallel agent spawning. Does not fire on CSIS's own sequential sub-agent descriptions or generic "workflow" references. Touches: csis/safety/tripwires.py (_TRIP_PATTERNS list) Tests: 5 new in tests/test_safety.py (3 fire cases + 2 false-positive guards)
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.
Summary
Adds
dynamic_workflow_escalationto_TRIP_PATTERNSincsis/safety/tripwires.py. Fires when agent-produced text requests dynamic workflow invocation or large-scale parallel agent spawning — both T2+ capabilities that exceed CSIS's Phase-0 T1 ceiling.Source
Theme
Theme 3 — Constitutional / safety primitives (also Theme 6 — Substrate / capability boundaries). Claude Code v2.1.154 introduced dynamic workflows capable of spawning "hundreds of parallel agents in a single session." Under CSIS's tier model this is T2+ (network egress, persistent state across sandbox). The platform's keyword guard shows the failure mode is real: user prompts containing "workflow" accidentally triggered the feature. CSIS faces the same risk from agent-generated text: a Builder or Researcher whose output contains dynamic workflow invocation language could be interpreted by a downstream Claude Code session as an instruction to escalate capability. Adding a tripwire at the text-scan layer catches this before the artifact reaches the promotion gate.
What changed
csis/safety/tripwires.pydynamic_workflow_escalationpattern in_TRIP_PATTERNS. Catches:"create a dynamic workflow","orchestrate hundreds of subagents","spawn 100+ workers". Does not catch CSIS's own sequential sub-agent descriptions or generic"workflow"references.tests/test_safety.pyNo cycle-9 chokepoints touched
_TRIP_PATTERNSis a module-level list.Coordinator.__init__,_BackendTracker,writer_iteration_id, and the promotion CAS are all untouched. TheTripwiresinstance in the Coordinator picks up the new pattern at construction time vialist(_TRIP_PATTERNS).Test plan
Generated by Claude Code