Spaces:
Sleeping
Sleeping
Commit History
-
improve: enrich graders, observations, and reward signals
- Fix parallelism reward inflation: only fire reward on new parallel windows, keep episode log events for grader fan-out detection - Add step_efficiency dimension to easy grader (0.10 weight) - Add capacity_discipline dimension to medium grader (0.05 weight) - Add recovery_speed metric to hard and expert graders (0.02 weight each) - Add SLA deadline and budget pressure hints to observation hint system - Expose critical_path_length in observations (computed from DAG + agent speeds) - Add per-step reward_breakdown dict to observations for RL interpretability - Update README with new grader dimensions, observation features, and scoresadf8466 -
improve: tighten graders, enrich breakdowns, enhance inference prompting
- Fix missing completed_outputs in inference observation formatting - Tighten activity gate thresholds (medium: /5, hard: /5, expert: /7) to prevent lazy agents from gaming ~28% of gated rewards - Add diagnostic metadata to grader breakdowns (subtask counts, recovery counts, SLA milestone details, error counts) - Expand system prompt with cost-benefit, error classification, SLA awareness, and multi-objective guidance - Increase history window from 6 to 12 for longer episode memory - Centralize ~25 reward constants into named class attributes - Document intentional reward-grader design divergence6bea11b
-
improve: strengthen graders, enrich observations, overhaul README
Grader improvements: - Fix both_findings_aggregated to check agent diversity (not just DAG order) - Enrich easy grader breakdown with efficiency metrics (steps_used, ratio) - Relax expert activity gate threshold from 4 to 3 completions Observation enrichment: - Add sla_milestones, failures_occurred, failures_recovered to observation - Wire SLA milestones from TaskConfig and failure counters from environment - Update inference.py format_observation to render new fields for LLM README overhaul: - Add mermaid DAG diagrams for all 4 tasks - Add multi-policy benchmark table (do-nothing, heuristic, LLM, oracle) - Add oracle-vs-baseline gap analysis proving task difficulty - Add project management research citations (CPM, Brooks's Law, ICS) - Add annotated hard task episode walkthrough - Add honest limitations & future work section - Document new observation fields Baseline scores: - Add _metadata, _oracle, _heuristic to baseline_scores.json 161 tests passing (was 160, +1 new same-agent c…4d401f9
-
fix: prevent score=0.000 in stdout for Phase 2 validation
- Change score default from 0.0 to 0.01 in inference.py - Add raise_for_status() on grader HTTP response - Add safety clamp max(0.01, min(0.99, score)) before log_end - Remove duplicate [END] line on task timeout - Clamp environment observation rewards to (0.01, 0.99) exclusive - Update test assertions to match new reward floordb0bed5 -
fix: clamp observation rewards to [0,1] for Phase 2 eval compliance
The evaluator validates that all reward/score values are in (0, 1). Our per-step rewards could be negative (e.g., -0.15 for capacity violations), causing Task Validation to fail. Now observation.reward is clamped to [0, 1] in the environment, and inference.py further clamps to [0.01, 0.99] before stdout logging. Internal _total_reward and grader logic remain unaffected (use episode logs, not obs reward).d18fe9d -
fix: increase grader score epsilon to survive .3f stdout formatting
Phase 2 failed because _SCORE_EPS=0.0001 rounded to 0.000 or 1.000 when formatted with :.3f in the [END] log line, causing the evaluator to reject scores as "not strictly between 0 and 1". Bumped epsilon to 0.01 so minimum/maximum scores format as 0.010/0.990. Also fixed fallback score=0.0 in inference.py error paths.1af75ba
-
fix: add activity gate to graders, expand README, improve inference
- Add activity gate to medium/hard/expert graders so do-nothing policies score 0.0 instead of getting free points from "no harm" dimensions - Expand README with research foundation (5 papers), 22 capabilities matrix, grader design section, and activity gate documentation - Improve inference system prompt with structured decision procedure, permanent failure awareness, and parallelism emphasis - Increase HISTORY_WINDOW from 4 to 6 for better expert task context - Add retry logic for transient LLM API failures - Add 7 degenerate policy tests proving grader calibration - Add 12 expert task walkthrough tests (0.948 grader score) - Update baseline scores from fresh inference run - Add debug_*.py to .gitignore Tests: 160 passing (was 139)fa6f97b
-
fix: improve env robustness, grader fairness, and inference compatibility
Environment fixes: - Add step-after-done guard to reject steps on finished episodes - Fix _episode_store concurrency by keying by both task_id and episode_id - Cap SLA penalty at 0.15 per milestone to prevent runaway penalties - Fix hint to filter out permanently-failing agents from retry suggestions - Deduplicate _get_effective_reliability via public AgentPool method Grader improvements: - Add invalid-action penalty to medium and hard graders - Hard grader now rewards recovery of both enrich_logs and deploy_hotfix Inference script overhaul: - Async LLM calls via asyncio.to_thread() to prevent WebSocket timeout - Increase max_tokens to 4096 for verbose models (Nemotron compatibility) - Add conversation history with sliding window (HISTORY_WINDOW=4) - Model-agnostic system prompt (removed Qwen-specific /no_think) - Robust JSON parser rejecting placeholder values ("...", "<id>", etc.) - Hint moved to top of observation for better visibility Tested with Qwen3-32B and Nemotron 3 Super. …5f19e92
-
feat: complete Phase 3 — inference, expert task, deployment
- Add inference.py with async OrchestratorClient, OpenAI client, Qwen3 /no_think support, 4-level JSON parser, .env loading - Add expert bonus task (Life OS Daily Orchestration): 14 subtasks, 8 agents, 2 permanent failure traps, 10-dimension grader - Add 16 hard task integration tests (walkthrough + edge cases) - Rewrite README.md with full documentation - Add root-level requirements.txt - Populate baseline_scores.json (easy=0.9, medium=0.633, hard=0.808, expert=0.802) - Fix client.py import fallback for bare module usage - Deploy to HF Spaces: kartikmandar-workflow-orchestrator.hf.space - All 5 submission gates pass, 139 tests passingf488130