1) Charter: what the Developer Knowledge Graph (DKG) Guild owns
Mission: make software delivery faster and safer by turning fragmented engineering metadata into a governed, queryable “map” of services, ownership, dependencies, risks, and operational posture.
Scope (core outcomes):
- Service metadata ingestion: automated, near-real-time capture of “what exists” and “what’s true now.”
- Taxonomy stewardship: consistent language for domains, capabilities, systems, service types, criticality, data sensitivity, etc.
- Discovery interfaces: find a service, understand dependencies, locate owners/runbooks/SLOs, and answer “what will this change impact?”
- Trust scoring: show confidence in metadata so engineers know what to rely on.
- Governance rituals: lightweight, repeatable decision-making for schema/taxonomy changes + data quality.
- Executive reporting: coverage, risk, ownership, reliability posture, and progress against modernization/compliance goals.
Guiding principles:
- “Automate first; manual entry is a last resort.”
- “Ownership is mandatory; accuracy is a product feature.”
- “Version everything (schema, taxonomy, connectors).”
- “Trust is visible (freshness, provenance, completeness).”
- “Meet developers where they are (Backstage/CLI/ChatOps/API).”
2) Operating model: guild structure + decision rights
Roles (minimum viable)
- Guild Lead / Product Owner: roadmap, prioritization, stakeholder management.
- Knowledge Graph Architect: schema, ontology patterns, graph modeling, query patterns.
- Data/Integration Engineers (2+): connectors, pipelines, validation, backfills.
- Taxonomy Steward (part-time or dedicated): controlled vocab, change process, comms.
- Platform UX / Developer Experience rep: discovery interface, Backstage integration, usability.
- Security/GRC partner: data classification, access controls, audit needs.
- SRE/Operations partner: runtime metadata, reliability signals, incident integration.
Decision bodies
- DKG Maintainers (weekly): connector changes, bugfixes, score logic updates.
- Taxonomy Council (monthly): approve taxonomy changes, naming conventions, deprecations.
- Steering Committee (quarterly): exec sponsor + Eng leaders; OKRs, adoption, risk posture.
RACI (abbreviated)
- Schema changes: Responsible = KG Architect; Accountable = Guild Lead; Consulted = Platform/Security; Informed = Service owners
- Taxonomy changes: Responsible = Taxonomy Steward; Accountable = Guild Lead; Consulted = Domain reps; Informed = all engineers
- Connector onboarding: Responsible = Data Eng; Accountable = Guild Lead; Consulted = Tool owner; Informed = stakeholders
3) Reference architecture (end-to-end)
3.1 Core entities (start small, grow deliberately)
Entities
Service, Team, Owner (person/group), Repo, API, Deployment, Environment, System, Domain, Capability
Dependency (service→service), Datastore, Queue/Topic, Runbook, SLO, Incident, OnCall, Control (security/compliance)
Key relationships
TEAM_OWNS -> Service
Service DEPENDS_ON Service
Service DEPLOYED_TO Environment
Service IMPLEMENTS Capability
Service EXPOSES API
Service HAS_SLO SLO
Incident AFFECTED Service
3.2 Ingestion pipeline (patterns that work in practice)
Sources (typical)
- SCM: GitHub/GitLab (repos, CODEOWNERS, topics)
- CI/CD: Jenkins/GitHub Actions/Circle, ArgoCD/Spinnaker (build/deploy)
- Runtime: Kubernetes, service mesh, API gateway, APM (Datadog/New Relic), CMDB if it exists
- Ops: PagerDuty/Opsgenie, incidents (Jira/ServiceNow), postmortems, runbooks (Confluence/Markdown)
- Security: SAST/DAST, SBOM, vuln scanners, IAM/RBAC
- Docs/catalog: Backstage catalog, OpenAPI specs, protobuf registries
Flow
- Connectors pull or receive events (webhooks > polling where possible).
- Staging/landing keeps raw payloads (for replay/audit).
- Normalization & entity resolution
- canonical IDs (service slug, repo URL, runtime labels)
- dedupe + merge rules (e.g., Backstage entity ref becomes primary key)
- Validation
- required fields (owner, tier/criticality, lifecycle state)
- schema validation (JSON Schema/SHACL-style checks)
- Write to graph (and optionally a search index)
- Compute trust scores (see section 6)
- Publish APIs & change events (GraphQL/REST + event stream for downstream consumers)
Implementation tip: treat each connector as a “product” with:
- versioned configuration
- contract tests
- a data quality SLO (freshness + error rate)
3.3 Storage + access layer options
- Graph store: Neo4j / AWS Neptune / JanusGraph (property graph) or RDF triple store if you need semantic web interoperability.
- Search index: OpenSearch/Elastic for fast keyword discovery (services, teams, APIs), linked back to graph IDs.
- API layer: GraphQL works well for exploration; REST for stable “catalog” endpoints.
- AuthZ: integrate with SSO; apply row/relationship-based rules for sensitive metadata (security findings, incidents).
4) Taxonomy stewardship (the “language system”)
4.1 What to standardize first
- Domain → System → Service hierarchy
- Service type: API, worker, UI, library, data pipeline
- Lifecycle: experimental, active, deprecated, retired
- Criticality/tier: tier-0..3 (or similar)
- Data classification: public/internal/confidential/restricted
- Capabilities: business capabilities implemented (for portfolio reporting)
4.2 How to manage taxonomy changes (GitOps)
- Store taxonomies as YAML/JSON in a repo
- Changes via PR + lightweight review
- CI checks:
- uniqueness, allowed characters, no orphan nodes
- deprecation rules (announce, grace period)
- synonym handling (“Payments” vs “Pay”)
- Publish taxonomy as:
- a versioned artifact
- an API endpoint
- a UI picker in discovery tools
4.3 Stewardship rules
- Prefer additive changes; deprecate instead of rename when possible.
- Every term has: definition, owner, examples, and “use when / don’t use when.”
- Quarterly cleanup: merge duplicates, remove unused, tighten definitions.
5) Discovery interfaces (meet developers where they work)
5.1 Primary experiences
- Service page (single pane): owner, on-call, deps, deploy status, SLOs, runbooks, incidents, security posture, docs.
- Dependency explorer: upstream/downstream blast radius, critical path.
- “Who owns X?” lookup: repo, service, API, queue/topic, domain.
- Change impact: from PR/service change → impacted services + owners.
5.2 Delivery channels
- Backstage plugin (most common choice) as the default portal.
- CLI for quick queries (
dkg service payments-api --deps --owner).
- ChatOps (Slack/Teams bot): “/dkg owner payments-api”
- API for programmatic use and internal tooling.
5.3 Search behavior
- Hybrid: keyword → entity → graph expansion
- Filters: tier, lifecycle, domain, team, runtime, language, last-deploy, trust score
6) Trust scoring (so metadata becomes dependable)
6.1 Trust score dimensions (per entity and per relationship)
Compute a 0–100 score with explainable components:
- Provenance (0–30): source authority (runtime > CI > repo > manual)
- Freshness (0–25): last verified/observed timestamp vs expected update interval
- Completeness (0–20): required fields present (owner, tier, lifecycle, repo, runbook/SLO for tier-0/1)
- Consistency (0–15): conflicts between sources (two owners, mismatched runtime labels)
- Corroboration (0–10): same fact observed in ≥2 independent systems (e.g., service exists in k8s and catalog)
Expose:
- overall score + breakdown
- “why low” hints (e.g., “No runtime observation in 14 days”)
6.2 Trust policies (actionable governance)
- Minimum bar by tier: e.g., Tier-0 services must maintain ≥80 trust or trigger remediation.
- Auto-expire facts: e.g., on-call rotation older than 7 days becomes “stale.”
- Feedback loop: allow engineers to flag incorrect edges; route to triage queue.
7) Governance rituals (lightweight, repeatable)
Weekly (30–45 min) — “DKG Triage”
- connector failures, ingestion lag, stale high-tier entities
- review top “trust regressions”
- approve small schema tweaks (or escalate to RFC)
Biweekly — “Service Catalog Office Hours”
- help teams onboard metadata, fix ownership, add runbooks/SLO links
- gather UX feedback on discovery needs
Monthly — “Taxonomy Council”
- approve/deny taxonomy PRs, resolve naming conflicts, deprecations
- publish “taxonomy release notes”
Quarterly — “Steering Review”
- OKRs, adoption, coverage by org
- top systemic risks (unknown ownership, undocumented tier-0 deps)
- roadmap and funding asks
Change management artifacts
- Schema RFC template: motivation, examples, migration plan, backward compatibility
- Connector checklist: auth, rate limits, data contract, failure modes, runbooks
- Data quality SLOs: freshness, completeness, pipeline availability
8) Executive reporting (what leaders actually use)
Core KPIs (trend over time, by org/domain)
- Coverage
- % services with verified owner
- % tier-0/1 with SLO + runbook + on-call
- % services with runtime observation (k8s/mesh/APM)
- Dependency visibility
- % services with upstream/downstream deps mapped
- “unknown dependency edges” count (runtime calls not linked to catalog entities)
- Trust health
- average trust score by tier
- stale critical metadata count (ownership, on-call, last deploy)
- Risk & resilience
- tier-0 services with open critical vulns
- concentration risk (teams owning too many tier-0 services)
- incident recurrence correlated with low trust areas
- Adoption
- weekly active users of discovery interface
- API/query volume
- time-to-answer for “who owns / what depends on” (surveyed or instrumented)
Standard exec artifacts
- Quarterly one-pager: achievements, before/after metrics, next quarter goals, top 3 risks requiring leadership action.
- Heatmaps: domain × coverage, tier × trust, org × on-call readiness.
- Narrative: 2–3 concrete stories where the graph prevented an outage or accelerated incident response.
9) Implementation roadmap (practical sequencing)
Phase 0 (2–3 weeks): Foundation
- Pick primary ID strategy (Backstage entity ref or equivalent)
- Define MVP schema + required fields
- Stand up graph + search + API scaffolding
- Publish taxonomy v1 (domain/system/tier/lifecycle)
Phase 1 (4–8 weeks): MVP value loop
- Ingest: SCM + Backstage catalog + on-call (PagerDuty) + runtime (k8s)
- Service pages + ownership search + dependency view (even if partial)
- Trust score v1 (freshness/provenance/completeness)
Phase 2 (8–16 weeks): Reliability + risk
- Add incidents/postmortems + SLO systems + security scanners
- Add change impact (PR → service → deps)
- Executive dashboards and quarterly steering cadence
Phase 3: Scale
- More connectors, automated entity resolution, policy enforcement by tier
- Provide “graph as a platform”: events/webhooks for downstream tools
10) A few concrete templates you can adopt immediately
Service required fields (MVP):
service_id, name, owner_team, oncall, tier, lifecycle, repo, runtime_location, primary_language
Definition of Done for onboarding a service into the graph:
- Owner/team verified, tier set, runtime observed OR explicitly marked “non-runtime”
- At least one dependency source connected (static or runtime)
- Trust score ≥70 for tier-0/1, ≥50 otherwise (tunable)
Monthly taxonomy release notes format:
- Added terms, deprecated terms, mapping guidance, migration deadline
If you share your current toolchain (Backstage yes/no, k8s yes/no, CI/CD, incident/on-call provider, preferred cloud), I can propose a concrete stack (connectors + storage choice), an MVP schema, and the first 90-day OKRs tailored to your environment.