SidewalkWebpage evolutions.instructions.md

A set of project-specific instructions for reviewing database schema changes in Project Sidewalk. A schema describes tables, columns, relationships, and rules in a database.

In plain words
What is it for?
Use it to review evolution files in pull requests, including new or changed tables, foreign keys, uniqueness rules, bounded values, and renamed database objects.
Why use it?
It helps catch missing database ownership, constraints, validation rules, and rename cleanup before schema changes are accepted. It also checks that database rules match the application's data model.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/projectsidewalk/sidewalkwebpage/evolutions
Clone the repo
git clone --depth 1 https://github.com/ProjectSidewalk/SidewalkWebpage

Made for: GitHub Copilot.

Per session 440 This file is loaded in full into every session.
When invoked 440 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00440 $0.00440
Opus 5 $0.00220 $0.00220
Sonnet 5 $0.00088 $0.00088
Haiku 4.5 $0.00044 $0.00044

Measured 2d ago against content hash b0576f7d7506, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

SidewalkWebpage evolutions.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/evolutions.instructions.md · 28 lines

What it actually says

Play evolution (schema) review — highest-value checks

  • One evolution file per PR. Flag a PR minting a new-numbered file when its changes could fold into the PR's existing evolution.
  • Owner: every CREATE TABLE must be followed by ALTER TABLE <name> OWNER TO sidewalk; in the same file. Flag any missing it. Tables ONLY — not enum types, views, or standalone sequences; SERIAL/identity sequences are covered automatically by the table's owner change.
  • Full constraints — don't lean on the app. For each new/altered table flag missing: NOT NULL on never-null columns, UNIQUE/PK on natural keys & 1:1 relationships, a FOREIGN KEY for every reference, a CHECK for bounded domains (severity 1–3, non-negative counts, 0–1 fractions, valid lat/lng). Each must be mirrored in the Slick model.
  • Closed value sets: prefer a Postgres enum type (high-row / runtime-written / Scala-mirrored columns) or a CHECK (col IN (...)) (tiny config tables) over a lookup table or bare text. When an enum replaces a same-named lookup table, DROP TABLE must precede CREATE TYPE.
  • Renames leave fossils. An evolution renaming a table/column must also ALTER TABLE ... RENAME CONSTRAINT / ALTER INDEX ... RENAME every constraint and index embedding the old name (to <table>_<column>_{fkey,key,pkey,check}) and update the Slick name string. Flag a rename that omits this.
  • Parser trap: no ; inside a -- comment — Play's evolution parser splits statements on ; and will break. Flag it.
  • Both # --- !Ups and # --- !Downs sections must be present.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 28 lines · 440 tokens per session scan A b0576f7d7506

Subscribe to this mod's changes

SidewalkWebpage evolutions.instructions.md is an instructions file published in the GitHub repository ProjectSidewalk/SidewalkWebpage (104 stars, last pushed 3d ago), licensed MIT. It adds 440 tokens to every session, about $0.0022 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.