The import reveals the existing routes, data and infrastructure the change must preserve.
1.2 Understand
Find the route the new feature must preserve.
The source-linked document shows how dispatch works today.
2.1 Audit
The team chooses to fix this risk first.
Maintaining finds request text used as SQL and cites the published parameterized-query control.
2.2 Prioritize
The evidence becomes a queue you control.
The team queues the search repair first, then the delivery-window feature. One initiative runs at a time.
2.3 Fix
Fix the search query.
The queued repair is planned against the repository, then built under the project’s autonomy setting.
2.4 Verify fix
The finding has to disappear from the scan.
The finding stays open until the scan checks the corrected file. When the same rule no longer detects it, the finding resolves.
3.1 Initiative
Now the queue reaches the business change.
The next queued initiative can proceed: reserve delivery windows without overbooking, keeping the existing route identifiers and database.
3.2 Plan
A reservation needs one transaction.
The plan connects a small schema addition, an atomic reservation, the API, the interface and boundary tests.
3.3 Develop
A full window must stay full.
The first implementation accepts a booking it should reject. The run corrects capacity handling and repeats the tests, including two competing requests for the final space.
3.4 Review
The change is ready to inspect.
The pull request brings the change, migration and verification record together.
3.5 Deploy
One change, through to production.
The configured pipeline takes the merged change through development checks and production approval. Taiga shows the connected deployment record.
3.6 Operate
The release becomes a system you can watch.
Availability checks and browser signals keep the running environment visible.
North Pole Logistics / North Pole Dispatchnorth-pole / dispatch
Illustrative · fictional records
Keep what works. Deliver what is next.
Read it
Repair it
Extend it
Step 1 of 12·Import
north-pole / dispatch · mainReality v1 · a17c042
src/routes/search.ts
src/dispatch/capacity.ts
src/db/schema.ts
infra/service.tfnot cited
North Pole team
Start analysisStart analysis
From repository evidence to a reviewable backlog
Code-derived documents
Repository scans
Policy assessment
Initial backlog
How dispatch works todayProject documents
Dispatch capacity
Each route has a fixed capacity. The current application assigns a route, but has no delivery-window booking. src/dispatch/capacity.ts · lines 12–28
Search looks a route up by the name a dispatcher types. src/routes/search.ts:24
Routes and their identifiers are stored in PostgreSQL. src/db/schema.ts:8
Project instructions
Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.
Maintaining
osv-scanner
gitleaks
opengrep
checkov
MaintainingFindingsHighSQL query constructed from request textopengrep · insecure code · src/routes/search.ts:24db.query(`SELECT * FROM routes WHERE name = '${query}'`);SEC-04 · Use parameterized database queries.1 breached control · Example organization policyOther published controlsNo recorded evidence · not declared compliant
Fix this findingSEC-04 · Use parameterized database queries.
INIT-08 Book a delivery windowBusiness request · WINDOW-01Queued
The backlog is proposed from the import evidence. Each item cites its finding or policy gap.
North Pole team
Fix the search query first. Then the delivery windows.Fix the search query first. Then the delivery windows.
FIX-07 · Parameterize dispatch searchBuild on its own · Human merge review
−db.query(`SELECT * FROM routes WHERE name = '${query}'`);
+db.query('SELECT * FROM routes WHERE name = $1', [query]);
Remediation initiative
Planning
Building
Your review
Search treats input as data
PR #42 is merged. A passing build does not resolve the finding; opengrep scans src/routes/search.ts again.
Finding verificationResolved · b28d153SQL query constructed from request textdb.query('SELECT * FROM routes WHERE name = $1', [query]);Same rule. Same file. Pattern no longer detected.SEC-04 · Use parameterized database queries.Evidence recorded · finding resolved
This finding resolved. Other controls still need their own evidence.
North Pole team
Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.
INIT-08 starts from the reality documents, the project instructions and the published policies.
INIT-08 · Book a delivery window
Reserve an available window.
Reject a full window without changing capacity.
Keep existing route identifiers and assignments.
WINDOW-01 · Never overbook a window
Illustrative implementation plan
Booking table
Atomic capacity check
Booking API
Dispatch window picker
Boundary tests
Keep PostgreSQL. Reserve capacity in the same transaction as the booking.
Two requests for the final space: only one succeeds.
Runfeat/delivery-windows
+BEGIN;
+UPDATE delivery_windows
+SET reserved = reserved + 1
+WHERE id = $1 AND reserved < capacity
+RETURNING id;
+-- Insert booking only if a row returned.
+COMMIT;
Illustrative code and test results
Existing dispatch behavior
Available window booking
Full window rejection
Competing requests for the final space
PR #43 is open against main, with its migration and the recorded test run.
PR #43 · Add delivery-window booking
Human review · waits for your teamHuman review complete
Plan and acceptance criteriaCode and migrationTests and recorded run
Branch protections and configured review rules still apply.
PR #43 is merged at c39e264. Your pipeline deploys it; Taiga shows the record.
Example customer pipeline
Development · Build and test
Production approval · Runtime checksProduction approval · Runtime checks
Delivery-window booking is in production. Taiga observes it; your team decides what comes next.
North Pole DispatchWinter operationsNP-042 · Rovaniemi240 parcels · existing routeDelivery windows · new in this releaseReady for dispatchAfter releaseConfigured URL checks, browser signals from the installed beacon and repository sweeps inform the next decision.
Ready to review
TaigaFrom repository evidence to a reviewable backlog
north-pole / dispatch · mainReality v1 · a17c042
src/routes/search.ts
src/dispatch/capacity.ts
src/db/schema.ts
infra/service.tfnot cited
North Pole team
Start analysisStart analysis
From repository evidence to a reviewable backlog
Code-derived documents
Repository scans
Policy assessment
Initial backlog
Ready to review
TaigaFrom repository evidence to a reviewable backlog
north-pole / dispatch · mainReality v1 · a17c042
src/routes/search.ts:24
src/dispatch/capacity.ts:12–28
src/db/schema.ts:8
infra/service.tfnot cited
North Pole team
Start analysisStart analysis
From repository evidence to a reviewable backlog
Code-derived documents
Repository scans
Policy assessment
Initial backlog
How dispatch works todayProject documents
Dispatch capacity
Each route has a fixed capacity. The current application assigns a route, but has no delivery-window booking. src/dispatch/capacity.ts · lines 12–28
Search looks a route up by the name a dispatcher types. src/routes/search.ts:24
Routes and their identifiers are stored in PostgreSQL. src/db/schema.ts:8
Project instructions
Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.
Ready to review
TaigaReality v1 · a17c042
north-pole / dispatch · mainReality v1 · a17c042
src/routes/search.ts:24
src/dispatch/capacity.ts:12–28
src/db/schema.ts:8
infra/service.tfnot cited
How dispatch works todayProject documents
Dispatch capacity
Each route has a fixed capacity. The current application assigns a route, but has no delivery-window booking. src/dispatch/capacity.ts · lines 12–28
Search looks a route up by the name a dispatcher types. src/routes/search.ts:24
Routes and their identifiers are stored in PostgreSQL. src/db/schema.ts:8
Project instructions
Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.
Maintaining
osv-scanner
gitleaks
opengrepsrc/routes/search.ts:24
checkov
MaintainingFindingsHighSQL query constructed from request textopengrep · insecure code · src/routes/search.ts:24db.query(`SELECT * FROM routes WHERE name = '${query}'`);SEC-04 · Use parameterized database queries.1 breached control · Example organization policyOther published controlsNo recorded evidence · not declared compliant
Fix this findingPrioritised · fix firstSEC-04 · Use parameterized database queries.
TaigaPrioritised · fix first
MaintainingFindingsHighSQL query constructed from request textopengrep · insecure code · src/routes/search.ts:24db.query(`SELECT * FROM routes WHERE name = '${query}'`);SEC-04 · Use parameterized database queries.1 breached control · Example organization policyOther published controlsNo recorded evidence · not declared compliant
Fix this findingPrioritised · fix firstSEC-04 · Use parameterized database queries.
INIT-08 Book a delivery windowBusiness request · WINDOW-01Queued
The backlog is proposed from the import evidence. Each item cites its finding or policy gap.
North Pole team
Fix the search query first. Then the delivery windows.Fix the search query first. Then the delivery windows.
FIX-07 · Parameterize dispatch searchBuild on its own · Human merge review
−db.query(`SELECT * FROM routes WHERE name = '${query}'`);
+db.query('SELECT * FROM routes WHERE name = $1', [query]);
Remediation initiative
Planning
Building
Your review
Search treats input as data
TaigaPR #42 · Reviewed and merged
north-pole / dispatch · mainReality v2 · b28d153
src/routes/search.ts:24
src/dispatch/capacity.ts:12–28
src/db/schema.ts:8
infra/service.tfnot cited
FIX-07 · Parameterize dispatch searchBuild on its own · Human merge review
−db.query(`SELECT * FROM routes WHERE name = '${query}'`);
+db.query('SELECT * FROM routes WHERE name = $1', [query]);
Remediation initiative
Planning
Building
Your review
Search treats input as data
PR #42 is merged. A passing build does not resolve the finding; opengrep scans src/routes/search.ts again.
Finding verificationResolved · b28d153SQL query constructed from request textdb.query('SELECT * FROM routes WHERE name = $1', [query]);Same rule. Same file. Pattern no longer detected.SEC-04 · Use parameterized database queries.Evidence recorded · finding resolved
This finding resolved. Other controls still need their own evidence.
TaigaResolved · b28d153
north-pole / dispatch · mainReality v2 · b28d153
src/routes/search.ts:24
src/dispatch/capacity.ts:12–28
src/db/schema.ts:8
infra/service.tfnot cited
PR #42 is merged. A passing build does not resolve the finding; opengrep scans src/routes/search.ts again.
Finding verificationResolved · b28d153SQL query constructed from request textdb.query('SELECT * FROM routes WHERE name = $1', [query]);Same rule. Same file. Pattern no longer detected.SEC-04 · Use parameterized database queries.Evidence recorded · finding resolved
This finding resolved. Other controls still need their own evidence.
North Pole team
Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.
INIT-08 starts from the reality documents, the project instructions and the published policies.
INIT-08 · Book a delivery window
Reserve an available window.
Reject a full window without changing capacity.
Keep existing route identifiers and assignments.
WINDOW-01 · Never overbook a window
TaigaResolved · b28d153
North Pole team
Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.
INIT-08 starts from the reality documents, the project instructions and the published policies.
INIT-08 · Book a delivery window
Reserve an available window.
Reject a full window without changing capacity.
Keep existing route identifiers and assignments.
WINDOW-01 · Never overbook a window
Illustrative implementation plan
Booking table
Atomic capacity check
Booking API
Dispatch window picker
Boundary tests
Keep PostgreSQL. Reserve capacity in the same transaction as the booking.
Two requests for the final space: only one succeeds.
TaigaPlan ready
Illustrative implementation plan
Booking table
Atomic capacity check
Booking API
Dispatch window picker
Boundary tests
Keep PostgreSQL. Reserve capacity in the same transaction as the booking.
Two requests for the final space: only one succeeds.
Runfeat/delivery-windows
+BEGIN;
+UPDATE delivery_windows
+SET reserved = reserved + 1
+WHERE id = $1 AND reserved < capacity
+RETURNING id;
+-- Insert booking only if a row returned.
+COMMIT;
Illustrative code and test results
Existing dispatch behavior
Available window booking
Full window rejectionFull window rejected · capacity unchanged
Competing requests for the final spaceFinal space: one request accepted · one rejected
TaigaFull window rejected · capacity unchanged
Runfeat/delivery-windows
+BEGIN;
+UPDATE delivery_windows
+SET reserved = reserved + 1
+WHERE id = $1 AND reserved < capacity
+RETURNING id;
+-- Insert booking only if a row returned.
+COMMIT;
Illustrative code and test results
Existing dispatch behavior
Available window booking
Full window rejectionFull window rejected · capacity unchanged
Competing requests for the final spaceFinal space: one request accepted · one rejected
PR #43 is open against main, with its migration and the recorded test run.
PR #43 · Add delivery-window booking
Human review · waits for your teamHuman review complete
Plan and acceptance criteriaCode and migrationTests and recorded run
Branch protections and configured review rules still apply.
TaigaMerge to the configured branch
PR #43 is open against main, with its migration and the recorded test run.
PR #43 · Add delivery-window booking
Human review · waits for your teamHuman review complete
Plan and acceptance criteriaCode and migrationTests and recorded run
Branch protections and configured review rules still apply.
PR #43 is merged at c39e264. Your pipeline deploys it; Taiga shows the record.
Example customer pipeline
Development · Build and test
Production approval · Runtime checksProduction approval · Runtime checks
Delivery-window booking is in production. Taiga observes it; your team decides what comes next.
North Pole DispatchWinter operationsNP-042 · Rovaniemi240 parcels · existing routeDelivery windows · new in this releaseReady for dispatchAfter releaseConfigured URL checks, browser signals from the installed beacon and repository sweeps inform the next decision.
The next dispatch has a window.
TaigaAvailability checks and browser signals
North Pole team
Start analysisStart analysis
Project instructions
Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.Keep the current route identifiers and PostgreSQL database. Add booking without replacing dispatch.
Maintaining
osv-scanner
gitleaks
opengrep
checkov
Fix this findingSEC-04 · Use parameterized database queries.
The backlog is proposed from the import evidence. Each item cites its finding or policy gap.
North Pole team
Fix the search query first. Then the delivery windows.Fix the search query first. Then the delivery windows.
Remediation initiative
Planning
Building
Your review
Search treats input as data
PR #42 is merged. A passing build does not resolve the finding; opengrep scans src/routes/search.ts again.
This finding resolved. Other controls still need their own evidence.
North Pole team
Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.Let dispatchers reserve an available delivery window for a route. A full window must reject the booking.
INIT-08 starts from the reality documents, the project instructions and the published policies.
Keep PostgreSQL. Reserve capacity in the same transaction as the booking.
Two requests for the final space: only one succeeds.
Illustrative code and test results
Existing dispatch behavior
Available window booking
Full window rejection
Competing requests for the final space
PR #43 is open against main, with its migration and the recorded test run.
Branch protections and configured review rules still apply.
PR #43 is merged at c39e264. Your pipeline deploys it; Taiga shows the record.
Delivery-window booking is in production. Taiga observes it; your team decides what comes next.
Ready to review
TaigaFrom repository evidence to a reviewable backlog
North Pole DispatchWinter operationsNP-042 · Rovaniemi240 parcels · existing routeDelivery windows · new in this releaseReady for dispatchAfter releaseConfigured URL checks, browser signals from the installed beacon and repository sweeps inform the next decision.
Example customer pipeline
Development · Build and test
Production approval · Runtime checksProduction approval · Runtime checks
Human review · waits for your teamHuman review complete
Plan and acceptance criteriaCode and migrationTests and recorded run
Runfeat/delivery-windows
+BEGIN;
+UPDATE delivery_windows
+SET reserved = reserved + 1
+WHERE id = $1 AND reserved < capacity
+RETURNING id;
+-- Insert booking only if a row returned.
+COMMIT;
Illustrative implementation plan
Booking table
Atomic capacity check
Booking API
Dispatch window picker
Boundary tests
INIT-08 · Book a delivery window
Reserve an available window.
Reject a full window without changing capacity.
Keep existing route identifiers and assignments.
WINDOW-01 · Never overbook a window
Finding verificationResolved · b28d153SQL query constructed from request textdb.query('SELECT * FROM routes WHERE name = $1', [query]);Same rule. Same file. Pattern no longer detected.SEC-04 · Use parameterized database queries.Evidence recorded · finding resolved
FIX-07 · Parameterize dispatch searchBuild on its own · Human merge review
−db.query(`SELECT * FROM routes WHERE name = '${query}'`);
+db.query('SELECT * FROM routes WHERE name = $1', [query]);
INIT-08 Book a delivery windowBusiness request · WINDOW-01Queued
MaintainingFindingsHighSQL query constructed from request textopengrep · insecure code · src/routes/search.ts:24db.query(`SELECT * FROM routes WHERE name = '${query}'`);SEC-04 · Use parameterized database queries.1 breached control · Example organization policyOther published controlsNo recorded evidence · not declared compliant
How dispatch works todayProject documents
Dispatch capacity
Each route has a fixed capacity. The current application assigns a route, but has no delivery-window booking. src/dispatch/capacity.ts · lines 12–28
Search looks a route up by the name a dispatcher types. src/routes/search.ts:24
Routes and their identifiers are stored in PostgreSQL. src/db/schema.ts:8
From repository evidence to a reviewable backlog
Code-derived documents
Repository scans
Policy assessment
Initial backlog
north-pole / dispatch · mainReality v1 · a17c042
src/routes/search.ts
src/dispatch/capacity.ts
src/db/schema.ts
infra/service.tfnot cited
North Pole links north-pole / dispatch; Taiga reads its files and turns the evidence into a reviewable backlog.
Taiga derives a document from the code, each sentence cited to its file, and the team records what must stay.
Scanners find a SQL query built from request text at src/routes/search.ts line 24, a breach of SEC-04. The team prioritises it.
The backlog cites its findings; the team queues FIX-07 first, then INIT-08.
Taiga builds the parameterized query, the reviewer checks it and PR #42 merges.
The re-scan checks the corrected file with the same rule; the finding resolves.
The queue reaches the next initiative: reserve delivery windows without overbooking.
The plan connects a booking table, an atomic capacity check, the API, the window picker and boundary tests.
The first run accepts a booking on a full window; Taiga corrects capacity handling and the tests pass.
The pull request waits for human review, then is approved.
Your pipeline deploys the change to production; Taiga shows the deployment record.
Availability checks and browser signals keep the running environment visible.
About this story
North Pole Dispatch is an illustrative project. Repository files, findings, policies, commits and run results are examples, not customer evidence.
The next dispatch has a window.
The existing route is still here. Now a dispatcher can reserve a delivery window without overbooking it.
North Pole Dispatch
Route
NP-042 · Rovaniemi
240 parcels · existing route
Ready for dispatch
Delivery window
Next: delivery-window booking
Booking record
No window reserved yet.
Browser-only demo. Fictional data; no backend, deployment, real identity or persistent storage.