fujimoon
日本語

Works / Client work

Client work Internal

A triage agent that cannot go rogue

A small model classifies every Slack message from the field; only when needed does a large model investigate, read-only, and return JSON. Posting and ticketing are done by a deterministic policy engine alone.

Client work: company name, specific numbers and screens are withheld.

Role
Design, implementation, operations (one person + AI)
Period
Mar 2026 –
Stack
TypeScript Hono Cloud Run Cloud Tasks Firestore Claude Haiku / Sonnet Slack Events API GitHub Projects

Tools

Claude Code Claude API (Haiku 4.5 / Sonnet 5) Claude Managed Agents Codex (cross review)

What AI did

First-pass classification, deciding what needs to change, the investigation loop when needed, drafting answers and tickets. Most of the implementation.

What the human kept

Boundary design (read-only, JSON contract, hard gates), the policy itself, grading replay evaluations, the final call on issues, and every payment-related topic.

The problem

Requests, questions and bug reports from the field arrive as Slack mentions. Nothing tracked their whole life: investigate, answer, record, start, ship. Answers and records got mixed up, investigations ate the day, and the same question came back from someone else.

Letting an AI answer is easy, and dangerous. Customer messages are untrusted input. If the model follows instructions hidden in them, posting to Slack and filing tickets becomes the attack surface.

Where the boundary is

Intake

Slack events land in Cloud Tasks. Deterministic

Triage

A small model decides in one call what needs to change

Investigate

Only when needed, a large model investigates read-only and returns JSON

Act

Only the policy engine posts or files. The model cannot

What the AI can touch

Reading Slack, investigating code, specs and data, drafting answers and tickets, returning JSON

What humans keep

Posting to Slack, filing issues, changing production data, anything about payments. All done by the policy engine and people

The agent holds no write permission at all. Custom tools run outside the sandbox on the host, so no credentials live inside it. Cloud auth is keyless; starting with an API key is deliberately unsupported and fails at boot.

Do not skip stages

Observe only, then draft tickets, then answer the field for the kinds of messages whose acceptance rate clears the bar. Evaluation is a replay of real past messages, graded by a person. One metric: acceptance rate.

2
Model tiers
none
Agent write permissions
human
Final call on issues

Related

Client work Internal anonymized

One MCP server to run the company

A custom MCP server bundling Slack, email, payments, the production database, logs, calendar, deployments and issue tracking into 90 tools. Investigation, incident response and release checks are done entirely through Claude Code.

TypeScript · MCP · Next.js · Cloud SQL · GCP Logging

Client work Internal anonymized

The LLM only returns findings JSON

Triage, priority drafts, weekly reports. The model's job ends at shaping; weighting, SLA maths and rendering are plain code. Autonomy is set in four tiers, with exit criteria written first.

Node.js · Python · GitHub Projects · GitHub Actions · BigQuery