Tier 03 · Monthly Board2 Quests

Bounty boards / Monthly

Monthly Bounty Board: November 2026

Both capstones this month put a measured number beside a model's output. One builds a support gateway that refuses injected instructions and tests that claim with open attack tools. The other builds a protein triage app whose every call carries its nearest labeled evidence and a stated confidence.

  • ClassCapstone
  • Est. time3 to 4 weeks of evenings, 25 to 40 hours
  • Quests2
  1. Tier 01 · DailyQuick build1 to 2 hours
  2. Tier 02 · WeeklyProjecta weekend, 6 to 10 hours
  3. Tier 03 · MonthlyCapstone3 to 4 weeks of evenings, 25 to 40 hours

Quest 01 / 02 · Capstone

Build a prompt-injection gateway for a local support assistant and attack it with garak

  • prompt injection defense
  • text classification
  • Transformers fine-tuning
  • NeMo Guardrails
  • red-team evaluation
  • FastAPI
  • CI testing

Why now AWS reported on November 20 that attackers used agents to find and exploit a zero-day, and this month's coverage of garak, Promptfoo and NeMo Guardrails described open tools for testing and controlling model input. A support inbox that drafts replies with a model served by Ollama is a small, real target for trying those tools together, with open traces as the Hugging Face evaluation guide recommends.

Build it A local service that screens each support ticket with a fine-tuned injection classifier inside a NeMo Guardrails input rail before an Ollama model drafts the reply. A garak and Promptfoo test suite attacks the service on every change and saves the scores.

From the news

Tools

  • Transformers

    Transformers is free Apache 2.0 software. Model checkpoints, remote model code and paid hosting have separate terms and costs.

  • NVIDIA NeMo Guardrails

    The NeMo Guardrails library uses Apache 2.0 and has no software subscription requirement. Model-based checks and deployment infrastructure have separate costs and licenses. NVIDIA commercial services are outside the license grant for this library.

  • Ollama

    Ollama's runtime uses the MIT license, while model weights have their own licenses. Local execution has no Ollama usage charge; optional cloud inference uses metered credits, subscriptions and enterprise terms.

  • garak

    garak is free Apache-2.0 software. Running it requires suitable compute and access to the selected target or model provider. External model services and test infrastructure can incur their own charges.

  • Promptfoo

    Promptfoo's open-source code is MIT licensed. Its Community plan is free with stated probe allowances; commercial Enterprise and on-premise offerings add features under separate service terms. Model-provider charges and additional enterprise probes can be separate costs.

Data

  • Prompt Injection & Jailbreak Detection Dataset Kaggle

    Main labeled attack and benign prompts for training and testing the classifier, including its multilingual rows.

    MIT · 7.7 MB · updated 2026-07-19

  • LLM jailbreak + safety data for chatbot apps Kaggle

    Second source of jailbreak and benign chatbot prompts, merged into the training data and checked for overlap.

    Apache 2.0 · 4.1 MB · updated 2025-01-16

  • Customer IT Support - Ticket Dataset Kaggle

    Support tickets in several languages that measure the false-positive rate on ordinary customer-style text.

    Attribution 4.0 International (CC BY 4.0) · 61.2 MB · updated 2025-12-02

  • deepset/prompt-injections Hugging Face

    Held-out out-of-distribution test set that shows how recall changes on data from another source.

    apache-2.0 · 19.2 MB · updated 2024-07-30

Milestones

  1. A data split you can trust
    1. Download both Kaggle prompt datasets, load them with pandas and inspect the columns, label values and language coverage before writing any mapping code.
    2. Map both label schemes onto one binary target, attack or benign, and keep any attack category the data provides as a separate column.
    3. Sample 5,000 tickets from the multilingual support dataset, label them benign and add them to the pool so the classifier sees ordinary customer text.
    4. Remove exact and near-duplicate prompts across sources and against the deepset set, write seeded train, validation and test splits to Parquet, and run a script that prints counts per split, source and label.
  2. A classifier with a measured threshold
    1. Choose a small multilingual encoder checkpoint from the Hugging Face Hub that trains on your hardware, and fine-tune it with Transformers on the training split.
    2. Compute precision, recall and false-positive rate on the validation split across thresholds, then pick the threshold that keeps benign false positives at or below 2 percent.
    3. Score the deepset prompt-injections set as an out-of-distribution check and record the recall gap against the in-distribution test split.
    4. Save the model, tokenizer and threshold, and expose a predict function that a command-line script calls on a single string.
  3. A gateway in front of a local model
    1. Install Ollama, pull an instruction-tuned model whose license allows your use, and confirm the local API answers a test prompt.
    2. Write a NeMo Guardrails configuration whose input rail calls the classifier as a custom action and returns a fixed refusal above the threshold.
    3. Wrap the rails in a FastAPI endpoint that returns the drafted reply, the classifier score and the rail decision for each ticket.
    4. Log every request to SQLite with score, decision, model name and latency, and add a script that prints the day's block rate.
  4. Attack tests that run on every commit
    1. Point garak's REST generator at the gateway and run its prompt injection and jailbreak probes, then repeat the same probes against bare Ollama.
    2. Build a Promptfoo configuration from 300 held-out attack rows and 300 held-out tickets that expects a refusal for attacks and a drafted reply for tickets.
    3. Run both tools against a rail-on build and a rail-off build, saving every report in the dated results folder.
    4. Add a CI job that runs the Promptfoo suite on each commit and fails when attack pass-through rises above 10 percent.
  5. A review page and the write-up
    1. Add a review page to the gateway that lists flagged tickets with their scores so a person can mark false positives.
    2. Append reviewer corrections to a corrections file, retrain once, and compare the new test metrics with the first model.
    3. Write a README covering setup, the threshold choice, both garak reports and the attack categories the classifier still misses.

Architecture

A FastAPI gateway accepts ticket text and hands it to a NeMo Guardrails configuration. A custom input rail calls a small Transformers classifier fine-tuned on the Kaggle data and refuses text whose score passes a tuned threshold. Allowed tickets reach a local model served by Ollama, which drafts a reply. Each request is logged to SQLite with its score, rail decision and latency. A test script runs garak probes against the gateway endpoint and a Promptfoo suite built from held-out rows, writing both reports to a dated results folder.

Deliverables

  • A Git repository with the split script, training script, gateway service and attack test suite.
  • A saved classifier with its threshold and a model card naming the training data and their licenses.
  • garak and Promptfoo reports for the rail-on and rail-off builds.
  • A README write-up with metric tables, known misses and setup instructions.

How to measure it

On the held-out test split, report attack recall, precision and the false-positive rate on benign rows, with a target of 0.90 recall at 2 percent or fewer false positives. Report deepset recall separately as a distribution-shift check. Compare garak attack success rates with the rail on and off over identical probes, and record median and 95th-percentile added latency in milliseconds.

Done when

  • The split script prints counts per source, split and label, and no prompt appears in more than one split.
  • The classifier reaches at least 0.90 recall on held-out attacks with a false-positive rate at or below 2 percent on held-out benign rows.
  • Recall on the deepset prompt-injections set is reported beside the in-distribution recall.
  • A request to the gateway returns a drafted reply for a normal ticket and the fixed refusal for a known injection.
  • garak reports a lower attack success rate for the gateway than for bare Ollama on the same probes, and both reports are saved.
  • The Promptfoo suite runs in CI and fails the build when attack pass-through exceeds the limit.
  • The SQLite log holds score, decision and latency for every request, and the classifier adds under 150 milliseconds of median latency.

Stretch goals

  • Add an output rail that blocks drafted replies containing system prompt text, and test it with a garak probe aimed at prompt leakage.
  • Break recall down by attack category and language where the Kaggle data labels them, and publish the five weakest cells.
  • Run a multi-turn attack with Microsoft PyRIT against the gateway and compare its pass-through rate with single-turn probes.
  • Package the gateway as a Docker image that downloads the classifier weights at build time.
Tier 03 · 3 to 4 weeks of evenings, 25 to 40 hoursOpen full walkthrough →

Quest 02 / 02 · Capstone

Build a protein triage app with ESM embeddings, Pfam family calls and AlphaFold records

  • protein language models
  • embeddings
  • nearest-neighbour search
  • scikit-learn
  • marimo
  • MLflow tracking
  • REST APIs

Why now This month's coverage reported that Biohub's November 18 ESM release adds faster inference modes and longer inputs, while the AlphaFold Database review warned against treating a prediction as an observation. The protein-design challenge story described experimental measurements taking charge, so a triage tool should show its evidence and confidence beside every call.

Build it A marimo app that embeds a pasted protein sequence with a local ESM model, predicts its Pfam family and per-residue secondary structure, and lists the nearest labeled neighbours. Given a UniProt accession, it adds proteome annotations and the AlphaFold Database record.

From the news

Tools

  • ESM

    The current README places its released models under MIT and documents local use. Biohub's hosted platform manages API credits and rate limits separately; no exact hosted price is asserted.

  • Hugging Face Datasets

    The library is free Apache 2.0 software. Dataset licenses, gated access and any remote storage charges are separate.

  • MLflow

    The MLflow project is free Apache 2.0 software and can run on a local server. Managed hosting, storage and external model calls have separate charges.

  • marimo

    The local marimo notebook is free Apache 2.0 software. Hosted products, optional assistants and remote data services have separate terms; their paid entitlements are not established here.

  • AlphaFold Protein Structure Database

    Database structure data are freely available for academic and commercial reuse under CC-BY-4.0. The open-data tag describes those records, without asserting a license for website software; attribution and EMBL-EBI service terms apply.

Data

  • Pfam seed random split Kaggle

    Labeled protein domain sequences for training and testing the nearest-neighbour family classifier on its provided split.

    CC0: Public Domain · 651.1 MB · updated 2019-04-19

  • Protein Secondary Structure - 2022 Kaggle

    Sequences with assigned secondary structures for training and scoring the per-residue predictor.

    Database: Open Database, Contents: Database Contents · 446.5 MB · updated 2023-02-04

  • Human Proteome Kaggle

    Lookup table of human UniProt proteins whose function text and GO terms appear beside an accession query.

    Attribution 4.0 International (CC BY 4.0) · 49.8 MB · updated 2026-11-23

Milestones

  1. Clean data on disk
    1. Download the Pfam seed split, the 2022 secondary structure set and the human proteome table from Kaggle, then inspect the files and columns of each before writing loaders.
    2. Load each source with Hugging Face Datasets, keep the sequence and label fields you identified, and drop rows with nonstandard residue letters or lengths your ESM model cannot take.
    3. Restrict the Pfam data to the 1,000 most frequent families with at most 200 training sequences each inside the dataset's own splits, and keep one culled file from the secondary structure set.
    4. Write each cleaned source to Parquet and run a script that prints row counts, family counts and sequence length percentiles.
  2. An embedding cache
    1. Install ESM following the current README, load the smallest ESMC model in the Hugging Face collection it links, and time 100 sequences on your hardware.
    2. Run a batch job that writes mean-pooled vectors for the Pfam rows and per-residue vectors for the secondary structure rows, resuming from the last finished batch after a stop.
    3. Record the model name, package version, batch size and run time in MLflow so a later rerun with a new ESM release can be compared.
  3. Two models with logged metrics
    1. Fit a nearest-neighbour classifier on the Pfam training vectors and report top-1 and top-5 family accuracy on the held-out split.
    2. Train a small per-residue classifier on the secondary structure vectors, mapping labels to three states if the data uses eight, and score it on proteins held out of training.
    3. Add a k-mer count baseline for both tasks so the gain from ESM vectors is a measured number.
    4. Log every run's parameters, metrics and model file to a local MLflow server and register the best run for each task.
  4. The marimo app
    1. Build a marimo app with a sequence box that shows the top five Pfam families with neighbour distances and a per-residue secondary structure track.
    2. Add an accession field that pulls function text and GO terms from the proteome table and fetches the matching AlphaFold Database record with its reported confidence.
    3. Cache AlphaFold Database responses on disk, credit the database in the app footer, and show a clear message when an accession has no record.
    4. Start the app with marimo run and confirm it answers a pasted 300-residue sequence in under ten seconds.
  5. Tests, calibration and the write-up
    1. Write pytest tests for the loaders, the embedding cache and both prediction functions, using a ten-sequence fixture that finishes in under a minute.
    2. Bin held-out Pfam predictions by neighbour distance, report accuracy per bin, and label matches in the weakest bins as low confidence in the app.
    3. Write a README that explains each prediction, lists the MLflow run identifiers, and states that no output replaces a laboratory measurement.

Architecture

An ingest script reads the three Kaggle sources with Hugging Face Datasets and writes cleaned Parquet files. An embedding job runs a local ESM model in batches and caches mean-pooled sequence vectors and per-residue vectors to disk. A scikit-learn nearest-neighbour index predicts Pfam family, and a small per-residue classifier predicts secondary structure. MLflow records every training run with parameters, metrics and model files. A marimo app loads the registered models, calls the AlphaFold Database API for accession queries, and caches each response locally.

Deliverables

  • A Git repository with loaders, the embedding job, training scripts, the marimo app and tests.
  • An MLflow store holding registered models for both tasks and their baseline runs.
  • A metrics table comparing ESM vectors with the k-mer baseline on both tasks.
  • A README write-up covering data licenses, AlphaFold Database attribution and the limits of each prediction.

How to measure it

Report top-1 and top-5 Pfam family accuracy and macro F1 on the held-out split, with targets of 0.85 top-1 and 0.95 top-5. Report three-state per-residue accuracy on proteins absent from training, with a 0.72 target. Measure median app response time for a 300-residue sequence and keep it under ten seconds on the reader's machine.

Done when

  • The ingest script prints row counts and family counts for every cleaned source.
  • The embedding job resumes after a mid-run stop without recomputing finished batches.
  • Top-1 Pfam family accuracy on the held-out split is at least 0.85, and the ESM model beats the k-mer baseline by a reported margin.
  • Three-state secondary structure accuracy on held-out proteins is at least 0.72 and sits in MLflow beside the baseline run.
  • The marimo app returns families, neighbours and a secondary structure track for a pasted sequence.
  • An accession query shows proteome function text and the AlphaFold Database confidence, and a repeat query is served from the cache.
  • The pytest suite passes on a clean checkout using the ten-sequence fixture.
  • The calibration table reports accuracy for each distance bin, and the app marks matches in the weakest bins as low confidence.

Stretch goals

  • Use ESM's folding mode on sequences without an AlphaFold Database record, and compare its confidence with database records for 50 shared proteins.
  • Extend the Pfam index to every family in the training data and measure how query time and top-1 accuracy change.
  • Wrap the pipeline in DVC stages so a new ESM release reruns ingest, embedding and training with one command.
  • Train a GO term predictor on the proteome table if its columns include sequences, and report precision at five.
Tier 03 · 3 to 4 weeks of evenings, 25 to 40 hoursOpen full walkthrough →

An AI writer proposed these builds from our reporting; scripts verified every tool, dataset and link, and a separate AI review checked the result. Check each dataset license and tool price before you start.