Spaces:
Runtime error
Runtime error
Commit History
-
fix: fast 3-agent web demo (Surveyor->Planner->Formatter, ~60s) (#12)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureResearch loop without real SecondLayer tool access takes 10+ minutes per iteration (Researcher hallucinates, Reviewer reviews hallucinations). Web demo now runs Survey+Plan+Format for ~60-90s response time. Full 15-iteration pipeline remains available via CLI. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>73a84cb -
fix: limit web chat to 2 iterations for interactive response time (#11)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureFull 15-iteration pipeline takes 30+ min (each iteration: ~3 LLM calls at ~60s each). Web chat uses 2 iterations + critic at iter 2 for reasonable ~2-3 min response time. CLI still uses 15 iterations. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>826e625 -
fix: make stream_chat async to avoid event loop conflict with Gradio (#10)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureThe sync _run_sync wrapper created a new event loop inside Gradio's existing async context, causing the chat to hang. Now stream_chat is a native async generator that directly consumes _run_pipeline. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>40900ed -
docs: rewrite README to match actual architecture and codebase (#9)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureReplaces the old README with accurate documentation: 4-phase pipeline, 9 agents with descriptions matching code, critique routing, project structure, ConsultationState fields, CI/CD pipeline, Bedrock config. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>c63f734 -
fix: add missing Critic→Orchestrator edge for completeness critiques (#8)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureengine.py routes "completeness" critiques to Orchestrator (not just Planner and Adjudicator). Also increase viewBox height to avoid clipping bottom nodes. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>eee0d48 -
feat(ci): add test suite and run tests in CI before deploy (#7)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signature36 tests covering ConsultationState, Config, and app construction. CI now runs pytest on ubuntu-latest before deploy-prod and sync-hf. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>4b7d391 -
fix: render D3 architecture in iframe (Gradio strips scripts) (#6)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureGradio gr.HTML() sanitizes <script> tags. Wrap the D3 diagram in an iframe with srcdoc so scripts execute in their own context. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>2114c64 -
feat: add animated D3.js architecture diagram to Архітектура tab (#5)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureInteractive SVG diagram with: - 9 agent boxes with hover tooltips - Animated flow arrows (6 flow types with filter chips) - ConsultationState panel - Research loop indicator - Sequential entry animation Replaces static ASCII art with rich visualization. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>c87c3c8 -
fix: use eu-central-1 Bedrock model ID (eu.anthropic.claude-sonnet-4-6) (#4)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureThe us. prefix doesn't work in eu-central-1 region. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>7a21b3d -
fix: remove gr.load() proxy, always build local app (#3)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signaturegr.load() only accepts HF model/space IDs, not arbitrary URLs. The chat handler already shows a demo message when API keys are missing. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>4d27736 -
fix(ci): update HF Space URL after rename to lmaf (#2)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureCo-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>9467432 -
refactor: rename LegalIntern to LMAF (Legal Multi-Agent Framework) (#1)
Lexai +2: vovkes222, Claude Opus 4.6Unverified signatureRename package from legal_intern to lmaf, class LegalIntern to LMAF, update all UI strings, CLI entrypoint, and CI/CD references. Co-authored-by: overthelex <mcvovkes@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>3bd9d04 -
feat: switch to AWS Bedrock only, remove direct Anthropic/OpenAI API
All LLM calls go through Bedrock. No direct API fallback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e56db6a -
fix: remove type param from ChatInterface (Gradio 6.x compat)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a742ce2 -
fix: remove unsupported type param from gr.Chatbot (Gradio 6.x)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>680deaa -
feat: chat interface with real multi-agent pipeline
Replace demo tabs with Gradio ChatInterface that runs the full 9-agent consultation pipeline. On HF Space without API keys, proxies to agents.legal.org.ua via gr.load(). Added anthropic, openai, rich to requirements. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>be2046c -
fix(ci): split deploy into separate steps, fix exit code handling
The heredoc+set-e combination caused false failures even when health check passed. Split into discrete steps for clearer error reporting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f3d676a -
fix(ci): use docker exec for health check (no host port mapping)
Container port 7860 is only accessible on the Docker network (for nginx), not published to the host. Use docker exec to check health from inside the container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3bc1ba9 -
fix(ci): pull SecondLayer repo on prod before docker build
Prod needs the latest docker-compose.prod.yml that defines the legal-intern-prod service. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f5ab79d -
fix(ci): use self-hosted runner + SSH to prod for deploy
GitHub-hosted runners can't reach prod (firewall). Use the local self-hosted runner and SSH directly to prod for docker rebuild. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>14fdbf8 -
fix(ci): remove invalid script_stop parameter from ssh-action
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5eebf01 -
ci: add deploy workflow (prod SSH + HF Space sync)
Triggers on push to main. Rebuilds Docker container on prod via SSH, health-checks Gradio, and syncs repo to HuggingFace Space. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ac671e5 -
fix: add src to sys.path for HF Space imports
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>129c901 -
add requirements.txt for HF Space
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>815b3b4 -
feat: initial LegalIntern multi-agent consultation system
Nine-agent pipeline for complex legal consultations over Ukrainian court decisions, inspired by HuggingFace PhysicsIntern architecture. Agents: Surveyor, Planner, Orchestrator, Researcher, Analyst, Reviewer, Critic, Adjudicator, Formatter. Includes Gradio app for HF Space demo, SecondLayer MCP bridge, structured ConsultationState, and example legal problems. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a992ecb