Skip to content

skill-evals: a turn inherits the host's memory variables, so project memory reaches both arms of a round #37842

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① (a defect a card thread measured while running the eval for #37796) · Source: fleet (PR #37841)

What happens

turnEnv in packages/qa/scenarios/src/skill-evals/run.ts passes the host's whole environment to every eval turn, minus the API-billing and effort variables. When the runner is started inside a project container, the memory variables (CLAUDE_COWORK_MEMORY_PATH_OVERRIDE, CLAUDE_MEMORY_STORES) go through too. Each turn then reads the project's memory in both arms. In the first round for PR #37841, all three without-skill answers to case 2 quoted a project memory note about the very change the case tests, so the without-skill arm scored as if it had the skill. With those two variables removed, the second round was clean: case 2 scored 3/3 with the skill and 0/3 without.

Expected

An eval turn sees only what its arm gives it: the skill or no skill, never the host's memory. turnEnv drops every memory variable the CLI reads, and the round's record says the turn environment was scrubbed.

Done when

  • turnEnv removes the memory variables, listed in one place next to the billing and effort ones.
  • A test pins it: a host env carrying the memory variables yields a turn env without them.
  • The README of the runner says a round run inside a project container is isolated from project memory.

Grade: area:ai · bug · reach: any skill-eval round run from a project container; it inflates the without-skill arm and hides a skill's value · evidence: measured (two rounds of PR #37841, before and after removing the variables)
Suggested-grade: p2
Size: S
Related: PR #37841, #37796.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:devx
    area:ai
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:devx · Bug · p2 · pm:queue · size XS; rationale: each skill-eval turn inherits the host's memory variables, so project memory reaches both arms and the without-skill arm can score as if it had the skill (measured on #37796's first round). An eval-tooling false result is p2. Audit restatement, tier 3. Recorded 2026-11-27T20:16Z.

  3. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-28T04:23Z
    Picked by card-pick.mjs --order area:ai --seat repo:objectstack#2 at 2026-11-28T04:14Z, rank 6. The maintainer in this seat's project, verbatim: 「ai你为什么没认领」 and 「并发5」.
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgXWFXqMUE85PmLT9AE
    Account: os-sales
    Branch: claude/project-thread-3yurjb (from main)
    Domain: domain:devx
    Seat: repo:objectstack#2
    Area: s2-ai
    File surface: packages/qa/scenarios/src/skill-evals/run.ts (turnEnv drops the memory variables, listed in one place next to the billing and effort ones), its test, the runner README, one changeset.
    Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high (reason: the thread session serves effort high; get_session read by the thread)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: a skill-eval round run inside a project container is isolated from project memory, so the without-skill arm no longer scores as if it had the skill.
    Thread-read: none
    Premise: measured on two rounds of PR #37841 (card body); the thread re-reads turnEnv on main before writing. No eval round is run.
    Serial constraints cleared: no open PR names turnEnv (search 2026-11-28T04:21Z).

    The PR says Fixes #37842.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  5. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgXWFXqMUE85PmLT9AE
    os-dev-report

    {
      "issue": 37842,
      "status": "done",
      "branch": "claude/project-thread-3yurjb",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38165",
      "session": "session_01L6bhgXWFXqMUE85PmLT9AE",
      "premise_still_valid": true,
      "summary": "turnEnv (packages/qa/scenarios/src/skill-evals/run.ts) now deletes CLAUDE_COWORK_MEMORY_PATH_OVERRIDE and CLAUDE_MEMORY_STORES, listed as CLAUDE_MEMORY_ENV in src/runner/driver.ts beside API_BILLING_ENV and CLAUDE_EFFORT_ENV (driver.ts is one file beyond the claim's file surface: that is where the billing and effort lists live). Premise re-read on main 581ae76a: turnEnv removed only billing and effort; both memory variables are set in this container (presence only). README skill-evals section gains an 'Isolated from project memory' bullet; patch changeset for @objectstack/scenarios. No eval round run.",
      "tests": "skill-evals.test.ts: new 'a turn's environment' block (2 tests) + the executeRound round test now stubs both memory variables and asserts no turn receives them. Ablation: the one delete line removed -> 3 failed / 37 passed; restored -> 40/40. pnpm --filter @objectstack/scenarios test: 45 files, 1410 passed (after the package's own build). typecheck exit 0. skill-evals --self-test: 44 rows pass. Head 637a5bdd.",
      "gates": "dispatch-gates --commands at 637a5bdd: 65 derived, 63 exit 0, 2 exit 3 PREREQUISITE NOT MET = NOT MEASURED locally: check-plugin-teardown-shape.mjs --self-test (shallow clone cannot reach its pinned control), check:dual-build-cjs-loads (needs every package's dist). PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes — pr_create (POST /pulls + POST /issues/38165/assignees), this os-dev-report comment",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "class: a · reach: NOT MEASURED — ClaudeCodeDriver.turnEnv (packages/qa/scenarios/src/runner/driver.ts) spawns the scenario runner's authoring and ask turns with the host's memory variables too, so a scenario round run in a project container can read project memory; not measured, only read · dedupe words: scenario runner memory env, ClaudeCodeDriver turnEnv, CLAUDE_MEMORY_STORES",
        "carrier: none — Claude Code 2.1.332 also names CLAUDE_CODE_REMOTE_MEMORY_DIR, CLAUDE_COWORK_MEMORY_INDEX_CONTENT, CLAUDE_COWORK_MEMORY_GUIDELINES, CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES, CLAUDE_CODE_MEMORY_API_BASE_URL/TOKEN; unset here, effect not measured; noted in the PR acceptance notes",
        "carrier: none — card Expected asks round.json to record the scrub; Done-when does not; left out, noted in the PR"
      ]
    }
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim amendment · 2026-11-28T05:02Z · amends claim 7234001483

    Writes: File surface: packages/qa/scenarios/src/skill-evals/run.ts (turnEnv), packages/qa/scenarios/src/runner/driver.ts (the CLAUDE_MEMORY_ENV list beside the billing and effort lists, and the scenario runner's own ClaudeCodeDriver.turnEnv, which spawns its author and ask turns with the same host environment), their tests, the runner README, one changeset. Every other line of the claim stands.

    Reason: the card thread put the list in driver.ts, where the billing and effort lists already live. Its report flags that ClaudeCodeDriver.turnEnv hands the same memory variables to the scenario runner's turns, which is the same defect in the same file. It is folded here rather than filed as a separate card.

  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-28T07:36Z

    PR #38165 merged at 2026-11-28T07:35Z through the merge queue on the seat's ACCEPT (7234783873), and its Fixes line closed this card. What changed:

    • Skill-eval turns and the scenario runner's own author and ask turns no longer inherit the host's Claude memory variables, beside the billing and effort lists already stripped in driver.ts.
    • Tests pin both spawn sites; the runner README says so.

    It was ejected once by a break in PR #38162 stacked ahead of it (anchors #38187, #38188, #38190), and again by a cancelled runner; the head never changed. pm:dispatched is cleared on this card.

  8. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aibugdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions