repo-assist: enforce ordered backlog traversal and consistent cursor transitions

未关闭
#413 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, python
领域
devtools

调研方向

Start with Task 2 in workflows/repo-assist.md at the linked section, then compare Task 1 and the Paket run’s cursor behavior. Trace how backlog queries apply ordering and continuation, and how progress is persisted; define regression cases for mixed ordering, partially processed batches, and end-of-backlog reset. Done means labelling and investigation share an explicit traversal contract that avoids skipping unassessed items.

由索引模型根据 Issue 内容生成。

描述

Summary

Repo Assist's backlog cursors are schema-validated as positive numbers, but ordering, continuation, and reset semantics are not enforced. A Paket run described its scan as oldest-first and its cursor as advanced, while searching newest-first and persisting a lower cursor. Other runs also ignored the explicit oldest-first Task 2 rule.

All examples deploy canonical revision 139fa09ef17cde4135e696ff8e7af09bc5ddfa6e.

Concrete Paket reproduction

Run 42530420658

  • Initial labelling_after: 4150.
  • Agent said it would resume oldest-first after that cursor.
  • Actual search used sort: created, order: desc, limit 10.
  • Returned: 4200, 4198, 4193, 4164, 4153, 4149, 4148, 4147, 4146, 4143.
  • Labelled four issues (#4200, #4198, #4193, #4149), based on titles.
  • Persisted labelling_after: 4143, describing it as advanced.
  • Did not record dispositions for the other six returned items or an explicit end-of-backlog reset.
  • Schema validation and memory push succeeded. Persisted memory commit.

The actual four label mutations were independently verified in issue events. This is not a failed write: the contradictory traversal state was successfully persisted.

Other examples

FSharp.TypeProviders.SDK and SwaggerProvider used issue listings without explicit ascending ordering, received newest-first results, and did not record traversal progress.

Task 2 explicitly requires creation-date ascending traversal, resumption from the cursor, and reset at the end. Task 1 says to resume the backlog cursor but does not spell out the same ordering/reset contract; that ambiguity should be resolved, rather than assuming its current text already mandates ascending order.

Suggested improvement

  • Define one precise ordered traversal/continuation/reset contract for labelling and investigation.
  • Provide a canonical query that explicitly requests ascending creation order and applies the cursor.
  • Advance only past items actually assessed or explicitly deferred, so pagination does not silently skip work.
  • Make reset explicit and distinguish it from an ordinary backwards cursor transition.
  • Validate semantic transitions, not only positive-number shape, or keep continuation as a deterministic pre-step rather than model-generated bookkeeping.

Regression examples should include initial cursor 4150, mixed older/newer items, partially processed batches, skipped uncertain labels, and end-of-backlog reset. Do not demand comments or definitive bug labels for ambiguous issues; recording a cautious disposition is sufficient.

Observed consequence: misleading persisted progress and a risk of repeated/newest-only scans or starvation. This review does not prove exactly which future issue would be starved.

主要语言
Python
星标
1.1k
派生
163
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

githubnext/agentics 的其他 Issue

查看 githubnext/agentics 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。