Skip to content

Codex/todo ledger unify and archive 20260304 - #177

Merged
mindfn merged 2 commits into
mainfrom
codex/todo-ledger-unify-and-archive-20260304
Mar 4, 2026
Merged

Codex/todo ledger unify and archive 20260304#177
mindfn merged 2 commits into
mainfrom
codex/todo-ledger-unify-and-archive-20260304

Conversation

@mindfn

@mindfn mindfn commented Mar 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Archive completed 2026-02-27 analysis/TODO docs into docs/todos/archive/ and keep historical links resolvable.
  • Unify TODO/Claim governance semantics around dependency-first slicing and a single status vocabulary: planned / active / done / deprecated.
  • Normalize project-level and AgentScope-level mapping to avoid duplicated state tracking.

Scope (One PR One Thing)

  • Primary objective: TODO governance document refresh and archival hygiene.
  • Out of scope: runtime code changes, OpenSpec spec-sync/archival, behavior changes in execution pipeline.
  • I confirm this PR handles a single objective only: [x] Yes

Changed Files (required)

File Reason
docs/design/TODO_INDEX.md Update TODO index pointers to archived locations and refreshed governance docs.
docs/todos/README.md Define normalized claim statuses and transition semantics.
docs/todos/agentscope_domain_execution_todos.md Reformat domain splits by dependency/complexity and unify ledger style.
docs/todos/project_overall_todos.md Align project-level decomposition/mapping and claim declarations with new semantics.
docs/todos/2026-02-27_design_reconstructability_gap_analysis.md -> docs/todos/archive/... Archive completed analysis doc.
docs/todos/2026-02-27_design_reconstructability_gap_todo.md -> docs/todos/archive/... Archive completed TODO doc.
docs/todos/2026-02-27_full_design_review_gap_analysis.md -> docs/todos/archive/... Archive completed analysis doc.
docs/todos/2026-02-27_full_design_review_gap_todo.md -> docs/todos/archive/... Archive completed TODO doc.

Intent / Implementation Gate (required)

  • Intent PR link (docs-only): n/a (docs-governance refresh executed directly in this PR)
  • Intent PR merged into main before this implementation started: [x] N/A
  • Implementation PR link (this PR): https://github.com/zts212653/Deterministic-Agent-Runtime-Engine/pull/177

Acceptance Criteria

  • TODO split style is dependency-driven and consistently encoded across project + AgentScope boards.
  • Claim lifecycle/status vocabulary is unified and documented.
  • 2026-02-27 completed analysis/TODO docs are archived and references remain valid.

Acceptance Pack (required)

  • Contract Delta (schema / error semantics / retry):
    • none; rationale: docs-only governance updates, no runtime/API contract changed
  • Golden Cases (new/updated file names):
    • none; rationale: no executable/runtime behavior changed
  • Regression Summary (runner outputs):
    • pass: ./scripts/ci/check_governance_evidence_truth.sh
    • pass: ./scripts/ci/check_governance_traceability.sh
    • pass: ./scripts/ci/check_design_doc_drift.sh
    • fail: none
    • skip: runtime/integration suite skipped because this PR is docs-only
  • Observability and Failure Localization:
    • n/a; rationale: docs-only change
    • Fallback evidence commands: ./scripts/ci/check_governance_evidence_truth.sh, ./scripts/ci/check_governance_traceability.sh, ./scripts/ci/check_design_doc_drift.sh
  • Structured Review Report attached: [x] Yes

Test Evidence (required)

  • Local commands run:
    • ./scripts/ci/check_governance_evidence_truth.sh
    • ./scripts/ci/check_governance_traceability.sh
    • ./scripts/ci/check_design_doc_drift.sh
  • CI links or job names:
    • ci-gate / governance-evidence-truth
    • ci-gate / governance-traceability
    • ci-gate / design-doc-drift
  • Evidence/output summary:
    • all above local gates passed after narrowing PR scope to docs-only content.

Risk and Rollback

  • Risk level: Low
  • Main risk points:
    • documentation state drift if future claim updates skip the normalized status semantics.
  • Rollback plan:
    • revert commit f6465ca to restore previous docs/claim layout.

Structured Review Report (required)

Changed Module Boundaries / Public API

  • None (docs-only).

New State

  • New cache/global/singleton state: None.
  • Lifecycle and cleanup: N/A.

Concurrency / Timeout / Retry

  • New concurrency points: None.
  • Timeout/retry locations: None.
  • Upper bounds: N/A.

Side Effects and Idempotency

  • Side effects: Documentation index/board/ledger content updates.
  • Anti-duplication strategy: T/D mapping normalized to single-source ownership.

Coverage and Residual Risk

  • Covered tests/evaluations: three governance CI gate scripts listed above.
  • Residual risks not covered: semantic correctness of future manual TODO updates remains process-dependent.

Dependency and Lockfile Changes

  • Lockfile changed in this PR: [ ] Yes [x] No
  • If yes, manifest updated in same PR (requirements.txt/pyproject.toml/package.json): [ ] Yes [ ] No [x] N/A

Agent Rules Checklist (required)

Reference: docs/agent_rules.md

  • Only task-related files changed; no opportunistic refactor
  • Public interfaces/data structures unchanged unless explicitly required
  • Tests added/updated and evidence attached (governance gate evidence)
  • Any skip/only/exclude usage is explained and reviewed
  • Merge will be done by approved reviewer (no self-merge auto-ship)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f1058c87e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- 全量 TODO / Claim / Feature 状态存在漂移(已 merge 或 archived 的 change 仍标记 active/draft)。
- 若干 package `__init__.py` 不满足 facade 约束。
- 设计已定义但实现未闭环:`ISecurityBoundary` 接入、plan 驱动执行、EventLog 默认实现、Context 检索融合、完整 HITL 语义。
- 设计已定义但实现未闭环:plan attempt 隔离(snapshot/rollback)、Context 检索融合、完整 HITL 语义、P0 conformance gate 与治理自动化门禁

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep unfinished conformance change out of archive

This update still records P0 conformance gate as not closed, but the same commit archives openspec/changes/p0-conformance-gate even though its tasks.md remains largely unchecked (for example items 1.1–4.3 are still [ ]). Archiving an incomplete change removes it from the active change set and makes governance/CI tracking treat unfinished gate work as historical, which can cause required conformance tasks to be skipped in subsequent planning.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed by scope correction: commit 60fc72d (bulk OpenSpec archive) was removed from this PR via history rewrite. This PR no longer archives openspec/changes/p0-conformance-gate; it now only contains TODO governance doc updates (8 files).

Comment thread openspec/specs/chat-runtime/spec.md Outdated
## Requirements
### Requirement: LLM-driven execute loop
The runtime SHALL invoke the configured `IModelAdapter` during the execute loop, provide the assembled prompt and available tool definitions, and iterate over tool calls until the model returns a final response.
The runtime SHALL invoke the configured `IModelAdapter` during the execute loop and iterate over tool calls until the model returns a final response.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve prompt and tool-definition handoff contract

The LLM-driven execute loop requirement no longer requires passing the assembled prompt and available tool definitions into IModelAdapter; it now only says the adapter is invoked and tool calls are iterated. That weakens the normative contract enough that an implementation could technically conform while calling the model without tool schemas/context, which would break deterministic tool-call behavior and make runtime/tool integration expectations ambiguous.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed by the same scope correction: the spec-sync changes that weakened this contract were part of removed commit 60fc72d. Current PR diff no longer modifies openspec/specs/chat-runtime/spec.md.

@mindfn
mindfn force-pushed the codex/todo-ledger-unify-and-archive-20260304 branch from f1058c8 to 75f0995 Compare March 4, 2026 03:01
Refreshes TODO governance docs to remove tracking ambiguity and align execution slicing with dependency-driven planning.

Key changes:

- Archive completed 2026-02-27 design review/reconstructability analysis+todo documents under docs/todos/archive and update all references.

- Rework AgentScope execution board to a single numbering style (D* with D*_a/b/c slices), with explicit dependency declarations and staged sequencing.

- Rework project_overall mapping to avoid duplicate status tracking between T* and D* and keep AgentScope slices as single source of truth.

- Normalize Claim Ledger lifecycle to planned/active/done/deprecated, add owner provenance guidance, and document state transitions in docs/todos/README.md.

- Enforce deprecated-row formatting rules (row strike-through except Notes, with scope delimiter adjusted to avoid markdown rendering issues).

- Synchronize owner fields in active/history claims with current maintainer identity for this branch context.

Rationale:

- Clarifies assignment boundaries for parallel delegation and removes conflicting status vocabularies.

- Preserves historical traceability while keeping current execution views operable for dispatch.
@mindfn
mindfn force-pushed the codex/todo-ledger-unify-and-archive-20260304 branch from 75f0995 to f6465ca Compare March 4, 2026 03:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f6465ca4cc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/todos/README.md
Comment on lines +10 to +13
- `archive/2026-02-27_full_design_review_gap_analysis.md`:全量设计文档评审差异分析(第二轮,已归档)。
- `archive/2026-02-27_full_design_review_gap_todo.md`:全量设计文档评审对应 TODO 清单(全部 done,已归档)。
- `archive/2026-02-27_design_reconstructability_gap_analysis.md`:可重建性差异分析(P0/P1 闭环,已归档)。
- `archive/2026-02-27_design_reconstructability_gap_todo.md`:可重建性治理 TODO 清单(全部 done,已归档)。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update OpenSpec evidence links after moving TODO docs

Archiving these TODO files under docs/todos/archive/ changes their canonical paths, but the historical change record still points to the pre-move locations (openspec/changes/archive/2026-02-27-close-design-reconstructability-gaps/tasks.md lines 3-4). In this state those evidence links no longer resolve, which breaks traceability when reviewers or governance checks follow the archived OpenSpec references.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 3e3b368. Updated archived OpenSpec evidence links in openspec/changes/archive/2026-02-27-close-design-reconstructability-gaps/tasks.md lines 3-4 to the new canonical paths under docs/todos/archive/....

Verification:

  • ./scripts/ci/check_governance_traceability.sh => passed
  • ./scripts/ci/check_governance_evidence_truth.sh => passed

Update archived OpenSpec task evidence references after TODO documents were moved under docs/todos/archive/.\n\nChanges:\n- Rewrite two evidence links in openspec/changes/archive/2026-02-27-close-design-reconstructability-gaps/tasks.md from docs/todos/... to docs/todos/archive/...\n\nWhy:\n- Preserve historical traceability for archived change records.\n- Address PR #177 review feedback about broken evidence links.\n\nVerification:\n- ./scripts/ci/check_governance_traceability.sh => passed\n- ./scripts/ci/check_governance_evidence_truth.sh => passed
@mindfn

mindfn commented Mar 4, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mindfn
mindfn merged commit e27cfa6 into main Mar 4, 2026
10 checks passed
@mindfn
mindfn deleted the codex/todo-ledger-unify-and-archive-20260304 branch March 4, 2026 03:50
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.

1 participant