7.0 KiB
7.0 KiB
🌙 Late-Night Check — 2026-02-26 (3:04 AM)
📊 Status:
- Active tasks: 5 (hardening queued; cron active)
- Overdue: 0
- Git: Uncommitted changes (BRAIN.md, MEMORY.md, research/ scripts—commit AM)
- Tomorrow's priority: Hardening task (ed4bc5aa-8c84-4f95-b339-cf2ea17fd02b)—cron/Bob progress.
🎯 Suggestion: Morning: Gantt Board for hardening (test if complete), git commit workspace. Builds reliable agents for iOS empire—rest well.
[2026-02-26 10:36] ✅ Completed - Shared auth-api skill integration
What was requested
Matt asked to build/integrate/test a no-duplication auth API layer shared by gantt-tasks and mission-control-docs.
What was decided
- Do NOT merge domain skills.
- Create shared
auth-apitransport skill/module and wire both domain skills to it.
What was done
- Created new skill:
~/.agents/skills/auth-api/SKILL.mdlib/auth_api.shwithapi_call,api_preflight,api_require_token
- Refactored
gantt-tasks/lib/tasks.sh- Added source to shared
auth_api.sh - Replaced local
_api_callimplementation to delegate to sharedapi_call
- Added source to shared
- Refactored
mission-control-docs/lib/docs.sh- Added source to shared
auth_api.sh - Replaced local
_api_callimplementation to delegate to sharedapi_call
- Added source to shared
- Updated both SKILL docs to reflect architecture:
Domain Skill -> auth-api transport -> API -> DB
- Added tests:
~/.agents/skills/auth-api/tests/test_auth_api.sh(mocked curl contract test)
- Ran tests:
- Initial fail due to grep pattern parsing; fixed with
grep -F -- - Final:
PASS: auth-api transport tests
- Initial fail due to grep pattern parsing; fixed with
- Smoke checks passed:
- both domain libs source/load correctly
- both
_api_callfunctions route through shared transport layer
Follow-ups
- Optionally add retry/backoff policy in
auth_api.shonce behavior is agreed.
Additional completed (2026-02-26 10:39)
- Added per-domain contract tests with mocked shared transport:
~/.agents/skills/gantt-tasks/tests/test_contract.sh- verifies
task_createcontract (GET /sprints,POST /tasks) - verifies
task_updatecontract (GET /tasks,POST /taskswith status change)
- verifies
~/.agents/skills/mission-control-docs/tests/test_contract.sh- verifies
mc_doc_createcontract (POST /documentspayload) - verifies
mc_doc_updatecontract (GET /documents?id=...,PATCH /documentspayload)
- verifies
- Improved mock-call logging by base64-encoding payloads for multiline-safe assertions.
- Ran full suite:
PASS: gantt-tasks contract testsPASS: mission-control-docs contract testsPASS: auth-api transport tests
Additional completed (2026-02-26 10:40)
- Fixed consuming workflow skill
url-research-to-documents-and-tasksto remove duplicate/orphan logic path. - Replaced
orchestrator.shimplementation with a thin wrapper that delegates to hardened script only:orchestrator.sh -> bin/url-research.sh
- Updated skill docs to point production entrypoint to
orchestrator.sh(single source of truth). - Verified script syntax:
bash -n orchestrator.sh✅bash -n bin/url-research.sh✅
- Verified wrapper execution path:
- no-arg usage correctly routes and prints hardened usage
- run with URL starts hardened workflow phases/logging
Rationale
- Prevents workflow drift where old orchestrator code and hardened code diverge.
- Keeps one execution path for future fixes and reliability improvements.
Additional completed (2026-02-26 10:53)
- Implemented new shared skill:
workflow-checkpoints~/.agents/skills/workflow-checkpoints/SKILL.md~/.agents/skills/workflow-checkpoints/lib/checkpoints.sh~/.agents/skills/workflow-checkpoints/tests/test_checkpoints.sh
- Added URL-keyed stable checkpoint model with 7-day TTL:
- key =
sha256(normalized_url) - payload files by type:
<key>-content.json<key>-analysis.json<key>-plan.md
- metadata file:
<key>-meta.json(expiresAtEpoch, ttl, sourceUrl)
- key =
- Integrated checkpoints into URL research workflow (
bin/url-research.sh):- extract-content phase: reuse from checkpoint if present, else compute and save
- analyze-fit phase: reuse from checkpoint if present, else compute and save
- create-plan phase: reuse from checkpoint if present, else compute and save
- touch checkpoint TTL on reuse
- Verified tests and syntax:
PASS: workflow-checkpoints testsPASS: auth-api transport testsPASS: gantt-tasks contract testsPASS: mission-control-docs contract testsbash -nfor updated workflow script passed
Follow-up suggestions
- Add explicit progress comment text when checkpoint is reused (e.g., "reused checkpoint") for user visibility.
- Optionally add
checkpoint_list <url>helper for quick debugging of cached artifacts.
Additional completed (2026-02-26 10:58-11:00)
- Fixed all phase progress comments in URL research workflow to show consistent phase numbering (0-5):
- Phase 0: Task created
- Phase 1: Content extraction
- Phase 2: Document creation
- Phase 3: Fit analysis
- Phase 4: Implementation plan
- Phase 5: Final review and handoff
- Added Phase 4 success comment immediately after plan attachment (was missing before).
- Added source indicators to progress comments:
[reused checkpoint]when using cached data[reused existing]when reusing doc from task description
- Made Phase 2 idempotent by parsing task description for existing
Document ID. - Created workflow summary doc:
WORKFLOW_SUMMARY.mdshowing complete phase flow. - Verified script syntax:
bash -n url-research.sh✅
Result
Now every phase visibly updates the task comment with a checked box, and reruns efficiently skip completed work using checkpoints + task description parsing.
Additional completed (2026-02-26 11:13)
- Implemented cleanup + doc consolidation for Alice workflow skill:
- Added
run.shunified entrypoint for standalone shell usage. - Kept OpenClaw mode explicit in
SKILL.md: always execute via Alice-Researcher (sessions_spawn). - Updated mandatory read section to consolidated docs only:
SKILL.mdWORKFLOW_SUMMARY.md
- Removed legacy drift-prone docs:
ANTI-PATTERNS.mdTASK-FIRST-WORKFLOW.md
- Added
- Verified syntax:
bash -n run.sh✅bash -n orchestrator.sh✅
Outcome
- Inside OpenClaw: route to Alice.
- Outside OpenClaw: run
~/.agents/skills/url-research-to-documents-and-tasks/run.shdirectly. - Fewer docs, less drift, clearer operational path.
Additional completed (2026-02-26 11:16)
- Implemented dry-run mode (option C):
--dry-run(mock generators when checkpoints missing)--dry-run-real(real generators, still no writes)
- Updated
bin/url-research.sh:- Added flags parsing for dry-run modes
- Added no-write behavior for task/doc/attachment/status operations
- Checkpoints are read-only in dry-run (no put/touch writes)
- Added dry-run summary output at end
- Updated docs:
run.shheader examples for dry-run usageSKILL.mdstandalone section includes dry-run commands
- Validation:
bash -nchecks passed for modified scripts