Repository navigation
release: develop → deploy/production (agent skill 0358, license 0155, 0253, 0302, 0211, 0288) - #444
Merged
Merged
Conversation
The OpenAPI document carried `info.license: {"name": ""}`, because
utoipa fills it from CARGO_PKG_LICENSE and no crate set one. The repo
has an MIT LICENSE since #419, so the workspace declares it and every
crate inherits it; utoipa writes it as `name` and SPDX `identifier`.
With the object filled, Redocly's `info-license-strict` is back on.
The portal's bundled copy of the document is refreshed to match.
…arity default_granularity now returns None for timeframe=all, as seconds() does, so the arm the handler's guard always shadowed is gone and the type says all has no fixed default. The choice moves into resolve_granularity, with unit tests pinning that all takes the computed grain, including the 2029-06-08 step from 1d to 1w. No response changes.
Every full-range statement in preroll.sql now ends in SETTINGS max_partitions_per_insert_block = 1000 (rollup_sql::FULL_RANGE_SETTINGS). The tables are partitioned by month and a full-range run writes ~131 in one INSERT block, which production refused on 2026-09-22 with Code 252. A new integration test seeds 131 months and shows each of the six statements is refused without the clause and runs with it. The 0286 runbook keeps the URL-parameter form for older checkouts.
…tart A candle is returned when its bucket starts inside [start, end]: a mid-bucket start drops that bucket, a mid-bucket end keeps it, and the newest candle can be the still-open current bucket. Stated in the /ohlcv OpenAPI description and params (bundled portal copy refreshed) and in overview section 4.2, whose auto-granularity table also stops claiming all defaults to 1d.
The 1024-character AlarmDescription guard walked only ObservabilityStack, so EventBridgeStack's ten -errors alarms (createWorkerLambda) could pass synth and fail mid-deploy. The guard moves to alarm-guards.ts and runs once over the whole App in createApp, before app.synth(). Templates unchanged.
finest_for_span keeps 1d only while span.div_ceil(DAY) < 5000, so from Stellar genesis (2015-09-30) the grain turns weekly after 4999 days, on 2029-06-07 00:00:01 UTC, not on 2029-06-08 as stated. Spotted in review of PR #432.
finest_for_span keeps 1d only while span.div_ceil(DAY) < 5000, so from Stellar genesis (2015-09-30) the grain turns weekly after 4999 days, on 2029-06-07 00:00:01 UTC, not on 2029-06-08 as stated. Spotted in review of PR #432.
finest_for_span keeps 1d only while span.div_ceil(DAY) < 5000, so from Stellar genesis (2015-09-30) the grain turns weekly after 4999 days, on 2029-06-07 00:00:01 UTC, not on 2029-06-08 as stated. Spotted in review of PR #432. Same date fixed in the 0211 task record.
1000 months from 2015 reaches ~2098, about 72 years from now, not 83. The raised cap also removes the fast Code 252 failure for a full-range 15m/1h re-roll, which would instead write blocks x months small parts; only 1w/1M have run with it. Spotted in review of PR #433.
__pycache__/ is already gitignored; the .pyc came in with a merge and was tracked since. Spotted in review of PR #433.
Sizes above 1m are rebuilt from the size below on a schedule (15m every minute up to 1w/1M once a day) and rewritten hourly up to 7 days back, so the 'timestamp + granularity is past now' rule for a closed candle was unsafe: a 1d candle read at 00:30 UTC can still lack its last hours. State the refresh lag and the 7-day reconcile window instead, in the overview, the /ohlcv OpenAPI description and the revision row. Also state that end alone switches to the computed granularity, as start does (timeframe=7d&end=... returns 15m). Spotted in review of PR #434.
A description built from a token resolves to an Fn::Join object, which the guard counted as length 0, so an over-long one passed synth and failed mid-deploy. It is now refused at synth. The walk also moves from L2 cloudwatch.Alarm to CfnAlarm + CfnCompositeAlarm, so raw and composite alarms (same 1024 limit) are measured too. tools/scripts/alarm-guards.test.mjs pins the guard: over-long fails, 1024 passes, a token is refused, raw and composite alarms are measured. The last two fail against the previous guard. The production synth passes: 90 alarms, all plain strings, longest 1018. Spotted in review of PR #435.
…efault-granularity-arm-is-unreachable refactor(0253): drop the unreachable all arm from default_granularity
…eds-partition-block-cap fix(0302): let the full-range pre-roll write past 100 partitions
…indow-boundary-semantics docs(0211): state that the ohlcv window is inclusive on bucket start
…on-length-guard-covers-every-stack fix(0288): length-check every stack's alarm descriptions at synth
All four PRs merged into develop on 2026-11-30 after Stan's review: - 0253: #432 (d3bee99) - 0302: #433 (ef601af), writer probe on production recorded - 0211: #434 (638beb8), overview revision row now links the archive - 0288: #435 (9ea7b6c) Each task records the review fixes, status completed, and moves to archive/.
stellar-x402 0041 closed on 2026-12-01 and its task file became an archived directory; the old link answers 404.
Three routes have keyless /x402/v1 twins since 0356. The skill offers them beside the free key: the stellar-x402 MCP tools when the agent has them, else a short script on the upstream @x402/fetch, capped at one cent a payment. Testnet preview: XLM and USDC only. The key steps follow the shared sign-in: signing in issues no key, the Prices API tab's Get API Key does.
The skill told the agent to ask for the payer's secret key, which puts it in the transcript; the user now sets it in the MCP server's config or in STELLAR_SECRET_KEY. After the payment was sent, a 402 with a PAYMENT-RESPONSE, a 502 or a 504 may still settle (the crate's settlement_failed and its /settle timeout), so the skill no longer says nothing is charged until the answer is below 400. The facilitator link pointed at a host whose root answers 404, and the overview's revision history gets its row for the /x402/v1 twins.
The errors table told an agent to retry every 500, 502 and 504. On the paid routes a 502 or 504 can come after the payment was sent, and the transfer may still land, as the pay-per-request section already says: check the payer's last transaction before paying again.
Without a key the skill told the agent to stop and ask for one, and it paid with the connector as soon as it had the tools. akot's access flow (2026-12-02): the agent offers the ways in that fit the request, each with its cost, and waits: the stellar-x402 connector (first when its tools are there), a free key through Discord, setting the connector up, or the script. Outside the testnet sandbox only the key is offered. No payment before the user has heard the price and said yes. The connector's setup is summarized and linked to the stellar-x402 README. The script blocks are unchanged.
The connector's setup cloned the default branch, which has neither search_resources nor the listing guard: it now clones develop. The pay sections act only on the user's choice and yes, and the quote before the first payment covers the whole task. Step 1 states what every paid way in costs and the sandbox's candles exactly, and recommends .env, since an export in another terminal does not reach the agent. The task's evidence now holds the final run, with P6 (the user says the payer key is in .env).
An agent told the user to export STELLAR_SECRET_KEY, as the script section said. An export in another terminal never reaches the agent, so the script would stop with "STELLAR_SECRET_KEY is not set". The section now asks for the project's .env and says why, as Step 1 already does for the API key. Found in akot's manual run with a connector that has no payer.
…nse-in-openapi docs(0155): declare the MIT license in Cargo and the OpenAPI document
Only a 402 that carries a PAYMENT-RESPONSE (a failed settlement) may still settle; one without it is a refused verification with an error. From stkrolikiewicz's review of #442.
…in-the-agent-skill docs(0358): pay per request in the agent skill
karczuRF
approved these changes
Dec 3, 2026
Collaborator
Author
|
Production diff from the merge ref ( Matches the expected list: only the code of the 12 Lambdas changes (Compute 2, EventBridge 10); Secrets, ApiGateway and Observability have no differences. Nothing is added, removed or replaced. The code keys change partly because the hashes differ between build machines.
Full diff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Carries six PRs; karczuRF confirmed his four can go to production. The rest is lore. Production diff in the comment below.
info.license), the portal's bundledopenapi.jsonrefreshed.default_granularityloses its unreachableallarm; no response changes.schema/preroll.sqllets an INSERT write past 100 partitions.ohlcvwindow is inclusive on bucket start (OpenAPI description, bundledopenapi.json, overview §4.2).Expected diff: new Lambda code keys (the API handler serves the new OpenAPI document; the others because the hashes differ between build machines). No resource added, removed or replaced: #435's templates are byte-identical, and no route changes.
After the deploy: the workflow flushes the stage cache;
/api-docs-jsonservesinfo.licenseMIT; the paid route still answers 402, keyed routes 403 without a key and 200 with one. By hand, from the release commit, noted in the tag's Release:make -C infra sync-portal-explorer, since #431 and #434 changedweb/portal/public/openapi.json.preroll.sqlis applied only by a pre-roll run (runbook 0286), not here. Oncemastermoves, skills.stellar.org's card serves 0358's skill.Rollback: a revert PR on
deploy/production, deployed the same way.