executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
shift-camouflageCuttlefish-inspired adaptive interfaces — polymorphic APIs, context-aware behavior, feature flags, attack surface reduction. Env assess, chromatophore map, dynamic interface gen, behavioral polymorphism, pattern disruption. Use → diff faces to diff observers, reduce attack surface, feature flags | progressive rollout at interface, adapt behavior to env w/o …
Independent GitHub snapshot · Automated classification · Original documentation governs
Adaptive surface transform — polymorphic interfaces, context-aware behavior, dynamic presentation. Cuttlefish chromatophores. Surface adapts → env, core stable. Reduces attack surface + optimizes diverse observer interaction.
adapt-architecture when surface enough, deep transform unneededWho interacts + what each needs to see.
Observer-Surface Matrix:
┌──────────────┬────────────────────────┬─────────────────┬──────────────┐
│ Observer │ Required Surface │ Hidden Surface │ Threat Level │
├──────────────┼────────────────────────┼─────────────────┼──────────────┤
│ End users │ Public API v2, UI │ Internal APIs, │ Low │
│ │ │ admin endpoints │ │
├──────────────┼────────────────────────┼─────────────────┼──────────────┤
│ Partner API │ Partner API, webhooks │ Internal logic, │ Medium │
│ │ │ user data │ │
├──────────────┼────────────────────────┼─────────────────┼──────────────┤
│ Admin tools │ Full API, debug │ Raw data store │ Low │
│ │ endpoints │ access │ │
├──────────────┼────────────────────────┼─────────────────┼──────────────┤
│ Adversaries │ Nothing (minimal) │ Everything │ High │
│ │ │ possible │ │
└──────────────┴────────────────────────┴─────────────────┴──────────────┘
Got: Complete observer landscape w/ surface reqs. Drives all camouflage design.
If err: Incomplete obs ID → start two extremes (most privileged: admin; most restricted: adversary). Design surfaces, interpolate between.
Map observer context → surface presentation. "Chromatophore" layer.
Chromatophore Architecture:
┌──────────────────────────────────────────────────────┐
│ Observer Request │
│ │ │
│ ↓ │
│ ┌─────────────────┐ │
│ │ Context Extract │ ← Auth, origin, flags, time │
│ └────────┬────────┘ │
│ ↓ │
│ ┌─────────────────┐ │
│ │ Surface Select │ ← Observer-surface matrix lookup │
│ └────────┬────────┘ │
│ ↓ │
│ ┌─────────────────┐ │
│ │ Core System │ ← Processes request normally │
│ └────────┬────────┘ │
│ ↓ │
│ ┌─────────────────┐ │
│ │ Surface Filter │ ← Remove/transform/add elements │
│ └────────┬────────┘ │
│ ↓ │
│ Observer Response (adapted surface) │
└──────────────────────────────────────────────────────┘
Got: Mapping translates observer context → surface config. Explicit, auditable, separate from core.
If err: Too complex → simplify to role-based: 3-5 profiles (public, partner, admin, internal, minimal). Map every observer → one.
Behavior adapts to context, not just surface.
Got: Behavior adapts → context. Same core → appropriate res for diff audiences. Flags → progressive rollout.
If err: Too many code paths → consolidate pipeline: core → policy layer → presentation layer. Polymorphism in policy + presentation only, core singular.
Minimize what adversaries observe + interact w/.
defend-colony)Got: Min attack surface. Adversaries can't ID stack, internals, hidden caps. Recon detected + tracked.
If err: Reduction breaks legit consumers → matrix incomplete. Review Step 1, update. Randomization issues → reduce to non-functional only (timing, headers), keep functional res deterministic.
Dynamic surface stays consistent, debuggable, maintainable.
Got: Maintainable, testable, documented system. Dynamic ≠ undebuggable.
If err: Debug nightmare → add transparency: trace header (admin/debug only) → which profile applied + which signals decided.
assess-form — surface adaptation may resolve form pressure w/o deep transformadapt-architecture — deep structural change when surface insufficientrepair-damage — surface can mask damage during repair (caution — don't hide real probs)defend-colony — attack surface reduction = defense layercoordinate-swarm — context-aware in distributed needs coordinated surfaceconfigure-api-gateway — API gateways implement chromatophore in practicedeploy-to-kubernetes — k8s svc + ingress enable network-level surface control