Skip to content

piemasterflex111/traceops-evidence-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TraceOps Evidence Demo

A public-safe Python/FastAPI demo for mapping fake engineering evidence to role requirements, classifying claims by support level, and writing source-backed review reports.

What This Is

TraceOps Evidence Demo is a small review workflow built around fake demo data. It loads markdown evidence files, extracts requirements from a fake role description, maps requirements to evidence sources, applies a deterministic claim policy, and writes a markdown report that keeps source provenance visible.

The repo is meant to show a practical internal-tool pattern:

  • fake demo evidence loading
  • requirement extraction from markdown bullets
  • supported, partial, and unsupported claim classification
  • repo-relative source paths
  • reviewable markdown report generation
  • simple FastAPI route-level demo
  • public-data safety checks
  • public-safe agent integration contract for a future private Qwen/vLLM backend

Redacted Workflow Preview

Granular redacted private-workbench preview. Sensitive text values are hidden while preserving the workflow structure.
The public repository contains a smaller fake-data evidence demo.

TraceOps granular redacted workflow showcase

Published UI Companion: TraceOps Interview Command Center

Published demo: https://traceops-interviewer.lovable.app

TraceOps Interview Command Center is a public-safe React/TanStack UI companion for this evidence-governance workflow.

The UI models applications, requirements, evidence cards, requirement-to-evidence mapping, interview packets, gap tracking, and honest risk framing. It uses anonymized demo data and intentionally disables backend API access in the public build.

The purpose of the UI companion is to show how the TraceOps evidence-governance pattern can become a usable internal-tool dashboard.

TraceOps dashboard

What the UI Companion Demonstrates

  • Internal tools UI design
  • Requirement-to-evidence mapping
  • Evidence policy status rendering
  • Gap tracking and safe interview framing
  • Interview packet workflow design
  • Public-safe anonymized demo data
  • Separation between frontend display and backend evidence governance

Evidence Library

TraceOps evidence library

Requirement-to-Evidence Matrix

TraceOps test automation matrix

TraceOps backend matrix

Gap Tracker

TraceOps gap tracker

UI Boundary

The published UI companion does not claim autonomous AI verification.

The public Lovable build renders governed demo values only. Backend API access is intentionally disabled in the public build. Future integration with this FastAPI repo would require authenticated backend endpoints where evidence policy, source provenance, safe-claim blocking, and workflow logic are enforced.

Core Workflow

flowchart LR
    A["Fake role description"] --> B["Requirement extraction"]
    B --> C["Demo evidence inventory"]
    C --> D["Requirement/evidence mapping"]
    D --> E["Claim policy"]
    E --> F["Source-backed markdown report"]
    F --> G["Unsupported claim review"]
Loading

Agent Integration Contract

The public repo now exposes a machine-readable contract for the future private agent backend:

  • GET /agent/contract
  • app/agent_contract.py
  • docs/agent_integration_contract.md

The contract documents the boundary between this public fake-data demo and a private Qwen/vLLM FastAPI agent service. The intended private backend pattern is:

Lovable / React UI
  -> FastAPI agent backend
  -> Python orchestrator
  -> Qwen served by vLLM
  -> deterministic tools
  -> schema validation
  -> database run history
  -> human review
  -> markdown export

This keeps the strongest engineering claim precise: the public repo proves the evidence-governance workflow, while the future private service can add LLM-backed structured extraction without leaking private data.

Key Capabilities

  • Loads fake markdown evidence from data/demo_evidence/.
  • Loads a fake role description from data/demo_evidence/sample_role_description.md.
  • Extracts requirement bullets into reviewable items.
  • Maps requirement terms to fake evidence sources.
  • Classifies claims as supported, partial, or unsupported.
  • Keeps unsupported claims visible instead of promoting them.
  • Writes outputs/demo_report.md from the demo workflow.
  • Provides a committed example report at docs/examples/demo_report_example.md.
  • Exposes the workflow through simple FastAPI routes.
  • Exposes GET /agent/contract as a public-safe backend/UI integration contract.
  • Runs pytest coverage for evidence loading, mapping, claim policy, report output, routes, demo execution, public safety scanning, and the agent contract.

Evidence Governance

Reading evidence is not the same as trusting evidence. This demo keeps those steps separate.

  • Supported claims require direct source evidence and at least one source path.
  • Partial claims require weak or incomplete source evidence and at least one source path.
  • Unsupported claims have no source evidence, remain visible for review, and are not promoted.
  • Source paths in reports and API responses are repo-relative and use forward slashes.
  • Generated reports must not expose local machine paths.

Demo UI

Run the app with Uvicorn and inspect these routes:

  • GET /
  • GET /health
  • GET /evidence
  • GET /report
  • GET /agent/contract
  • POST /demo/report

The UI is intentionally simple. It shows evidence inventory, requirements, decision counts, claim sections, source provenance, public safety status, and the agent integration boundary.

Example Decision Table

Requirement Decision Source provenance
Python automation for validation workflows Supported data/demo_evidence/python_automation_notes.md
Telemetry log review and evidence summaries Supported data/demo_evidence/firmware_log_review_notes.md
Repeatable failure documentation and operator handoff Partial data/demo_evidence/validation_station_notes.md
Production ownership claim Unsupported No source evidence found

Project Structure

app/
  FastAPI routes, evidence loading, requirement mapping, claim policy,
  agent integration contract, and report writing
data/demo_evidence/
  fake role description and fake engineering evidence notes
docs/
  architecture notes, usage docs, limitations, checklist, agent contract,
  and example outputs
scripts/
  demo runner and public safety scanner
tests/
  pytest coverage for workflow behavior, API contract, and failure modes

Running Locally

python -m pip install -e ".[test]"
python -m uvicorn app.main:app --reload

Running The Demo

python scripts/run_demo.py

The generated report is written to outputs/demo_report.md. Generated output stays out of Git.

Running Tests

python -m pytest -q
python scripts/check_public_safety.py
python scripts/run_demo.py
python scripts/check_public_safety.py

What Not To Commit

Keep local-only and generated files out of the public repo:

  • .env
  • .env.*
  • .venv/
  • outputs/
  • .private_sensitive_terms.txt
  • CODEX_PUBLIC_DEMO_PROMPT.md
  • .pytest_cache/
  • .pytest_tmp/
  • private job notes
  • real company or recruiter data
  • prompt files
  • local machine paths

Public-Data Safety

All included evidence is fake demo data. The scanner in scripts/check_public_safety.py checks public text files for fake blocked placeholder terms and skips generated output and local cache folders.

Current Limitations

  • Fake data only.
  • Deterministic keyword and rule matching only.
  • No LLM integration inside the public repo.
  • No external APIs.
  • No production retrieval system.
  • Public demo only.
  • The Qwen/vLLM agent backend is documented as an integration contract, not implemented here.

About

Public-safe FastAPI evidence-governance demo with a React/TanStack UI companion for role-fit mapping, risk tracking, and gap planning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages