Skip to content

Commit 78a4b9d

Browse files
committed
Merge main and bind exhausted startup settlement to its original attempt
Preserve prior author commits and current main semantics. Recovery by GPT-6.1 Sol/high in Codex through T3 Code; independent high-effort review of the complete frozen contribution. Changed-file gates run immediately after the integration commit to select the actual contribution.
2 parents e108f2e + a472342 commit 78a4b9d

1,256 files changed

Lines changed: 90620 additions & 47137 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/test-t3-mobile/SKILL.md‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ prints one JSON line; on failure it names the next command. Mobile verification
4343
includes that step unless the user prohibits it.
4444

4545
For a device you opened in an agent-device session elsewhere (a device pool,
46-
cloud, or remote host), run `vp run mobile:install <ios|android> --session <s>`
47-
from the directory you opened the session in. It installs the cached build into
48-
that session (`--abi arm64-v8a` for an ARM Android device; `--metro <url>` also
49-
opens it against Metro) and never builds.
46+
cloud, or remote host), run `vp run mobile:install <ios|android> --session <s>
47+
--config <file>` from the directory you opened the session in, passing the
48+
`--config` file from `device_open`'s `targetArgs`. Without it, a device pool's
49+
gateway refuses the install, wrongly saying agent-device is too old. It installs
50+
the cached build into that session (`--abi arm64-v8a` for an ARM Android device;
51+
pool Android emulators are x86_64, the default; `--metro <url>` also opens it
52+
against Metro). Without a cached build for this checkout it builds first, which can
53+
outlast the lease, so run `vp run mobile:install <ios|android> --prepare` (with
54+
the same `--abi`) before you open the device.
5055

5156
Start `vp run dev:client` from `apps/mobile`, or reuse a healthy Metro belonging
5257
to this checkout. Open its printed development-client URL with AgentDevice

‎.github/VOUCHED.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ github:btsouth
2222
github:cestercian
2323
github:chrisdeeming
2424
github:chuks-qua
25+
-github:coygeek Filed over 270 automated issues, about 50 a day at peak, far past what maintainers can triage
2526
github:cursoragent
2627
github:D3OXY
2728
github:dbalders

‎.github/scripts/check-nightly-release.cjs‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,54 @@ async function resolveLatestNightlyCommit({ github, context, core }) {
121121
return { tag, sha: commit.sha, version };
122122
}
123123

124+
// The two places a nightly install looks for an update: the `update-feed` pointer, and
125+
// releases.atom, which holds the 10 newest git tags of any kind. Older installs take the first
126+
// nightly in the feed. Reports what each names beside the newest published nightly.
127+
async function readNightlyUpdateFeed({ github, context, fetch = globalThis.fetch }) {
128+
const latest = await findLatestNightly({ github, context });
129+
if (!latest) return {};
130+
131+
const base = `https://github.com/${context.repo.owner}/${context.repo.repo}`;
132+
// Only a missing or malformed pointer is stale. Rewriting deletes the old file first, so a
133+
// GitHub outage must not look like one.
134+
// Node waits five minutes for a stalled response, which is this job's whole time limit.
135+
const signal = () => AbortSignal.timeout(30_000);
136+
const pointer = await fetch(`${base}/releases/download/update-feed/nightly.json`, {
137+
signal: signal(),
138+
});
139+
if (!pointer.ok && pointer.status !== 404) {
140+
throw new Error(`The update-feed pointer answered HTTP ${pointer.status}.`);
141+
}
142+
let pointerTag;
143+
if (pointer.ok) {
144+
// A body that fails to arrive throws here; only one that is not JSON counts as malformed.
145+
const body = await pointer.text();
146+
try {
147+
pointerTag = JSON.parse(body)?.tag_name;
148+
} catch {}
149+
}
150+
151+
// An unreadable feed leaves `feedTags` unset, so the pointer is still repaired. An error page
152+
// can answer HTTP 200, so only an Atom document counts as read.
153+
let feedTags;
154+
try {
155+
const feed = await fetch(`${base}/releases.atom`, { signal: signal() });
156+
const body = feed.ok ? await feed.text() : "";
157+
if (/<feed[\s>]/.test(body)) {
158+
feedTags = Array.from(body.matchAll(/href="[^"]*\/releases\/tag\/([^"]+)"/g), (match) =>
159+
decodeURIComponent(match[1]),
160+
);
161+
}
162+
} catch {}
163+
const feedNightly = feedTags?.find((tag) => /^v?\d+\.\d+\.\d+-nightly\./.test(tag));
164+
165+
return { tag: latest.tagName, pointerTag, feedNightly, feedTags };
166+
}
167+
124168
module.exports = {
125169
assertCommitOnDefaultBranch,
126170
assertReleaseSource,
127171
shouldReleaseNightly,
128172
resolveLatestNightlyCommit,
173+
readNightlyUpdateFeed,
129174
};

‎.github/scripts/check-nightly-release.test.cjs‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,81 @@ test("stable releases fail when no nightly is published", async () => {
237237
const { options } = nightlyCommitFixture({ releases: [nightly(1, { tagName: "v1.0.0" })] });
238238
await assert.rejects(resolveLatestNightlyCommit(options), /No published nightly found/);
239239
});
240+
241+
const { readNightlyUpdateFeed } = require("./check-nightly-release.cjs");
242+
243+
// GitHub percent-encodes tag names in the feed, and any tag in the repository takes a slot.
244+
const atomEntry = (tag) =>
245+
`<entry><link rel="alternate" type="text/html" href="https://github.com/example/app/releases/tag/${encodeURIComponent(tag)}"/></entry>`;
246+
const atomFeed = (tags) => new Response(`<feed>${tags.map(atomEntry).join("")}</feed>`);
247+
const NEWEST = "v1.0.1-nightly.20260905.123";
248+
const OLDER = "v1.0.1-nightly.20260905.100";
249+
250+
function updateFeedFixture({ feed, pointer }) {
251+
const { options } = fixture({
252+
releases: [nightly(1), nightly(0, { tagName: "v1.0.2-preview.1" })],
253+
});
254+
options.fetch = async (url) =>
255+
url === "https://github.com/example/app/releases.atom"
256+
? feed
257+
: url === "https://github.com/example/app/releases/download/update-feed/nightly.json"
258+
? pointer
259+
: assert.fail(`unexpected fetch ${url}`);
260+
return options;
261+
}
262+
263+
const missing = () => new Response("Not Found", { status: 404 });
264+
// HTTP 200, then the connection drops before the body arrives.
265+
const brokenBody = () =>
266+
new Response(new ReadableStream({ start: (controller) => controller.error(new Error("reset")) }));
267+
for (const [name, { feed, pointer }, expected] of [
268+
[
269+
"a nightly crowded out of the feed and a missing pointer",
270+
{ feed: atomFeed(["v1.0.2-preview.1", "mobile-android-build/2.3.0/abc"]), pointer: missing() },
271+
{ pointerTag: undefined, feedNightly: undefined },
272+
],
273+
[
274+
"the first nightly in the feed, which is the one older installs take",
275+
{ feed: atomFeed(["update-feed", OLDER, NEWEST]), pointer: Response.json({ tag_name: OLDER }) },
276+
{ pointerTag: OLDER, feedNightly: OLDER },
277+
],
278+
[
279+
"a malformed pointer as stale and an unreadable feed as naming nothing",
280+
{ feed: new Response("", { status: 503 }), pointer: Response.json(null) },
281+
{ pointerTag: undefined, feedNightly: undefined, unreadable: true },
282+
],
283+
[
284+
"an HTML page with release links as an unreadable feed",
285+
{
286+
feed: new Response(
287+
`<html><feedback-form></feedback-form><a href="/example/app/releases/tag/${OLDER}">x</a></html>`,
288+
),
289+
pointer: Response.json({ tag_name: NEWEST }),
290+
},
291+
{ pointerTag: NEWEST, feedNightly: undefined, unreadable: true },
292+
],
293+
[
294+
"the pointer when the feed's body fails to arrive",
295+
{ feed: brokenBody(), pointer: Response.json({ tag_name: NEWEST }) },
296+
{ pointerTag: NEWEST, feedNightly: undefined, unreadable: true },
297+
],
298+
]) {
299+
test(`update feed check reports ${name}`, async () => {
300+
const { tag, pointerTag, feedNightly, feedTags } = await readNightlyUpdateFeed(
301+
updateFeedFixture({ feed, pointer }),
302+
);
303+
const { unreadable = false, ...named } = expected;
304+
assert.deepEqual({ tag, pointerTag, feedNightly }, { tag: NEWEST, ...named });
305+
assert.equal(feedTags === undefined, unreadable);
306+
});
307+
}
308+
309+
for (const [name, pointer, error] of [
310+
["answers with an error", () => new Response("", { status: 503 }), /pointer answered HTTP 503/],
311+
["drops the connection", brokenBody, /reset/],
312+
]) {
313+
test(`update feed check does not call a pointer stale when GitHub ${name}`, async () => {
314+
const options = updateFeedFixture({ feed: atomFeed([NEWEST]), pointer: pointer() });
315+
await assert.rejects(readNightlyUpdateFeed(options), error);
316+
});
317+
}

‎.github/workflows/agent-context-budget.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ on:
1010
permissions:
1111
contents: read
1212

13-
concurrency:
14-
group: agent-context-budget-${{ github.event.pull_request.number }}
15-
cancel-in-progress: true
16-
13+
# No concurrency group: label events arrive in bursts, and a cancelled run reports as a failed check.
1714
jobs:
1815
budget:
1916
name: Agent context budget

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ jobs:
591591
name: Mobile Native Static Analysis
592592
needs: changes
593593
if: ${{ !cancelled() && needs.changes.outputs.mobile_native != 'false' }}
594-
runs-on: blacksmith-6vcpu-macos-26
594+
runs-on: blacksmith-6vcpu-macos-27
595595
timeout-minutes: 10
596596
steps:
597597
- name: Checkout

‎.github/workflows/desktop-macos-preview-publish.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ jobs:
316316
rust_target: aarch64-apple-darwin
317317
resource_key: darwin-arm64
318318
cli_archive: false
319+
untrusted_bundle: true
319320

320321
# Release assets download without a GitHub account, unlike workflow
321322
# artifacts. All preview DMGs live on one rolling prerelease tagged

‎.github/workflows/issue-vouch.yml‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Issue Vouch
2+
3+
on:
4+
issues:
5+
types: [opened, reopened]
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- .github/VOUCHED.td
11+
- .github/workflows/issue-vouch.yml
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
issues: write
17+
18+
concurrency:
19+
group: issue-vouch-${{ github.event.issue.number || 'all' }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
label:
24+
name: Label issues by author trust
25+
runs-on: ubuntu-24.04
26+
steps:
27+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
28+
with:
29+
script: |
30+
const { owner, repo } = context.repo;
31+
// Only listed authors get a label; open issues number in the thousands,
32+
// so unvouched is the default and stays unlabelled.
33+
const labelByStatus = { vouched: "vouch:trusted", denounced: "vouch:denounced" };
34+
const managedLabelNames = new Set(["vouch:trusted", "vouch:unvouched", "vouch:denounced"]);
35+
36+
const { data: file } = await github.rest.repos.getContent({
37+
owner,
38+
repo,
39+
path: ".github/VOUCHED.td",
40+
ref: context.payload.repository.default_branch,
41+
});
42+
const statusByUser = new Map();
43+
for (const raw of Buffer.from(file.content, "base64").toString("utf8").split("\n")) {
44+
const match = /^(-?)github:(\S+)/.exec(raw.trim());
45+
if (match) statusByUser.set(match[2].toLowerCase(), match[1] ? "denounced" : "vouched");
46+
}
47+
48+
const issues =
49+
context.eventName === "issues"
50+
? [context.payload.issue]
51+
: (
52+
await github.paginate(github.rest.issues.listForRepo, {
53+
owner,
54+
repo,
55+
state: "open",
56+
per_page: 100,
57+
})
58+
).filter((issue) => !issue.pull_request);
59+
60+
for (const issue of issues) {
61+
const status = statusByUser.get(issue.user.login.toLowerCase());
62+
const next = labelByStatus[status];
63+
const current = issue.labels.map((label) => label.name).filter((name) => managedLabelNames.has(name));
64+
65+
for (const name of current) {
66+
if (name === next) continue;
67+
try {
68+
await github.rest.issues.removeLabel({ owner, repo, issue_number: issue.number, name });
69+
} catch (error) {
70+
if (error.status !== 404) throw error;
71+
}
72+
}
73+
if (next && !current.includes(next)) {
74+
await github.rest.issues.addLabels({ owner, repo, issue_number: issue.number, labels: [next] });
75+
core.info(`Issue #${issue.number} (${issue.user.login}): ${status} -> ${next}`);
76+
}
77+
}

‎.github/workflows/mobile-dev-client.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
ios:
220220
name: iOS simulator
221221
if: github.repository == 'pingdotgg/t3code' && (github.event_name != 'workflow_dispatch' || inputs.platform == 'ios')
222-
runs-on: blacksmith-12vcpu-macos-26
222+
runs-on: blacksmith-12vcpu-macos-27
223223
timeout-minutes: 60
224224
concurrency:
225225
group: mobile-dev-client-ios-${{ github.event_name == 'pull_request' && github.event.pull_request.number || inputs.fingerprint || github.sha }}

‎.github/workflows/mobile-eas-production.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ jobs:
680680
echo ":rocket: android: submitted and recorded \`$BUILD_TAG\`" >> "$GITHUB_STEP_SUMMARY"
681681
682682
# Off unless the MOBILE_IOS_LOCAL_BUILDS repository variable is `true`; the
683-
# production job only sets ios_build then. Store binaries need the final
684-
# Xcode 27.1; MOBILE_IOS_ALLOW_XCODE_RC=true accepts the release candidate.
683+
# production job only sets ios_build then. Xcode 27.1 matches the EAS build
684+
# image in eas.json.
685685
# No sticky disk: it mounts ext4 and only works on Linux runners.
686686
ios:
687687
name: iOS store build
@@ -701,7 +701,6 @@ jobs:
701701
EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
702702
PROFILE: ${{ needs.production.outputs.ios_profile }}
703703
BUILD_TAG: mobile-ios-build/${{ needs.production.outputs.ios_profile }}/${{ needs.production.outputs.ios_version }}/${{ needs.production.outputs.ios_fingerprint }}
704-
ALLOW_XCODE_RC: ${{ vars.MOBILE_IOS_ALLOW_XCODE_RC == 'true' }}
705704
steps:
706705
- name: Checkout
707706
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
@@ -739,12 +738,9 @@ jobs:
739738
if: steps.record.outputs.built != 'true'
740739
run: |
741740
xcode=/Applications/Xcode_27.1.app
742-
if [ ! -d "$xcode" ] && [ "$ALLOW_XCODE_RC" = "true" ]; then
743-
xcode=/Applications/Xcode_27.1_Release_Candidate.app
744-
fi
745741
if [ ! -d "$xcode" ]; then
746742
ls -d /Applications/Xcode*.app
747-
echo "::error::Xcode 27.1 (final) is not on this runner. Set the MOBILE_IOS_ALLOW_XCODE_RC repository variable to true to build store binaries with the release candidate."
743+
echo "::error::Xcode 27.1 is not on this runner."
748744
exit 1
749745
fi
750746
sudo xcode-select -s "$xcode/Contents/Developer"

0 commit comments

Comments
 (0)