Skip to content

fork: retire overlay from live operator docs and skills - #9

Merged
yansigit merged 1 commit into
mainfrom
fork/retire-overlay-operator-docs
Aug 22, 2026
Merged

yansigit merged 1 commit into
mainfrom
fork/retire-overlay-operator-docs

Conversation

@yansigit

Copy link
Copy Markdown
Owner

Summary

  • Retire the overlay git branch from live operator docs and skills. Daily driver is origin/main (released vendor/main plus fork: deltas plus selected feat/*).
  • Live MIXED-SPLIT verification is git log vendor/main..origin/main --grep='^fork:'. Historical SHA citations of overlay as a past branch stay in the split record.
  • Drop leftover Replit wizard image under docs/fork (PR-gate evidence, not operator documentation).
  • Record leftover overlay as not a merge target in the fork-sync and review-routing skills.

Verification

  • Docs/skills only; no runtime Replit or src/ changes.
  • rg 'git checkout overlay|git checkout -B run/main overlay' docs/fork .cursor/skills is empty.
  • Live MIXED-SPLIT verification command is git log vendor/main..origin/main --grep='^fork:'.
  • After merge: git merge-base --is-ancestor origin/vendor/main origin/main should still be true.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Made with Cursor

Daily driver is origin/main (vendor/main plus fork: deltas). Stop treating the overlay git branch as a checkout or merge target.

Co-authored-by: Cursor <[email protected]>
@github-actions

Copy link
Copy Markdown

✅ Deterministic PR hygiene checks passed.

@yansigit
yansigit merged commit 112ee12 into main Aug 22, 2026
17 checks passed
@yansigit
yansigit deleted the fork/retire-overlay-operator-docs branch August 23, 2026 01:08
cursor Bot pushed a commit that referenced this pull request Oct 12, 2026
…flag tool errors, system prompt in #2 (carry lidge-jun#6092) (lidge-jun#6178)

* fix(devin): system prompt in #2, tool-error flag, Gemini schemas, history overflow

- Send the leading system text as GetChatMessage #2 instead of folding it into
  the first user prompt. Live on swe-1-6 with a ~6.7k-token system prompt the
  turn-2 cache ratio is unchanged (6688/6715 vs 7072/7097) and the prompt is
  smaller; swe-1-6, swe-2-medium, gemini and claude all obey #2.
- Mark failed tool results with ChatMessagePrompt #9 tool_result_is_error
  instead of an in-band "ERROR:" prefix.
- Rewrite JSON-Schema type arrays to anyOf in tool parameters for Gemini uids,
  which Cognition refuses with invalid_argument on every turn.
- Surface a pre-output invalid_argument on a history near or past the model's
  input window as context_length_exceeded so Codex compacts; small requests
  with the same code stay a plain 400.
- Correct the #15 (CortexTrajectoryReference), #17 prompt_id and #22
  execution_id comments.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 29688bf)

* fix(devin): measured overflow boundary, per-type Gemini branches, tool-error marker

- Overflow: binary-searched live on swe-1-6 (200k window) the refusal sits at
  ~200-203k real tokens for prose and JSON alike, and a 32000 output cap does
  not move it. Characters per token ran 1.33-5.53 across samples, so the
  chars/4 estimate is replaced by a word-piece count (1.00-1.54x real) at 95%
  of the window: every sample at the window is caught, none at 60% is.
- Gemini schemas: `{type:[T,"null"], ...}` becomes anyOf branches that carry
  the type-specific keywords (items, properties, ...); an existing anyOf is
  folded in rather than nested under allOf. Draft-7 `dependencies` is walked as
  a schema map with name lists left as data.
- Tool errors keep the in-band ERROR: marker beside #9: with a neutral result
  flagged as an error only gemini reported a failure; swe-1-6, gpt-6-sol-low
  and gpt-5-6-luna-low read it as success.
- A request with only system text keeps it as a user prompt instead of
  sending no prompts.
- Docs: describe the context_length_exceeded reclassification beside the
  allowDevinInvalidArgument recovery option.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit d84edae)

* fix(devin): keep outer constraints when folding a Gemini anyOf

Folding each existing anyOf branch into the outer keywords let a branch
override a contradicting outer keyword, so `{maxLength: 5, anyOf:
[{maxLength: 50}]}` loosened to 50. On any such disagreement, keep both
constraints under allOf instead; live, gemini-3-8-flash-medium accepts
allOf.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit db28e2d)

* docs(devin): match the collapseSystemIntoUser example to the #2 system prompt

The example still showed the leading system messages folded into the
first user turn, which now travel in request #2. Show a mid-conversation
system run instead, with the real blank-line join, and note that a
system-only request passes through whole.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit b2d9ded)

* docs(devin): show the blank-line join in the collapse example

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 3232330)

* fix(devin): keep both constraints when a Gemini type union and anyOf are disjoint

When no existing anyOf branch shared a type with the type array, the
fallback kept the anyOf and dropped the type union, so the branches
admitted types the node never allowed. Keep both under allOf, the same
form the conflict path uses; live, gemini-3-8-flash-medium accepts it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit b87b332)

* fix(devin): classify overflow from the selected catalog window

Co-authored-by: Sayo <[email protected]>

* fix(devin): preserve null constraints in Gemini schema rewrite

Co-authored-by: Sayo <[email protected]>

* docs(devin): record malformed-schema overflow ambiguity

Co-authored-by: Sayo <[email protected]>

* fix(devin): preserve outer schema constraints on nullable types

Co-authored-by: Sayo <[email protected]>

* fix(devin): estimate overflow from transmitted tool descriptions

Co-authored-by: Sayo <[email protected]>

* docs(structure): keep the effective Devin family default in the adapter row

Co-authored-by: Sayo <[email protected]>

---------

Co-authored-by: Sayo <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
cursor Bot pushed a commit that referenced this pull request Oct 12, 2026
…ge-jun#6090) (lidge-jun#6173)

* feat(quota): report Devin account quota from GetUserStatus

Devin accounts had no quota row, so headroom-based account ranking had
nothing to order them by. Probe Cognition's unary
SeatManagementService/GetUserStatus with the default cloud-direct
Metadata, against the credential's allowlisted api-server host with
redirects refused and no response body echoed.

Only dated daily/weekly windows the plan does not hide are published:
credit-billed plans leave those percents at a zero default that would
read as exhausted. Prompt plus flex credits form one monthly pool
measured against the server balance; a negative balance is unlimited.
4xx other than 408/429 is terminal; a decoded status with nothing
measurable is authoritative-empty.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit b493e0d)

* fix(quota): tighten Devin quota mapping and failure handling

- Publish the credit pool only for credit-billed plans (or an unknown
  strategy with no dated window); a quota-billed plan with a zero credit
  balance no longer reads monthly-exhausted.
- Drop dated windows whose reset is not after now.
- Read the body through the bounded byte reader and decode inside the
  try, so a truncated or oversized body keeps last-good instead of
  throwing.
- Treat 409 and 499 as retryable alongside 408 and 429.
- Cover flow credits (#5/#9/#13), hide_weekly (#37), and 403/404/429.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 7d12eb1)

* fix(quota): reject truncated Devin quota protobufs and document the probe

- Require the decoded fields to account for every byte. iterFields stops
  quietly at a truncated length-delimited field, so half a response decoded
  to an empty status and was published as authoritative-empty, deleting the
  last-good row.
- Use the Web Crypto randomUUID instead of node:crypto.
- List Devin in the per-account quota section of the CLI accounts reference.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit a71f149)

* fix(quota): stop flow credits gating Devin accounts; key the cache by tenant host

- Flow credits are decoded but no longer published. They meter agent tool
  actions, not chat turns, and ranking reads the fullest custom window as
  the account's limit, so an empty flow balance retired accounts that could
  still serve.
- A credit-billed plan with nothing used and nothing left reads 100%
  instead of unmeasured, so ranking no longer prefers it as untested.
- The account quota identity includes the credential's own api base URL
  when it has one, so a tenant host change invalidates the cached reading.
  Credentials without one keep their existing key.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 9e23686)

* fix(quota): reject a Devin status with no plan or a malformed plan-end timestamp

- A present plan-end timestamp that fails to decode now fails the whole
  status instead of reading as absent, so a malformed response keeps the
  last-good row rather than publishing an authoritative-empty one.
- A status with neither the top-level PlanInfo nor the nested PlanStatus
  plan is rejected instead of decoded into a zero-valued plan, which could
  read as a credit-billed account with every credit spent.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 52d9b62)

* fix(devin): reject malformed quota statuses and preserve last-good

Validate known protobuf wire types and 64-bit varint bounds before quota mapping. Require observed prompt balances for a monthly window, treat only credential rejection as terminal, and scope tenant host cache identity to Devin. Update the provider contract and regression coverage.

Co-authored-by: Sayo <[email protected]>

* fix(quota): count a lone Devin balance field as credit evidence

GetUserStatus is proto3, which omits zero-valued fields, so an exhausted pool
arrives with used_prompt and no available_prompt. Requiring both fields hid
that account's 100% monthly window and ranked it as untested headroom. Any of
the four pooled balance fields (#4, #6, #7, #8) is now evidence; only a status
with none of them publishes no credit window.

Co-authored-by: Sayo <[email protected]>

* fix(quota): keep last-good Devin quota on a GetUserStatus 403

A 403 from GetUserStatus can forbid that one RPC for a key that still serves
chat, so treating it as a rejected credential cleared a usable account's
quota. Only 401 is terminal now. The structure and CLI reference describe the
balance-evidence rule as shipped: any one of the pooled balance fields counts.

Co-authored-by: Sayo <[email protected]>

* fix(quota): honor configured Devin tenant for legacy credentials

Co-authored-by: Sayo <[email protected]>

* fix(quota): keep expired Devin windows out of credit fallback

Co-authored-by: Sayo <[email protected]>

* fix(quota): enforce one Devin probe deadline

Co-authored-by: Sayo <[email protected]>

* fix(quota): reject negative Devin used credits

Co-authored-by: Sayo <[email protected]>

---------

Co-authored-by: Sayo <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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