kind: sft-jsonl

[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
You are TIPLLM controlling TIP crawler and verification robots.
Given this current observation, choose the safest next robot action.

{
  "event": "status",
  "actor": "codex-verification-robot",
  "input": {
    "live_total": 13546,
    "price_verified": 7250,
    "image_verified": 7025,
    "details_verified": 6243,
    "fully_verified": 5812,
    "requested_policy": "TIPLLM only; no other AI; record experiences in Gitea training pool"
  },
  "safety_notes": [
    "No crawler jobs were started.",
    "No non-TIPLLM AI is added to the runtime design.",
    "This record is intended for TIPLLM SFT training."
  ]
}

[Assistant]
{
  "summary": "TIP verification robot policy updated: use TIPLLM only for crawler planning and write robot experience back to the TIPLLM training pool.",
  "decision": {
    "ai_policy": "TIPLLM_ONLY",
    "erik_policy": "controller_only_no_heavy_crawlers",
    "training_pool": "write robot status, TIPLLM plans, queue plans, enqueue outcomes and crawler results as SFT records",
    "deployment_policy": "Proxmox/Pi for heavy crawler work; Erik only safe queues and DB/pg-boss coordination"
  },
  "outcome": {
    "code_paths": [
      "packages/scraper/src/crawler-llm/training-data-writer.ts",
      "packages/scraper/src/robots/verification-robots.ts",
      "scripts/tip-learning-pool-build.ts"
    ],
    "crawl_jobs_started": 0
  },
  "constraints": [
    "Use TIPLLM only for planning/extraction feedback.",
    "Do not start heavy crawler waves on Erik.",
    "Prefer small, observable queue batches.",
    "Write useful outcomes back into the TIPLLM training pool."
  ]
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
You are TIPLLM controlling TIP crawler and verification robots.
Given this current observation, choose the safest next robot action.

{
  "event": "crawler_result",
  "actor": "codex-fs-flex-price-image-revalidation",
  "profile": "erik-safe",
  "vendor": "Flexoptix+FS.COM",
  "input": {
    "problem": "Flexoptix and FS.com prices looked wrong; price_observations were not marked verified; FS.com images did not refresh.",
    "precheck": {
      "Flexoptix_verified_price_observations": 0,
      "FS_COM_verified_price_observations": 0,
      "FS_COM_image_verified_products": 207
    }
  },
  "safety_notes": [
    "Use TIPLLM only for TIP crawler planning and extraction feedback.",
    "Keep Erik safe: sequential runs, maxConcurrency=1, nice -n 10, monitor load.",
    "Prefer targeted reruns after selector fixes instead of repeating full heavy crawls."
  ]
}

[Assistant]
{
  "summary": "For Flexoptix and FS.com price/image revalidation, first fix the DB verification write path, then crawl sequentially and verify counters from Postgres before declaring success.",
  "decision": {
    "price_observation_policy": "Set price_observations.is_verified=true and verified_at for both new observations and fresh unchanged observations, while also refreshing transceiver.price_verified_at.",
    "image_policy": "When a scraper sees a current product image, refresh image_verified_at and image_verified_url even if image_url already exists; replace only blank/default/placeholder image_url values.",
    "fs_image_selector_policy": "Prefer resource.fs.com product images from .big_img_box, img.big_img, .big_img_m_active, .big_img_m, and .small_img_active; reject default.jpg, generalImg, logos, icons, and SVGs.",
    "crawl_policy": "Use force revalidate for prices, then targeted FS_ONLY_MISSING_IMAGES for missing images to avoid another full crawl."
  },
  "outcome": {
    "Flexoptix": {
      "products_processed": 615,
      "verified_price_observations_after": 615,
      "images_verified_last_4h": 605
    },
    "FS.COM": {
      "full_detail_pages": 270,
      "targeted_image_detail_pages": 99,
      "failed_requests": 0,
      "verified_price_observations_after": 271,
      "image_verified_products_after": 299
    },
    "daemon": "tip-scraper-daemon restarted and online"
  },
  "constraints": [
    "Use TIPLLM only for planning/extraction feedback.",
    "Do not start heavy crawler waves on Erik.",
    "Prefer small, observable queue batches.",
    "Write useful outcomes back into the TIPLLM training pool."
  ]
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
You are TIPLLM controlling TIP crawler and verification robots.
Given this current observation, choose the safest next robot action.

{
  "event": "equivalence_research_result",
  "actor": "codex-equivalence-auto-research",
  "profile": "erik-safe-db-only",
  "input": {
    "problem": "The manual review queue contained many approved re-research matches that should not require manual validation.",
    "precheck": {
      "pending": 401,
      "approved": 149688,
      "auto_approved": 32340,
      "rejected": 4,
      "due_research": 143702
    }
  },
  "safety_notes": [
    "Use TIPLLM only for TIP crawler planning and extraction feedback.",
    "Do not start heavy crawler waves on Erik for backlog cleanup.",
    "Use deterministic product evidence first: recent price, form factor, speed, fiber, wavelength, reach, confidence."
  ]
}

[Assistant]
{
  "summary": "For a large manual equivalence backlog, first convert weak approvals into deterministic automated research decisions using existing crawled evidence; only schedule crawler enrichment for missing-evidence products after the queue is clean.",
  "decision": {
    "approval_policy": "Approve or keep approved only when recent price, form factor, speed, fiber type, wavelength, reach, and confidence threshold all pass.",
    "rejection_policy": "Reject stale, missing-evidence, technically contradictory, or low-confidence matches automatically instead of sending them back to manual review.",
    "api_policy": "Expose a run-research endpoint and prevent approve-all from approving low-confidence candidates.",
    "crawler_policy": "Do not crawl during backlog cleanup; use Proxmox/Pi workers later for targeted enrichment of products rejected due to missing reach/details."
  },
  "outcome": {
    "pending": 0,
    "approved": 1986,
    "auto_approved": 32080,
    "rejected": 148367,
    "due_research": 0,
    "scheduled_30_day_rechecks": 34066
  },
  "constraints": [
    "Use TIPLLM only for planning/extraction feedback.",
    "Keep Erik light: DB-only cleanup or small queues, no uncontrolled crawler waves.",
    "Write useful robot outcomes back into the TIPLLM training pool.",
    "Prefer conservative rejection over falsely verified equivalence."
  ]
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
You are TIPLLM controlling TIP crawler and verification robots.
Given this current observation, choose the safest next robot action.

{
  "event": "price_truth_recheck",
  "actor": "codex-flexoptix-price-truth-recheck",
  "profile": "erik-safe-light-catalog",
  "input": {
    "problem": "Operator asked whether all Flexoptix prices, images and product info are present and whether prices are 100% correct.",
    "precheck": {
      "total_flexoptix_rows": 744,
      "active_catalog_products_found": 615,
      "price_verified": 619,
      "image_verified": 615,
      "details_verified": 500,
      "missing_image_url": 129,
      "missing_reach_label": 244,
      "missing_fiber_type": 131
    }
  },
  "safety_notes": [
    "Use TIPLLM only for TIP crawler planning and extraction feedback.",
    "Do not use a heavy crawler when the light vendor catalog is enough.",
    "Never claim permanent 100% price truth; record source verification freshness."
  ]
}

[Assistant]
{
  "summary": "For Flexoptix price truth, distinguish active catalog coverage from the larger historical table, refresh audit timestamps for unchanged prices, and report last-source-verified freshness instead of claiming permanent 100% truth.",
  "decision": {
    "coverage_policy": "State that 615 active catalog products were found by the Flexoptix scraper, while the full Flexoptix table has 744 rows and is not complete.",
    "timestamp_policy": "When unchanged prices are observed again, refresh price_observations.verified_at and transceivers.price_verified_at with NOW() so source rechecks are auditable.",
    "truth_policy": "Use 'last source verified at' for price confidence; avoid absolute claims because vendor prices can vary by account, currency, VAT/session, or availability."
  },
  "outcome": {
    "active_catalog_products_found": 615,
    "latest_verified_price_observations": 615,
    "latest_verified_within_10m": 615,
    "price_image_details_verified": 496,
    "fully_verified": 496
  },
  "constraints": [
    "Use TIPLLM only for planning/extraction feedback.",
    "Keep Erik light with nice/rate-limited vendor catalog runs.",
    "Do not conflate active catalog completeness with all historical DB rows.",
    "Write useful robot outcomes back into the TIPLLM training pool."
  ]
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
Sind alle Flexoptix Produkte komplett und 100% verified?

Live counts:
{
  "total_flexoptix_rows": 744,
  "active_catalog_products_found": 615,
  "price_verified": 619,
  "latest_verified_price_observations": 615,
  "image_verified": 615,
  "details_verified": 500,
  "price_image_details_verified": 496,
  "fully_verified": 496,
  "missing_price_verified": 125,
  "missing_image_verified": 129,
  "missing_details_verified": 244,
  "missing_reach_label": 244,
  "missing_fiber_type": 131
}

[Assistant]
{
  "answer": "No. The Flexoptix dataset is not complete and not 100% verified.",
  "reasoning": {
    "active_catalog_truth": "615 active Flexoptix catalog products were found and their latest price observations are source-confirmed.",
    "total_table_truth": "The Flexoptix table contains 744 rows, but only 496 rows have price + image + details verified and only 496 are fully_verified.",
    "missing_signals": {
      "price_verified_missing": 125,
      "image_verified_missing": 129,
      "details_verified_missing": 244,
      "reach_label_missing": 244,
      "fiber_type_missing": 131
    }
  },
  "policy": "Do not claim 100% verification unless every Flexoptix row has complete verified price, image, details, and fresh source timestamps. Use exact counters and last-source-verified timestamps.",
  "next_action": "Run a targeted Flexoptix detail enricher for rows with product_page_url and missing verification signals, rate-limited and TIPLLM-only, then recompute counters."
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
You are TIPLLM controlling TIP crawler and verification robots.
Given this result, decide what to report and what to do next.

{
  "event": "crawler_result",
  "actor": "codex-flexoptix-completion-push",
  "profile": "erik-safe-targeted-detail",
  "vendor": "Flexoptix",
  "precheck": {
    "total_flexoptix_rows": 744,
    "price_verified": 619,
    "image_verified": 615,
    "details_verified": 500,
    "fully_verified": 496
  },
  "outcome": {
    "detail_pages_targeted": 191,
    "detail_pages_fetched": 191,
    "failed": 0,
    "new_or_updated_price_observations": 177,
    "images_marked": 187,
    "details_marked": 185,
    "final_price_verified": 626,
    "final_image_verified": 622,
    "final_details_verified": 624,
    "final_fully_verified": 620,
    "filter_or_category_unverified": 108,
    "other_generic_unverified": 10
  },
  "safety_notes": [
    "No external AI was used.",
    "Only Flexoptix-specific light catalog/detail jobs were run.",
    "Do not claim all 744 rows are concrete products."
  ]
}

[Assistant]
{
  "report": "Flexoptix verification improved substantially: fully_verified increased from 496 to 620. The active/product-like set is close to complete, but the full 744-row table is still not honestly 100% complete because 118 rows are filter/category/generic/non-product URLs.",
  "decision": {
    "truth_policy": "Report both product-like coverage and total table coverage. Do not collapse them into a single 100% claim.",
    "crawler_policy": "Keep using targeted detail-page fetches and parser fixes; avoid broad crawling on Erik.",
    "data_policy": "Classify filter/category/generic rows separately before considering them in product verification totals."
  },
  "next_action": "Create a cleanup/classification step for non-product Flexoptix rows, then finish the few remaining product-like image/accessory gaps from source evidence.",
  "constraints": [
    "Use TIPLLM only for planning/extraction feedback.",
    "Keep Erik light and stop if SSH or process health becomes unreliable.",
    "Prefer exact counters and source timestamps over absolute claims."
  ]
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
Final Flexoptix verification closure:
{
  "total_flexoptix_rows": 744,
  "html_product_like_rows": 626,
  "price_verified": 626,
  "image_verified": 622,
  "details_verified": 626,
  "price_image_details_verified": 622,
  "fully_verified": 620,
  "filter_or_category_unverified": 108,
  "other_generic_unverified": 10,
  "remaining_product_like_image_gap": "4 rows expose only placeholder-flexoptix.jpg as source image"
}

[Assistant]
{
  "answer": "Do not report 100% complete. Report that 622 of 626 product-like Flexoptix rows have price + image + details verified, 620 are fully_verified, and 118 rows are filter/category/generic rows that should be excluded or classified before completeness math.",
  "policies": {
    "placeholder_image_policy": "Never mark placeholder-flexoptix.jpg as image_verified.",
    "accessory_policy": "Accessory products such as FLEXBOX may use reach_label N/A, but should be classified separately from optical transceivers.",
    "truth_policy": "Use exact counters and source evidence; no 100% claim until product-like rows and non-product rows are separated."
  },
  "next_action": "Add a product-status/classification layer for Flexoptix rows so filter/category/generic entries do not dilute product verification dashboards."
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
You are TIPLLM controlling TIP crawler and verification robots.
Given this FS.com batch result, decide what to report and what to do next.

{
  "vendor": "FS.COM",
  "precheck": {
    "total_fs_rows": 383,
    "price_verified": 379,
    "image_verified": 299,
    "details_verified": 108,
    "fully_verified": 3,
    "html_product_like_rows": 299,
    "html_complete": 106,
    "missing_fiber_type": 323
  },
  "batch": {
    "mode": "FS_DB_DETAIL_ONLY",
    "target": 80,
    "scraped": 80,
    "failed": 0,
    "new_price_observations": 17,
    "new_stock_observations": 18,
    "specs_verified": 24
  },
  "postcheck": {
    "details_verified": 164,
    "fully_verified": 81,
    "html_complete": 162,
    "missing_fiber_type": 243
  }
}

[Assistant]
{
  "report": "FS.com targeted detail batch improved details_verified from 108 to 164 and fully_verified from 3 to 81. The run was stable with 80/80 pages scraped and 0 failures.",
  "decision": {
    "continue_policy": "Continue FS.com in small DB-detail-only batches because the first batch was productive and safe.",
    "data_policy": "Infer fiber_type from product name/part/specs when the FS spec table omits a direct fiber key, but keep source URL and timestamp evidence.",
    "safety_policy": "Keep Playwright concurrency at 1 and cap batch size; avoid broad listing/category crawl unless needed."
  },
  "next_action": "Run another capped DB-detail-only batch for remaining FS.COM rows with missing details/images/fiber, then measure counters and write another training record.",
  "constraints": [
    "Use TIPLLM only for planning/extraction feedback.",
    "Write every crawler/scraper/robot experience to the TIPLLM training pool.",
    "Do not claim completion until product-like rows, no-url rows, and category rows are classified separately."
  ]
}


[System] You are TIPLLM, an expert AI assistant for the Transceiver Intelligence Platform (TIP). You have deep knowledge of optical transceiver specifications, form factors, IEEE standards, vendor product catalogs, and fiber optic networking. You help engineers select, source, and validate transceivers. You provide precise, structured answers with confidence scores and always cite your reasoning.

[User]
You are TIPLLM controlling TIP crawler and verification robots.
Given this second FS.com batch result, decide what to report and what to do next.

{
  "vendor": "FS.COM",
  "precheck": {
    "total_fs_rows": 383,
    "price_verified": 379,
    "image_verified": 299,
    "details_verified": 164,
    "fully_verified": 81,
    "html_product_like_rows": 299,
    "html_complete": 162,
    "missing_fiber_type": 243
  },
  "batch": {
    "mode": "FS_DB_DETAIL_ONLY",
    "target": 80,
    "scraped": 79,
    "failed": 0,
    "new_price_observations": 6,
    "new_stock_observations": 8,
    "specs_verified": 23,
    "retry_histogram": "59 first try, 14 one retry, 5 two retries, 2 three retries"
  },
  "postcheck": {
    "details_verified": 220,
    "price_image_details_verified": 220,
    "fully_verified": 137,
    "html_complete": 218,
    "missing_fiber_type": 187,
    "no_url_rows": 76,
    "category_rows": 4
  }
}

[Assistant]
{
  "report": "Second FS.com DB-detail batch was safe and productive: details_verified increased from 164 to 220, fully_verified from 81 to 137, and HTML product-like complete rows from 162 to 218. There were 0 final crawler failures.",
  "decision": {
    "continue_policy": "Run one more small DB-detail-only batch for the remaining HTML product-like FS.com rows before changing strategy.",
    "retry_policy": "Transient FS.com ERR_NETWORK_CHANGED warnings are acceptable when reclaimed and final failures remain 0; do not raise concurrency.",
    "boundary_policy": "After HTML product URLs are exhausted, switch to a separate source-discovery or classification task for 76 no-url rows and 4 category rows."
  },
  "next_action": "Start another capped FS_DB_DETAIL_ONLY batch with concurrency 1, then recompute FS.com counters and record the outcome. Do not claim full FS.com completion until no-url rows are resolved or explicitly classified as non-product/incomplete-source rows.",
  "constraints": [
    "Use TIPLLM only for planning/extraction feedback.",
    "Write every crawler/scraper/robot experience to the TIPLLM training pool.",
    "Keep Erik stable: no parallel browser crawls, no broad category crawl while detail-only remains productive."
  ]
}