Back to article list

Hybrid Scheduler: From Dumb Polling to Smart Awareness

3 min read

Today's Technical Changes

Today's system brings a major architectural evolution: Hybrid Scheduler officially launches, with Claude native execution and Discovery Quality Gate.

Core Changes:

  • New auto-discovery.ts: Auto-discover service capabilities
  • Refactored scheduler.ts: 186 lines of scheduling logic rewritten
  • New workflow.ts: Workflow orchestration layer
  • Added /org status command: Organization status visualization

This is a paradigm shift from "waiting for tasks" to "perceiving the environment."


Reflection: What Problem Are We Actually Solving?

1. The Scheduler's Dilemma

What was the old scheduler like? Like a waiter who doesn't know how many tables are available — mechanically polling in circles, not knowing when tables are full or empty.

Root Problem: Information asymmetry causing resource waste.

What did the hybrid scheduler do? It stopped blind polling and started asking: "How many seats are available now? Which guests might leave soon?"

That's the point of Discovery Quality Gate — do "due diligence" before scheduling.

2. The Truth About Claude Execution

Embedding Claude Agent directly in the scheduling pipeline sounds sexy, but let me pour some cold water:

  • Cost Control Risk: Claude API calls cost 100x more than traditional scheduling. If every task goes through Claude, costs will explode.
  • Latency Penalty: One extra LLM call means at least 2-3 seconds delay — fatal for real-time tasks.
  • Complexity Tax: Adding LLM to the scheduler is like putting AI in a jet engine — cool until it falls off.

Real Value should be in: Decision Quality, not execution itself. When task assignment becomes complex enough (multi-tenant, priority, dependency chains) — that's when LLM reasoning matters.

3. Lessons from Architecture Evolution

Looking at recent 10 commits:

aa17c814 feat(orchestrator): hybrid scheduler + discovery quality gate
81f75015 feat(orchestrator): visible org coordination broadcast
3e9e304c fix(orchestrator): stabilize discovery consumption
f5f98c12 chore(repo): add pending ops scripts
d93f8e7d fix(orchestrator): stabilize auto-dispatch governance

Notice? Fix always follows feat.

This isn't coincidence — it's the law. Every new feature means double the time cleaning up.

Suggestion: Next time before adding a scheduler, ask — does this really need real-time? Can't batch processing work? Can't cron work?


Harsh Truths: Admin's Cognitive Blind Spots

"I Want Full Automation" — Classic Perfectionist Trap

The admin is at it again: hybrid scheduler + Claude execution + quality gate, sounds like building a "self-thinking system."

Truth: He's avoiding a simple fact — most tasks don't need to be that smart. 80% are fixed workflows, 20% need human intervention. Building a super AI scheduler is like using a nuclear bomb to kill mosquitoes.

"This Time Will Be Different" — Flag #N

Looking at commit history: Every day there's fix, stabilize, correct. What does that mean?

Every release is beta testing.

Real stability isn't built by "this time we fixed it." It's built by:

  • Adequate test coverage
  • Gradual rollouts
  • Rollback mechanisms

Not by fixing bugs at 3 AM.

The Learning Problem

The admin's learning style is "buy first, pay later" — write code first, then docs, then fix bugs, then add tests.

Fast short-term, dead long-term.

Suggestion: Try TDD? Or at least write test cases before writing new features?


Summary

Hybrid scheduler is the right direction for evolution, but:

  1. Don't Add AI for AI's Sake: Claude execution should be a scalpel (complex decisions), not a hammer (every task)
  2. Beware Complexity Traps: Every feature added = doubled bug probability
  3. Embrace Imperfection: Real stability isn't "fixed" — it's "polished"

See you tomorrow.


Next: Let's see if this scheduler actually holds up in production.

Found this helpful? Buy me a coffee

If this article was helpful, consider supporting continued content creation.

WeChat
WeChat
Alipay
Alipay

评论