Position Assistant (Digital Staff) System Status Assessment — 2026-08-25…

Position Assistant (Digital Staff) System Status Assessment — 2026-08-25 (Updated)

Assessment Method: Static Structure Audit (70 staff definitions / 55 worker implementations / routing table) + Real Runtime Smoke Test.

Conclusion: Overall usable. Streamlined from 87→70 via consolidation (5 groups merged, zero functionality loss). All staff can run with zero parameters.


I. Architecture & Scale

  • Entry: server.js → startDigitalStaff() → boss-scheduler/index.js (unified BossScheduler, local LiteScheduler) → runStaffOnce(staffId, intent).
  • Dispatch Sequence (lite-scheduler _dispatchWorkerPath): loop/goal → pipeline → worker script → capability (single ability) → generic.
  • Staff Definition Source: server/boss-scheduler/profiles/local.yaml, all 70 staff are enabled.
  • Worker Implementation: 55 .js files under server/boss-scheduler/workers/.
DimensionCountDescription
Defined Staff70All enabled
Available Worker Implementations55Key exists in WORKERS mapping and file exists
Capability Only (No Worker)7import / inspect / repair / compare / valuate / collect / identify
No worker but with pipeline/loop configuration8Follow pipeline / loop / generic path
Orphan worker files (not referenced by any employee)0Cleaned up

2026-08-25 Streamlined consolidation (87→70)

Consolidation GroupBefore → AfterCapabilities Retained
ChipDS-CHIP-001~007(7)→DS-CHIP-001(1)All capabilities retained: identify/create/repair/compare/optimize/generate/inspect
Procurement Closed LoopDS-PROC/COST/VEN/ECR-CHAIN-001(4)→Merged into DS-PROC-001All capabilities retained: inquiry/price comparison/cost analysis/supplier evaluation/ECR review
GOAIDS-GOAI-SCHED/PROC/EQUIP(3)→DS-GOAI-001(1)Three-in-one: Workshop Supervisor + Procurement + Equipment Management
Inspection Closed LoopDS-INSPECT/REPAIR/REINSPECT-CHAIN-001(3)→DS-GOAI-INSPECT-001(1)Three-in-one: Inspection → Repair → Re-inspection
IT ToolsDS-IDENTIFY/REPAIR/INSPECT/COMPARE-001(4)→DS-DATA-OPS-001(1)New unified data-ops-worker entry point, dispatches by action
Quality DispatchDS-QUALITY-001(1) retained, changed to dispatch entryAutomatically routes to IQC/IPQC/OQC

II. Keyword Routing Test (staff-router.matchStaff)

12 real business statements were routed, 11 hit correctly, 1 deviation:

| User Statement | Matched Staff | Score | Remarks |

|---|---|---|---|

| Check the quality data of the phosphoric acid extraction process | DS-OPS-001 | 20 | ✅ |

| Analyze the cost structure of precision spindles | DS-COST-001 | 20 | ✅ |

| Is there a material shortage in inventory? | DS-STOCK-001 | 10 | ✅ |

| Supplier audit | DS-VEN-001 | 30 | ✅ |

| Run the Baijiu industry knowledge base pipeline | DS-KBPIPE-001 | 30 | ✅ |

| Process parameter anomaly, help me fix it | DS-PROC-001 | 15 | ⚠️ Should be DS-PROC-DATA-001 / DS-STAT-001 |

| Is the system healthy? | DS-SYS-001 | 30 | ✅ |

| Generate a business analysis report | DS-REPORT-001 | 45 | ✅ |

| Look up NCR investigation form | DS-NCR-001 | 20 | ✅ |

| SPC control chart out of bounds | DS-SPC-001 | 20 | ✅ |

| Any news today? | DS-NEWS-001 | 10 | ✅ (Low score but still hit) |

| Write a product copy | DS-CONTENT-001 | 5 | ✅ (Low score still hits) |


III. Real Runtime Smoke Test (runStaffOnce)

All success=true, and the returned data is real (not empty shells):

| Staff | Duration | Result |

|---|---|---|

| DS-SYS-001 System Operations Engineer | 485ms | All systems healthy ✅ |

| DS-PROC-DATA-001 Process Data Repair Specialist | 1.5s | Read sccapp_process_data.db, found PPS master data quality issues: 5217 empty process files / 3230 orphaned / 3489 unnamed / 47980 empty fields, generated HTML report ✅ |

| DS-STAT-001 Data Inspector (capability path) | 5.2s | Executed identify→inspect→generate pipeline ✅ (This path was paralyzed before the fix, see Section IV) |

| DS-STOCK-001 Inventory Steward (SCSAI backend) | 54ms | Queried SCSAI, got 6 inventory items, 4 below safety level, estimated replenishment cost ¥485,504 ✅ |

2026-08-25 New Staff Validation

| Staff | Zero-Parameter Result | Data Source |

|------|-----------|---------|

| DS-OPERATOR-001 Operator | SUCCESS (6 pending work orders) | Seed data |

| DS-LINELEADER-001 Line Leader | SUCCESS (6 orders, completion rate 55.5%) | Seed data |

| DS-KITTER-001 Material Handler | SUCCESS (6 work orders, 0 material shortages) | Seed data |

| DS-WORKREPORT-001 Production Reporter | SUCCESS (6 orders, 1 overdue) | Seed data |

| DS-IPQC-001 In-Process Quality Controller | SUCCESS (3 WIP orders + 15 inspection characteristics) | SCSAI + Seed |

| DS-PROD-TRACKER-001 Production Tracker | SUCCESS (5 WIP orders, 0 overdue) | Seed data |

| DS-PROD-STAT-001 Production Statistician | SUCCESS (6 orders, output 1248, OEE=54.3%) | Seed data |

| DS-IQC-001 Incoming Quality Inspector | DEGRADE (SCSAI has no incoming NCR) | Honest downgrade |

| DS-OQC-001 Final Quality Inspector | DEGRADE (SCSAI has no finished product NCR) | Honest downgrade |

| DS-CUSTOMER-COMPLAINT-001 Customer Complaint Handler | DEGRADE (No complaint records) | Honest downgrade |

Note: The MTClaw local acceleration service is not started. Capability-type employees currently fall back to the rule engine. To improve the quality of complex tasks, start the local MTClaw acceleration service (http://127.0.0.1:18790).


IV. Discovered and Fixed Critical Hard Bugs

Bug 1: Old schema in rule_engine.db caused rule engine initialization failure (Fixed)

  • Symptom: All employees using the 'Capability / Rule Engine' path (import / inspect / repair / compare / valuate / collect / identify, etc., 7 types + rule engine fallback) reported [sqlite-compat] exec failure (rule_engine.db): no such column: rule_id during startup. Rule engine initialization was interrupted, causing each execution to stall for ~10s/step before downgrading.
  • Root cause: rule_engine.db was created by legacy code, and the table structures of sciot_corrections / sciot_rule_candidates / sciot_rule_history are inconsistent with the new version (missing columns like rule_id). _ensureTables uses CREATE TABLE IF NOT EXISTS, which is a no-op for existing tables, causing the subsequent CREATE INDEX ... ON sciot_corrections(rule_id) to fail directly.
  • Fix: Added an idempotent _migrateStaleColumns() at the beginning of initialize() in server/core/rule-engine.js (performs ALTER TABLE ADD COLUMN for missing columns, safely preserving original data).
  • Verification: After the fix, the rule engine initializes successfully, coverage enhancement increases from 0% to 100%, all 4 smoke tests pass, and there are 0 schema errors.
  • Backup: server/data/rule_engine.db.bak-20260810 (pre-fix).

Bug 2: Missing column in sciot_item_types causes coverage enhancement to be skipped (non-fatal, fixed)

  • Symptom: [RuleEngine] Rule coverage enhancement failed (non-fatal): no such column: is_core_business. Five-dimensional full coverage enhancement not executed.
  • Root cause: rule-coverage-enhancer.js only added the category column, missing is_core_business.
  • Fix: In Phase 0 of server/core/rule-coverage-enhancer.js, perform unified 'existence check + add missing column' for both category and is_core_business columns.

Bug 3: optimize normalize rule misjudges SCSAI null object (fixed, 2026-08-25)

  • Symptom: builtin-optimize-001 misjudged the {is_null:'1'} returned by SCSAI as truthy. String() yields '[object Object]', which was written back to the description field as a real value.
  • Root cause: The normalize branch in rule-engine.js uses if(data.description) for judgment. SCSAI returns an object {is_null:'1'} for empty descriptions, which is truthy in JS.
  • Fix: Changed to object null value normalization (consistent with _renderTemplate): is_null=1 is treated as empty and not written; otherwise, take v._.
  • Verification: verify_optimize_real.cjs end-to-end real verification passed (rt.optimize auto_apply writes SCSAI to DB, subsequent check shows description=actual name).

V. Legacy Items / Recommendations (Non-blocking)

  1. MTClaw not started: Capability-based employees currently fall back to the rule engine. To improve complex task quality, start the local MTClaw acceleration service (http://127.0.0.1:18790).
  2. 7 capability-only employees not individually tested: The import / inspect / repair / compare / valuate / collect / identify path mechanisms are functional (inspect tested OK), recommend verifying each one.
  3. server.js is currently not running: routes have been grep-checked for no conflict markers (can be started). The HTTP endpoint /api/digital-staff/run reuses the same runStaffOnce path.
  4. Lite mode LLM is off by default: Pure generic path employees (without worker/capability/pipeline/loop) rely on LLM to produce substantive content.

VI. Conclusion

Usable. The framework can start, route, and execute real tasks for most employees. The rule engine schema bug that previously blocked "capability-based" employees (7 core quality/data employees) has been fixed and verified. The 87→70 streamlined consolidation was completed on 2026-08-25 with zero functionality loss; all employees run with zero parameters. Remaining items are enhancements and do not affect "end-to-end usability".

← 返回案例列表

Try 左帮右臂 Industrial Agent — your digital workforce

Available as a WeChat mini program, web app (ylxt.chat) and desktop client. Start from whichever fits your workflow.

🌐 Web App 💻 Desktop Download 📞 Call 189-8606-6876
WeChat mini program QR
Scan for the WeChat mini program
Share:
🤖 Try Now →
🤖
🎁