AGI Technologies routing reference pack
Reference: REF-ROUTE-001
Review date: 6 October 2026, Europe/Rome
Recorded source run: 2026-10-05T23:20:34.136Z (UTC)
Recorded environment: Node.js v26.8.1

Purpose
Inspect a synthetic contact-routing policy and reproduce its local decision tests.
The pack contains six fictional baseline records and 21 meaningful checks.
It is a planning reference, not a Clay template, HubSpot app or connector.

How to reproduce
1. Install a supported Node.js runtime. Node.js 18 or later supports the built-in
   features used here; the recorded audit used v26.8.1.
2. Extract this ZIP and open a terminal in the agi-routing-reference-pack folder.
3. Run this exact command:

   node test-routing-engine.cjs

No npm install, external dependencies, credentials or network access are needed.
The script creates or replaces test-results.json in the same extracted folder.
On success, it exits with code 0 and prints:

21 meaningful routing checks passed; 6 baseline terminal states verified locally. No CRM execution.

Use a separate working copy if you want to keep the supplied result file unchanged.
Its timestamp changes when rerun; source hashes in manifest.json remain comparable.
The manifest describes the original shipped files, not a later regenerated result.

Files
routing-engine.js       Pure local routing decision function
rules.json              Deliberate sample policy and fictional owner registry
fixtures.json           Six fictional records and independent expected outcomes
test-routing-engine.cjs Executable Node.js test harness
test-results.json       Recorded successful local run
test-output.txt         Recorded terminal output
manifest.json           Relative filenames, SHA256 hashes and execution scope

What the checks establish
The local function follows the supplied policy for the checked records. The tests
exercise eligibility precedence, multiple supplied matches, retained ownership,
inactive owners, missing/conflicting territories, invalid input, invalid policy
and deterministic replay without input mutation.

Limits
Matching is supplied as an input. The function does not search a real CRM.
ASSIGNED means a proposed owner decision, not a successful HubSpot write.
Identical local replay does not establish CRM idempotency, concurrent-delivery
safety, connector delivery, API permissions, owner seats or subscription support.
The policy is not HubSpot default behavior. No Clay or HubSpot run, paid
enrichment, CRM write, email delivery or measured client result is included.
All records, domains and owner identifiers are fictional. Do not substitute real
customer records in public files. Adapt this policy only within an authorized
implementation and verify actual destination records and owners separately.

Rights and reuse
This pack contains AGI Technologies reference code and synthetic data. It does
not grant rights to third-party trademarks, content or product data. For
republication, redistribution or inclusion in a commercial product, contact
AGI Technologies through https://agitechnologies.io/#agi-contact.
