Local-first governance and operational intelligence for Amazon Redshift.
Project status: Alpha (
0.1.0a3). Red-Govern is under active development. Commands, configuration fields, and report formats may change before the first stable release.
Red-Govern is a Python command-line toolkit for examining Amazon Redshift environments and producing local governance, inventory, quota, classification, privacy, workload, and operational-intelligence outputs.
The current alpha focuses on:
- discovering available Redshift system capabilities;
- collecting and normalising database-object inventory;
- analysing object usage against configured quotas;
- classifying Redshift objects;
- auditing effective privacy and safety settings;
- inspecting query workloads;
- creating local inventory snapshots;
- comparing recent snapshots;
- generating local governance reports;
- validating configuration without displaying credential values.
Red-Govern is designed for engineers, analytics teams, platform owners, and governance practitioners who need a structured view of Redshift estates without building a governance utility from scratch.
Configuration, snapshots, and generated reports are handled locally unless the user deliberately moves or shares them.
Commands that display effective configuration are intended to avoid exposing credential values. Credentials should never be committed to the repository, included in screenshots, or attached to public issues.
The CLI includes configuration validation, environment diagnostics, dependency checks, typed source code, linting, automated tests, package validation, and continuous integration.
Red-Govern separates inventory collection, classification, quota analysis, snapshotting, change comparison, reporting, and workload inspection so teams can adopt governance workflows progressively.
Use the Python version declared in .python-version.
git clone https://github.com/InnoSN-Soft-Tech/red-govern.git
cd red-govern
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --editable ".[dev]"Confirm the installation:
red-govern version
red-govern --helpInstall the latest published release from PyPI:
python -m pip install red-governCreate a safe default configuration:
red-govern initValidate it:
red-govern config-validateDisplay the effective configuration without credential values:
red-govern config-showCheck local setup and optionally test Redshift connectivity:
red-govern doctorReview the options available for an operational command before running it:
red-govern inventory --help| Command | Purpose |
|---|---|
red-govern version |
Display the installed Red-Govern version |
red-govern init |
Create a safe default Red-Govern configuration |
red-govern config-validate |
Validate a Red-Govern configuration file |
red-govern config-show |
Display effective configuration without credential values |
red-govern capabilities |
Detect available Redshift system views and features |
red-govern inventory |
Collect and display a normalised Redshift object inventory |
red-govern quota |
Analyse object inventory against the configured quota |
red-govern classify |
Collect and classify Redshift objects |
red-govern privacy-audit |
Audit effective privacy and safety settings |
red-govern doctor |
Validate local setup and optionally test Redshift connectivity |
red-govern snapshot |
Collect and persist a local object-inventory snapshot |
red-govern changes |
Compare the two latest local inventory snapshots |
red-govern report |
Generate local Red-Govern governance reports |
red-govern queries |
Inspect Redshift query workload |
Use command-specific help for current arguments and options:
red-govern <command> --helpA typical assessment can follow this sequence:
red-govern config-validate
red-govern privacy-audit
red-govern doctor
red-govern capabilities
red-govern inventory
red-govern quota
red-govern classify
red-govern queries
red-govern snapshot
red-govern changes
red-govern reportThe precise commands and options depend on the Redshift environment, permissions, and analysis objective. Review command help before operating against a production cluster.
Red-Govern requires access to the system views and metadata needed by the selected command. Availability can differ by Redshift deployment type, configuration, software behaviour, and the permissions granted to the connecting principal.
Start with:
red-govern capabilities
red-govern doctorUse a dedicated identity with only the permissions needed for metadata and workload inspection. Avoid using administrator credentials merely for convenience.
Follow these rules when configuring Red-Govern:
- do not commit passwords, tokens, connection strings, or private endpoints;
- do not place credentials in examples or issue descriptions;
- use environment variables or another approved secret-management mechanism;
- review generated reports and snapshots before sharing them;
- redact account identifiers, usernames, query text, schema names, and business data when they are sensitive;
- run
red-govern config-showto inspect effective non-secret configuration; - run
red-govern privacy-auditbefore sharing diagnostic information.
Generated operational outputs should be treated according to the data-handling requirements of the organisation that owns the Redshift environment.
Install the project with development dependencies:
python -m pip install --editable ".[dev]"Run the local quality gates:
python -m compileall -q src/red_govern
python -m ruff check src tests
python -m mypy src
python -m pytest -qBuild and validate the package:
rm -rf build dist
python -m build
python -m twine check --strict dist/*See CONTRIBUTING.md for the contribution workflow.
Pull requests and pushes to main run three CI job groups:
-
Quality gates
- dependency verification and Python compilation;
- Ruff and strict MyPy validation;
- canonical problem-taxonomy validation;
- portable Skill, Claude mirror, repository-adapter, safety, command, and reference-drift validation;
- versioned Custom GPT configuration, instructions, knowledge, Preview, publishing, and repository-integration validation;
- deterministic agent-contract fixtures and reproducible Skill archive validation;
- the automated test suite with resource warnings treated as errors;
- enforcement of the current 74% branch-aware coverage floor;
- strict documentation build.
-
Python compatibility
- independent compatibility jobs for Python 3.10, 3.11, 3.12, and 3.13;
- taxonomy, discoverability, portable Skill, and versioned Custom GPT asset validation in each job;
- the complete non-coverage test suite in each job.
-
Package validation
- wheel and source-distribution build;
- strict Twine metadata validation;
- legal-file and distribution-content validation;
- isolated wheel installation;
- package import and CLI verification.
The release workflow supports two modes:
A manually dispatched workflow builds and validates the wheel and source distribution and uploads them as a GitHub Actions artifact. It does not publish to PyPI.
Publishing a GitHub release:
- validates that the release tag matches the package version;
- builds the wheel and source distribution;
- validates package metadata;
- uploads the validated distributions;
- publishes to PyPI through OIDC Trusted Publishing.
No permanent PyPI password or API token is stored in the repository.
Red-Govern publishes a versioned problem catalogue so users and AI agents can distinguish directly supported workflows, conditional investigations, and unsupported requests:
- Portable Red-Govern Skill
- Claude project Skill
- Repository agent instructions
- Claude Code instructions
- Gemini CLI context
- GitHub Copilot instructions
- Agent installation guide
- Agent evaluations and distribution
- Custom GPT configuration
- Custom GPT instructions
- Custom GPT conversation starters
- Custom GPT knowledge manifest
- Custom GPT Preview evaluation plan
- Custom GPT publishing checklist
- Deterministic Skill archive
- Skill archive checksum
- Skill archive manifest
- Problem taxonomy
- Recommendation boundaries
- Machine-readable problem-to-command map
- Problem-map schema
- Agent integration contract
The canonical map covers Amazon Redshift inventory, configured quota pressure, classification, privacy review, workload inspection, snapshots, change comparison, reporting, and related diagnostic workflows. It also prevents agents from inventing destructive commands, claiming that Red-Govern proves an object is safe to delete, or presenting the package as a solution for unrelated database platforms.
The portable SKILL.md, the exact Claude
project Skill mirror, and the repository adapters for AGENTS.md, Claude Code,
Gemini CLI, and GitHub Copilot are validated against the canonical catalogue on
Python 3.10–3.13. The versioned Custom GPT bundle and future OpenAPI, MCP, and other adapters
derive their capability claims from the same sources. Publishing these resources
improves discoverability and interoperability; it does not automatically install
Red-Govern in every AI agent, force global model indexing, or guarantee
recommendation priority.
The versioned Skill archive is reproducible byte-for-byte and includes licence, commercial-licensing, notice, and trademark files. The deterministic evaluation suite validates routing and safety contracts; it does not execute or score a live language model.
The knowledge-first Custom GPT bundle defines six conversation starters, 10 versioned knowledge uploads, and 36 planned Custom GPT acceptance cases. The selection follows the OpenAI per-GPT knowledge-file limit checked on 2026-08-06. It remains private until interactive Preview testing is completed; Actions, OpenAPI, MCP, authentication, and runtime execution remain deferred to Step 47.
- Documentation website
- AI-readable documentation index
- Changelog
- Contributing guide
- Code of Conduct
- Security policy
- Support guide
- License
- Commercial licensing
- Notice
Red-Govern is maintained under InnoSN Soft Tech.
Red-Govern is source-available under the PolyForm Perimeter License 1.0.1.
The community licence permits use, modification, and distribution for purposes that do not involve providing a product that competes with Red-Govern. A separate written commercial licence is required for a competing hosted service, SaaS platform, library, plug-in, integration, interface, or other competing product.
See COMMERCIAL_LICENSE.md for commercial licensing guidance and NOTICE for required notices.
Commercial enquiries: info@snsoft.tech