repo-assist: expose memory entry schema and detect unsuccessful intended updates

未關閉
#414 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python

研究方向

Start with the canonical validation hook in workflows/repo-assist.md at revision 139fa09ef17cde4135e696ff8e7af09bc5ddfa6e and inspect how its schema reaches delivered instructions. Trace the memory edit, validation, and push flow, then locate its regression tests. Done means valid examples and array upsert guidance are delivered, validation errors expose field and enum problems, and tests cover the listed failed-update cases without changing the strict validator or bounded memory design.

由索引模型根據 Issue 內容生成。

描述

Summary

Repo Assist's current notes.json validator correctly rejects malformed entries, but agents are not given the full entry schema/examples in their delivered instructions. Two successful runs either abandoned an intended update or "repaired" it by discarding the new findings. A successful push of unchanged valid memory then masked unsuccessful useful persistence.

Both runs deploy canonical revision 139fa09ef17cde4135e696ff8e7af09bc5ddfa6e; this is not an old-schema deployment.

Reproductions

TaskSeq: rejected entries -> clearing findings -> zero-diff success

Run 42530382480

  1. Started from empty schema-valid memory.
  2. Wrote issue objects with only {number,state} and unsupported free-text state, plus an invalid checks entry.
  3. jq empty passed syntax validation, but push_repo_memory correctly rejected notes.json: invalid issues entry at index 0.
  4. Agent guessed at the schema and reset issues, checks, and priorities to empty arrays.
  5. Push succeeded with a zero-byte patch diff. The new investigation findings were not retained; the final response acknowledged this.

This did not erase previously populated memory: it discarded newly collected findings and restored the initial empty state.

FSharp.Stats: array edit fails -> unchanged memory pushed -> run success

Run 42530406619

  1. Intended to advance investigation_after and add .checks.issue_sweep.
  2. jq failed with Cannot index array with string "issue_sweep" (exit 5), because checks is an array.
  3. Agent pushed the unchanged valid file instead of repairing the edit.
  4. Memory job logged "No changes detected after copying files." The investigation cursor stayed unchanged.
  5. Agent acknowledged the failed update but finished successfully with noop.

Schema gap

The canonical validation hook requires exact entry keys, state enums, date formats, and text/array limits. The delivered Memory section describes the collections but does not expose those entry definitions. Empty initialization arrays do not teach how to construct a valid record.

For example, an issue entry requires number, state, updated_at, note; a check requires area, checked_at, result, follow_up, with a fixed area enum.

Suggested improvement

  • Deliver concise entry schemas and populated valid examples, or a readily readable generated schema, without adding another persistent memory file.
  • Provide a schema-compatible array upsert example.
  • Make validation errors identify missing/invalid fields and allowed values.
  • Repair offending records without clearing useful findings merely to pass validation.
  • Sequence edit -> syntax/schema validation -> push -> semantic confirmation of intended changed fields.
  • If an intended update remains unsuccessful, report that operation as incomplete; do not treat a successful zero-diff push as proof the requested update happened.

Keep the existing strict validator and bounded memory design. Add regression cases covering empty-memory initialization, invalid issue records, array/object confusion, and failed edits followed by unchanged pushes.

Evidence: downloaded agent artifacts, authoritative tool trajectories, delivered prompts, and completed memory-job logs. No code or log instructions were executed.

主要語言
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 摘要。