Repository navigation
Docs/hackathon architecture - #3
Merged
Merged
Conversation
Adds a "Hackathon Architecture" README section for the MOSS Zero-Latency Builder Sprint. Framed as a design proposal, not shipped code: documents where the single Groq sentiment call actually sits and how a Moss (gRPC retrieval) -> Guardrails -> Context Eval -> Latency Tracing "Trust Loop" would wrap it. Includes an accurate current-state Mermaid diagram and keeps the sprint's conceptual diagram under docs/architecture/ with a note that its "existing infrastructure" boxes are a generic template. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ment call Ships the Runtime Guardrails / Context-Eval half of the MOSS-sprint "Trust Loop" as a working prototype rather than a diagram. app/services/guardrails.py: - SentimentVerdict (Pydantic v2) validates every row of the model's JSON response; malformed rows are dropped, an unparseable response rejects the whole batch, a verdict indexed outside the batch is discarded as a hallucinated index. Unaccepted items keep the safe neutral default. - grounding check: a non-neutral verdict survives only if the source text mentions a tracked tool (scoring.classify_text_to_tools); otherwise it is quarantined to neutral before it can reach scoring / ToolSnapshot. - traced(): dependency-free span-timing stub, same call sites a real OpenTelemetry exporter would use. scraper.batch_sentiment_analysis now routes the model response through validate_sentiment_batch and logs the GuardrailReport per batch; the old ad-hoc json.loads + loose dict walk is gone. scripts/check_guardrails.py: offline smoke test (no network, no API key) — well-formed, malformed, hallucinated-index and ungrounded responses. README: honest "Hackathon Architecture: Agent Reliability & Security" section — Guardrails + grounding tagged shipped, Moss + full OTel tagged proposed. Also refreshes two stale bits (tool count 54->30+, the removed NEXT_PUBLIC_API_URL row -> BACKEND_ORIGIN). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…astra) The submission form reveals the intended stack behind the arena's "Moss" codename: Mastra (agent evals + tracing), Qdrant (gRPC vector retrieval), Enkrypt AI (runtime guardrails). Update the README table + diagram and the guardrails.py docstring to name these as the production targets, keeping the honest prototype/proposed status tags. No behaviour change. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.