You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(coordination): guard against misplaced DB content + resite runbook
nextgen-databases documents itself as a thin coordination repo ("no
implementation code lives here") but physically holds full database
implementations, and there was no top-level guardrail — so LLMs keep
adding per-database content here instead of in each database's own repo.
Prevention (stops the drift):
- Root CLAUDE.md / AGENTS.md: coordination-only instructions
- REGISTRY.adoc: authoritative database/language -> repo map
- 0-AI-MANIFEST.a2ml + AGENTIC.a2ml: new "coordination only" invariant/constraint
- CONTRIBUTING.md: accurate structure + what belongs here vs a database repo
- .github/workflows/placement-guard.yml: fails PRs that add misplaced files
- .claude/ pre-write hook: blocks new per-database files locally
Remediation (resite, executed later):
- docs/migration/RESITE-DATABASES-TO-OWN-REPOS.adoc: history-preserving
extraction runbook + mapping + open decisions
- scripts/resite/extract-subdir.sh: helper (does not push)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W8DXRHQRBgxwSdDz8om287
echo "::warning file=${f}::Added inside a legacy database directory. This content should live in its own repo (see REGISTRY.adoc); these directories are being extracted."
68
+
continue
69
+
fi
70
+
echo "::error file=${f}::Misplaced content. nextgen-databases is a coordination repo — this belongs in a database/language repo. See REGISTRY.adoc."
71
+
FAIL=1
72
+
done < /tmp/added.txt
73
+
74
+
{
75
+
echo "## Placement Guard"
76
+
echo ""
77
+
if [ "$FAIL" -eq 0 ]; then
78
+
echo ":white_check_mark: No misplaced new content detected."
79
+
else
80
+
echo ":x: New files were added outside the allowed coordination paths."
81
+
echo ""
82
+
echo "\`nextgen-databases\` is a **coordination repo**. Per-database code, schemas,"
83
+
echo "docs, and query languages belong in their own repos — see \`REGISTRY.adoc\`."
0 commit comments