Implement Hybrid Word runtime, hook, verifier, bridge, and taskpane truthfulness fixes with test-first discipline.
NOTE: Startup and cleanup are handled by worker-base. This skill defines the work procedure.
Use for features that change:
packages/sdk/src/runtime.tspackages/sdk/src/hooks/**packages/sdk/src/planning/**packages/word/src/lib/**packages/sdk/src/skills/**packages/bridge/src/** when the change is in service of runtime truthfulnesspackages/core/src/chat/** when the change is in service of blocked/resume/verification truthDo not use for primarily live-review harness workflow/features; use hybrid-live-review-worker for those.
Test-Driven Development — invoke before code changes; add or update failing tests first.Systematic Debugging — invoke if current behavior or a failing test is not yet understood.bridge-monitoring — invoke only if a real Hybrid bridge session is available and live verification is feasible for this feature.mission.md, mission AGENTS.md, and the relevant .factory/library/*.md files.skills/prompt-architectskills/gpt-prompt-architectskills/word-mastery-v3skills/openword-best-practicespnpm typecheck{
"salientSummary": "Hardened Word read-before-write scope handling and no-write-loop recovery truth, then updated runtime tests and hook-guard coverage. Targeted SDK/Word tests passed; live Hybrid verification was not possible because no bridge session was connected on 4018.",
"whatWasImplemented": "Updated the Word execution contract so failed writes stay distinct from pure no-write loops, bounded steering surfaces before the next relevant tool call, and runtime progress/verification state reflects actual write+reread behavior. Added targeted tests in SDK runtime and hook guard suites to lock the behavior.",
"whatWasLeftUndone": "Live bridge validation remains undone because the Hybrid pane was not connected, so the feature still needs end-of-mission live confirmation.",
"verification": {
"commandsRun": [
{
"command": "pnpm --filter @office-agents/sdk exec vitest run tests/hook-guards.test.ts",
"exitCode": 0,
"observation": "Guard coverage passed with new local/broad write cases."
},
{
"command": "pnpm --filter @office-agents/sdk exec vitest run tests/runtime.test.ts --testNamePattern 'loop|write|resume|plan'",
"exitCode": 0,
"observation": "Runtime loop/progress truth tests passed."
},
{
"command": "pnpm typecheck",
"exitCode": 0,
"observation": "Typecheck passed for touched packages."
}
],
"interactiveChecks": [
{
"action": "Attempted Hybrid bridge verification via https://localhost:4018 with explicit session targeting",
"observed": "No connected Hybrid session was available, so live verification could not run."
}
]
},
"tests": {
"added": [
{
"file": "packages/sdk/tests/runtime.test.ts",
"cases": [
{
"name": "failed writes stay distinct from no-write loops",
"verifies": "Runtime/live truth does not collapse failed write attempts into the no-write-loop branch."
}
]
}
]
},
"discoveredIssues": [
{
"severity": "medium",
"description": "Live Hybrid session availability is still environmental, so end-to-end confirmation remains pending."
}
]
}