Skip to content

Prompt building Tier 0 — echo-don't-compute improvements (tracking) #29

Description

@GustavoSena

Prompt building Tier 0 — echo-don't-compute improvements (tracking)

Tier 0 of the prompt-building improvement ladder: everything here is prompt copy + pure deterministic modules — zero new data dependencies, zero extra inference round trips, no validator-invariant changes, no schema changes. Later tiers (deterministic APR-per-tier modeling; multi-pair candidates from held tokens; fine-tune follow-up prompts) build on these.

The constraint that shapes all of it

The composer model is qwen/qwen2.5-omni-7b — a 7B model with MAX_COMPOSE_ATTEMPTS = 2 and a user watching a spinner (latency is user-facing, F2 Q3). It has already been caught fabricating chainIds and deadlines until the prompt said "copy these EXACTLY" (compose.ts). So the tier's principle: deterministic code computes (classification, arithmetic, rankings, corrective values); the model picks from menus and echoes. Every issue below is that principle applied to one seam.

Issues

Suggested order: #27 first (fully independent, validator-side), #24/#25 in parallel (pure modules), then #26 (composes them), #28 last.

Coordination

A PR refactoring prompt building is in flight. All pure modules (appetite, pairing math, band tiers, validator messages) are safe to build immediately; the prompt-rendering integration in each issue targets whichever builder that PR leaves standing (packages/arbitration-sdk/src/compose.ts vs the F2 §9 six-section contract in packages/app/src/lib/compose/prompt.ts). Bump PROMPT_VERSION on any prompt-contract change, per F2 §9.

Per repo rule (CLAUDE.md): decisions made while building — the appetite lexicon, the band-tier rubric, the T0.5 go/no-go — go back to the Notion feature pages (F2 §9, F3 band logic), not only into the PRs.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions