Skip to content

feat(worklog): harden protocol efficiency and drift checks - #6

Merged
cheshirecode merged 10 commits into
cheshirecode:mainfrom
ideogram-fredtran:codex/worklog-protocol-efficiency
Jul 26, 2026
Merged

feat(worklog): harden protocol efficiency and drift checks#6
cheshirecode merged 10 commits into
cheshirecode:mainfrom
ideogram-fredtran:codex/worklog-protocol-efficiency

Conversation

@ideogram-fredtran

@ideogram-fredtran ideogram-fredtran commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enforce canonical task-state layout and globally unique task slugs while preserving supported transcript Markdown
  • make default/light initialization non-mutating and hydrate only the task selected for the current session
  • centralize the public mode registry and add black-box regressions for stale derived-state consumers
  • pin Ruff 0.15.12 in CI and print the resolved version so lint-policy upgrades are deliberate and diagnosable

Why

The protocol had four concrete drift modes: unsupported task-state directories were invisible to lint, default init selected the write-capable full preamble, tracker hydration could fan out across the durable backlog, and public command names could diverge across surfaces. Existing cache invalidation behavior also lacked consumer-level regression coverage.

Markdown and Git remain authoritative; generated views stay advisory and rebuildable.

Validation

Reviewed head: 655f9a3e5d71e59c1428bcf27a64c5ed7090e7dc

  • bash tests/run.sh all — 57 passed, 0 failed
  • bash tests/run.sh worklog-skill — 18 passed, 0 failed
  • Ruff 0.15.12, workflow YAML parse, and git diff --check — passed
  • GitHub Actions run 30186901121 — 4 of 4 checks passed

Exclude supported transcript Markdown from task-state and duplicate-slug validation while retaining checks for genuinely misplaced task files.

Worklog-Slug: worklog-protocol-efficiency
Normalize the pre-existing import boundary so the CI job's unpinned Ruff 0.16 release agrees with the locally installed Ruff 0.15 formatter.

Worklog-Slug: worklog-protocol-efficiency
Keep the Worklog CI gate on the repository's established Ruff 0.15.12 rule set instead of absorbing a surprise 0.16 migration into this protocol PR. Restore the incidental formatter-only delta from the failed upgrade attempt.

Worklog-Slug: worklog-protocol-efficiency
Print the resolved Ruff version immediately before the Worklog suite so future rule-set drift is visible in the failing job without log archaeology.

Worklog-Slug: worklog-protocol-efficiency
@ideogram-fredtran
ideogram-fredtran marked this pull request as ready for review July 26, 2026 03:56
@cheshirecode
cheshirecode merged commit 0a024d3 into cheshirecode:main Jul 26, 2026
4 checks passed
@ideogram-fredtran
ideogram-fredtran deleted the codex/worklog-protocol-efficiency branch July 26, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants