Hacker
Dhaanish Ahamed
@dhaanish
Verdict
Flagsmith Experimentation HackathonNov 2026
Verdict is an Agent Skill for Flagsmith. It walks a coding agent through a whole A/B test: plan, provision the flag and experiment, wire the SDK into the app, launch, read the results, ship the winner, open a cleanup PR, and archive the flag. If something goes wrong there is an abort command and a restore plan. I built it because A/B tests usually break in one of three places: 1. They get wired wrong. A variation without a key records zero exposures, an unstable user ID puts one visitor in both arms, or the conversion event name is off by one capital letter and conversions stay flat. 2. They get called wrong. Someone ships at 84% chance to win with an interval that crosses zero, ignores a sample ratio mismatch warning, or stops before the sample size they planned. 3. They never get cleaned up. The losing branch and the flag sit in the code for months because nobody owns that step. It's for product engineers, tech leads and platform teams who already let a coding agent edit their code. The agent handles the planning, the code changes and the cleanup PR, but it never writes to Flagsmith itself. Every write goes through one Python script (stdlib only, Python 3.9+). The script checks for a human approval tied to a hash of what was approved, lints the SDK wiring, applies Flagsmith's own statistical thresholds at readout, and verifies each write after it lands.
SwitchGate Lite
Flip the Switch HackathonNov 2026
Giving AI agents direct write access to production infrastructure in team chat is dangerous: a single hallucinated parameter or prompt injection can flip critical feature flags or cause an outage. However, as documented in the Switch Shared Responsibility Model, Switch brokers conversation across rooms and agents but does not inspect what a tool call will do or turn a chat reply into a parameter-bound approval. SwitchGate Lite solves this by implementing a three-layer "Sandwich Architecture" across two Switch Rooms (#incident-triage and #approval-vault): 1. Read-Only AI Triage (@triage-agent): Investigates incident reports using a bounded tool-calling loop (`while turn < max_turns`) against a read-only SQLite connection (`PRAGMA query_only = ON`) and stages a feature-flag rollback proposal. 2. Deterministic Policy Audit (@policy-auditor): Audits the proposal against `config/policy.json` (blocking protected flags such as `root_db_migration_lock` and verifying justification requirements) and posts an approval card containing the exact parameters and their RFC 8785 canonical JSON SHA-256 digest. 3. SHA-256 Human-Gated Execution & Rollback (@action-steward / ActionExecutor): Blocks execution until an authorized human explicitly approves `/approve <proposal_id> <sha256_prefix>`. Before mutating the local SQLite feature flag, the executor recomputes the SHA-256 digest to block Time-of-Check to Time-of-Use (TOCTOU) parameter tampering, posts an auditable `ExecutionReceipt` back to Switch, and supports deterministic state restoration via `/rollback <receipt_id>`.