7 Commits
Author SHA1 Message Date
donny 9f924161d6 ci: runs-on [winold, windows] instead of unity-windows [skip ci]
The runner label unity-windows is retired (docs/runners.md in colony). Until this
pipeline works on any machine, its jobs stay on winold.
2026-11-26 17:19:16 -07:00
donnyandClaude Opus 5.5 b6ef8a31bc core: ygol_query_prompt_context names the effect that asks a prompt (TICKET-451, v1.7.0)
field::execute_cost / execute_target / execute_operation push the running
effect (handler, description, stable index, phase 1 / 2 / 3, chain link) on
core.ygol_running at step 0 and pop it when the function finishes; the
innermost entry is the effect that asks. effect::ygol_script_index is stamped
in card::add_effect while the card loads (initial_effect.size()), 0xffff
otherwise. The export writes 22 bytes; a handler the asking player does not
control and that is not face-up answers code 0, index 0xffff, description 0.
Export gates 335 / 856 / 850 -> 336 / 857 / 851.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 16:05:08 -07:00
donnyandClaude Fable 5.1 2344e5dae1 tag partner cards: ygol_query_tag_cards + STOC_TAG_PARTNER_CARDS 0x5F, capability 0x2000, protocol 9 (TICKET-405)
Core: ygol_query_tag_cards(pduel, playerid, out) reads the waiting tag
partner's tag_list_hand / tag_list_extra (bit 31 = face-up, like
MSG_TAG_SWAP) and tag_list_main sorted ascending; returns the byte length,
0 when not a tag duel. Read only.

Server: STOC_TAG_PARTNER_CARDS 0x5F = u8 side + those bytes, no stamp, to
that side's two seats only (never the other team, never an observer):
after start_duel, after every MSG_TAG_SWAP, and in a seated duelist's
field resync. FEATURE_TAG_PARTNER_CARDS 0x2000 advertised by single_duel
and tag_duel; FEATURE_PROTOCOL 8 -> 9. 0x800 / 0x1000 stay reserved for
proposals 44 / 45.

Binding: StocMessage.TagPartnerCards, FeatureFlags.TagPartnerCards, the
TagPartnerCards record + StocCodecs.TagPartnerCards,
EngineApi.ygol_query_tag_cards, Capability.ProtocolVersion 9, tests.

Contract rows, CHANGELOG v1.2.0, the probe's tag partner cards room, the
export gates 334 / 855 / 849 -> 335 / 856 / 850.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-15 23:26:39 -07:00
donnyandClaude Fable 5.1 7ec61d18e6 binding: YGOLegacy.Engine carries the wire protocol; CI builds, tests and ships ygol-engine-binding.zip (TICKET-397)
Release / linux (push) Successful in 1m8s
Release / release (push) Skipped
Release / attach-windows (push) Skipped
Release / windows (push) Successful in 33s
Release / android (push) Successful in 41s
binding/YGOLegacy.Engine (netstandard2.1, LangVersion 9, unsafe, no package, no Unity
reference) holds the Unity repo's Assets/YGOLegacy/Scripts/Protocol/ as
Protocol/{Contracts,Codecs,Framing,Routing}: 12 files copied byte-identical (LF), namespaces
YGOLegacy.Protocol.* unchanged. EngineVersion (default local) is stamped as the informational
version, so the DLL's ProductVersion is the tag it was built for.

binding/YGOLegacy.Engine.Tests (net8.0, NUnit 3.14) holds the six fixtures. 114 tests pass,
the Unity Edit Mode count. Two deviations from "as-is", lead-approved 2026-10-15:
LegacyReaders.cs is a frozen test-only copy of the legacy MDPro3 / YGOSharp readers and enums
the parity tests compare against (they live only in the Unity repo), and FrameCodecTests.cs
line 35 casts (short) instead of (byte): BitConverter.GetBytes((byte)) is ambiguous on
net8.0 (the Half overload), same bytes written.

The windows job builds and tests the binding after the native gates (both with
-p:EngineVersion so the test's project reference does not restamp the DLL as local), checks
the ProductVersion and stages ygol-engine-binding.zip (YGOLegacy.Engine.dll + .pdb) beside
ygol-engine-win64.zip; attach-windows attaches both. engine.json gains "binding": "<version>"
on every platform (windows.ps1 and the Dockerfile's export-gate, the only writers) and the
release job's agreement check includes it. README gains the Binding section and the asset row;
.gitignore ignores binding/**/bin and obj.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
2026-10-15 16:14:17 -07:00
donnyandClaude Fable 5.1 e5e3c10280 ci: workflow_dispatch, so a tag run can be started by hand
Release / windows (push) Successful in 31s
Release / android (push) Successful in 36s
Release / release (push) Successful in 14s
Release / attach-windows (push) Successful in 2s
Release / linux (push) Successful in 1m5s
Gitea made no run for the main push and the v1.0.0 tag: their commit had
already run on the test branch. A new commit moves the tag.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
2026-10-15 11:15:11 -07:00
donnyandClaude Fable 5.1 9a3f737f08 ci: artifact actions v3 (this Gitea rejects v4: "not currently supported on GHES")
Release / android (push) Successful in 16s
Release / linux (push) Successful in 17s
Release / windows (push) Successful in 34s
Release / release (push) Skipped
Release / attach-windows (push) Skipped
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
2026-10-15 10:59:24 -07:00
donnyandClaude Fable 5.1 5f25c6de7a ci: release workflow (TICKET-390)
.gitea/workflows/release.yml: every push and pull request runs the
three builds with their gates (windows on the self-hosted unity-windows
runner through build/windows.ps1; linux and android in Docker on
ubuntu-latest through build/linux.sh and build/android.sh) and publishes
nothing. A v* tag adds the release job: every platform's engine.json
must name the tag and agree on protocol and capabilities, the Windows
DLL's ygol_engine_version() must return the tag, the release must not
exist yet; then one release named after the tag with
ygol-engine-win64.zip, ygol-engine-linux-x64.tar.gz,
ygoserver-linux-x64.tar.gz, ygol-engine-android-arm64.tar.gz and
engine.json, the CHANGELOG section for the tag as its body.

The Windows runner runs no JavaScript action (the Unity repo's pipeline
never did): its bundle is staged on the runner's disk and attached by
the last job; its engine.json travels as a job output. The token is the
run's own GITHUB_TOKEN (the release is in this repo).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
2026-10-15 10:56:50 -07:00