Community AI · Access Boundaries

Fencepost

Designing a community AI storyboard where revoking access actually cuts the model off.

Neighbors sharing backyard wildlife stories need to feel confident that photos won't expose home metadata, private entries won't echo inside an AI summary, and printed QR shares stay revocable.

A live community wildlife storyboarding app where revoking a QR grant or deleting an entry cuts it out of future AI context immediately.

Interaction & privacy architecture, AI safety proxy design, access boundary rules, and deployment verification

A Brisbane ringtail possum frame from the Fencepost community wildlife storyboard
Challenge

Sharing neighborhood wildlife sightings invites both privacy leaks and unsafe AI replies.

Residents filming possums around their homes do not want exact addresses, EXIF metadata, or private entries leaking into a public feed or an AI assistant's context window. Meanwhile, an AI-assisted community storyboard needs content screening, clear moderation voting, and a hard guarantee that deleting an entry or revoking a share link takes effect on the very next model call.

Verification

Privacy guarantees verified through offline data invariants and safety red-line reviews.

Data-layer isolation checks

Zero-network checks isolate the model to verify three core rules: private entries stay out of assistant context; deleted sightings vanish immediately; revoked grants block follow-up chat.

Safety red-line cases

run_redline.py evaluates prompt boundaries alongside non-English checks and structured human judgment whenever assistant instructions change.

Real-route deploy check

After a September .vercelignore mistake left web/ missing even while Vercel reported green, scripts/check_deploy.py was built to probe every live page and API endpoint after release.

Architecture & Trust

Separating what the model sees from what the timeline renders.

The API deliberately runs separate queries for the contributor timeline and the AI assistant context. Videos store only an opaque storage key so EXIF has no column to land in. Permissioned share tokens are returned once at creation and stored solely as hashes with 1–90 day expiry; revoking a link or grant takes effect immediately with zero cache lag, and closing a storyboard archives it without breaking existing QR posters.

Open community feed
  • Public feed with raw photo uploads & EXIF
  • Model context reads every saved entry
Revocable context invariant
  • Schema strips EXIF; revocable QR access_grants
  • 431 offline tests verify context cut on revoke
Three-Role AI Proxy · Two-Project Deployment

POST /api/assistant dispatches across three scoped roles (Screener, Writer, Chat with SSE streaming), recording prompt_version beside every database output. Every error returns fixed copy so upstream model text, prompts, and API keys never leak to the client, and a sliding 24-hour global call cap (LIMIT_MODEL_CALLS_PER_DAY) bounds spend even under open course signup.

One repository serves two Vercel projects: fencepost (Python single-entrypoint api/index.py + Turso libSQL) and fencepost-web (Next.js frontend at fencepost-app.vercel.app). Cursor-paginated timeline (20/page) and forum (30/page) routes keep base64 frames safely under Vercel's 4.5 MB payload limit, while version-tagged tokens (v2|) prevent rollback confusion.

Operational Honesty

The README documents real operational trade-offs explicitly: the course deployment keeps FENCEPOST_OPEN_SIGNUP enabled so evaluators can try the frontend without account provisioning, while read visibility stays locked behind access_grants; a real production launch would disable open signup and enforce strict password/session auth.

Outcome
Outcome & scope

RevocableQR grants cut off assistant context immediately

safety checks gating prompt and tone changes
Red-lined
no location columns or plaintext tokens persisted
Zero EXIF

A live full-stack community storyboard deployed on Vercel and Turso, with permission invariants, safety red-line review, and live route verification keeping sharing boundaries intact. Built for a course rollout context, with neighborhood field trials scoped next.

Reflection

Trust in an AI community product is mostly plumbing that users never see until it fails: revoking a grant without stale cache, keeping EXIF out of the schema altogether, and refusing to believe a green deploy badge until a script verifies every live route.

Interactive prototype · Revocable AI context boundary

Revoke a resident QR grant and watch the AI lose access

Ask the guest AI a question while the share is Active, then click Revoked QR or Soft-deleted on the left and re-ask to test immediate context cut-off.

Lazy-loaded near viewport so initial case paint stays fast.

Ready: try the controls below to test state transitions and guardrails.
Interaction takeaway

Community AI trust is enforced at the query layer, not by polite prompt disclaimers: revoking access_grants or soft-deleting removes the record from model context immediately.

Inspect the live deployment

The public course deployment (fencepost-web talking to fencepost-api on Turso libSQL). Note: the course build intentionally enables open handle signup for demo convenience, while read visibility stays strictly gated by access_grants.

Open in a new tab ↗
Frames from the Brisbane storyboard

Wildlife frames shipped inside web/public/frames/ of the Fencepost repository. Entries strip EXIF by design (keeping only a storage key) and reach other residents solely through revocable permissioned QR links.

Ringtail possum perched on a branch in Brisbane
Ringtail possum frame used in the storyboard flow. Visibility runs strictly through access_grants, never an open public feed.
Brushtail possum peeking out in a Brisbane backyard
Every resident entry passes through the Screener model before creation; edits are re-screened and rejected edits leave the original untouched.
Nighttime ringtail possum sighting at Shorncliffe
Timeline and forum endpoints use cursor pagination (20 / 30 items) so base64 frames never breach Vercel's 4.5 MB payload cap.

Outcome limits

Course deployment intentionally leaves demo handle sign-in open so reviewers can explore without creating passwords.

Read visibility stays locked behind access grants, while handle sign-in itself fits a classroom review context rather than public streets.

Next validation Require full resident authentication before any public neighborhood rollout.

Built and checked through automated privacy invariants and red-line prompts; field adoption with Brisbane households has not started yet.

Privacy guarantees in the data layer are tested directly, while everyday neighborhood sharing habits still need real-world observation.

Next validation Run a scoped trial with a few Brisbane households sharing backyard sightings.

For interviewers

Methods, evidence, process and hard questions. Collapsed by default.

Methods and evidence

Methods

  • revocable QR sharing
  • three-role AI workflow (Screener / Writer / Chat)
  • offline invariant checks
  • safety red-line review
  • post-deploy route verification

Evidence collected

  • live interactive prototype at fencepost-app.vercel.app backed by Python API + Turso libSQL
  • automated access checks enforcing three privacy rules: context isolation, soft-delete cut-off, and instant QR grant revocation
  • red-line prompt review alongside automated post-deploy route checks built after a real .vercelignore incident

What I would do next

Replace demo handle login with full resident sign-in ahead of any public neighborhood pilot, and observe a first backyard sharing trial.

Design term note · inspect:Privacy invariantRevoking an access_grants token updates the database read join immediately with zero cache lag, so the assistant loses access on the very next prompt.
Interview pack

Questions interviewers ask

How do you keep private or deleted sightings out of the AI assistant?

By enforcing it in SQL before the model is ever called, not via prompt instructions. The assistant runs its own access-checked query, and 431 offline tests verify that other users' entries, soft-deleted rows, and revoked grants disappear on the very next call.

Jump to Verification ↓Tests run against a faked model; live model phrasing is checked separately via 29 red-line cases.
Why build scripts/check_deploy.py when Vercel already reports deployment status?

On 17 September 2026 a shared .vercelignore rule accidentally excluded web/, so Vercel built an empty 404 app and showed green for an hour. check_deploy.py probes real frontend pages and every API route after each release.

Jump to Three-Role AI Proxy ↓Probes route availability without creating test database rows.
How does Fencepost stop neighbourhood sightings from leaking residents' addresses?

Video registration stores only an opaque storage key — there is no schema field for EXIF to land in — and storyboards reach outsiders strictly through revocable hashed QR links rather than a public map feed.

Jump to Three-Role AI Proxy ↓Protects metadata and access scope; residents still choose what appears inside their video frames.
Why leave open signup enabled in the live deployment?

It is an explicit trade-off for the course evaluation build so reviewers can open fencepost-app.vercel.app without provisioning accounts, while read visibility stays locked behind access_grants. The README flags it as mandatory to disable before public use.

Jump to Outcome limits ↓Acceptable for a demo environment, never for production residents.
Fencepost | Lewis Dong