Skip to content

Trust Tables

12 tables for test analysis, dependency scanning, AI review, and audit trail.

test_results

Individual test execution records.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesRepository
ci_run_idBIGINT FK → ci_runsParent CI run
commit_shaTEXTCommit
branchTEXTBranch
workflow_nameTEXTWorkflow
test_suiteTEXTSuite name
test_nameTEXTTest name
test_idTEXTStable test identifier
statusTEXTPass/fail/skip
duration_msINTDuration
error_messageTEXTError if failed

flaky_tests

Detected flaky tests with quarantine tracking.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesRepository
test_idTEXTStable identifier
test_suiteTEXTSuite name
test_nameTEXTTest name
run_countINTTotal runs
pass_countINTPasses
fail_countINTFailures
flakiness_scoreREAL0.0–1.0
quarantinedBOOLEANIn quarantine
graduated_atTIMESTAMPTZNo longer flaky

policy_repo_configs

Desired vs. observed state for policy reconciler.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT UNIQUE FK → repositoriesRepository
desired_stateJSONBWhat we want
observed_stateJSONBWhat GitHub has
in_syncBOOLEANMatch?
drift_fieldsTEXT[]Fields that differ
last_reconciled_atTIMESTAMPTZLast check

reconciliation_runs

Reconciler execution history.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
triggered_byTEXTscheduler or manual
repos_checkedINTTotal repos
repos_syncedINTSuccessfully synced
repos_driftedINTHad drift
repos_correctedINTAuto-fixed
repos_failedINTFailed

dependency_manifests

Package dependency files (package.json, etc.).

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesRepository
file_pathTEXTPath to manifest
ecosystemTEXTnpm, pip, maven, etc.
dependenciesJSONBParsed deps
dep_countINTCount
scanned_atTIMESTAMPTZScan time

vulnerability_advisories

Security vulnerabilities in dependencies.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesRepository
ghsa_idTEXTGHSA advisory ID
cve_idTEXTCVE ID
package_nameTEXTAffected package
severityTEXTlow, medium, high, critical
installed_versionTEXTCurrent version
patched_versionTEXTFix version
statusTEXTopen, fixed, dismissed
fix_pr_numberINTAuto-fix PR

dependency_update_batches

Batch dependency update PRs.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesRepository
ecosystemTEXTPackage ecosystem
update_typeTEXTUpdate type
packagesJSONBPackages to update
pr_numberINTCreated PR
statusTEXTopen, merged, closed

ai_reviews

AI code review results.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesRepository
pr_numberINTPR number
commit_shaTEXTReviewed commit
summaryTEXTReview summary
verdictTEXTapproved, request_changes, needs_discussion
confidenceTEXThigh, medium, low
findingsJSONBArray of finding objects
files_reviewedINTCount
github_review_idBIGINTGitHub review ID
check_run_idBIGINTCheck Run ID

ai_review_config

Per-repo AI review settings.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT UNIQUE FK → repositoriesRepository
enabledBOOLEANActive flag
check_*BOOLEANIndividual check toggles
block_on_verdictTEXT[]Verdicts that block merge
max_files_to_reviewINTFile limit
ignore_patternsTEXT[]Files to skip

audit_trail_entries

Immutable SHA-256 chained audit log.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
seqBIGINT UNIQUEMonotonic sequence
categoryTEXTEvent category
event_typeTEXTSpecific event
actorTEXTWho triggered
actor_typeTEXThuman, bot, system
repo_full_nameTEXTRepository
pr_numberINTRelated PR
payloadJSONBEvent details (immutable)
frameworkTEXT[]Compliance tags
payload_hashTEXTSHA-256 of payload
prev_hashTEXTPrevious entry's hash

compliance_reports

Generated SOC2/ISO compliance reports.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
report_typeTEXTsoc2, iso27001, custom
period_startTIMESTAMPTZPeriod start
period_endTIMESTAMPTZPeriod end
summaryJSONBReport summary
controlsJSONBControl mappings
entry_countINTAudit entries covered
report_hashTEXTIntegrity hash

audit_exports

Nightly audit data exports.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
export_typeTEXTnightly
date_coveredDATEExport date
entry_countINTEntries exported
file_pathTEXTExport file
file_hashTEXTFile hash
signedBOOLEANSigned flag

Workers

Released under the MIT License.