Welcome
This is the engineering handbook for all developers at Age of Learning. It collects the standards, processes, and reference material we use to build and operate our shared platform services.
Note: This is placeholder content — sections will be filled in over time. See the sidebar for the current table of contents.
What you'll find here
- Onboarding — accounts, tooling, and first-week checklist
- Coding Standards — language, style, and review expectations
- Git & Code Review — branching model and PR process
- Core Services — the services we own and their owners
- Deployment — how code reaches production
- Incidents & Support — on-call, escalation, and postmortems
Feedback
Spot something out of date? Open a PR against this handbook or drop a note in the engineering Slack.
Onboarding
Welcome to the Age of Learning engineering team! This page walks through your first week.
Day one
- Receive laptop and badge from IT (
[email protected]) - Enroll in SSO and set up MFA
- Meet your onboarding buddy and manager
First week checklist
| Item | Requested via | Typical SLA |
|---|---|---|
| GitHub org invite | Manager | 1 day |
| AWS IAM account | #engineering | 1–2 days |
| Datadog read access | Self-service SSO | Instant |
| PagerDuty account | On-call lead | 2 days |
| VPN profile | IT ticket | 1 day |
Local development setup
git clone [email protected]:AgeOfLearning/platform.git
cd platform
make bootstrap # installs toolchain + pre-commit hooks
make test # verify everything is green
Tip: If
make bootstrapfails on a fresh machine, check that you completed the VPN and Artifactory steps first.
Team & Contacts
Dummy roster — replace with the real one.
| Name | Role | Focus | Channel |
|---|---|---|---|
| Jane Doe | Engineering Manager | Planning, hiring | @jane.doe |
| Alex Smith | Senior Engineer | Auth & identity | @alex.smith |
| Sam Lee | Senior Engineer | Platform / infra | @sam.lee |
| Robin Diaz | Engineer | Services & APIs | @robin.diaz |
Where we talk
#engineering— day-to-day team discussion#oncall— incident coordination (paging)#deploys— automated deploy notifications- Weekly sync: Tuesdays 10:00 AM PT
Coding Standards
Consistent code is easier to review, operate, and hand off. The rules below apply to all Age of Learning repositories unless a repo documents an exception.
General principles
- Readability first — optimize for the next reader, not the author.
- Small changes — PRs should be reviewable in under 30 minutes.
- Automate style — formatters and linters decide style debates, not humans.
- Document the why — comments explain intent, not what the code does.
Example: service endpoint convention
// Endpoints return a uniform envelope so clients can handle errors consistently.
app.get('/v1/students/:id', async (req, res) => {
try {
const student = await students.get(req.params.id);
if (!student) return res.status(404).json({ error: { code: 'NOT_FOUND' } });
res.json({ data: student });
} catch (err) {
req.log.error({ err }, 'failed to fetch student');
res.status(500).json({ error: { code: 'INTERNAL' } });
}
});
Language guides
- TypeScript/Node — strict mode on, no
anyin exported APIs, ESLint + Prettier enforced in CI. - Python —
ruff checkandmypyclean; type hints on public functions. - Go — follow
gofmt; errors are values, wrap with%w.
Note: Lint and format checks run on every PR. Fix locally with
make lint-fix.
Git & Code Review
Branching model
We use trunk-based development with short-lived feature branches off main.
git checkout main && git pull
git checkout -b aofl-1234/short-description
Branch names follow <ticket-id>/<short-description>, e.g. AOFL-1234/add-retry-logic.
Pull requests
- Describe what and why; link the ticket.
- CI must be green (tests, lint, typecheck) before review.
- At least one approval required; two for changes to auth, billing, or data migrations.
- Squash-merge with a Conventional Commits message:
feat(auth): add refresh-token rotation
Rotates refresh tokens on use and revokes the previous token.
Refs AOFL-1234.
Review expectations
- First response within one business day.
- Review the code, not the person; keep comments actionable.
- Use Request changes only for blocking issues; prefix optional comments with
nit:.
Testing
Every service ships with automated tests, and CI blocks on failures.
The test pyramid we aim for
- Unit — fast, isolated, the bulk of the suite.
- Integration — real datastore via testcontainers; cover repository and API layers.
- Smoke — post-deploy checks against staging.
Running tests
make test # unit + integration
make test-watch # incremental during development
make test-coverage # enforces 80% line coverage on changed files
Tip: A flaky test is a bug — quarantine it with the
flakylabel and file a ticket the same day.
Core Services
Dummy service catalog — these are the services Age of Learning owns.
| Service | Description | Repo | Owner |
|---|---|---|---|
identity-service | Authentication, SSO, and session management | AgeOfLearning/identity-service | Alex Smith |
profile-service | Learner and guardian profiles | AgeOfLearning/profile-service | Robin Diaz |
progress-service | Learning progress and event ingestion | AgeOfLearning/progress-service | Sam Lee |
gateway | Public API gateway and rate limiting | AgeOfLearning/gateway | Platform (all) |
Service level objectives
- 99.9% availability for tier-1 services (
identity,gateway). - p99 latency under 300 ms for read endpoints.
- Error budget policy: burn 50% in a week → freeze non-critical deploys.
Deployment
Deploys are automated through CI/CD. Humans review, pipelines ship.
Pipeline stages
- Build — compile, containerize, SBOM
- Verify — unit + integration tests, lint, security scan
- Staging — auto-deploy on merge, smoke tests run
- Production — manual promotion, canary 5% → 100%
Promoting to production
# Promote the staging build to production (canary)
aoflctl deploy promote --service identity-service --from staging
# Watch the canary rollout
aoflctl deploy status --service identity-service --watch
Rollbacks
aoflctl deploy rollback --service identity-service --to previous
Note: If a rollback is needed, page the on-call and open an incident — even for minor issues.
Incidents & Support
Severities
| Severity | Definition | Response |
|---|---|---|
| SEV1 | Students cannot learn; auth down; data loss | Page on-call immediately, all hands |
| SEV2 | Degraded experience for a cohort of users | Page on-call during business hours |
| SEV3 | Minor bug, workaround exists | Ticket, fix in regular cadence |
Escalation path
- On-call engineer (PagerDuty:
aofl-primary) - Secondary on-call (
aofl-secondary) after 15 min without ack - Engineering manager after 30 min for SEV1/SEV2
Postmortems
Every SEV1 and SEV2 gets a blameless postmortem within three business days: timeline, root cause, impact, and action items with owners and due dates.