stage-2-pricing

stage-2-pricing is an agent for coding agents from TelivityAI/otaip. It costs 0 tokens per session (1,546 once invoked), scanned A, original, Apache-2.0.

A group of airline-pricing tools that reads fare rules, builds fares, calculates taxes, and creates travel offers. Fare rules are the conditions attached to a ticket, such as change fees, advance-purchase limits, and minimum or maximum stays.

In plain words
What is it for?
Use it to parse fare rules, construct fares from pricing components, calculate taxes, validate corporate travel policies, and build offers for customers.
Why use it?
It turns complex airline pricing data into structured information that applications can check and use. This reduces manual interpretation of fare restrictions, taxes, and ticket prices.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/telivityai/otaip/stage-2-pricing
Clone the repo
git clone --depth 1 https://github.com/TelivityAI/otaip

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stage-2-pricing

README.md
[![agentmods](https://agentmods.dev/badge/agents/telivityai/otaip/stage-2-pricing.svg)](https://agentmods.dev/agents/telivityai/otaip/stage-2-pricing)
Your own site
<a href="https://agentmods.dev/agents/telivityai/otaip/stage-2-pricing"><img src="https://agentmods.dev/badge/agents/telivityai/otaip/stage-2-pricing.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01546
Opus 5 $0.00000 $0.00773
Sonnet 5 $0.00000 $0.00309
Haiku 4.5 $0.00000 $0.00155

Measured 5d ago against content hash 5453f302dbad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stage-2-pricing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/stage-2-pricing.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stage 2 -- Pricing Agents

Package: @otaip/agents-pricing

Fare rules, fare construction, tax calculation, offer building, corporate policy validation, and (coming soon) dynamic pricing and revenue management.


Agent 2.1 -- Fare Rule Agent

ID: 2.1 Class: FareRuleAgent Status: Implemented

Parses ATPCO fare rules (categories 1-20) into human-readable structured format using curated tariff snapshot data.

Input (FareRuleInput):

  • fare_basis -- fare basis code
  • carrier -- marketing carrier IATA code
  • origin -- origin IATA code
  • destination -- destination IATA code
  • travel_date? -- ISO date for date-based rule filtering
  • categories? -- specific ATPCO categories 1-50 (all if omitted)

Output (FareRuleOutput):

  • rules -- FareRuleResult[] with parsed categories, penalty summary, advance purchase, min/max stay, seasonality
  • total_rules -- count of matched rules
  • valid_for_date -- whether fare is valid for the specified travel date
  • in_blackout -- whether travel date falls in a blackout period

Agent 2.2 -- Fare Construction

ID: 2.2 Class: FareConstruction Status: Implemented

NUC × IROE construction with published TPM/MPM, Resolution 024d (HX/NX) rounding, and fail-closed HIP/BHC/CTM hooks. All financial math uses decimal.js.

Licensed IROE / 024d / TPM-MPM data are not shipped in the package. Pass them via data_sources. Missing IROE, TPM, or 024d → DomainInputRequired. Haversine-as-TPM and banker's rounding are banned.

KB: docs/knowledge-base/fare-construction-data-dependencies.md

Input (FareConstructionInput):

  • journey_type -- 'OW' | 'RT' | 'CT' (one-way, round-trip, circle-trip)
  • components -- fare components (origin, destination, carrier, fare basis, NUC amount)
  • selling_currency -- ISO 4217 currency
  • point_of_sale? -- country for IROE selection context
  • data_sources? -- licensed { iroe, rounding_024d, mileage } (required for a constructed fare)

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 146 lines · 0 tokens per session scan A 5453f302dbad

Subscribe to this mod's changes

stage-2-pricing is an agent published in the GitHub repository TelivityAI/otaip (41 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,546 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.