The Problem with Traditional Automation
Every test engineer has experienced the 3 AM page: "Build Failed - Element Not Found."
Traditional browser automation is fragile by design. We bind our tests to the implementation details of the UIβCSS selectors, XPaths, and dynamic IDs that change with every sprint. When a developer renames a button, our tests break. When a modal appears unexpectedly, our scripts crash.
The industry's solution? Add more wait statements. More try-catch blocks. More conditional logic.
Introducing Constellation-Based Automation
What if your automation could handle unexpected obstacles the way a human doesβnot by predicting every possible state, but by *adapting* to whatever the environment throws at it?
This is the core philosophy behind Constellation-Based Automation (CBA) and its communication protocol, Starlight.
Instead of writing scripts that handle every edge case, CBA introduces a Sovereign Constellation of autonomous agents that:
- Monitor the environment for obstacles (popups, modals, network jitter)
- Clear the path before your intent even knows there was a problem
- Learn from experience to handle similar situations faster next time
The Architecture: A New Paradigm
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β INTENT LAYER β
β "Login" β’ "Submit Form" β’ "Initiate Mission" β
βββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β JSON-RPC
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CBA HUB β
β Orchestrator β’ Semantic Resolver β
β Predictive Memory β
βββββββββββββ¬ββββββββββββββ¬ββββββββββββββ¬ββββββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββ βββββββββββββ βββββββββββββ
β PULSE β β JANITOR β β VISION β
β Stability β β Heuristic β β AI-Based β
β Monitor β β Healing β β Detection β
βββββββββββββ βββββββββββββ βββββββββββββ
β β β
ββββββββββββββββ΄βββββββββββββββ
β
βΌ
ββββββββββββββββββββ
β BROWSER β
β (Playwright) β
ββββββββββββββββββββThe Sentinels
setTimeout or waitForSelector.The Starlight Protocol
Communication between the Hub and Sentinels uses JSON-RPC 2.0 with a set of standardized signals:
Predictive Intelligence: The Galaxy Mesh
CBA doesn't just reactβit learns.
// First run: User clicks "Submit" β selector fails
// Hub learns: "Submit" goal worked with "#submit-btn" in the past
// Second run: Auto-substitutes and succeeds.modal .close-btn, it remembers this for next timeβskipping the exploration phase entirely.The ROI Dashboard: Proving Value
Every mission generates a "Hero Story" report that quantifies the business value:
Real-World Impact
In traditional automation, a single unexpected modal can:
- Crash the test β 30 seconds wasted
- Trigger manual investigation β 5-10 minutes
- Require code changes β 30-60 minutes
- Wait for PR review β hours to days
In CBA, the same modal:
- Detected by Janitor Sentinel β 0.1 seconds
- Cleared automatically β 0.5 seconds
- Test continues successfully
- Event logged for dashboard
Time-Travel Triage: Debugging the Future
When something does go wrong, CBA doesn't leave you guessing. The Time-Travel Triage feature records every handshake, every decision, every DOM state.
Open `triage.html`, load your mission trace, and *rewind* to see exactly what the browser looked like when the failure occurred. No more "works on my machine" debates.
Getting Started
# Clone and setup
git clone https://github.com/starlight-protocol/starlight
cd cba
npm install
pip install -r requirements.txt
npx playwright install chromium
# Run the constellation
run_cba.bat # WindowsOr build your own Sentinel in minutes:
from sdk.starlight_sdk import SentinelBase
import asyncio
class MySentinel(SentinelBase):
def __init__(self):
super().__init__(layer_name="MySentinel", priority=10)
self.capabilities = ["custom-healing"]
async def on_pre_check(self, params, msg_id):
# Your healing logic here
await self.send_clear()
if __name__ == "__main__":
asyncio.run(MySentinel().start())The SDK handles:
- β WebSocket connection management
- β Auto-reconnect on failure
- β Persistent memory (JSON-based)
- β Graceful shutdown (Ctrl+C saves state)
- β Configuration loading
The Technology Stack
The Future: Sovereign Security
Phase 9 is on the horizon, bringing enterprise-grade features:
- Shadow DOM Penetration: Handle modern web components with encapsulated styles
- PII Sentinel: Detect and redact sensitive data before screenshots
- Traffic Sovereign: Network-level chaos engineering and request mocking
Why "Starlight"?
The dung beetle doesn't navigate by watching the ground. It looks up at the Milky Wayβa fixed reference point that transcends the chaos below.
Conclusion: A Paradigm Shift
CBA isn't just a frameworkβit's a philosophical shift in how we think about automation.
The goal is constant. The path is sovereign. The mission will succeed.
Built with β€οΈ by Dhiraj Das
Explore the protocol on GitHub

