
Weekend Productivity Challenge: Cutline
Cutline is a serverless AI tool that fits your week's tasks into the focus hours you actually have and draws a line where they run out. Built on one Lambda and Amazon Bedrock, with a guardrail, least-privilege IAM, and a provable cost ceiling.
Vision & What the App Does
Every productivity tool I've used lets me lie to myself about time. I write a
weekly list, it accepts every task without comment, and by Wednesday I've
"planned" thirty hours of work into a week that has twelve. The list never
pushes back. The honest constraint — I only have so many focused hours — is the
one thing these tools refuse to model.
Cutline models exactly that. You state your real focus hours for the week. You
list your tasks, most important first, with a rough effort like
write report
3h . Cutline fills your hour budget from the top and draws a line where the hours
run out. Tasks above the line are what you can actually do this week. Tasks below
it are what you're cutting — and it says so, with a one-line reason for each.
The design leans all the way into that single idea. Hours read like ledger
figures, a capacity meter fills to the hours you've committed, and a red rule —
the cutline — separates "do" from "cut." It's not a list app that happens to
sort. It's a gauge for a fixed vessel.
The important design rule sits underneath: the code decides where the line
falls; the model never does. That's a deliberately unglamorous choice, and
it's the reason the numbers are always right. The interesting part of this build
wasn't the feature. It was shipping it as a public AI endpoint whose cost and
blast radius I can actually prove.
How You Built It
The whole app is one AWS Lambda behind a Function URL. The same function serves
the HTML on a GET and answers the API on a POST — no API Gateway, no separate
host, no database. That collapses the stack to a single deployable with one
public URL, and because the page and the API share an origin, there's no CORS to
misconfigure.
Inside a request, three things happen in order. First, the raw task text is
screened by an Amazon Bedrock Guardrail via
ApplyGuardrail — prompt-attack and
content filters plus PII anonymization. If it intervenes, the request stops
before the model is ever called.Second, plain Python does the budget math: normalize each task's effort, fill the
hour budget top-down, and split the list into DO and CUT. This is deterministic
and unit-testable, so the counts can't be wrong and a model hiccup can't move the
line.
Third — and only third — Amazon Nova Lite writes the human part: a concrete first
step for each DO task and a short reason for each CUT task. This is where I lost
the most time, and the lesson was blunt: don't ask a small model for one big
JSON object. My first version begged Nova for parallel arrays and hand-parsed
the result; it silently fell back to defaults every time. The fix was to stop
parsing model JSON entirely. Each card gets its own one-sentence call, run in
parallel. There's no schema to misalign and no fence to strip, so a failure can
only blank a single card, never the whole page.
Securing an open endpoint was the real work, and every control is cheap:
- Least-privilege IAM. The Lambda role can call
InvokeModelon the Nova Lite ARN only andApplyGuardrailon this guardrail ARN only. No wildcards. (ApplyGuardrailis a separate permission fromInvokeModel— miss it and the guardrail silently no-ops.)
- Bounded per request. Input is capped at 4,000 characters, at most 16 model calls per request, 60 output tokens each.
- A provable cost ceiling. Nova Lite is $0.06 / $0.24 per million input/output tokens; Guardrails run about $0.75 per 1,000 text units. With the caps above, a worst-case request costs roughly $0.003 — the guardrail check dominates and the model is a rounding error. A $5 AWS Budget alarm is the tripwire; the Free-plan credit balance is the hard wall.
- Log hygiene. CloudWatch retention is set to 7 days.
One honest gap: reserved concurrency would cap the blast radius further, but a
new Free-plan account can't set it — the 100-unit unreserved floor blocks it. So
the blast radius is bounded by the per-request caps and the budget/credit wall
instead of by concurrency. For anything past a demo I'd put CloudFront + WAF in
front; that's out of scope for a weekend.
AWS Services Used / Architecture Overview
Two services do the work: AWS Lambda and Amazon Bedrock (Nova Lite plus a
Bedrock Guardrail). CloudWatch for logs, IAM for the scoped role.
The diagram is annotated with the safety controls rather than just the boxes,
because on a public endpoint the controls are the architecture.
What You Learned
Three things stuck. First, let the code decide and the model explain. The
findings are trustworthy because they come from code I can test, not output I
have to second-guess. Second, on a small model, avoid structured JSON
entirely — one tiny call per item beat one big schema-shaped call on both
reliability and debuggability, and AWS's constrained-decoding structured-output
feature doesn't even cover Nova yet. Third, and most useful: a public AI
endpoint is a security object, not just a feature. The most valuable hour of
this build went into a guardrail, a scoped IAM policy, request caps, and a cost
ceiling I can write down — not into the app itself.
Link to App or Repo
Built for the AWS Weekend Productivity Challenge, July 2026.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article