MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / record_analysis

Method record_analysis

openspace/skill_engine/store.py:469–482  ·  view source on GitHub ↗

Atomic observation: insert analysis + judgments + increment counters. 1. INSERT a row in ``execution_analyses`` (one per task). 2. INSERT rows in ``skill_judgments`` for each skill assessed. 3. For each judgment, atomically increment the matching ``skill_records``

(self, analysis: ExecutionAnalysis)

Source from the content-addressed store, hash-verified

467 return created
468
469 async def record_analysis(self, analysis: ExecutionAnalysis) -> None:
470 """Atomic observation: insert analysis + judgments + increment counters.
471
472 1. INSERT a row in ``execution_analyses`` (one per task).
473 2. INSERT rows in ``skill_judgments`` for each skill assessed.
474 3. For each judgment, atomically increment the matching
475 ``skill_records`` counters:
476 - total_selections += 1 (always)
477 - total_applied += 1 (if skill_applied)
478 - total_completions += 1 (if applied and completed)
479 - total_fallbacks += 1 (if not applied and not completed)
480 - last_updated = now
481 """
482 await asyncio.to_thread(self._record_analysis_sync, analysis)
483
484 async def evolve_skill(
485 self,

Callers 1

analyze_executionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected