Domain Model

Domain model

This page lists the exact schema shapes for gloria.dev’s core domain objects. Tool actions live on the MCP reference pages: Canary MCP Reference, Skills MCP Reference, and Health Checks. For the shared vocabulary, see Reference.

Dependency

Dependencies are defined as a discriminated union on kind.

Dependency definition (DependencyDefinitionSchema)

FieldTypeRequiredNotes
kindexternal_saas | internal_systemyesDiscriminant.
slugstringyesKebab-case identifier.
namestringyesNon-empty.
categoryCategoryyesDependency category enum.
purposestringyesNon-empty.
endpointsEndpoint[]yesArray of endpoint records.
healthCheckProbenoOptional embedded probe.
detailsobjectyesShape depends on kind.

Dependency details by kind

external_saas

FieldTypeRequiredNotes
webhooksWebhook[]yesArray of webhook records.
providerstringnoOptional provider identifier.

internal_system

FieldTypeRequiredNotes
reachabilityReachabilityyesOne of public, vpc_internal, link_local, in_task_only, localhost_dev.
addressEnvstringnoOptional environment-variable name.

Webhook (WebhookSchema)

FieldTypeRequiredNotes
eventstringyesNon-empty.
directioninboundyesFixed literal.

Endpoint (EndpointSchema)

FieldTypeRequiredNotes
labelstringyesNon-empty.
urlstringyesNon-empty.

Dependency row (DependencyRowSchema)

FieldTypeRequiredNotes
idstringyesStorage id.
projectIdstringyesOwning project id.
kindexternal_saas | internal_systemyesDiscriminant.
slugstringyesKebab-case identifier.
namestringyesNon-empty.
categoryCategoryyesSame enum used by the definition.
purposestringyesNon-empty.
endpointsEndpoint[]yesParsed from JSON.
detailsobjectyesKind-specific details object.
healthCheckProbenoOptional embedded probe.
createdAtnumberyesUnix seconds.
updatedAtnumberyesUnix seconds.

Dependency summary (DependencySummarySchema)

FieldTypeRequiredNotes
slugstringyesPublic lookup key.
namestringyesNon-empty.
kindexternal_saas | internal_systemyesDiscriminant.
categoryCategoryyesSame enum used by the definition.
purposestringyesNon-empty.
healthCheckProbenoOptional embedded probe.
statusup | degraded | down | unknown | needs_configyesDerived dependency status.
statusPage{ url: string; reachable: boolean | null }noOptional vendor status-page join.

Dependency enums

kind

ValueNotes
external_saasExternal SaaS dependency.
internal_systemInternal system dependency.

category

ValueNotes
auth_identityAuth & Identity.
git_hostingGit Hosting.
issue_trackingIssue Tracking.
communicationCommunication.
cloud_storageCloud Storage.
llm_aiLLM / AI.
observabilityObservability.
datastoreDatastore.
llm_gatewayLLM Gateway.
aws_platformAWS Platform.
app_serviceApp Service.
dev_toolingDev Tooling.

Health Check

Health checks are dependency-embedded probes, plus the stored result and rollup rows.

Secret value (SecretValueSchema)

FieldTypeRequiredNotes
kindliteral | secretyesDiscriminant.
valuestringconditionalPresent only when kind is literal.
refstringconditionalPresent only when kind is secret.
hintstringconditionalPresent only when kind is secret.
configuredbooleanconditionalPresent only when kind is secret.

Dependency health check (ProbeSchema)

FieldTypeRequiredNotes
typeenumyesSee probe types below.
enabledbooleanyesDefaults to true.
timeoutMsintegeryesPositive integer; defaults to 5000.
methodGET | HEAD | POSTconditionalhttp and http-bearer.
urlstringconditionalhttp and http-bearer.
expectedStatus{ min: number; max: number }conditionalhttp and http-bearer; defaults to { min: 200, max: 299 }.
tokenSecretValueconditionalhttp-bearer, github, gitlab, bitbucket, notion, slack.
apiKeySecretValueconditionalopenai, anthropic, linear.
secretKeySecretValueconditionalclerk.
regionSecretValueconditionalaws, aws-kms, aws-bedrock, aws-cloudwatch-logs, aws-secrets-manager.
accessKeyIdSecretValueconditionalaws, aws-kms, aws-bedrock, aws-cloudwatch-logs, aws-secrets-manager.
secretAccessKeySecretValueconditionalaws, aws-kms, aws-bedrock, aws-cloudwatch-logs, aws-secrets-manager.
keyIdSecretValueconditionalOptional on aws-kms.
hoststringconditionalatlassian.
emailSecretValueconditionalatlassian.

Probe types

ValueNotes
httpPlain HTTP probe.
http-bearerHTTP probe with secret token.
githubGitHub credential check.
awsAWS credential check.
openaiOpenAI credential check.
anthropicAnthropic credential check.
notionNotion credential check.
gitlabGitLab credential check.
bitbucketBitbucket credential check.
clerkClerk credential check.
linearLinear credential check.
slackSlack credential check.
atlassianAtlassian Cloud credential check.
aws-kmsAWS KMS check.
aws-bedrockAWS Bedrock check.
aws-cloudwatch-logsAWS CloudWatch Logs check.
aws-secrets-managerAWS Secrets Manager check.

Health-check result (HealthCheckResultRowSchema)

FieldTypeRequiredNotes
idstringyesResult id.
projectIdstringyesOwning project id.
dependencyIdstringyesOwning dependency id.
statusup | degraded | downyesResult status.
httpStatusintegernoNullable HTTP status code.
latencyMsintegernoNullable latency in milliseconds.
errorstringnoNullable error text.
checkedAtintegeryesUnix seconds.

Health-check rollup (HealthCheckRollupRowSchema)

FieldTypeRequiredNotes
dependencyIdstringyesOwning dependency id.
granularityhourlyyesRollupGranularitySchema currently only permits hourly.
bucketStartintegeryesUnix seconds at bucket start.
projectIdstringyesOwning project id.
countUpintegeryesCount of up results.
countDegradedintegeryesCount of degraded results.
countDownintegeryesCount of down results.
latencyCountintegeryesCount of latency samples.
latencySumintegeryesSum of latency samples.
latencyMinintegernoNullable minimum latency.
latencyMaxintegernoNullable maximum latency.
updatedAtintegeryesUnix seconds.

Feature map

Feature map records capture the product features a project tracks, the files and symbols that implement them, and the commit that last analyzed each feature.

Feature definition (FeatureDefinitionSchema)

FieldTypeRequiredNotes
slugstringyesKebab-case identifier.
namestringyesNon-empty.
descriptionstringyesNon-empty.
layerstringyesNon-empty.
userFacingbooleanyesPublic-facing feature flag.
aliasesstring[]yesNon-empty strings.
filesstring[]yesNon-empty strings.
symbolsstring[]yesNon-empty strings.
docUrlsstring[]yesNon-empty strings.
analyzedCommitstringyesCommit SHA last used to analyze the feature.

Feature detail (FeatureDetail)

FieldTypeRequiredNotes
slugstringyesKebab-case identifier.
namestringyesNon-empty.
descriptionstringyesNon-empty.
layerstringyesNon-empty.
userFacingbooleanyesPublic-facing feature flag.
aliasesstring[]yesNon-empty strings.
filesstring[]yesNon-empty strings.
symbolsstring[]yesNon-empty strings.
docUrlsstring[]yesNon-empty strings.
analyzedCommitstringyesCommit SHA last used to analyze the feature.
createdAtnumberyesUnix seconds.
updatedAtnumberyesUnix seconds.

Feature index entry (FeatureIndexEntry)

FieldTypeRequiredNotes
slugstringyesPublic lookup key.
namestringyesNon-empty.
descriptionstringyesNon-empty.
layerstringyesNon-empty.
userFacingbooleanyesPublic-facing feature flag.
aliasesstring[]yesNon-empty strings.

Coding standards

Coding standards records group rules, reusable snippets, check runs, findings, and notices around a project.

Rule authority (RuleAuthoritySchema)

ValueNotes
enforcedViolations fail the check.
statedThe rule records documented intent.
observedThe rule matches current code and allows documented divergence.

Standards entity status (StandardsEntityStatusSchema)

ValueNotes
activeThe record is current.
staleThe record needs review.
retiredThe record no longer applies.

Check kind (CheckKindSchema)

ValueNotes
diffDiff-based check.
auditAudit check.
metadataMetadata-based check.

Check trigger (CheckTriggerSchema)

ValueNotes
prPull request trigger.
manualManual trigger.
cronScheduled trigger.

Finding type (FindingTypeSchema)

ValueNotes
rule_violationA rule does not match the code.
rule_staleA rule needs refresh.
render_staleThe rendered standards stamp lags the current version.
snippet_staleA snippet needs refresh.
unattributed_duplicationCode duplicates a snippet without attribution.

Finding status (FindingStatusSchema)

ValueNotes
openThe finding still applies.
resolvedThe finding no longer applies.
dismissedThe finding stays ignored.

Standards notice event (StandardsNoticeEventSchema)

ValueNotes
standards.check_overdueThe last check ran too long ago.
standards.drift_thresholdDrift crossed the notice threshold.

Standard row (StandardRowSchema)

FieldTypeRequiredNotes
idstringyesStorage id.
projectIdstringyesOwning project id.
versionnumberyesStandards version.
renderedStampnumbernoNullable version last rendered into CLAUDE.md or AGENTS.md.
createdAtnumberyesUnix seconds.
updatedAtnumberyesUnix seconds.

Rule scope (RuleScopeSchema)

FieldTypeRequiredNotes
globsstring[]noOptional glob list.
packagesstring[]noOptional package list.

Rule evidence (RuleEvidenceSchema)

FieldTypeRequiredNotes
sourcesstring[]yesEvidence source list.

Rule row (RuleRowSchema)

FieldTypeRequiredNotes
idstringyesStorage id.
projectIdstringyesOwning project id.
ruleIdstringyesStable kebab-case slug, unique per project.
instructionstringyesRule text.
authorityRuleAuthorityyesRule binding level.
scopeRuleScopeyesOptional scope details.
evidenceRuleEvidenceyesEvidence sources.
statusStandardsEntityStatusyesLifecycle status.
createdAtnumberyesUnix seconds.
updatedAtnumberyesUnix seconds.

Snippet row (SnippetRowSchema)

FieldTypeRequiredNotes
idstringyesStorage id.
projectIdstringyesOwning project id.
snippetIdstringyesStable kebab-case slug, unique per project.
languagestringyesTarget language.
namestringyesSnippet name.
descriptionstringyesSnippet description.
codestringyesPlaceholder-ized canonical code.
placeholdersstring[]yesPlaceholder names.
statusStandardsEntityStatusyesLifecycle status.
createdAtnumberyesUnix seconds.
updatedAtnumberyesUnix seconds.

Check scope detail (CheckScopeDetailSchema)

FieldTypeRequiredNotes
diffRangestringnoOptional diff range.
prRefstringnoOptional pull request reference.

Check run row (CheckRunRowSchema)

FieldTypeRequiredNotes
idstringyesStorage id.
projectIdstringyesOwning project id.
kindCheckKindyesCheck type.
triggeredByCheckTriggeryesTrigger source.
standardsVersionCheckednumberyesStandards version under check.
scopeDetailCheckScopeDetailyesDiff or PR scope detail.
startedAtnumberyesUnix seconds.
completedAtnumbernoNullable completion time.

Check finding row (CheckFindingRowSchema)

FieldTypeRequiredNotes
idstringyesStorage id.
checkRunIdstringyesOwning check run id.
projectIdstringyesOwning project id.
typeFindingTypeyesFinding type.
ruleIdstringnoRule slug for rule findings.
snippetIdstringnoSnippet slug for snippet findings.
filestringnoFile path under review.
linenumbernoLine number in the file.
detailstringyesHuman-readable finding detail.
statusFindingStatusyesFinding lifecycle status.
createdAtnumberyesUnix seconds.
resolvedAtnumbernoNullable resolution time.

Standards notice row (StandardsNoticeRowSchema)

FieldTypeRequiredNotes
idstringyesStorage id.
projectIdstringyesOwning project id.
eventStandardsNoticeEventyesNotice event name.
detailstringyesHuman-readable detail.
createdAtnumberyesUnix seconds.

Skill

Skills are versioned bundles of files plus frontmatter, with related marketplace and installation records.

Skill file (SkillFileSchema)

FieldTypeRequiredNotes
pathstringyesSafe relative path.
contentstringyesFile content.

Skill frontmatter (SkillFrontmatterSchema)

FieldTypeRequiredNotes
namestringyesNon-empty.
descriptionstringyesNon-empty.
tagsstring | string[]noOptional; parsed from a scalar or array. Unknown keys are stripped.

Skill bundle (SkillBundleSchema)

FieldTypeRequiredNotes
filesSkillFile[]yesAt least one file; the bundle must include a root SKILL.md.

Parsed skill bundle (ParsedBundle)

FieldTypeRequiredNotes
namestringyesParsed from root frontmatter.
descriptionstringyesParsed from root frontmatter.
slugstringyesDerived from name.
tagsstring[]yesNormalized, deduplicated, and capped at 10.
filesSkillFile[]yesThe bundle files.

Skill manifest entry (ManifestEntry)

FieldTypeRequiredNotes
pathstringyesRelative file path.
sizenumberyesUTF-8 byte length.
hashstringyesDeterministic file hash.

Skill summary (SkillSummary)

FieldTypeRequiredNotes
slugstringyesSkill slug.
namestringyesSkill name.
descriptionstringyesSkill description.
latestVersionnumberyesLatest published version.
updatedAtintegeryesUnix seconds.
authorstringyesStored author label.
tagsstring[]yesNormalized tags.
sourcestringnoMarketplace source id in the form marketplace:<id>.
marketplacestringnoMarketplace id when present.
pluginstringnoMarketplace plugin id when present.
supportedAgentsstring[]noAgents that can install the skill when sourced from a marketplace.

Skill version detail (SkillVersionDetail)

FieldTypeRequiredNotes
versionnumberyesVersion number.
namestringyesSkill name.
descriptionstringyesSkill description.
contentHashstringyesBundle hash.
manifestManifestEntry[]yesParsed manifest array.
createdBystringyesCreator id.
createdAtintegeryesUnix seconds.

Marketplace agent (MarketplaceAgent)

ValueNotes
claude-codeSupported marketplace agent.
codexSupported marketplace agent.

Marketplace status (MarketplaceStatus)

ValueNotes
syncingSubscription is still indexing.
activeSubscription is indexed.
errorLast sync failed.

Marketplace (Marketplace)

FieldTypeRequiredNotes
idstringyesStorage id.
orgIdstringyesOwning org id.
namestringyesMarketplace name.
repoUrlstringyesCanonical GitHub repository URL.
manifestNamestringnoManifest name; may be null until the first index resolves it.
supportedAgentsMarketplaceAgent[]yesSupported agent subset.
statusMarketplaceStatusyesSync lifecycle.
lastSyncedAtintegernoNullable Unix seconds.
lastErrorstringnoNullable last error text.
createdAtintegeryesUnix seconds.
updatedAtintegeryesUnix seconds.

Marketplace skill (MarketplaceSkill)

FieldTypeRequiredNotes
idstringyesStorage id.
marketplaceIdstringyesOwning marketplace id.
pluginstringyesPlugin name.
slugstringyesSkill slug.
namestringyesSkill name.
descriptionstringyesSkill description.
tagsstring[]yesParsed tag list.
upstreamPathstringyesPath in the upstream repo.
updatedAtintegeryesUnix seconds.

Skill installation (SkillInstallation)

FieldTypeRequiredNotes
idstringyesStorage id.
orgIdstringyesOwning org id.
skillIdstringyesInstalled skill id.
versionnumberyesInstalled version number.
userIdstringyesInstalling user id.
installedAtintegeryesUnix seconds.

Next

Want to go deeper? Head over to Reference.