Engineering framework
The rules I bring to any team I lead | a living document I write and maintain
why it exists
Engineering is the work of turning ideas into reality, and it is more than code: architecture, planning, communication, documentation, automation, delivery and maintenance. This framework makes that work repeatable, so a team delivers predictably, consistently and sustainably through systems and standards instead of individual heroics.
principles
- Architecture before implementation. Requirements, contracts, standards and acceptance criteria exist before work starts. Implementation executes an approved design.
- Predictability over speed. Realistic estimates, risks raised early, commitments the team can keep.
- Quality over schedule. When a tradeoff is needed, the schedule moves before the standard does.
- Ownership includes accountability. Owning work means owning its quality, documentation, support, maintenance, incidents and delivery.
- Documentation is part of the product. Work is not complete until the knowledge to maintain, operate and extend it exists.
- Knowledge is shared. No project depends on a single person.
- No undocumented assumptions. When something is unclear: stop, clarify, document, continue.
- Automate whenever practical. A manual step is a candidate for automation, for consistency, reliability and quality.
- Keep growing. Learning is expected at every level.
culture
- The team comes before any individual.
- Disagreement is welcome when it brings evidence and alternatives. The goal is the best solution, not winning the argument.
- Respect is mandatory: no personal attacks, no public humiliation, no blame shifting.
- Knowledge belongs to the team. Hoarding it is not acceptable.
- Problems are escalated early, never hidden.
- Incidents are blameless: restore service, protect users, find the root cause, improve the system.
roles
- Technical lead: owns architecture, planning, communication, reviews, incident coordination and delivery, and answers for the team's outcome. The job is to protect the architecture, deliver, grow developers and remove blockers.
- Senior developers: share knowledge, guide others without doing their work for them, review, and help during incidents.
- Mid-level developers: work independently within the architecture, follow the standards, own their work and raise risks early.
- Junior developers: research, attempt, learn, then ask. Growth comes from effort, feedback and improvement.
- Decisions: anyone can challenge an architectural decision with evidence. Without consensus, the lead decides and is accountable for the result.
how work flows
- Idea, requirements, architecture, planning, development, review, testing, documentation, deployment, maintenance. Development starts only when requirements and architecture are clear enough.
- Every task carries its business objective, requirements, architecture reference, acceptance criteria, completion criteria, dependencies, risk level, testing needs and documentation needs.
- Estimates are made together by the lead and the developers, aiming for realism, with buffers where needed.
- A blocked developer investigates first and then escalates at once. Nobody stays blocked in silence.
- Definition of done: working implementation, tests, documentation, review, acceptance and completion criteria met, and approval.
source control and quality gates
- Conventional Commits v1.0.0, one concern per commit.
- No direct commits and no force pushes to protected branches. Every change goes through a pull request with review, tests, documentation updates and approval.
- Every rule a machine can check runs as a required check: formatting and types, tests, security scans and contract checks.
- Fix first, then gate. Gates keep holes closed; they do not close them.
- Ratchets, not cliffs. Every gate starts at today's measured number and only moves one way. Changed lines meet the target from day one.
- Fast gates block the merge, slow gates block the promotion. Nothing slower than about ten minutes sits in the deploy path. Load tests, soak tests and dynamic scans run nightly and publish a status the promotion requires.
- After each production deploy a synthetic user checks health, sign-in and key reads. A failure rolls the release back.
- An AI reviewer comments on each pull request as advice. A person approves.
- The same build is promoted from one environment to the next through a reviewed step, with short-lived credentials. Nothing is deployed from a laptop.
- Every API returns errors in one format: RFC 9457 problem details.
security
- Security is a gate, not a review at the end. Secret, code, dependency, infrastructure and image scans run on every pull request, and a high finding stops the merge.
- No long-lived secrets. Pipelines reach the cloud through OIDC and short-lived roles. Secrets live in a secrets manager, never in git or on a laptop.
- Least privilege, expiring access. People and workloads get only what the task needs. Privileged access expires on its own, and access is reviewed on a schedule.
- A supply chain you can prove. Dependencies and pipeline actions are pinned, every build carries an SBOM and a provenance record, and only artifacts that verify get deployed.
- The pipeline is attack surface. Tokens get the minimum permissions, untrusted code never runs with secrets, and workflow files are linted and reviewed like code.
- Patch on a clock. Fix times are set by severity. A known exploited vulnerability is handled as an incident.
- Prove it. Read-only audits against CIS benchmarks, findings ranked with an owner and a date, and audit logs that show who changed what and when.
performance
- Baseline first. Measure p50, p95, p99 and errors before tuning anything. Ramp the load in steps and check that the limit is the system, not the load generator.
- Budgets on every pull request. Bundle size, queries per hot endpoint and page-size caps on every list are checked in seconds, before review.
- Tiers by cost. Static budgets on every pull request; a load-test rig with a synthetic data set nightly; a full environment run weekly, off hours and approved; a canary on every production deploy.
- The gate rule. A run must pass its absolute threshold, and p95 may not be more than 20 percent worse than the median of the last five green runs on the same machine. New thresholds report for two weeks before they block.
- Soak and probe. A weekly soak at half load checks that errors and memory stay flat, and a fast probe on a health endpoint during every load test catches handlers that block.
- Front end too. Lighthouse budgets on the built app and a main-bundle budget at today's size plus a small margin.
architecture standard
- Architecture exists so developers can focus on implementation instead of invention. It reduces uncertainty, assumptions and rework, and increases reliability, maintainability and scalability.
- Priorities, in order: reliability, maintainability, scalability, security, performance, cost efficiency, developer productivity, simplicity. None is judged alone.
- Decision records are required for any change to technologies, frameworks, databases, messaging, caching, external services, cloud providers, service boundaries, infrastructure, deployment, events, authentication, authorization, API contract standards, monitoring, logging, security or disaster recovery. Each one records the context, the decision, the alternatives, the benefits, the risks, and the impact on development, operations, cost, security and scalability.
- Architecture defines technologies, standards, patterns, contracts and structure. Implementation is free inside those lines.
- To change the architecture: identify the issue, explain the concern, bring evidence and alternatives, discuss it with the lead, weigh the impact, decide, and update the documentation. Nothing changes before approval.
- Valid reasons for a change are reliability, security, significant performance or cost gains, and new business, operational or regulatory requirements. Preference alone is not one.
- Consistency beats technical superiority. A new technology needs a decision record and an honest look at its total cost of adoption.
- When code and documentation disagree, the approved architecture is the source of truth and the wrong artifact gets fixed.
operations
- Incidents: stabilize, restore service, communicate the impact, find the root cause, fix, validate, and write down the lessons. The lead coordinates.
- Technical debt is avoided. When it is taken on, it is documented, justified and has a plan to pay it back.
- Documentation is written for current and future developers and for AI tools: accurate, searchable, structured, maintainable and actionable, and short enough that people read it.
Developers should never be forced to guess. If they keep making assumptions, the architecture, the documentation or the communication has failed. The purpose of architecture is to make the correct path obvious.