From 6fefa86a84a8e6e40fef168c03feb5e7d08a10c1 Mon Sep 17 00:00:00 2001 From: Armin Date: Fri, 14 Aug 2026 12:49:12 +0000 Subject: [PATCH] Prevent publication of styling instructions --- AGENTS.md | 1 + scripts/check_public_content.sh | 4 ++++ validation/CASE_SELECTION.md | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index ba8b86e..f47e675 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,5 +6,6 @@ - Python is forbidden for this project. Public workflow code and documentation must use R, Julia, Stan, and shell only; do not add Python scripts or Python references. - `data-setup/run_data_setup.sh` is intentionally a no-option public entry point. It downloads script-accessible sources, checks local raw files, rebuilds generated inputs under `_local/`, compares them to committed `data/`, and never replaces committed inputs automatically. - This is a public release repository. Commit only publication-ready code, data, documentation, figures, and release metadata. Keep working notes, private correspondence, assessment records, decision logs, draft response material, and non-public planning outside this repository. +- Implement requested visual styling in code without copying author directions, design negotiations, or styling-compliance claims into public figure descriptions or documentation. - Before every public push, run `bash scripts/check_public_content.sh`. Install the version-controlled pre-push guard with `bash scripts/install_public_guard.sh` in each local clone. - If material was committed here in error, stop publication work. Removing it in a later commit is insufficient: create a clean replacement history or repository before resuming publication. diff --git a/scripts/check_public_content.sh b/scripts/check_public_content.sh index 5877795..e427cce 100755 --- a/scripts/check_public_content.sh +++ b/scripts/check_public_content.sh @@ -29,6 +29,10 @@ check_names() { check_names +styling_meta_pattern='[Cc][Oo][Ll][Oo][Uu]?[Rr][ -]?[Bb][Ll][Ii][Nn][Dd]|[Gg][Rr][AaEe][Yy][ -]?[Ss][Cc][Aa][Ll][Ee]|[Mm][Oo][Nn][Oo][Cc][Hh][Rr][Oo][Mm][Ee]|[Ss][Tt][Yy][Ll][Ii][Nn][Gg][ -]?[Cc][Oo][Mm][Pp][Ll][Ii][Aa][Nn][Cc][Ee]|[Dd][Ee][Ss][Ii][Gg][Nn][ -]?[Nn][Ee][Gg][Oo][Tt][Ii][Aa][Tt][Ii][Oo][Nn]' +styling_hits="$(git grep -n -I -E "$styling_meta_pattern" HEAD -- README.md validation ':(glob)**/*.md' 2>/dev/null || true)" +[[ -z "$styling_hits" ]] || fail "public documentation contains internal styling instructions or compliance language:\n$styling_hits" + while IFS= read -r commit; do check_ref "$commit" done < <(git rev-list --all) diff --git a/validation/CASE_SELECTION.md b/validation/CASE_SELECTION.md index 85a141f..660bd1b 100644 --- a/validation/CASE_SELECTION.md +++ b/validation/CASE_SELECTION.md @@ -12,4 +12,4 @@ The connected paths show recognizable changes across countries and political tra All election-year posterior means in these windows form the connected paths. The labelled endpoints include 95% latent-position credible intervals. The manuscript uses published historical research to interpret the broad movements without treating the estimates as causal evidence. -The figure deliberately omits standalone party-year anchors. Colour-blind-safe colours distinguish the three paths, while redundant line types and point shapes preserve legibility in monochrome reproduction. Horizontal and vertical bars show 95% latent-position credible intervals at each labelled endpoint. The machine-readable plotting table retains every path observation. +The figure contains only these three trajectories. Horizontal and vertical bars show 95% latent-position credible intervals at each labelled endpoint. The machine-readable plotting table retains every path observation.