Week 6
Architecture, integrations and security
By Anusheel Bhushan, co-founder of PlankDesign the codebase before connecting it: the principles, then integrations into the systems a business runs on, the config-first monorepo that holds them, and the security that protects them.
What the week builds toward
WorkBot is audited against the architecture principles, and its 2 costliest violations are migrated. It connects to a ticketing system, GitHub issues, through one data layer that applies each customer's rules. Each customer gets its own configuration, with a rule language and a generator. Roles, row-level security, personal-data handling and managed secrets protect it.
The 5 days
- Day 26
Architecture principles: what to unlearn
5 architectures to drop and the config-first, lightweight design to adopt, applied to WorkBot.
You ship: An architecture audit, 2 migrations measured before and after, and a decision record.
- Day 27
Integration platforms: Composio, Nango and MCP
Managed auth, syncs and MCP as 3 routes into a customer's SaaS, and the tool surface on top.
You ship: WorkBot connected to its ticketing system through the vendor's MCP server, with a synced copy, product-level tools and the 3 routes compared.
- Day 28
Integration techniques: sync, unified schemas, rules and caching
Incremental sync, one schema across providers, deterministic rules, and a cache that reports its age.
You ship: A unified, rule-applied, cached data layer under the integrations, with reconciliation and an audit trail.
- Day 29
Config-first design, grammars and meta-compilers
Behavior as configuration, a BNF grammar and parser for a rule language, a generator, and the monorepo that holds them.
You ship: WorkBot config-first, with a second tenant from configuration, a rule language with 20 tests, an entity generator, and its check as a cached task graph.
- Day 30
Agent security: RBAC, keys and data separation
Authorization enforced below the model, tenant separation in every store, key and secret handling, and injection defenses tested against an eval set.
You ship: WorkBot integrated, config-first and hardened, with an injection eval set whose 20 attempts all fail.
