Skip to content

UPS-REPO — Repository layout and required files

What every repo looks like from the root, and what each required file must contain. File presence per tier is already gated by _data/standards.yml; this spec governs content and layout.

Evidence base: 33 of 35 fleet repos carry the byte-identical hub .editorconfig; every repo except two has a tools/ directory; README structure varies from none (zer0-pages-remote) to raw course HTML (skills-github-pages); 12 owned repos lack a LICENSE; no repo has SECURITY.md.

Layout

id level applies requirement satisfied by seed
UPS-REPO-01 MUST all Root holds only: docs-of-record (README.md, CLAUDE.md/AGENTS.md, LICENSE, CHANGELOG.md, SECURITY.md, CONTRIBUTING.md, SCHEMA.md), tool manifests, dotfiles, and top-level directories from the stack profile. Source never sits loose at the root. SCHEMA.md Structure table lists every root entry templates/schema/
UPS-REPO-02 MUST all Source lives under the stack's canonical source dir (src/, app/, pages/, lib/, or the framework's own convention — see STACKS.md); tests under tests/ (Python/Node/Bash) or the framework's own (test/ for Ruby gems and Playwright suites, cypress/ retired in favour of Playwright). New repos use tests/; existing test/ dirs are grandfathered and recorded as a deviation. dir present, referenced from SCHEMA.md scripts/project-init.sh
UPS-REPO-03 MUST all docs/ holds human docs beyond the README (UPPERCASE-TOPIC.md for operator docs, lowercase for guides). A repo with a docs site declares its generator (mkdocs.yml or the Jekyll site itself); a bare docs/ with no index is a warning. docs/README.md index exists —
UPS-REPO-04 SHOULD all tools/ holds the repo's own operator scripts (kebab-case, #!/usr/bin/env bash, set -euo pipefail, shellcheck-clean) and nothing that ships to users. tools/ + tools/README.md —
UPS-REPO-05 MUST all Multi-surface repos (backend + frontend, extension + CLI) keep each surface in its own top-level dir with its own manifest and README; the root README links them. e.g. backend/, frontend/ each with README.md —
UPS-REPO-06 MUST all Every directory with more than trivial content has a README.md (README-First/README-Last) and, in a schema-adopted repo, a SCHEMA.md. file present templates/schema/, .github/templates/README.template.md
UPS-REPO-07 MUST all No committed build output, node_modules/, lockfiles, .env, or secrets. .gitignore carries the fleet lockfile block. The one lockfile exception is UPS-QA-40's, in the hub only: the runtime lockfile of a hub reusable workflow declared in QUALITY.contract.yml sanctioned_lockfiles, which the hub's .gitignore re-allows after the block; no member repo can claim it. .gitignore contains the unpin-deps.sh block; git ls-files clean tools/unpin-deps.sh
UPS-REPO-08 MUST all Exactly one checkout per upstream in the fleet. Duplicate directories tracking the same remote (as edgar-data-parse≡fredgar-ai and vscode-front-matter≡zer0-cms were until the 2026-09-07 reconciliation) are a registry defect, not two projects. registry + .gitmodules have one path per repo_url dash reconcile

Required files — content contracts

id level applies requirement satisfied by seed
UPS-REPO-10 retired all Retired 2026-10-22 → UPS-DOC-10, which states the portfolio skeleton the fleet's READMEs actually follow (docs/PORTFOLIO.md §4). Was: README.md opens with # <name>, a tagline blockquote and a badge row, then What it is · Quick start · Usage · Development · Testing · Deployment · Contributing · License. — —
UPS-REPO-11 MUST all Quick start is copy-pasteable: one install command, one run command, one test command, each in a fenced block, and they match CLAUDE.md Stack & commands exactly. commands identical in both files —
UPS-REPO-12 MUST all except fork LICENSE is present and its SPDX id is recorded in the registry license: field. Default for bamr87-owned repos is MIT; content repos MAY use CC-BY-4.0 and say so in the README. LICENSE + registry field templates/license/ (gap — see CONFORMANCE)
UPS-REPO-13 retired all except content, fork Retired 2026-10-03 (decision D5) → UPS-REPO-21, which drops the content exemption so this row and UPS-QA-33 agree. Was: CHANGELOG.md exists and is release-please managed (Keep-a-Changelog headings, newest first). Hand-edits go only above the first release heading. file + release-please-config.json tools/adopt-release.sh
UPS-REPO-14 MUST app, api, ext, lib, cli SECURITY.md states the supported versions, how to report privately (GitHub private vulnerability reporting), and the response window (fleet default: acknowledge within 7 days). file with those three headings templates/community/SECURITY.md
UPS-REPO-15 SHOULD all except fork CONTRIBUTING.md covers: branch naming, Conventional Commits, how to run the gates locally, the PR template, and the submodule rule (commit here first, hub bumps the pointer). Repos may instead link the hub's CONTRIBUTING.md in one line. file or README link templates/community/CONTRIBUTING.md
UPS-REPO-16 SHOULD all CODEOWNERS exists (soft template: * @bamr87) so the issue pipeline's owner routing has a default. .github/CODEOWNERS .github/templates/CODEOWNERS-soft.template, templates/community/.github/CODEOWNERS
UPS-REPO-17 MUST all .editorconfig is the hub's byte-for-byte (utf-8, lf, final newline, trim trailing; 2-space yml/json/js/ts/sh, 4-space py with max_line_length = 120, tab Makefile, md exempt from trim). cmp with hub copy tools/fanout.sh --kit standardize --artifacts editorconfig
UPS-REPO-18 MUST all Issue templates: bug_report.yml, feature_request.yml, documentation.yml plus the feedback-widget template page_feedback.yml (see FEEDBACK.md); each applies the type label from the fleet taxonomy so filed issues enter the issue pipeline. .github/ISSUE_TEMPLATE/*.yml templates/community/.github/ISSUE_TEMPLATE/ + templates/feedback/
UPS-REPO-19 SHOULD all .github/pull_request_template.md with: summary, linked issue, checklist (gates green, README-Last done, SCHEMA.md updated). file present templates/community/.github/pull_request_template.md
UPS-REPO-20 MUST all Front matter and file headers follow the house rule: shell/python tools carry the header block (File, Description, Author, Created, Last Modified, Version, Usage); Jekyll content carries title, description, date/lastmod, tags, categories, permalink (see FRONTEND.md FE-40). header present .github/copilot-instructions.md § File Headers
UPS-REPO-21 MUST all except fork CHANGELOG.md exists in every repo, content repos included (decision D5), and release-please writes it: release-please-config.json + .release-please-manifest.json at the root (release type by repo type: simple for docs, sites, demos and the control plane; node/python/ruby by ecosystem for apps and libraries), and a workflow calls the hub's reusable release-please.yml at a pinned ref (UPS-WORK-10). A caller of bamr87/.github's release-please.yml warns only while this row carries the contract's rollout: warn marker. Once the marker is removed it fails at any ref, including when it is unpinned at @main. Migrate it to the hub's reusable workflow (D3). A repo that has both a hub caller (pinned or at @main) and a bamr87/.github caller fails now, rollout or not, because it can release twice (the contract's hard_fail: double_release). Never edited by hand. files present + caller templates/sdlc/release/, hub .github/workflows/release-please.yml

Containers, local environment and the editor

id level applies requirement satisfied by seed
UPS-REPO-30 SHOULD app, api, site A docker-compose.yml (or compose.yml) runs the whole app locally with one command; a .devcontainer/devcontainer.json composes it and pins the fleet VS Code extension set. files present hub .devcontainer/, docker-compose.yml as reference
UPS-REPO-34 MUST app, api, site Every published port is env-overridable and loopback-bound — "127.0.0.1:${NAME_PORT:-<default>}:<container>", never a bare 8000:8000. The default comes from that project's allocation in the hub's _data/ports.yml, not from a fixed per-role number. This replaces the old fixed map (4000/5000/5173/8000/5432/6379), which every repo obeyed and which is exactly why six repos published 5432, six 3000, five 8000 and 8080, and four 4000 — correct for one repo at a time, impossible for the fleet at once. drift check (m); tools/fleet-compose.py check --audit hub _data/ports.yml, reference impl: projects/djangoerp
UPS-REPO-35 MUST app, api, site No container_name:. Container names are global to the Docker daemon, so two repos that pick the same one cannot run together — the hub and projects/README both claimed bamr87-wiki. Let Compose namespace containers as <project>-<service>-1. drift check (m) hub compose/overrides/
UPS-REPO-36 SHOULD app, api An env_file: entry that a fresh clone will not have uses the long form with required: false; a service that a shared hub service supersedes locally sits behind profiles: [standalone]. Both keep the repo runnable standalone and inside the fleet stack. compose review projects/law-ai/docker-compose.yml
UPS-REPO-37 MUST app, api, site Container image versions come from one registry. A Dockerfile FROM or compose image: for postgres, redis, node, python, ruby or nginx tracks _data/fleet.yml images: — the tag's variant (-alpine, -slim) is the repo's own choice, a version is never lowered, and bookworm variants move to trixie. A deliberate pin is a comment on or directly above the image line containing "pinned", "bump deliberately", "do not bump" or "fleet-pin" (it freezes that image family repo-wide). A repo whose ecosystem lags gets a ceiling with its reason in image_overrides: (law-ai: Python 3.13, crewai has no 3.14 release). tools/dash docker check; drift check (n) tools/docker_harmonize.py; tools/fanout.sh --kit docker
UPS-REPO-38 MUST app, api, site A healthcheck: probes 127.0.0.1, never localhost — localhost resolves to ::1 first and most servers bind IPv4 only, so a healthy service reports unhealthy (seen on Wiki.js, barodybroject docs, zer0-cms). It uses a tool the image actually ships: qdrant has no curl, so bash -c ':> /dev/tcp/127.0.0.1/6333'; celery inspect ping needs an explicit --timeout. compose review; dash docker check tools/docker_harmonize.py rules H1/H2
UPS-REPO-39 MUST app, api (with Postgres) Postgres 18+ mounts its volume at /var/lib/postgresql, not /var/lib/postgresql/data — the image stores data in a major-versioned subdirectory and refuses to start on the old path. A Postgres MAJOR bump orphans existing local volumes; migrate with tools/dash dev db-upgrade (backs up the raw volume and takes a pg_dumpall before removing anything) rather than deleting data. dash docker check; fleet-dev.sh up preflight tools/pg-major-upgrade.sh
UPS-REPO-31 MUST app, api Dockerfiles are multi-stage, run as a non-root user, declare a HEALTHCHECK hitting the health endpoint (BE-10), and never copy .env. Dockerfile review .github/copilot-instructions.md § Container-First
UPS-REPO-32 MUST all with env config .env.example lists every variable the app reads with a comment and a safe placeholder; the app fails fast on a missing required variable (OPS-01). file present, names match code —
UPS-REPO-33 SHOULD all One bootstrap script (tools/setup.sh or the stack's make setup/npm run setup) brings a fresh clone to a passing test run; the README Quick start calls it. script present scripts/project-init.sh
UPS-REPO-40 SHOULD app, api, site, ext, cli, lib The editor is a front door (hub constitution § 20). A repo with a run, test or debug command carries .vscode/launch.json and .vscode/tasks.json whose entries call the repo's own one-command entry points — its compose file, its npm/make/tools/ scripts, the same commands its README Quick start names (REPO-11) — never a second implementation; a debuggable surface gets a real debugger entry (debugpy, browser, attach) rather than a terminal launcher; ports are the compose file's env-overridable ones (REPO-34); extensions.json recommends the fleet set the hub's .devcontainer/ pins (REPO-30). JSONC with line comments is fine; every preLaunchTask must resolve to a tasks.json label. Content repos, forks and archived repos are exempt. .vscode/launch.json + tasks.json present and parseable, every preLaunchTask resolving — tools/conformance.py check UPS-REPO-40; hub reference: .vscode/README.md; dash audit artifact vscode templates/vscode/ (gap — roadmap; the hub's .vscode/ is the reference)