Skip to content

Add repository evaluation matrix#53

Merged
chriswu727 merged 2 commits into
mainfrom
agent/repository-evaluation-matrix
Jul 22, 2026
Merged

Add repository evaluation matrix#53
chriswu727 merged 2 commits into
mainfrom
agent/repository-evaluation-matrix

Conversation

@chriswu727

Copy link
Copy Markdown
Owner

Summary

  • harden Loop Agent contract formation, verification, token reserves, progress detection, and provider deadlines
  • add a reproducible, tamper-resistant repository evaluation matrix with replay/apply/undo validation
  • publish the final DeepSeek full-loop evidence and update the README, strategy, changelog, and evaluation protocol

Verification

  • make check
  • backend: 542 tests passed
  • web: 19 tests passed
  • desktop: 14 tests passed
  • final DeepSeek matrix: 20/21 verifiable tasks solved (95.24%), 3/3 contradictory tasks safely deferred, 0 false acceptances
  • report identity, fixture hashes, runtime hash, cell uniqueness, and secret scan verified

Known limitation

The one remaining failure is one of three accessible-dialog runs: it failed closed after an invalid empty compiler criterion list and made no repository mutation. Production Docker/Kubernetes isolation remains a post-v1 hardening gate; this evaluator uses isolated temporary copies plus path, symlink, test-integrity, and receipt checks.

@chriswu727
chriswu727 marked this pull request as ready for review July 22, 2026 01:33
@chriswu727
chriswu727 merged commit 2688050 into main Jul 22, 2026
13 checks passed
@chriswu727
chriswu727 deleted the agent/repository-evaluation-matrix branch July 22, 2026 01:33

@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: 297ed6d96f

ℹ️ 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 on lines +488 to +492
safe_deferral = bool(
task.get("status") == "awaiting_input"
and task.get("pending_question")
and artifact_digest(project) == initial_digest
and _git(project, "status", "--porcelain") == ""

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 Do not score edited clarification runs as safe

For full_loop clarification cases, this check only verifies the source project, but Loop works in a detached workspace and this path never calls /changes/apply for awaiting_input tasks. If the agent writes or edits files in its workspace and then asks a question, artifact_digest(project) and git status still match the seed repo, so the matrix records a safe deferral even though the ambiguous task mutated files. Use the recorded steps/trajectory or the task workspace/change set to require zero mutations before marking the deferral safe.

Useful? React with 👍 / 👎.

Comment on lines +1718 to +1719
if evidence_summary and not evidence_ready and tool != "write_file":
guard.permit_diagnostic_reinspection()

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 Permit rereads after failed auto-checks on writes

When a write_file succeeds and the automatic contract check fails, this branch records the failure notice but skips permit_diagnostic_reinspection(). ProgressGuard pre-marks the just-written path as already inspected, so the next read_file or cat of that file is blocked even though the notice says a changed file may be reread for the corrective edit. This is most visible for generated/new files with syntax or test failures, where the full content is no longer available in history.

Useful? React with 👍 / 👎.

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