Prashi Doval
Platform engineering and applied AI.
| name | runs on | what the AI does |
|---|---|---|
| paved-road-ai | kind, on a laptop | reads cluster signals, writes a root-cause report |
| market-pulse | Docker Compose | turns a question into a JSON query spec |
| secure-landing-zone | AWS, EKS | explains cost spikes that plain math found |
paved-road-ai
An internal developer platform on a local kind cluster, with an AI agent that triages alerts.
Why it matters: New services start with monitoring and guardrails already in place, and each incident starts with a written first diagnosis.
Shipping a new service means writing manifests, metrics, alerts and policy by hand. When it breaks, on-call digs through metrics, logs and deploys to find out why. One command scaffolds the service; the agent does the first pass of the digging.
What's interesting
- The agent can only read. Its RBAC role and tool allowlist are read-only, and logs are treated as untrusted data. A prompt injection in a log line can't change the cluster.
- The evals include an attack. One recorded incident hides “delete the namespace” in a log line. The eval fails if the report repeats it.
- The report is a tool call. The run ends with
submit_reportagainst a strict JSON schema, inside a hand-written loop with a turn limit. Slack, the API and the evals always get valid JSON.
Tech stack
market-pulse
A streaming market-data pipeline with a stock screener you query in plain English.
Why it matters: Anyone can question live data in plain English, and the AI can only ever run safe, read-only lookups.
Screeners make you learn a filter UI. Letting a model write SQL instead invites injection and runaway queries. Here you type large-cap tech, P/E under 20, up 5% this week
, and the model only picks fields and values. Companies and prices are simulated.
What's interesting
- The model never writes SQL. Claude fills a strict JSON spec. Our compiler turns it into parameterised SQL over one read-only view, with column names from an allowlist.
- The cache stores translations, not results. Valkey caches question-to-spec, the slow and paid step, keyed by prompt version. Rows are recomputed every time, so prices stay live.
- Windows use event time. Flink groups ticks into 1-minute bars by trade time, with a watermark for late data, and writes them to Iceberg. DuckDB reads the same table.
Tech stack
secure-landing-zone
An AWS landing zone for Kubernetes, with a signed-image supply chain and a cost-anomaly bot.
Why it matters: Closes two common cloud risks, leaked deploy keys and unverified software in production, and flags a surprise bill the next day, not at month end.
Many AWS starter setups keep cloud keys in CI and run any image they're given. This one stores no keys, admits only images its own workflow signed, and posts to Slack when spend jumps. Terraform modules, with Terragrunt for dev, staging and prod.
What's interesting
- No cloud keys in CI. GitHub OIDC trust is pinned per context. The read-only plan role accepts only pull requests; the apply role accepts only jobs in protected environments.
- Only our images run. Kyverno admits a pod only if its cosign keyless signature and SLSA provenance come from this repo's image workflow on
main. - Detection is math, the LLM only explains. A trailing-mean z-score plus a minimum dollar change finds anomalies. Claude says what to check. If the API fails, the bot posts the raw numbers.
Tech stack
How a change reaches AWS
- Pull request fmt, validate, tflint, checkov
- OIDC short-lived token, read-only plan role
- Plan comment dev, staging and prod plans on the PR
-
Merge
to
main -
Apply dev
automatic, via the
devenvironment - Staging, prod manual run; prod waits for a reviewer
What the pipeline produces
Example output. Illustrative values, shaped like what the code emits.
Example output: the comment the plan job posts on a pull request that raises the dev budget.
Example output: checking that an image was signed by the repo's image workflow on main.
$ cosign verify ghcr.io/prashi23/sample-app@sha256:4f1c…9b2e \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity https://github.com/prashi23/secure-landing-zone/.github/workflows/image.yaml@refs/heads/main
Verification for ghcr.io/prashi23/sample-app@sha256:4f1c…9b2e --
The following checks were performed on each of these signatures:
- The cosign claims were validated
- Existence of the claims in the transparency log was verified offline
- The code-signing certificate was verified using trusted certificate authority certificates
[{"critical":{"identity":{"docker-reference":"ghcr.io/prashi23/sample-app"},
"image":{"docker-manifest-digest":"sha256:4f1c…9b2e"},"type":"cosign container image signature"},
"optional":{"Issuer":"https://token.actions.githubusercontent.com",
"Subject":"https://github.com/prashi23/secure-landing-zone/.github/workflows/image.yaml@refs/heads/main"}}]
Example output: Kyverno rejecting a laptop-built image in a namespace labelled supply-chain: enforced.
$ kubectl run demo -n apps --image=ghcr.io/prashi23/sample-app:laptop-build
Error from server: admission webhook denied the request:
ImageValidatingPolicy verify-signed-images rejected Pod apps/demo
image: ghcr.io/prashi23/sample-app:laptop-build
Image is not signed by this repo's image workflow on main.
Example output: the daily Slack post. The numbers come from the z-score check; Claude writes the explanation.
~$1,155/month extra if yesterday's level continues (slz-dev).
Amazon Elastic Compute Cloud - Compute: $41.20 yesterday vs $9.10/day normal (+$32.10, +353%). Likely a new node group, or spot capacity falling back to on-demand. Check: Cost Explorer, EC2, group by Usage type, look for on-demand BoxUsage.
AmazonCloudWatch: $7.80 vs $1.40/day normal (+$6.40, +457%). Likely log ingestion, for example VPC flow logs or EKS audit logs. Check: aws logs describe-log-groups and sort by stored bytes.
How I build
-
Tests and evals before demos
Every project's tests run without Docker or an API key. The two AI features also have evals: recorded incidents for the agent, scored questions for the screener.
-
Read-only unless it has to write
The agent's RBAC is read-only. The screener queries one read-only view. CI plans with a read-only role and stores no cloud keys.
-
The model explains, code decides
A compiler writes the SQL. A z-score finds the cost spike. The agent suggests a fix; a person applies it.
github-actions bot commented
terragrunt plan (dev)