Repository navigation
Commit 78192ea
docs(templates): the opt-in snippet promised a fail-closed index it never got
PRIVATE_INDEX.md told agent authors to put `default = true` on the mirror in
their pyproject. That was wrong in two ways at once, and Greptile flagged the
consequence on the Dockerfile side.
It never took effect. The Dockerfiles export `UV_INDEX`, which binds the mirror
as a NAMED index ahead of public PyPI rather than replacing it as the default,
and a name rebound that way does not carry the project entry's default flag.
Measured: with a mirror that 404s a package, `UV_INDEX` resolves it from public
PyPI while `UV_DEFAULT_INDEX` fails the build.
And it is not what we want anyway. The mirror is there to supply the
Scale-internal packages that are not on public PyPI — sgp-obs, scale-memory —
not to become the sole source for every dependency of every scaffolded agent.
Making it the default would give ~147 agent repos a hard dependency on the
mirror being healthy and complete for builds that have nothing to do with
observability.
So the snippet drops the flag and the doc now states the real resolution order:
mirror first, public PyPI as fallback. sgp-obs can only come from the mirror
because it exists nowhere else; an ordinary dependency the mirror lacks still
resolves. The note explains why the flag is absent so it does not get helpfully
re-added.
No code change — the templates already behave this way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 4619b30 commit 78192ea
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
| |||
0 commit comments