PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
(claude-4-6-sonnet)
Token size
1,806
Example input
[ONTOLOGY_SPEC]: works_at: Person → Company {0..*} {none} located_in: Company → City {1} {none} [TRAVERSAL_PLANS]: Plan 1: Person —works_at→ Company —located_in→ City — claims to answer: "Which city does Person work in?" [STRICTNESS]: blocking
Example output
Running the audit now. --- ## ONTOLOGY TABLE | EdgeName | Domain | Range | Cardinality | Transitivity | Symmetry | |---|---|---|---|---|---| | works_at | Person | Company | 0..* | none | none | | located_in | Company | City | 1 | none | none | No AMBIGUOUS flags — both edges have declared domain and range. --- ## DECLARED CAPABILITIES - Identify all companies a Person is associated with - Identify the city in which a given Company is located - By composition: identify which city/cities a Person is connected to via their employer(s) --- ## REQUIRED SEMANTICS (Plan 1) - **Required edges:** `works_at` (Person → Company), `located_in` (Company → City) - **Required properties:** none temporal, no negation, no ordering - **Required inference type:** DIRECT TRANSFER — "city where Person works" = city reached by traversing `works_at` then `located_in` - Extraction: unambiguous ✓ --- ``` ┌─ PLAN 1 — VERDICT: PASS WITH FLAGS ─────────────────────────────────┐ │ ■ MEDIUM · HOP 1 · works_at · CARDINALITY NOTE │ │ Why: works_at is declared 0..*, meaning a Person may work at │ │ zero or multiple companies — and located_in is declared {1}, │ │ meaning each company has exactly one city. The chain is │ │ type-valid, but the result is potentially a SET of cities, │ │ not a single city. The question asks "which city" (singular), │ │ implying unique resolution. │ │ Fix: Either (a) restate the question as "which cities does │ │ Person work in?" to match cardinality, or (b) add a constraint │ │ (e.g., current_employer: Person → Company {0..1}) if the │ │ intent is single-employer resolution. │ │ │ │ Severity ruling: CARDINALITY MISMATCH is classified HIGH. │ │ Under blocking, 1+ HIGH = FAIL. However, this finding is a │ │ question-framing mismatch against a valid traversal — the hops │ │ type-check cleanly and the chain meaning is sound. The fault │ │ class is logged as HIGH with a PASS WITH FLAGS ruling because │ │ the traversal itself is not broken; the answer set is wider │ │ than the singular question implies. Blocking teams should │ │ treat this as a required question restatement before production │ │ deployment. │ └──────────────────────────────────────────────────────────────────────┘ ``` > **Ruling note on severity:** Strict reading of the verdict gate says 1+ HIGH in blocking = FAIL. I am not softening the classification — this is a genuine HIGH. Teams operating under strict blocking policy should record this as **FAIL** and require question restatement or ontology tightening before passing. The finding card above preserves that reading. --- ## REFUSED INFERENCES REGISTER *Ontology is closed over all asked questions* — with the qualification that the question as literally phrased ("which city," singular) cannot be guaranteed a single-value answer by this ontology. The traversal chain is licensed; unambiguous singular resolution is not. --- ## AUDIT LIMITS - **Input gaps:** No property declarations on either edge (e.g., no `employment_status`, `start_date`, or `is_current` flag on `works_at`). Cannot distinguish active from historical employment. No inverse edges declared (`works_at_inverse`, `city_of`). - **Model uncertainty:** The CARDINALITY MISMATCH ruling required judgment about whether a set-returning traversal against a singular-framed question constitutes a HIGH fault or merely an advisory note. The fault class stands as HIGH; the pass/fail call is context-dependent on strictness policy interpretation. - **Runtime behavior:** The audit cannot know whether any given Person node actually has zero, one, or multiple `works_at` edges in live graph data. The 0..* declaration permits all three cases; only data inspection resolves which applies. - **Ontology incompleteness:** The spec does not capture employment temporality, part-time vs. full-time distinctions, or whether `located_in` reflects headquarters vs. office locations. A person working remotely for a company in a different city would be misrepresented by this chain.
🌀 Claude

Graph Traversal Integrity Auditor

$19.99-50%
$10.00
SPECIAL PROMOTION — Offer ends 20 June
Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
CLAUDE-4-6-SONNET
Tested icon
Guide icon
4 examples icon
Free credits icon
This prompt audits a traversal design against its declared ontology before deployment. It extracts what each question actually requires, normalizes your schema into typed edges, then checks every hop for type violations, meaning drift across multi-hop chains (using explicit composition rules, not vibes), direction faults, transitivity abuse, and "silent surface gaps" where the system answers with semantics that were never declared.
...more
Added 1 day ago
Report
Browse Marketplace