Skip to content

[Bug]: Live introspection intermittently violates depth/horizon argument contract #1096

Open

Description

@gouhongshen

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Version and environment (optional)

Hosted Linux CI, Harness regression (live), model deepseek-v4.1-flash. Observed on Astra commits e3cc2972a47aefdf1d290d3f0b40433ab0df43c1 and 137cff045c0bcfd5e3ee1ae8c522594900e01513 while following PR #1094. An intervening PR revision and the latest main revision passed; the cause is not established.

Actual behavior

The real-model case introspection_reflection_source_boundary intermittently fails the argument-contract predicates requiring introspect /depth == diagnostic and /horizon == recent. Both diagnostic tool calls, their ordering, successful outcomes, and the final answer's scope judgment pass. The failed case exits 0 but is correctly classified BehaviorContractViolation.

Public safe artifacts withhold the original arguments and canonical raw tool payloads. They establish predicate failure, not whether the fields were missing, held different values, or encountered an argument-projection problem. Do not infer a model-only root cause from these summaries.

Expected behavior

When the user explicitly requests supported diagnostic depth and horizon, the agent should discover/select the required contract and execute with those arguments. Live and durable observation scopes must remain distinct. Preserve the existing hard argument assertions and accurately report failures.

Steps to reproduce

  1. Run the existing automatic live regression profile against the affected trusted revision with deepseek-v4.1-flash.
  2. Inspect the introspection_reflection_source_boundary result and criteria 7/8 in the safe summary. The case explicitly asks for introspect(facet=overview, depth=diagnostic, horizon=recent) followed by reflect(facet=overview, depth=diagnostic, horizon=session); typed discovery is allowed.
  3. Compare the exact checked-out SHA and attempt, preserving both passing and failing evidence. One successful run is not evidence of stable compliance.

Additional information

Relevant existing owners:

These source paths and the harness case are unchanged by #1094. The PR's targeted admission/cancellation regressions and all 6032 runtime tests pass in current-head CI. This tracking issue keeps observation-contract investigation separate from that PR's gateway budget, Edge setup, and approval-diagnostic scope; it does not establish that the PR caused or fixed this failure.

Next investigation should correlate the existing private canonical arguments, selected schema and dispatch route, or use a controlled-model entrypoint fixture to distinguish selection/adherence from journal projection. Keep raw prompts, credentials and tool/provider payloads private. Do not relax assertions, add scenario-specific defaults or rerun repeatedly until green. No local model scenario or deployment was restarted for this investigation.

Same-revision diagnostic control

The single diagnostic rerun, attempt 2 of the current failed job, on the unchanged commit 137cff045c0bcfd5e3ee1ae8c522594900e01513, completed 18/18 cases successfully, including every introspection predicate. Attempt 1 on that same revision remains recorded above. No source, case, assertion, model input configuration or budget was changed between attempts. This establishes differing outcomes for the same revision and declared inputs; it does not identify the causal variable or prove stable instruction adherence. The issue remains open, and no further diagnostic retry was requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions