<< All versions

Skill v1.0.1

currentAutomated scan100/100
diazmelgarejo/orama-system/afrp
──Details
PublishedNovember 29, 2026 at 09:23 AM
Content Hashsha256:dde06f14df62e959...
Git SHA0b07d5ad83d3
──Files
Files (1 file, 10.5 KB)
SKILL.md10.5 KBactive
SKILL.md · 201 lines · 10.5 KB

name: afrp description: Audience-First Response Protocol — mandatory pre-router gate. Classifies query type (A/B/C/D), declares scope, and calibrates abstraction level before any oramasys stage begins. Activates before generating any non-trivial output. version: 1.0.1 license: Apache 2.0 compatibility: claude-code, cowork, open, codex allowed-tools: bash, file-operations triggers:

  • afrp
  • audience first response
  • query type classification
  • mode router gate
  • intent verification

Audience-First Response Protocol (AFRP)

Mandatory pre-router gate. Run before any non-trivial output. Never skip.

Purpose

Classify incoming queries on type and audience level before oramasys routing or execution.

When to Use

Before generating Type B (analytical), C (implementation), or D (ambiguous) responses in orama-system workflows.

The Gate

Before generating output, classify the incoming query on two axes:

Axis 1 — Query Type

TypeDescriptionResponse calibration
ADirect factual / lookupConcise, direct answer. No elaboration.
BAnalytical / reasoningStructured explanation, medium depth.
CImplementation / buildFull oramasys 5-stage process.
DAmbiguous / metaClarify scope before proceeding.

Axis 2 — Audience Level

LevelSignalsCalibration
Novice"explain", "what is", "how do I"Plain language, analogies, step-by-step
Practitionerdomain vocabulary, specific toolsTechnical precision, skip basics
Expertedge cases, architecture, tradeoffsPeer-level depth, no hand-holding

Protocol Steps

  1. READ the query fully before classifying
  2. CLASSIFY: Type (A/B/C/D) × Level (Novice/Practitioner/Expert)
  3. DECLARE scope: "This is a Type C / Practitioner query. Applying oramasys MODE 2."
  4. CALIBRATE output format and depth
  5. PROCEED with the appropriate oramasys mode

Type × Mode Mapping

Query Typeoramasys ModeWhen
AMODE 1 (inline, no plan)Simple lookup, 1-2 steps
BMODE 1–2Analysis, explanation
C (small)MODE 2 (5-stage, subagents)Build task, 3-7 steps
C (large)MODE 3 (full 7-agent network)8+ steps, parallel modules
DClarify first, then reclassifyAmbiguous scope

Scope Declaration Format

text
AFRP Gate: Type [A/B/C/D] | Level [Novice/Practitioner/Expert] | Mode [1/2/3]
Scope: [one sentence describing what will be done]

Example:

text
AFRP Gate: Type C | Level Practitioner | Mode 2
Scope: Implement CIDF-compliant content insertion for the form submission flow.

Intent-Verification Gate (Anti-Handwaving) — Mandatory

The Type/Level axes calibrate how to answer. This gate guards whether I understood the request at all and whether my method answers it. Handwaving — asserting a conclusion from a narrow proxy without confirming intent — is the #1 way this system wastes the user's time and erodes trust.

Four triggers force a STOP-and-clarify or STOP-and-verify before acting:

  1. Interpretation risk. The request could mean ≥2 things, uses a term/operation with

competing mechanics (e.g. "re-anchor" = flatten? graft? point-at-twin?), or the user insists something exists/needs doing that my first check denies. → Ask to confirm the true intent and the desired end-state before executing. Do not act on the best guess.

  1. About to conclude "nothing to do." Before asserting "already fine / no problem

found / no orphans / no data loss / done," verify the conclusion came from the method that actually answers the question, not a cheaper proxy. Name the limit of what was checked. If a proxy disagrees with the user's insistence, run the real method exhaustively before reporting a negative.

  1. Explicit instruction vs. my guess (catastrophic assumption). The user gave an exact

name / path / structure (e.g. write to .agent/memory) and I am tempted to silently "correct" it to something that seems cleaner (.agents/memory), or to write into an area whose conventions I have not read. → Use the explicit value verbatim; read the area's AGENTS.md / _index first; verify I am not on a stale branch (compare HEAD tree to origin, not ahead/behind). If it still seems wrong, ASK — never substitute a guess for an explicit instruction. Overriding an unambiguous instruction is not a judgment call; it is the failure this protocol exists to prevent.

  1. Mutable external state. The answer or action depends on live PR, branch, issue, CI,

deployment, or account state. Conversation memory, a prior tool result, a local tracking ref, and a plan snapshot are historical evidence, not current state. Query the authority immediately before deciding or writing. If the result omits decisive fields such as PR state, merged time, head ref, head SHA, or base ref, use a more authoritative endpoint or stop. Do not fill missing fields from memory.

Proxy ≠ real question (examples that bit us):

Cheap proxy I usedThe real questionRight method
git merge-base != root ⇒ "not orphaned"does the branch's content converge with main?byte-identical tree-twin search (git log main --format='%H %T')
"no commits absent ⇒ no data loss ⇒ nothing to restore"does the user want the refs/history reconciled regardless?ask; reconcile per their model
"tests pass"does the feature actually work?run it / observe behavior
".agents/ is tidier than the user's .agent/" ⇒ wrote therewhich dir does the user/repo actually use?take the explicit name verbatim; read .agent/AGENTS.md; check origin (the canonical dir already existed)
mergeable: CONFLICTING ⇒ merge/rebase stale PR wholesaledeliver harmonized delta without re-adding content already on base?path-scoped replay onto fresh integration base (merged for periscope); see `path-scoped-pr-replay-reference-card.md` + CIDF integrative-editing-examples §9
PR pushed with 0 file delta / empty commitempty index or blind API retry?verify staged diff; after uncertainty, read remote before retry; compare parent/child trees; then confirm the expected content marker is actually present in the committed blob (see failure-modes.md Failure Mode 9 — a non-empty diff proves something changed, not that the intended artifact landed)
remembered "open PR" ⇒ reject a direct create-PR command as duplicateis an open PR currently attached to this exact head repository owner/name, head SHA, and intended base — and if the prior PR is merged, does the head contain post-merge commits (if closed and never merged, does it have any delta at all)?fetch live PR metadata and branch head; classify with the branch-state matrix in `branch-local-pattern-remediation.md`

Reflect, then route: TRUE intent (clarify if ambiguous) → correct method (not a proxy) → act. Trust the user's domain signal over my first-pass check — their context exceeds mine.

Earned 2026-06-04 (orama/AlphaClaw/periscope branch reconciliation): three successive
handwaved conclusions, each corrected by the user. See failure-modes.md and the
Trigger 3 earned 2026-06-22 (Perpetua-Tools memory): the user said write to .agent/memory;
I silently used .agents/memory and committed there, on a stale branch, never reading the
canonical .agent/AGENTS.md. The reference DO-NOT example lives in
Proxy-table rows earned 2026-07-28 (periscope PR #12 ECC): CONFLICTING did not mean
"merge harder" — it meant the base had moved and the branch re-added an already-landed
bundle. Path-scoped replay + integrative synthesis (CIDF §9, git-history-surgery card)
replaced two noisy commits with one clean delta. See
`failure-modes.md` §6–8 examples.
Trigger 4 earned 2026-09-12 UTC (Agate PR #2): stale conversational state said the PR
was open, while GitHub showed it was merged. The agent overrode the user's direct request
to create a PR and falsely called it a duplicate. The branch still held a post-merge
commit, recovered through Agate PR #3. See failure-modes.md Failure Mode 10.

Boundaries

Always Do

  • Run AFRP gate before any Type B, C, or D response
  • State the gate result explicitly when using Mode 2 or 3
  • Re-run gate if the user clarifies a Type D query
  • Run the Intent-Verification gate on interpretation risk or before any "nothing to do" conclusion — AskUserQuestion FIRST, reflect, use the real method not a proxy
  • Verify mutable external state live immediately before a decision or write; record the

exact repository, PR/issue, state, base, head, and SHA used for the decision

Ask First

  • Reclassifying from C to D (means the task is ambiguous — confirm with user)
  • Any request open to ≥2 interpretations, or where the user insists against my first check — confirm intent before acting

Never Do

  • Skip the gate for complex or audience-dependent queries
  • Proceed with Mode 3 without declaring it explicitly
  • Assume expert level without signals confirming it
  • Handwave: assert "done / fine / nothing needed" from a narrow proxy without confirming intent or running the method that truly answers the question
  • Override an explicit instruction with a guess: silently substitute your own name/path/structure for the exact one the user gave, or write into an area without reading its AGENTS.md/_index (see Intent-Verification trigger 3)
  • Treat memory as transaction state: reject or redirect an explicit GitHub command from

remembered PR status without a fresh authoritative lookup


Integration

AFRP is the first step in bin/orama-system/SKILL.md Mode Router. It runs before the complexity signals are evaluated. The router is compatible with Perplexity-Tools via the current bridge, OR via the implemented HTTP /oramasys path. The old /ultrathink route is a deprecated compatibility shim.

Query arrives → AFRP Gate → Mode Router → MODE 1 / 2 / 3

See `bin/orama-system/SKILL.md` for the full execution mode router.

All versions