Seshat-BI
AGENTS.md2 starsChanged 4 months agoApache-2.0View on GitHub
Seshat BI is agent-first: you (the agent) are the interface; the CLI gates (seshat check, retail validate) are helpers you CALL, never the product. This file is the short operating contract. The full law is .specify/memory/constitution.md; the spine is docs/readiness/readiness-model.md. Naming. The product is Seshat BI (package alias Seshat_BI). It was previously developed under the internal name Tower BI Agent Kit; the governance spine is still the Readiness System. Same product, one brand. - Read the table's readiness status (templates/readiness-status.yaml…
- Reads credentials
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository60 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- approval-consoleSkill
- approval-evidence-packSkill
- business-knowledge-interviewSkill
- capabilitiesSkill
- consumer-data-dictionarySkill
- cross-table-lineageSkill
- dagster-orchestration-adapterSkill
- dashboard-designSkill
- dashboard-intelligenceSkill
- dbt-transformation-adapterSkill
- evidence-pack-generatorSkill
- first-hour-compassSkill
- friendly-pr-reviewerSkill
- grain-confidence-reviewerSkill
- kpi-contract-builderSkill
- pbi-mcp-write-adapterSkill
- pbip-workflowSkill
- pbip-xraySkill
- pbir-authoring-adapterSkill
- portfolio-watchSkill
- powerbi-dashboard-designSkill
- pr-readiness-reviewerSkill
- readiness-viewerSkill
- release-notes-generatorSkill
- report-intent-interviewSkill
- retail-build-warehouseSkill
- retail-control-roomSkill
- retail-discover-portfolioSkill
- retail-governSkill
- retail-initSkill
- retail-onboard-tableSkill
- retail-orchestrateSkill
- retail-scaffoldSkill
- retail-semantic-checkSkill
- retail-validateSkill
- run-next-readinessSkill
- seshat-studioSkill
- showcase-buildSkill
- source-mappingSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- bi-analyst-knowledgeSkill
- bi-bigdata-knowledgeSkill
- bi-dax-knowledgeSkill
- bi-python-knowledgeSkill
- bi-sql-knowledgeSkill
- retail-kpi-knowledgeSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read the table's readiness status (templates/readiness-status.yaml shape) to find current_stage and next_action.
- Distinctive: line 67
NEVER treat it as a universal schema.
- Very specific: line 86
If the CodeScene MCP is available, run code_health_review on the files you changed.
- Very specific: line 88
Before a push, run analyze_change_set against origin/main.
- Distinctive: line 106
No active Spec Kit implementation plan.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md -- operating rules for agents in this repo
Seshat BI is agent-first: you (the agent) are the interface; the CLI
gates (seshat check, retail validate) are helpers you CALL, never the product.
This file is the short operating contract. The full law is
.specify/memory/constitution.md; the spine is docs/readiness/readiness-model.md.
Naming. The product is Seshat BI (package alias
Seshat_BI). It was previously developed under the internal name Tower BI Agent Kit; the governance spine is still the Readiness System. Same product, one brand.
Decide from readiness state
- Read the table's readiness status (
templates/readiness-status.yamlshape) to findcurrent_stageandnext_action. Launch the workflow for THAT stage only -- never skip ahead. - The seven stages, in order: Source -> Mapping -> Silver -> Gold -> Semantic
Model -> Dashboard -> Publish. A stage is entered only when the prior is
pass. - The
retail-orchestrateconductor sequences the verbs; the readiness status records the state. Recomputecurrent_stagefrom committed artifacts +Gate status+ migration presence -- there is no separate run-state engine.
Hard stops (never cross these)
- Do NOT proceed to silver when
mapping_readyisblocked(orGate statusis notCLEARED). Nosilver.*SQL before an approved map (Principle IV). - Do NOT point Power BI at gold before
retail validatepasses (Principle VIII). - Do NOT design dashboards before metric contracts exist (roadmap rule 5).
- Do NOT run the Power BI execution adapter on your own initiative (the official
Power BI MCP / connection;
pbi-clino longer the preferred path) -- feature 016, gated onsemantic_model_ready(Principle II). It is EXECUTION-ONLY (it cannot define metrics, mappings, semantic logic, or dashboard design), and no readiness stage depends on it. Since ADR 0018 (ratified 2026-08-18) the LOCAL slice ships:seshat pbi-mcp plan-write/applyrun only against a target and operation RESOLVED from the committed allowlist, never free-form, and only when the owner asks for that write. The REMOTE slice remains deferred and owner-gated. Reaching for either unasked is still a hard stop -- a shipped verb is not a standing authorization. - Do NOT self-grant an approval. Approvals are named human actions (Principle V): grain, PII publish-safety, business rollups, sentinel-vs-null.
Report blockers explicitly
- A
blockedstage MUST carryblocking_reasons-- a concrete fact, not "needs work". Record it in the status +blocking-reasons.md; then STOP. - Readiness is
status + evidence + blockers, NEVER a fabricated confidence number. ApassMUST citeevidence. Do not emit a score (scoring is deferred). seshat checkexit 0 is NECESSARY, not SUFFICIENT -- semantic correctness is proven only by the liveretail validate. Do not let green read as "correct".
Live DB steps -- graceful deferred mode
- The live boundary (
retail validate, profiling against a DSN) needs thedbextra + a DSN. If absent: report the boundary + the enable steps (pipx inject seshat-bi psycopg2-binaryorpip install "seshat-bi[db]", setDATABASE_URLorANALYTICS_DB_*in the gitignored.env), mark numbers[PENDING LIVE PROFILE], and STAY USEFUL (author artifact structure). NEVER traceback, NEVER fake a pass. - Secrets only in the gitignored
.env. NEVER commit a real host/DSN. Power BI params use the<placeholder>form --G6+C2block a real host at the gate. (Power BI Desktop re-writes the real host intoexpressions.tmdlon save; revertpowerbi/before committing.)
C086 is an example, never a schema
- C086 is the first worked example / a filled instance -- evidence the gate works. NEVER treat it as a universal schema. Generic templates carry no pharmacy specifics (billing codes, segment rollups, insurance PII). The questions and gates generalize; the answers are per-table (Principle VII).
The verbs you compose
retail-orchestrate (conductor) -> source-mapping (the gate) ->
retail-build-warehouse (authors silver/gold SQL, stops before executing) ->
retail-validate (live checks) -> retail-govern (static check) ;
pbip-workflow (PBIP git/TMDL). Each verb does its job and STOPS; the self-heal
loop lives only in the conductor.
Kit / tooling verbs (outside the medallion sequence): retail-init (bootstrap the
Compass-Driven kit substrate + route a new user to a first profile) ;
retail-scaffold (author a NEW seshat check rule, or --doctor an existing rule's
wiring -- the authoring sibling of retail-govern, which interprets rule findings).
Code health (CodeScene)
If the CodeScene MCP is available, run code_health_review on the files you
changed; if Code Health drops, fix the code and confirm with code_health_score.
Before a push, run analyze_change_set against origin/main. It applies the PR
gate's rules and .codescene/code-health-rules.json, but it judges only the diff
and can miss whole-module averages, so a local pass is necessary, not sufficient.
Without the MCP, use the CodeScene CLI from .codescene/README.md: cs review
<file> runs locally, while cs delta origin/main <branch> needs a CodeScene
access token (CS_ACCESS_TOKEN). If neither path is available, say so in the PR
and let the CodeScene PR gate be the check. The gate fails at a value equal to a
threshold; prefer a real fix over a threshold override (see
.codescene/README.md).
See also
- Compass:
COMPASS.md. - Constitution:
.specify/memory/constitution.md(Principles I, IV, V, VII, VIII). - Readiness:
docs/readiness/readiness-model.md,readiness-pipeline.md. - Roadmap:
docs/roadmap/roadmap.md. Architecture:docs/architecture/. - Repo rules (secrets, PBIP, Windows):
CLAUDE.md.
<!-- SPECKIT START -->No active Spec Kit implementation plan.
<!-- SPECKIT END --><!-- SESHAT-KIT START -->Seshat BI kit router (v0.2.0) -- generated from .seshat/kit-source.yaml; do not edit here.
Orient first: What readiness stage am I serving? State lives in readiness-status.yaml (per TABLE, recomputed) (recomputed; this file stores none).
Verbs the agent drives:
retail-orchestrate-- conductor -- sequence the medallion verbs, self-heal against the gatefirst-hour-compass-- first-arrival worked-example offer + single-source seam list + single-table orientation cardretail-onboard-table-- Source->Mapping front door; owns the Stage-1 read-only DB-backed profile (grain candidates, column types)retail-discover-portfolio-- metadata-only portfolio discovery -> governed domain/scope proposals -> selected-table onboarding -> interview handoffbusiness-knowledge-interview-- after DB discovery, interview the owner into the Decision Store (batch low-risk, explicit critical); records decisions, never self-grants approvalsource-mapping-- the mapping gate -- produces source-map.yamlkpi-contract-builder-- drive the shipped kpi_contracts engine: assess answerability, list the decisions to approve, preview with per-field provenance, then draft/finalize -- never self-grants approvalretail-build-warehouse-- author silver/gold SQL; stop before executingretail-validate-- live checks; needs db extra + DSN, else [PENDING LIVE PROFILE]retail-govern-- static check (seshat check)
Hard-stops (orientation the agent reads; enforcement is the lint rules + G6/C2, not this file):
- never_self_grant_approval
- no_silver_before_mapping_cleared
- no_dashboard_before_metric_contracts
- never_fabricate_a_confidence_score
<!-- SESHAT-KIT END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

