Developer Onboarding Platform Overview
Date: 2026-02-09
Audience: Engineers new to SecurityV0 (backend, full-stack, data, platform)
Executive Summary
SecurityV0 is a deterministic security platform focused on machine authority exposure: who (or what) can do what, across connected enterprise systems, and whether that access is justified and governed.
As a developer, think of the platform as a control-and-evidence engine:
- Ingest normalized authority data from connectors.
- Compare new state with previous state.
- Persist entities, versions, and events.
- Materialize access paths and blast-radius context.
- Evaluate deterministic finding rules.
- Produce explainable, auditable evidence artifacts.
The implementation goal is not “collect more logs.” It is to create a reliable control system that leadership and auditors can trust.
Two-Page Overview
Page 1: Product and System Mental Model
1. What SecurityV0 Actually Does
At a business level, SecurityV0 continuously answers:
- Which machine identities have meaningful authority?
- Do they still have clear ownership?
- Has access scope drifted?
- Is granted access actually used?
- Can we prove all of this with source-linked evidence?
At an engineering level, SecurityV0 turns connector output into a unified, queryable authority graph with historical versions and deterministic findings.
2. Core Design Principles (Do Not Violate)
These principles are the backbone of implementation decisions:
- Deterministic: same inputs produce same findings.
- Read-only posture: platform does not mutate client source systems.
- Explainable outputs: findings must have walkable evidence.
- Temporal truth: authority state must be reconstructable over time.
- Tenant isolation: every read/write path is tenant-scoped.
If a change conflicts with any of these, escalate before merging.
3. End-to-End Runtime Flow (Current Target Model)
When a sync payload arrives:
- Connector sends
NormalizedGraphto platform ingestion. - Platform normalizes and validates data contract.
- Graph is transformed into platform entities + execution evidence.
- Diff engine compares against persisted state.
- Changed entities are upserted; events are emitted.
- Historical versions are archived for temporal replay.
- Execution paths are materialized (including cross-system auth links).
- Findings evaluator processes changed scope.
- Evidence packs are assembled and stored.
Today, steps 1-7 are the active implementation focus. Evaluator/evidence full implementation is later-phase.
4. Collections You Should Recognize
These collections are core to nearly all platform behaviors:
entities: current authority stateentity_versions: historical snapshots for temporal queriesevents: change log and audit timelineexecution_evidence: observed behavior recordsconnector_syncs: sync lifecycle and metricssync_cursors: incremental sync progressionfindings: deterministic control outcomesevidence_packs: sealed explainability artifacts
5. Where to Start Reading in Docs
If you are new, read in this order:
architecture/00-overview.md(business and system shape)architecture/03-database.md(storage model and indexes)architecture/05-connectors.md(input contracts and normalizer semantics)architecture/04-api-layer.md(surface area and API behavior)architecture/research/2026-02-07-core-platform-implementation-plan.md(phase plan/status)
Page 2: Implementation Orientation for New Developers
6. Codebase Map (sv0-platform)
Use this practical map to navigate quickly:
src/api/: HTTP routes and middlewaresrc/ingestion/: normalization, transform, diff, path materializationsrc/storage/: storage interface + Mongo adapter + schema/index managementsrc/workers/: async runtime and job handlerssrc/domain/: core types and contractssrc/findings/: current findings store abstractionstest/: unit + integration suitesscripts/: setup/import helpersui/: thin validation UI
If you are debugging sync behavior, most relevant code is:
src/ingestion/*src/workers/handlers/sync-ingestion.tssrc/storage/mongo/adapter.ts
7. Current Implementation Status (High-Level)
Implemented (foundation + early pipeline):
- API skeleton, tenant/auth middleware baseline, health/readiness
- Mongo schema/index layer and CRUD adapters
- Connector report ingestion bridge for mock findings flow
- UI thin spike (dashboard/list/detail)
- Sync ingestion pipeline components (transform, diff, path materialization, worker wiring)
In progress / next:
- Full evaluator rule engine and finding lifecycle workflows
- Evidence-pack generation and sealing pipeline
- Full query DSL and advanced graph/temporal endpoints
- Persistent findings path fully wired to Mongo everywhere
- Production hardening and operational threshold automation
8. Local Developer Workflow (Day 1)
Recommended workflow:
- Start Mongo locally (Docker Compose).
- Start API in dev mode.
- Import connector report fixture.
- Run tests (unit + integration).
- Start UI and validate data path end-to-end.
Typical commands:
cd sv0-platform
docker compose up -d
REQUIRE_AUTH=false npm run dev
npm run import:connector-report -- --tenant-id dev-tenant
npm test
npm run test:integration
cd ui && npm run dev
9. First-Week Developer Checklist
Use this as practical onboarding:
- Run all local checks successfully (lint/typecheck/tests/build).
- Trace one full sync from ingest request to stored entities/events.
- Confirm you can explain one finding record and its evidence path.
- Read one ingestion integration test and one storage integration test in detail.
- Make one small change with tenant-scoped tests.
- Update docs and
.ai-noteswhen behavior changes.
10. Common Mistakes to Avoid
Most regressions come from a few patterns:
- Missing tenant filters in reads/writes.
- “Convenient” nondeterministic logic that breaks repeatability.
- Adding fields without updating schema/index/test expectations.
- Treating evidence as optional for critical finding logic.
- Forgetting that temporal correctness matters as much as current-state correctness.
11. What “Good” Looks Like for Contributions
A solid platform change should include:
- Clear tenant-scoped behavior
- Deterministic output under repeated runs
- Tests covering normal + failure paths
- Updated docs for contracts/semantics
- Operational observability where behavior affects sync or evaluation
If you keep those five outcomes in mind, you will usually align with platform direction.
Next Action
Status: adopted — shipped
Onboarding narrative incorporated into AGENTS.md and runbooks. No further action required.