计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
shift-camouflage【效率与协作】Implement cuttlefish-inspired adaptive interfaces — polymorphic APIs, context-aware behavior, feature flags, and attack surface reduction. Covers environmental assessment, chromatophore mapping, dynamic interface generation, behavioral polymorphism, and pattern disruption for systems that must present different faces to different observers. Use when …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Implement adaptive surface transformation — polymorphic interfaces, context-aware behavior, dynamic presentation — inspired by cuttlefish chromatophores. System's surface adapts to environment while core stays stable. Reduces attack surface, optimizes interaction with diverse observers.
adapt-architecture when surface change is sufficient and deep transformation unnecessaryIdentify who interacts with system, what each observer needs 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 with surface requirements per observer. Drives all subsequent camouflage design.
If fail: Observer identification incomplete? Start with two extremes: most privileged observer (admin) and most restricted (adversary). Design surfaces for these two, interpolate for observers between.
Create mapping between observer context and surface presentation — the "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: Chromatophore mapping translates observer context into surface config. Mapping explicit, auditable, separate from core logic.
If fail: Mapping becomes too complex (too many context combinations)? Simplify to role-based surfaces: define 3-5 surface profiles (public, partner, admin, internal, minimal), map every observer to one profile.
Make system's behavior adapt to context, not just surface appearance.
Got: System's behavior adapts to observer context — same core logic produces appropriate responses for different audiences. Feature flags enable progressive rollout of new behaviors.
If fail: Behavioral polymorphism creates too many code paths? Consolidate to pipeline model: core logic → policy layer → presentation layer. Polymorphism lives in policy and presentation layers only, keeping core logic singular.
Minimize what adversaries can observe and interact with.
defend-colony)Got: Minimal attack surface — adversaries cannot easy determine system's technology stack, internal structure, or hidden capabilities. Reconnaissance attempts detected and tracked.
If fail: Surface reduction breaks legitimate consumers? Observer-surface matrix incomplete — legitimate needs hidden. Review Step 1, update matrix. Randomization causes issues? Reduce randomization to non-functional aspects only (timing, headers), keep functional responses deterministic.
Ensure dynamic surface stays consistent, debuggable, maintainable.
Got: Maintainable, testable, well-documented surface adaptation system. Dynamic nature does not compromise ability to debug, document, or evolve interfaces.
If fail: Chromatophore layer becomes debugging nightmare? Add transparency: every response includes trace header (visible only to admin/debug profile) showing which surface profile applied and which context signals determined it.
assess-form — surface adaptation may resolve pressure identified in form assessment without requiring deep transformationadapt-architecture — deep structural change for when surface adaptation insufficientrepair-damage — surface adaptation can mask damage during repair (caution — never hide real problems)defend-colony — attack surface reduction defense layer; reconnaissance detection feeds into defensecoordinate-swarm — context-aware behavior in distributed systems needs coordinated surface adaptationconfigure-api-gateway — API gateways implement many chromatophore layer functions in practicedeploy-to-kubernetes — Kubernetes services and ingress enable network-level surface control