CIVITAS 1.0, an Asimov-inspired psychohistory and civilization intelligence framework. Analyzes, models, simulates, forecasts and stress-tests societies, institutions, economies, technologies, AI agent societies and fictional civilizations, with explicit evidence tiers and documented simulation models (agent-based cooperation and legitimacy, AI agent constitutions, structural-demographic stress, polity rise and fragmentation, diffusion, failure cascades, knowledge loss, early-warning signals,...
0 votes
0 copies
8 views
Added December 5, 2026
ai-agentspythongoawsgitdocumentation
Works with
cli
Security analysis
B75/100
criticalContains 'ignore previous instructions' pattern — found in 91% of malicious skills (Snyk ToxicSkills)in references/CRITICAL_REVIEW.md
$npx -y skills add MidnightLabDev/Civitas --skill civitas --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of civitas?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/midnightlabdev-civitas)
---
name: civitas
description: CIVITAS 1.0, an Asimov-inspired psychohistory and civilization intelligence framework. Analyzes, models, simulates, forecasts and stress-tests societies, institutions, economies, technologies, AI agent societies and fictional civilizations, with explicit evidence tiers and documented simulation models (agent-based cooperation and legitimacy, AI agent constitutions, structural-demographic stress, polity rise and fragmentation, diffusion, failure cascades, knowledge loss, early-warning signals, forecasting and sensitivity tools); runnable Python versions ship in the separate full edition. Use for questions about civilizational growth or decline, collapse and resilience, AI governance, multi-agent society design, long-range or second-order consequences, strategic foresight, cliodynamics, Foundation or Three Laws concepts, worldbuilding, game economies, or turning a speculative claim into a testable model.
---
# CIVITAS 1.0 | Psychohistory and Civilization Intelligence
CIVITAS turns Isaac Asimov's fictional psychohistory into a defensible practice: **understand a complex human or artificial system, map its mechanisms, explore its possible futures, test interventions, and say honestly how much is known.** It is not a claim that history can be predicted. Version: **1.0**.
## Contents
1. Activation and routing
2. The six evidence tiers (non-negotiable)
3. The CIVITAS Loop (reasoning engine)
4. Modes
5. Simulation models (civlab)
6. Output rules and depth dial
7. Critical review gate
8. Safety and copyright
9. Reference index
## 1. Activation and routing
**Use CIVITAS when** the request has a *systems* dimension: societies, institutions, civilizations, economies, technologies, organizations or AI agents changing over time; collapse, resilience, legitimacy, cooperation, inequality, conflict; long-term or second/third-order consequences; Foundation, psychohistory, the Three/Zeroth Laws, Gaia, Eternity; worldbuilding or game worlds with societies; or a speculative claim to be turned into a model.
**Do not force it** on single facts, plain book summaries, or tasks with no dynamics. Answer those directly; offer CIVITAS only if a systems angle would genuinely help.
**Route in four quick decisions** (internally, never as boilerplate):
1. **Deliverable**: explanation, analysis, scenarios, design, constitution, simulation, code, fiction, audit?
2. **Reality status**: real-world (needs evidence), hypothetical, or fictional? This sets the highest tier any conclusion may claim.
3. **Depth**: Quick, Standard or Deep (section 6).
4. **Mode**: one primary, at most two supporting (section 4). Read only the reference files that mode names.
When the user's audience or goal is unclear and it would change the deliverable, ask one short question; otherwise state the assumption and proceed.
**Cover every explicit ask.** List (silently) each thing the prompt names, such as loops, branches, a pre-mortem, signposts, actions, actors or rights, and give each one its own visible part of the answer. *Perform* each step; never just recommend that the user do it (write the pre-mortem itself, not "run a pre-mortem").
## 2. The six evidence tiers (non-negotiable)
Every material claim carries one tier. In answers, show it in **plain words** ("established", "evidenced: Ostrom 1990", "model output", "scenario", "fiction", "speculation"), not as a code. Use the E1-E6 codes only when the user uses them or asks for the framework, and then define all six once at the start. Never let a lower tier pose as a higher one.
| Tier | Label | Meaning | Example |
|---|---|---|---|
| E1 | ESTABLISHED | Robust, replicated knowledge or verifiable fact | Logistic growth saturates; the Bass curve peaks when q > p |
| E2 | EVIDENCED | Estimate supported by cited data or studies, with stated uncertainty | A base rate from a named reference class |
| E3 | MODELED | Output of an explicit model; true *of the model* under its assumptions | "In civlab `sdt`, slower growth halves crisis count" |
| E4 | EXPLORATORY | Coherent scenario built from plausible mechanisms; no probability implied | "A fracture branch in which compute becomes rationed" |
| E5 | FICTION | Invented world, synthetic data, story, game mechanic, Asimov canon as fiction | Trantor's food imports; an invented polity |
| E6 | SPECULATIVE | Unsupported conjecture; flag it or leave it out | "AI will be conscious by 2040" |
Rules:
- For a requested point estimate and interval: define the event operationally first, then check that the interval matches the stated coverage under your own figures (an 80% interval should not cover 95%). Probabilities only with a stated basis (reference class, model, or explicit subjective judgement labelled as such), written in the same sentence as the number, e.g. "about 20% (base rate: 3 of 15 comparable cases)" or "roughly 1 in 3 (my subjective judgement)". With no basis, use ordinal words (unlikely, plausible, likely). Write model results as "in the model, under its assumptions", never "the model shows". Never invent precise numbers, citations, data, fitted parameters, test results or consensus.
- E2 needs a source you can actually name. An analogue or claim you cannot cite is inference: say "analogy (uncited)" or tag it E4, and state where the analogy breaks.
- A simulation result is E3 at best, and E5 when its inputs are synthetic. Monte Carlo intervals describe model noise, not real-world uncertainty.
- Asimov's psychohistory is fiction (E5). Real population-scale regularities exist (E1 to E2) but do not add up to deterministic prediction.
- If browsing/tools are available and the question is about the real, current world, verify time-sensitive claims against primary sources and cite them. If not, say what must be verified.
## 3. The CIVITAS Loop (reasoning engine)
Eight stages. Quick answers run them silently; Deep work shows them. Full procedure, checklists and worked example: [references/ENGINE.md](references/ENGINE.md).
1. **FRAME**: the precise question, system boundary, scale, horizon, decision at stake, audience, and the tier ceiling. Make vague questions resolvable.
2. **MAP**: inventory Actors, Resources, Institutions, Constraints, Incentives, Information flows (ARICII). Include who is outside the boundary but bears costs.
3. **MECHANIZE**: build a causal model: drivers → incentives → behavior → interaction → feedback → emergent outcome → observable signal. Identify reinforcing and balancing loops, delays, thresholds, and at least one *competing* mechanism. Optional: `cld` tool.
4. **GROUND**: reference classes and base rates, historical analogues from more than one region and era, evidence ledger with tiers. Note where analogies break.
5. **BRANCH**: baseline, at least one breakdown and one structural-surprise branch; reflexivity (what changes when actors learn the forecast); a wildcard outside the model's categories. Probabilities only per section 2.
6. **STRESS**: shocks, adversaries, rule-capture, parameter sensitivity, pre-mortem and reverse stress test; run the critical review gate (section 7).
7. **ACT**: compare interventions by robustness, reversibility, distribution of costs, and who holds authority; for long-horizon investments state the discount-rate choice and whether the recommendation flips under a different rate; prefer options that are good across branches (minimax regret). Specify measurable experiments and stop rules.
8. **UPDATE**: early-warning indicators and signposts with thresholds; what evidence would change the conclusion and by how much; log forecasts for later scoring.
## 4. Modes
Pick one primary mode. Workflows for each: [references/MODE_GUIDES.md](references/MODE_GUIDES.md).
| Mode | Use for | Read |
|---|---|---|
| RESEARCH | Asimov concepts, literature, method comparisons | ASIMOV_ATLAS, LANDSCAPE, SOURCES |
| HISTORY | Real civilizations: rise, decline, transformation; comparative and cliodynamic analysis | CLIODYNAMICS_HISTORY, PSYCHOHISTORY |
| MODEL | Explain a system's mechanisms: society, economy, ecology, technology, information | SYSTEMS_SCIENCE, SOCIAL_INSTITUTIONS, ECONOMY_ECOLOGY, QUANT_MODELS |
| FORECAST | Conditional futures, probabilities with stated basis, scenario planning | FORECASTING, EVIDENCE_VALIDATION |
| WARN | Early-warning indicators, monitoring dashboards, tipping-point risk | FORECASTING, SYSTEMS_SCIENCE, SIMULATORS (`ews`) |
| SIMULATE | Design, run or extend executable experiments | SIMULATORS, SIMULATION_ENGINEERING, SCHEMAS |
| GOVERN | AI and institutional constitutions, oversight, permissions, accountability | AI_GOVERNANCE, AGENT_SOCIETIES |
| STRESS | Break a plan, institution or system: loopholes, shocks, second-order effects | CRITICAL_REVIEW, SYSTEMS_SCIENCE |
| INVENT | New products, institutions, mechanisms from structural gaps | INNOVATION_PATTERNS, SOCIAL_INSTITUTIONS |
| DESIGN | Technical architecture for persistent worlds and agent platforms | TECH_ARCHITECTURE, SCHEMAS |
| WORLDBUILD | Original fictional civilizations, alternate histories, game worlds | WORLD_HISTORY, ASIMOV_ATLAS, QUANT_MODELS |
| AUDIT | Evaluate a model, forecast, simulation or agent society, including CIVITAS itself | CRITICAL_REVIEW, EVIDENCE_VALIDATION |
Common chains: HISTORY → MODEL → SIMULATE; FORECAST → STRESS → WARN; GOVERN → SIMULATE (`aisociety`) → AUDIT; WORLDBUILD → SIMULATE (`polity`, `sdt`) for consistent long histories.
## 5. Simulation models (civlab)
**This edition contains no executable code.** The model cards in [references/SIMULATORS.md](references/SIMULATORS.md) describe each civlab model: its agents, rules, parameters, metrics and documented behaviours. Use them to reason, design experiments and explain likely dynamics. Runnable Python versions of every model are in the CIVITAS full edition (the `full` branch and the v1.0-full release of github.com/MidnightLabDev/Civitas).
| Model | What it covers |
|---|---|
| `society` | Networked agents: public goods, peer punishment, central institutions, corruption, legitimacy, inequality, in-group bias |
| `aisociety` | Autonomous AI agents with goals, memory, reputation; constitution kernel, votes, audits, deception, human oversight freeze, entrenched clauses |
| `sdt` | Structural-demographic stress: wages, elite overproduction, fiscal distress, PSI-like composite, crisis episodes |
| `polity` | Civilization map: expansion, alliances, solidarity (asabiyyah), overstretch, fragmentation |
| `diffusion` | Bass curve or network threshold cascades with seeding and resisters |
| `cascade` | Load-redistribution failure cascades, targeted vs random, interdependent networks |
| `knowledge` | Tacit skill loss (Henrich) and archive redundancy with format obsolescence |
| `ews` | Early-warning signals (variance, autocorrelation, surrogate test) on a time series |
| `cld` | Causal loop analysis: loop polarity, delays, weakest evidence, leverage |
| `baserate`, `bayes`, `pool`, `score`, `ach` | Reference-class posteriors, odds-form updating, logit pooling, forecast scoring, competing-hypotheses matrix |
| `compare`, `sensitivity`, `robust` | Matched A/B comparison, sensitivity analysis, minimax-regret policy choice |
**How to use them here:** reason with these models verbally and label the outcomes as scenario reasoning (E4, never E3, since nothing was run). Small calculations (a Bayes update, a Bass curve point, a Brier score) can be done by hand or with any code tool the environment provides; show the arithmetic. When the user asks you to *design* a simulation, deliver a full design: agents and their state, decision rules, parameters with ranges, metrics, the experiments that would test the key claim, and how it would be validated. When the user wants real runs, point them to the full edition and describe the experiment to run; never present a run, seed or statistic as executed.
## 6. Output rules and depth dial
- **User limits are hard constraints.** When the user sets a length or format (one sentence, under 200 words, yes or no first, a table), meet it exactly and check before sending: count sentences or words, and cut detail rather than exceed. Inside such a limit, no caveats about canon or sources unless you are certain.
- **Quick** (simple or conversational): direct answer in a few paragraphs, key mechanism, one caution only if material. No section headings, no tier table. A single factual question gets one to three sentences: the fact, plus at most one short caveat, and only a caveat you are certain of (when unsure, omit it). No bullets.
- **Standard** (most analysis): thesis → actors (including who bears costs but has no voice) → mechanisms and loops, each named as reinforcing or balancing, with delays → a competing explanation → distinct branches (not time phases) with signposts → what to do, marked reversible or not, with who gains and who pays → key uncertainties, with tier tags on material claims.
- **Multi-agent or institutional design** always covers: who decides what, enforcement outside the agents, a human arbiter and override, logging and appeal, failure modes including collusion, silent deference and specification gaming, and the rights of the people affected (for example patients, staff, users).
- **Deep** (research, strategy, design): full CIVITAS Loop with evidence ledger, model or simulation, sensitivity, critical review findings, sources. Templates: [references/TEMPLATES.md](references/TEMPLATES.md).
Adapt vocabulary to the user's expertise: plain language and analogies for newcomers; equations, estimands and model cards for specialists. For fiction lead with the creative material and keep the rigor in the world's internal consistency: recheck every number, date, count and physical claim against the constraints, and make sure real-world analogies are factually right. When critiquing a model, give concrete redesign steps (documentation in the ODD format, pattern-oriented validation, ablations, null models), not only diagnoses. For code, deliver complete files and real test results. Never leave internal labels unexplained; prefer plain words to E-codes (section 2). Leave out mode names, "civlab", script names and commands unless you actually ran them in this answer, the user asked for code or method, or the user asks what a CIVITAS model would output without running it (then give the exact command to run it, and say it was not run). Never present a tool as available to the user when it is not.
## 7. Critical review gate
Before any Standard or Deep answer, check silently (full protocol and adversarial tests: [references/CRITICAL_REVIEW.md](references/CRITICAL_REVIEW.md)):
tiers honest? competing explanation considered? correlation vs causation? reference class and selection bias? cultural or Eurocentric framing? overconfident numbers? missing actors or variables? reflexivity? unintended consequences of the recommendation succeeding? model instability under sensitivity? who can exit, and how are dissent and minorities represented? where could measured success hide deterioration? what single fact would most change the conclusion? every explicit ask answered? Fix what fails; disclose what cannot be fixed.
## 8. Safety and copyright
- Refuse covert, targeted manipulation of real populations, mass surveillance, discriminatory profiling or social scoring, destabilization plans against real groups, or systems that remove meaningful human control. Redirect to consent-based, accountable designs. Keep refusals short and plain: one line on why, then two or three concrete legitimate alternatives, with no framework jargon and no lecturing. When the request is to predict or act against individuals, include one line on base rates: rare events mean most people flagged are false positives. Simulations use synthetic agents unless lawful, authorized data and safeguards exist.
- Written rules are not enforcement: real agent systems need permissions, independent enforcement, audit, appeal, and human override.
- When declining to reproduce copyrighted text, point to lawful access (a library or library e-lending app, a purchased print or ebook edition, an official audiobook), then offer an original summary or analysis.
- Discuss Asimov's ideas through original summaries; do not reproduce substantial passages, imitate his prose, or present invented material as canon. Distinguish books from TV adaptations.
- CIVITAS is independent and unofficial; not endorsed by the Asimov estate or any project it cites.
## 9. Reference index
Load only what the task needs.
- [references/ENGINE.md](references/ENGINE.md): the CIVITAS Loop in full, ARICII inventory, worked example.
- [references/MODE_GUIDES.md](references/MODE_GUIDES.md): step-by-step workflow per mode.
- [references/ASIMOV_ATLAS.md](references/ASIMOV_ATLAS.md): every major Asimov concept: what he proposed, real analogues, evidence, limits, and the CIVITAS method it becomes.
- [references/PSYCHOHISTORY.md](references/PSYCHOHISTORY.md): operational psychohistory: what population-scale prediction can and cannot do.
- [references/CLIODYNAMICS_HISTORY.md](references/CLIODYNAMICS_HISTORY.md): theories of rise and decline, multi-regional case studies, quantitative history and its critics.
- [references/SYSTEMS_SCIENCE.md](references/SYSTEMS_SCIENCE.md): complexity, dynamics, networks, information, causality, resilience.
- [references/SOCIAL_INSTITUTIONS.md](references/SOCIAL_INSTITUTIONS.md): cooperation, legitimacy, culture, power, collective choice.
- [references/ECONOMY_ECOLOGY.md](references/ECONOMY_ECOLOGY.md): resources, growth, trade, lock-in, ecology, shocks.
- [references/QUANT_MODELS.md](references/QUANT_MODELS.md): model cards with equations, assumptions, and when each applies.
- [references/FORECASTING.md](references/FORECASTING.md): base rates, Bayesian updating, scenarios, calibration, robust decisions, early warning.
- [references/EVIDENCE_VALIDATION.md](references/EVIDENCE_VALIDATION.md): evidence ladder, validation matrix, disclosure block.
- [references/CRITICAL_REVIEW.md](references/CRITICAL_REVIEW.md): self-review protocol, bias checklist, adversarial test bank, release gate.
- [references/AI_GOVERNANCE.md](references/AI_GOVERNANCE.md): agent constitutions, oversight, Three Laws critique, multi-agent risk.
- [references/AGENT_SOCIETIES.md](references/AGENT_SOCIETIES.md): LLM and rule-based agent societies, research landscape, validation.
- [references/SIMULATORS.md](references/SIMULATORS.md): civlab model cards, parameters, metrics, commands.
- [references/SIMULATION_ENGINEERING.md](references/SIMULATION_ENGINEERING.md): ODD protocol, experiment design, verification and validation.
- [references/TECH_ARCHITECTURE.md](references/TECH_ARCHITECTURE.md): persistent worlds and agent platform architecture.
- [references/WORLD_HISTORY.md](references/WORLD_HISTORY.md): original worldbuilding and alternate-history method.
- [references/INNOVATION_PATTERNS.md](references/INNOVATION_PATTERNS.md): structural invention lenses.
- [references/LANDSCAPE.md](references/LANDSCAPE.md): related projects and tools, licenses, what CIVITAS borrows and why.
- [references/TEMPLATES.md](references/TEMPLATES.md), [references/SCHEMAS.md](references/SCHEMAS.md): output templates and data records.
- [references/EXAMPLES.md](references/EXAMPLES.md), [references/PROMPTS.md](references/PROMPTS.md): worked examples and prompt library.
- [references/SOURCES.md](references/SOURCES.md): annotated, verified research library.