bug(projection): manual drift detection misclassifies human moves as agent_diverged within audit window #58
Labels
No labels
3plus3-followup
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
analytics
api
cockpit
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
docs
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
gemini-flash
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
leviathan
mcp
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
ops
priority:p0
priority:p1
priority:p2
priority:p3
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
safety
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
scout
security
size/large
size/medium
size/small
size/tiny
size/unknown
small-task
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tests
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
ui
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/kan-ductor#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source
3+3 review on PR #39 (
feat: detect manual projection drift), merged 2026-05-10 via chain drain #52.Problem
Manual drift detection algorithm currently uses a time window to associate card activities with agent audit events. If Piotr (human) moves a card within the same window as a matching agent audit event, the human move is incorrectly classified as
agent_diverged(drift).Result: false drift signals when Piotr legitimately moves cards near agent activity.
Scope
activityPublicId(when present) to bind audit↔activity 1:1Acceptance criteria
confidence:lowin resultRefs
Codex verification on current
origin/main(966de964...): #58 appears resolved.Evidence:
packages/api/src/routers/agent.ts#detectProjectedCardDriftnow only classifiesagent_divergedwhenlatestAgentAudit.result.activityPublicIdexactly matcheslatestMoveActivity.publicId.agent_diverged; if the latest move activity has no exact matching audit, status becomesmanual_drift.packages/api/integration-tests/agent.integration.test.tsincludesreports human move after agent move in the same time window as manual drift, covering the original failure mode.Verification run:
Passed. Recommendation: close #58 as satisfied by current main.
{
"confidence": 5,
"effort_hint": "medium",
"escalation": {
"kind": "none",
"reason": ""
},
"evidence_refs": [
{
"note": "Issue reports manual projection drift detection misclassifying human moves as agent divergence within an audit window.",
"type": "forgejo",
"value": "issue-title-body-labels-and-target-snapshot"
},
{
"note": "Body states time-window matching can falsely associate Piotr's legitimate card moves with nearby agent audit events.",
"type": "forgejo",
"value": "issue-body-problem"
},
{
"note": "Scope replaces heuristic matching with exact audit-to-activity lineage and adds a human-after-agent regression test.",
"type": "forgejo",
"value": "issue-body-scope"
}
],
"impact": 4,
"judge_actor": {
"name": "iskra",
"runtime": "openclaw"
},
"judged_at": "2026-06-09T01:09:00Z",
"labels_to_apply": [
"judge/p1",
"judge/codex-candidate"
],
"piotr_fit": "high",
"priority": "p1",
"rationale_summary": "This is P1 Codex-ready correctness work because false drift attribution undermines trust in manual operator overrides and projection diagnostics.",
"reach": 4,
"recommended_next_action": "codex_candidate",
"rerun_reason": "no_prior_judgment",
"schema": "openclaw.judge.v0",
"target": {
"kind": "issue",
"number": 58,
"repo": "pdurlej/kan-ductor"
},
"target_snapshot": {
"body_hash": "sha256:24f59ad88697a0248b1b7ea2e6c221a98e6b51ef981948b1129db241fdce82d5",
"commit_count": null,
"evidence_hash": "sha256:241b2c503c9f48cf4953b7efe054ac6df39b28f687fe837224326f6f8ac75e86",
"head_sha": null,
"labels": [
"3plus3-followup",
"priority:p1"
],
"labels_hash": "sha256:eae246ad0747d73dd2fb96aea169d7d74574e5b2de03312edce7ec9f6d87a8f0",
"state": "open",
"title_hash": "sha256:d61ec05924db64a693f1a28e018d8a5a16d5e2d82027dd91bdbeb79bf00dd51d",
"updated_at": "2026-06-03T10:23:45+02:00"
},
"top_caveat": "Use exact lineage when available and keep time-window fallback narrow and visibly lower confidence."
}