Skip to content

Governance Tables

Tables added in Sprint 1 & 2 for evidence, visibility, and policy management.

managed_actions

Tracks every GitHub mutation GitWire creates (labels, comments, reviewers, branch refs).

ColumnTypeDescription
idBIGSERIALPrimary key
repo_idBIGINTFK → repositories.github_id
sourceTEXTWorker source (ci_heal, triage)
source_idTEXTUnique ID from the source system
pr_numberINTEGERPR number
issue_numberINTEGERIssue number
action_typeTEXTlabel, comment, reviewer, branch_ref
action_keyTEXTlabel:ci-heal, comment:heal:diagnosis
action_valueTEXTLabel name, comment text, etc.
github_idBIGINTGitHub's ID for the created resource
context_hashTEXTHead SHA at creation time
activeBOOLEANWhether the action is still active
created_atTIMESTAMPTZCreation timestamp
deactivated_atTIMESTAMPTZWhen deactivated (reconcile/cleanup)

decision_log

Records why every worker made its decision.

ColumnTypeDescription
idBIGSERIALPrimary key
repo_idBIGINTFK → repositories.github_id
sourceTEXTWorker source
trigger_eventTEXTGitHub event that triggered this
target_typeTEXTissue or pr
target_numberINTEGERIssue/PR number
pillarTEXTPillar name
decisionTEXTacted, skipped, blocked
reasonTEXTHuman-readable explanation
conditionsJSONBArray of { check, result } objects
config_usedJSONBResolved config snapshot
commit_shaTEXTHead SHA
actorTEXTWho/what triggered the decision
created_atTIMESTAMPTZDecision timestamp

policy_waivers

Time-limited exceptions to pillar enforcement.

ColumnTypeDescription
idBIGSERIALPrimary key
repo_idBIGINTFK → repositories.github_id
pillarTEXTPillar to waive
scopeTEXTrepo, branch, pr, issue
scope_valueTEXTBranch name, PR/issue number
reasonTEXTWhy the waiver was granted
granted_byTEXTGitHub username
expires_atTIMESTAMPTZExpiry date (NULL = indefinite)
activeBOOLEANWhether the waiver is active
created_atTIMESTAMPTZGrant timestamp
revoked_atTIMESTAMPTZRevoke timestamp

action_feed (VIEW)

Unified view across 9 source tables for the activity feed.

Released under the MIT License.