Internal documentation

Get Started Core Services

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

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

First week checklist

ItemRequested viaTypical SLA
GitHub org inviteManager1 day
AWS IAM account#engineering1–2 days
Datadog read accessSelf-service SSOInstant
PagerDuty accountOn-call lead2 days
VPN profileIT ticket1 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 bootstrap fails on a fresh machine, check that you completed the VPN and Artifactory steps first.

Team & Contacts

Dummy roster — replace with the real one.

NameRoleFocusChannel
Jane DoeEngineering ManagerPlanning, hiring@jane.doe
Alex SmithSenior EngineerAuth & identity@alex.smith
Sam LeeSenior EngineerPlatform / infra@sam.lee
Robin DiazEngineerServices & APIs@robin.diaz

Where we talk

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

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

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

feat(auth): add refresh-token rotation

Rotates refresh tokens on use and revokes the previous token.
Refs AOFL-1234.

Review expectations

Testing

Every service ships with automated tests, and CI blocks on failures.

The test pyramid we aim for

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 flaky label and file a ticket the same day.

Core Services

Dummy service catalog — these are the services Age of Learning owns.

ServiceDescriptionRepoOwner
identity-serviceAuthentication, SSO, and session managementAgeOfLearning/identity-serviceAlex Smith
profile-serviceLearner and guardian profilesAgeOfLearning/profile-serviceRobin Diaz
progress-serviceLearning progress and event ingestionAgeOfLearning/progress-serviceSam Lee
gatewayPublic API gateway and rate limitingAgeOfLearning/gatewayPlatform (all)

Service level objectives

Deployment

Deploys are automated through CI/CD. Humans review, pipelines ship.

Pipeline stages

  1. Build — compile, containerize, SBOM
  2. Verify — unit + integration tests, lint, security scan
  3. Staging — auto-deploy on merge, smoke tests run
  4. 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

SeverityDefinitionResponse
SEV1Students cannot learn; auth down; data lossPage on-call immediately, all hands
SEV2Degraded experience for a cohort of usersPage on-call during business hours
SEV3Minor bug, workaround existsTicket, fix in regular cadence

Escalation path

  1. On-call engineer (PagerDuty: aofl-primary)
  2. Secondary on-call (aofl-secondary) after 15 min without ack
  3. 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.