diff --git a/.gitignore b/.gitignore index a34d4d9..d6d4a52 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,7 @@ dist-ssr *.njsproj *.sln *.sw? + +# Native RandomX engine for the app (scripts/build-randomx-android.sh) +native/build-android-*/ +android/app/src/main/jniLibs/ diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..48354a3 --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,101 @@ +# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore + +# Built application files +*.apk +*.aar +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ +out/ +# Uncomment the following line in case you need and you don't have the release build type files in your app +# release/ + +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# IntelliJ +*.iml +.idea/workspace.xml +.idea/tasks.xml +.idea/gradle.xml +.idea/assetWizardSettings.xml +.idea/dictionaries +.idea/libraries +# Android Studio 3 in .gitignore file. +.idea/caches +.idea/modules.xml +# Comment next line if keeping position of elements in Navigation Editor is relevant for you +.idea/navEditor.xml + +# Keystore files +# Uncomment the following lines if you do not want to check your keystore files in. +#*.jks +#*.keystore + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild +.cxx/ + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Freeline +freeline.py +freeline/ +freeline_project_description.json + +# fastlane +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output +fastlane/readme.md + +# Version control +vcs.xml + +# lint +lint/intermediates/ +lint/generated/ +lint/outputs/ +lint/tmp/ +# lint/reports/ + +# Android Profiling +*.hprof + +# Cordova plugins for Capacitor +capacitor-cordova-android-plugins + +# Copied web assets +app/src/main/assets/public + +# Generated Config files +app/src/main/assets/capacitor.config.json +app/src/main/assets/capacitor.plugins.json +app/src/main/res/xml/config.xml diff --git a/android/app/.gitignore b/android/app/.gitignore new file mode 100644 index 0000000..043df80 --- /dev/null +++ b/android/app/.gitignore @@ -0,0 +1,2 @@ +/build/* +!/build/.npmkeep diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000..093389e --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,61 @@ +apply plugin: 'com.android.application' + +android { + namespace "dev.eom.wikideck" + compileSdk rootProject.ext.compileSdkVersion + defaultConfig { + applicationId "dev.eom.wikideck" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + aaptOptions { + // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. + // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61 + ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' + } + } + packagingOptions { + jniLibs { + // The RandomX engine (jniLibs//libwikideck_randomx.so) is an executable, not a JNI library. + // Android may exec it only from the extracted nativeLibraryDir, so keep legacy extraction. + useLegacyPackaging true + } + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +repositories { + flatDir{ + dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs' + } +} + +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" + implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion" + implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion" + implementation project(':capacitor-android') + testImplementation "junit:junit:$junitVersion" + androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" + androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" + implementation project(':capacitor-cordova-android-plugins') +} + +apply from: 'capacitor.build.gradle' + +try { + def servicesJSON = file('google-services.json') + if (servicesJSON.text) { + apply plugin: 'com.google.gms.google-services' + } +} catch(Exception e) { + logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work") +} diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle new file mode 100644 index 0000000..70f93fc --- /dev/null +++ b/android/app/capacitor.build.gradle @@ -0,0 +1,20 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN + +android { + compileOptions { + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 + } +} + +apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" +dependencies { + implementation project(':capacitor-app') + implementation project(':capacitor-browser') + +} + + +if (hasProperty('postBuildExtras')) { + postBuildExtras() +} diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java new file mode 100644 index 0000000..f2c2217 --- /dev/null +++ b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import android.content.Context; +import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.platform.app.InstrumentationRegistry; +import org.junit.Test; +import org.junit.runner.RunWith; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + + assertEquals("com.getcapacitor.app", appContext.getPackageName()); + } +} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..d257625 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/java/dev/eom/wikideck/MainActivity.java b/android/app/src/main/java/dev/eom/wikideck/MainActivity.java new file mode 100644 index 0000000..f6d5dbd --- /dev/null +++ b/android/app/src/main/java/dev/eom/wikideck/MainActivity.java @@ -0,0 +1,14 @@ +package dev.eom.wikideck; + +import android.os.Bundle; + +import com.getcapacitor.BridgeActivity; + +public class MainActivity extends BridgeActivity { + @Override + public void onCreate(Bundle savedInstanceState) { + // Local plugins must be registered before the bridge starts. + registerPlugin(MinerPlugin.class); + super.onCreate(savedInstanceState); + } +} diff --git a/android/app/src/main/java/dev/eom/wikideck/MinerPlugin.java b/android/app/src/main/java/dev/eom/wikideck/MinerPlugin.java new file mode 100644 index 0000000..07732dc --- /dev/null +++ b/android/app/src/main/java/dev/eom/wikideck/MinerPlugin.java @@ -0,0 +1,264 @@ +package dev.eom.wikideck; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.os.BatteryManager; +import android.os.Build; +import android.os.PowerManager; + +import com.getcapacitor.JSObject; +import com.getcapacitor.Plugin; +import com.getcapacitor.PluginCall; +import com.getcapacitor.PluginMethod; +import com.getcapacitor.annotation.CapacitorPlugin; + +import java.io.BufferedReader; +import java.io.File; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +import java.util.regex.Pattern; + +/** + * Native RandomX engine for the WikiDeck app (sideload build only, see docs/night2/MOBILE_MINING.md). + * + * The plugin only runs the pinned `wikideck-randomx` executable (shipped as jniLibs//libwikideck_randomx.so) + * in LIGHT mode and speaks its line protocol (docs/randomx-native.md). It never sees wallet keys: the WebView builds + * the work blob, signs the block claim with the web wallet, and submits it to the node. This class also enforces the + * device safeguards: engines are killed when the app goes to the background, on battery saver, when the device is + * hot, or when the battery is low and not charging. Each stop is reported to the WebView as a `halted` event. + */ +@CapacitorPlugin(name = "WikiDeckMiner") +public class MinerPlugin extends Plugin { + private static final String BINARY = "libwikideck_randomx.so"; + private static final int MAX_THREADS = 4; + /** At or above Android's THERMAL_STATUS_MODERATE we stop. */ + private static final int THERMAL_LIMIT = 2; + /** Battery temperature limit in tenths of a degree Celsius. */ + private static final int BATTERY_TEMP_LIMIT = 400; + private static final int LOW_BATTERY_PERCENT = 20; + private static final Pattern HEX = Pattern.compile("^[0-9a-f]+$"); + + private final List engines = new ArrayList<>(); + private BroadcastReceiver receiver; + private Object thermalListener; + + /** One long-lived engine process with exactly one outstanding command (it is strictly request/response). */ + private static final class Engine { + final Process process; + final OutputStream in; + final BufferedReader out; + final ExecutorService worker = Executors.newSingleThreadExecutor(); + Engine(Process process) { + this.process = process; + this.in = process.getOutputStream(); + this.out = new BufferedReader(new InputStreamReader(process.getInputStream(), StandardCharsets.US_ASCII)); + } + String command(String line) throws Exception { + in.write((line + "\n").getBytes(StandardCharsets.US_ASCII)); + in.flush(); + String reply = out.readLine(); + if (reply == null) throw new Exception("RandomX engine exited"); + return reply; + } + void kill() { + worker.shutdownNow(); + try { in.close(); } catch (Exception ignored) { } + process.destroy(); + try { if (!process.waitFor(1, TimeUnit.SECONDS)) process.destroyForcibly(); } catch (InterruptedException ignored) { } + } + } + + private File binary() { + return new File(getContext().getApplicationInfo().nativeLibraryDir, BINARY); + } + + @Override + public void load() { + receiver = new BroadcastReceiver() { + @Override public void onReceive(Context context, Intent intent) { checkAndHalt(); } + }; + IntentFilter filter = new IntentFilter(); + filter.addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED); + filter.addAction(Intent.ACTION_BATTERY_CHANGED); + getContext().registerReceiver(receiver, filter); + if (Build.VERSION.SDK_INT >= 29) { + PowerManager pm = (PowerManager) getContext().getSystemService(Context.POWER_SERVICE); + PowerManager.OnThermalStatusChangedListener l = status -> checkAndHalt(); + pm.addThermalStatusListener(l); + thermalListener = l; + } + } + + @Override + protected void handleOnPause() { + halt("background"); + super.handleOnPause(); + } + + @Override + protected void handleOnDestroy() { + halt("closed"); + try { getContext().unregisterReceiver(receiver); } catch (Exception ignored) { } + if (Build.VERSION.SDK_INT >= 29 && thermalListener != null) { + PowerManager pm = (PowerManager) getContext().getSystemService(Context.POWER_SERVICE); + pm.removeThermalStatusListener((PowerManager.OnThermalStatusChangedListener) thermalListener); + } + super.handleOnDestroy(); + } + + /** Current device state and, if mining must not run, the reason. */ + private JSObject conditionsObject() { + PowerManager pm = (PowerManager) getContext().getSystemService(Context.POWER_SERVICE); + Intent battery = getContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); + int temp = battery == null ? -1 : battery.getIntExtra(BatteryManager.EXTRA_TEMPERATURE, -1); + int level = battery == null ? -1 : battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); + int scale = battery == null ? -1 : battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1); + int plugged = battery == null ? 0 : battery.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); + int percent = level >= 0 && scale > 0 ? Math.round(100f * level / scale) : -1; + int thermal = Build.VERSION.SDK_INT >= 29 ? pm.getCurrentThermalStatus() : 0; + boolean powerSave = pm.isPowerSaveMode(); + String block = null; + if (powerSave) block = "battery-saver"; + else if (thermal >= THERMAL_LIMIT) block = "thermal"; + else if (temp >= BATTERY_TEMP_LIMIT) block = "battery-hot"; + else if (plugged == 0 && percent >= 0 && percent < LOW_BATTERY_PERCENT) block = "battery-low"; + JSObject o = new JSObject(); + o.put("powerSave", powerSave); + o.put("thermalStatus", thermal); + o.put("batteryTempC", temp < 0 ? null : temp / 10.0); + o.put("batteryPercent", percent); + o.put("charging", plugged != 0); + o.put("cores", Runtime.getRuntime().availableProcessors()); + o.put("abi", Build.SUPPORTED_ABIS.length > 0 ? Build.SUPPORTED_ABIS[0] : "unknown"); + o.put("engineInstalled", binary().canExecute()); + o.put("blocked", block); + return o; + } + + private void checkAndHalt() { + String block = conditionsObject().getString("blocked"); + if (block != null) halt(block); + } + + private synchronized void halt(String reason) { + if (engines.isEmpty()) return; + for (Engine e : engines) e.kill(); + engines.clear(); + JSObject event = new JSObject(); + event.put("reason", reason); + notifyListeners("halted", event); + } + + @PluginMethod + public void conditions(PluginCall call) { + call.resolve(conditionsObject()); + } + + /** Runs upstream's known-vector test (Hash test 1a/2a) on this device. */ + @PluginMethod + public void selfTest(PluginCall call) { + new Thread(() -> { + try { + Process p = new ProcessBuilder(binary().getAbsolutePath(), "--self-test").redirectErrorStream(true).start(); + p.getOutputStream().close(); + StringBuilder text = new StringBuilder(); + BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream(), StandardCharsets.UTF_8)); + for (String line; (line = r.readLine()) != null && text.length() < 2000; ) text.append(line).append('\n'); + boolean done = p.waitFor(120, TimeUnit.SECONDS); + if (!done) p.destroyForcibly(); + JSObject o = new JSObject(); + o.put("ok", done && p.exitValue() == 0); + o.put("output", text.toString().trim()); + call.resolve(o); + } catch (Exception e) { + call.reject("Self-test failed to run: " + e.getMessage()); + } + }).start(); + } + + /** Starts 1..4 light-mode engines (more than 2 only while charging) (each needs about 256 MiB). Refuses if a safeguard is active. */ + @PluginMethod + public synchronized void start(PluginCall call) { + int threads = call.getInt("threads", 1); + if (threads < 1 || threads > MAX_THREADS || threads > Runtime.getRuntime().availableProcessors()) { call.reject("threads must be 1 to " + MAX_THREADS + " and at most the core count"); return; } + String block = conditionsObject().getString("blocked"); + if (block == null && threads > 2 && !conditionsObject().getBool("charging")) block = "max-needs-charging"; + if (block != null) { call.reject("Mining is paused: " + block, block); return; } + if (!engines.isEmpty()) { for (Engine e : engines) e.kill(); engines.clear(); } + try { + for (int i = 0; i < threads; i++) { + // No arguments = LIGHT mode. `--fast` (about 2 GiB) is never used on phones. + Process p = new ProcessBuilder(binary().getAbsolutePath()).redirectError(ProcessBuilder.Redirect.to(new File("/dev/null"))).start(); + engines.add(new Engine(p)); + } + } catch (Exception e) { + for (Engine en : engines) en.kill(); + engines.clear(); + call.reject("Could not start the RandomX engine: " + e.getMessage()); + return; + } + JSObject o = new JSObject(); + o.put("threads", threads); + call.resolve(o); + } + + @PluginMethod + public synchronized void stop(PluginCall call) { + for (Engine e : engines) e.kill(); + engines.clear(); + call.resolve(); + } + + /** + * One bounded batch on engine `lane`: `mine `. + * Resolves {found:false} on exhaustion or {found:true, hash, nonce} (nonce as a decimal string). + */ + @PluginMethod + public void mine(PluginCall call) { + String key = call.getString("key", ""), blob = call.getString("blob", ""), target = call.getString("target", ""); + int lane = call.getInt("lane", 0), offset = call.getInt("nonceOffset", -1), attempts = call.getInt("maxAttempts", 0); + if (key.length() != 64 || target.length() != 64 || blob.length() < 2 || blob.length() > 16384 || blob.length() % 2 != 0 + || !HEX.matcher(key).matches() || !HEX.matcher(target).matches() || !HEX.matcher(blob).matches() + || offset < 0 || offset + 8 > blob.length() / 2 || attempts < 1 || attempts > 10000) { + call.reject("Invalid mining request"); + return; + } + final Engine engine; + synchronized (this) { + if (lane < 0 || lane >= engines.size()) { call.reject("Miner is not running", "stopped"); return; } + engine = engines.get(lane); + } + String line = "mine " + key + " " + blob + " " + target + " " + offset + " " + attempts; + try { + engine.worker.execute(() -> { + try { + String reply = engine.command(line); + JSObject o = new JSObject(); + if (reply.equals("exhausted")) { + o.put("found", false); + } else { + String[] parts = reply.split(" "); + if (parts.length != 3 || !parts[0].equals("found") || parts[1].length() != 64 || !HEX.matcher(parts[1]).matches() + || !parts[2].matches("^[0-9]{1,20}$")) throw new Exception("Malformed engine reply"); + o.put("found", true); + o.put("hash", parts[1]); + o.put("nonce", parts[2]); + } + call.resolve(o); + } catch (Exception e) { + call.reject("Miner stopped: " + e.getMessage(), "stopped"); + } + }); + } catch (Exception e) { + call.reject("Miner is not running", "stopped"); + } + } +} diff --git a/android/app/src/main/res/drawable-land-hdpi/splash.png b/android/app/src/main/res/drawable-land-hdpi/splash.png new file mode 100644 index 0000000..e31573b Binary files /dev/null and b/android/app/src/main/res/drawable-land-hdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-mdpi/splash.png b/android/app/src/main/res/drawable-land-mdpi/splash.png new file mode 100644 index 0000000..f7a6492 Binary files /dev/null and b/android/app/src/main/res/drawable-land-mdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-xhdpi/splash.png b/android/app/src/main/res/drawable-land-xhdpi/splash.png new file mode 100644 index 0000000..8077255 Binary files /dev/null and b/android/app/src/main/res/drawable-land-xhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxhdpi/splash.png new file mode 100644 index 0000000..14c6c8f Binary files /dev/null and b/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxxhdpi/splash.png new file mode 100644 index 0000000..244ca25 Binary files /dev/null and b/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-hdpi/splash.png b/android/app/src/main/res/drawable-port-hdpi/splash.png new file mode 100644 index 0000000..74faaa5 Binary files /dev/null and b/android/app/src/main/res/drawable-port-hdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-mdpi/splash.png b/android/app/src/main/res/drawable-port-mdpi/splash.png new file mode 100644 index 0000000..e944f4a Binary files /dev/null and b/android/app/src/main/res/drawable-port-mdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-xhdpi/splash.png b/android/app/src/main/res/drawable-port-xhdpi/splash.png new file mode 100644 index 0000000..564a82f Binary files /dev/null and b/android/app/src/main/res/drawable-port-xhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxhdpi/splash.png new file mode 100644 index 0000000..bfabe68 Binary files /dev/null and b/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxxhdpi/splash.png new file mode 100644 index 0000000..6929071 Binary files /dev/null and b/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..c7bd21d --- /dev/null +++ b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/android/app/src/main/res/drawable/ic_launcher_background.xml b/android/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..d5fccc5 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/drawable/splash.png b/android/app/src/main/res/drawable/splash.png new file mode 100644 index 0000000..f7a6492 Binary files /dev/null and b/android/app/src/main/res/drawable/splash.png differ diff --git a/android/app/src/main/res/layout/activity_main.xml b/android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..b5ad138 --- /dev/null +++ b/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..036d09b --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..036d09b --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..c023e50 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..2127973 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..b441f37 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..72905b8 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..8ed0605 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..9502e47 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..4d1e077 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..df0f158 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..853db04 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..6cdf97c Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..2960cbb Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..8e3093a Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..46de6e2 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..d2ea9ab Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..a40d73e Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..7ec7cd9 --- /dev/null +++ b/android/app/src/main/res/values/colors.xml @@ -0,0 +1,8 @@ + + + #1e1e2e + #11111b + #cba6f7 + + #11111b + diff --git a/android/app/src/main/res/values/ic_launcher_background.xml b/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..c5d5899 --- /dev/null +++ b/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..b546c98 --- /dev/null +++ b/android/app/src/main/res/values/strings.xml @@ -0,0 +1,7 @@ + + + WikiDeck + WikiDeck + dev.eom.wikideck + dev.eom.wikideck + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..627ab80 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/xml/file_paths.xml b/android/app/src/main/res/xml/file_paths.xml new file mode 100644 index 0000000..bd0c4d8 --- /dev/null +++ b/android/app/src/main/res/xml/file_paths.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java new file mode 100644 index 0000000..0297327 --- /dev/null +++ b/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java @@ -0,0 +1,18 @@ +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import org.junit.Test; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} diff --git a/android/build-debug.sh b/android/build-debug.sh new file mode 100755 index 0000000..e3a5cfb --- /dev/null +++ b/android/build-debug.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Build the WikiDeck debug APK against the private Night-1 testnet. +# Needs ANDROID_HOME (with an NDK and CMake for the RandomX engine) and a JDK 21 (JAVA_HOME). Output: android/app/build/outputs/apk/debug/app-debug.apk +set -eu +cd "$(dirname "$0")/.." +export VITE_WIKIDECK_NETWORK="${VITE_WIKIDECK_NETWORK:-testnet}" +export VITE_WIKIDECK_GENESIS_TIME="${VITE_WIKIDECK_GENESIS_TIME:-1792411200}" +export VITE_NODE_URL="${VITE_NODE_URL:-http://192.168.1.32:3101}" +# Native RandomX engine (jniLibs//libwikideck_randomx.so); built once, reused after (scripts/build-randomx-android.sh). +for abi in ${ABIS:-arm64-v8a x86_64}; do + [ -x "android/app/src/main/jniLibs/$abi/libwikideck_randomx.so" ] || ABIS="$abi" sh scripts/build-randomx-android.sh +done +npm run build +npx cap sync android +cd android && ./gradlew --no-daemon -q assembleDebug +ls -l app/build/outputs/apk/debug/app-debug.apk diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..f1b3b0e --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,29 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:8.7.2' + classpath 'com.google.gms:google-services:4.4.2' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +apply from: "variables.gradle" + +allprojects { + repositories { + google() + mavenCentral() + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle new file mode 100644 index 0000000..fde830c --- /dev/null +++ b/android/capacitor.settings.gradle @@ -0,0 +1,9 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN +include ':capacitor-android' +project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') + +include ':capacitor-app' +project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android') + +include ':capacitor-browser' +project(':capacitor-browser').projectDir = new File('../node_modules/@capacitor/browser/android') diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..2e87c52 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,22 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..a4b76b9 Binary files /dev/null and b/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..c1d5e01 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/android/gradlew b/android/gradlew new file mode 100755 index 0000000..f5feea6 --- /dev/null +++ b/android/gradlew @@ -0,0 +1,252 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/android/gradlew.bat b/android/gradlew.bat new file mode 100644 index 0000000..9b42019 --- /dev/null +++ b/android/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..3b4431d --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,5 @@ +include ':app' +include ':capacitor-cordova-android-plugins' +project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/') + +apply from: 'capacitor.settings.gradle' \ No newline at end of file diff --git a/android/variables.gradle b/android/variables.gradle new file mode 100644 index 0000000..2c8e408 --- /dev/null +++ b/android/variables.gradle @@ -0,0 +1,16 @@ +ext { + minSdkVersion = 23 + compileSdkVersion = 35 + targetSdkVersion = 35 + androidxActivityVersion = '1.9.2' + androidxAppCompatVersion = '1.7.0' + androidxCoordinatorLayoutVersion = '1.2.0' + androidxCoreVersion = '1.15.0' + androidxFragmentVersion = '1.8.4' + coreSplashScreenVersion = '1.0.1' + androidxWebkitVersion = '1.12.1' + junitVersion = '4.13.2' + androidxJunitVersion = '1.2.1' + androidxEspressoCoreVersion = '3.6.1' + cordovaAndroidVersion = '10.1.1' +} \ No newline at end of file diff --git a/capacitor.config.ts b/capacitor.config.ts new file mode 100644 index 0000000..432a889 --- /dev/null +++ b/capacitor.config.ts @@ -0,0 +1,26 @@ +import type { CapacitorConfig } from '@capacitor/cli'; + +// WikiDeck mobile shell. Build the web UI with the node URL baked in, then sync: +// VITE_WIKIDECK_NETWORK=testnet VITE_WIKIDECK_GENESIS_TIME=1792411200 \ +// VITE_NODE_URL=http://192.168.1.32:3101 npm run build && npx cap sync android +// (see android/build-debug.sh) +const config: CapacitorConfig = { + appId: 'dev.eom.wikideck', + appName: 'WikiDeck', + webDir: 'dist', + server: { + androidScheme: 'https', + // The private testnet node is plain HTTP on the LAN. + cleartext: true, + }, + android: { + // Android 15 (targetSdk 35) draws edge-to-edge; keep the WebView clear of the system bars. + adjustMarginsForEdgeToEdge: 'auto', + }, + plugins: { + // Route fetch through native HTTP: avoids CORS and the node's browser Origin check. + CapacitorHttp: { enabled: true }, + }, +}; + +export default config; diff --git a/deploy/night/README.md b/deploy/night/README.md new file mode 100644 index 0000000..c9e2565 --- /dev/null +++ b/deploy/night/README.md @@ -0,0 +1,22 @@ +# Night 1 private testnet (sim-testnet) + +A 3-node **testnet-only** fixture on poweredge-r350. It is reachable on the LAN only, and uses the Docker project `wikideck-night`. + +| node | URL | +|---|---| +| node-a | http://192.168.1.32:3101 | +| node-b | http://192.168.1.32:3102 | +| node-c | http://192.168.1.32:3103 | + +- `compose.lan.yaml` overrides only the published ports (bound to `192.168.1.32`, never `0.0.0.0`) and `PUBLIC_ORIGIN`. It changes nothing in consensus or the image. +- `mine.ts` is a multi-worker native RandomX miner. It runs inside the `wikideck:testnet` image, which ships the native engine, so the host needs no cmake. + - It mines to 4 disposable wallets (alice, bob, carol, dave) and writes chain-bound encrypted browser backups to `$STATE_DIR/wallets/`. + - It never changes consensus code. Speed comes from the protocol's own testnet parameters: the initial target accepts 1/16 of hashes, and each 10-block retarget at most quadruples the difficulty. + - Each template costs several Wikipedia API calls, and Wikipedia rate-limits our egress IP. The miner therefore paces templates (`MIN_GAP`, default 45 s) and backs off exponentially on failure. +- `compose.lan.yaml` also sets, per node: + - `WIKIDECK_USER_AGENT`, a Wikimedia-policy UA with a project URL (#19). Without it, Wikipedia returned 429 to our egress and templates failed. + - the game-mode env from #22: A = classic and trending, B = draft, C = all three. +- `autodeploy.sh` follows the integration branch. Run it from a dedicated detached worktree: `git worktree add --detach ../deploy-src origin/night/2026-11-17 && cd ../deploy-src && deploy/night/autodeploy.sh`. It polls the Gitea API every 3 min and redeploys whenever the head moves. +- `testnet.sh` has `up`, `mine N [workers]`, `status` and `down`. Run it from the repo root on a checkout of the integration branch. `up` rebuilds the image from that checkout; the ledgers persist in the named volumes. + +Never point this at mainnet or the live `wikideck` namespace. diff --git a/deploy/night/autodeploy.sh b/deploy/night/autodeploy.sh new file mode 100755 index 0000000..fc1e6e8 --- /dev/null +++ b/deploy/night/autodeploy.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# sim-testnet: keep the wikideck-night testnet on the integration branch head. +# Run from the root of a *dedicated* checkout (e.g. a detached git worktree): it checks out +# each new head of $BRANCH and runs `deploy/night/testnet.sh rolling` (ledgers persist in the volumes): +# nodes restart one at a time, and deploys wait (up to FORCE_AFTER) while matches or lobbies are live, +# because lobbies are in memory and a restart ends games in progress. +# Head detection uses the public Gitea API, which also works where SSH auth isn't available. +set -u +BRANCH=${BRANCH:-night/2026-11-17} +API=${API:-https://gitea.eom.dev/api/v1/repos/claude/wikideck} +INTERVAL=${INTERVAL:-180} +LOG=${LOG:-/tmp/wikideck-night-autodeploy.log} +FORCE_AFTER=${FORCE_AFTER:-900} # defer while matches/lobbies are live, but at most this many seconds +deferred_since= +enc=$(printf %s "$BRANCH" | sed 's#/#%2F#g') +while :; do + new=$(node -e "fetch('$API/branches/$enc',{signal:AbortSignal.timeout(15000)}).then(r=>r.json()).then(b=>console.log(b.commit.id)).catch(()=>{})") + cur=$(git rev-parse HEAD) + if [ -z "$new" ]; then echo "WARN branch API failed" + elif [ "$new" != "$cur" ]; then + if ! git fetch -q origin "+refs/heads/$BRANCH:refs/remotes/origin/$BRANCH" 2>"$LOG"; then + echo "WARN fetch failed: $(tail -1 "$LOG")" + else + busy=$(deploy/night/testnet.sh busy 2>/dev/null || echo 0) + now=$(date +%s) + if [ "${busy:-0}" -gt 0 ] && { [ -z "$deferred_since" ] || [ $((now - deferred_since)) -lt "$FORCE_AFTER" ]; }; then + [ -z "$deferred_since" ] && { deferred_since=$now; echo "DEFER ${new%"${new#???????}"}: $busy live matches/lobbies"; } + sleep 60; continue + fi + [ -n "$deferred_since" ] && [ "${busy:-0}" -gt 0 ] && echo "FORCE deploy after ${FORCE_AFTER}s ($busy still live)" + deferred_since= + git checkout -q --detach "$new" + echo "DEPLOY start $(git log --oneline -1 | cut -c1-90)" + if deploy/night/testnet.sh rolling >"$LOG" 2>&1; then + sleep 20; echo "DEPLOY ok $(git rev-parse --short HEAD): $(deploy/night/testnet.sh status 2>&1 | tr '\n' ' ')" + else echo "DEPLOY FAILED $(git rev-parse --short HEAD): $(tail -3 "$LOG" | tr '\n' ' ')"; fi + fi + fi + sleep "$INTERVAL" +done diff --git a/deploy/night/compose.lan.yaml b/deploy/night/compose.lan.yaml new file mode 100644 index 0000000..c0f3790 --- /dev/null +++ b/deploy/night/compose.lan.yaml @@ -0,0 +1,36 @@ +# sim-testnet override: publish the fixture on r350's LAN address only (not 0.0.0.0). +# WIKIDECK_USER_AGENT identifies the testnet to Wikimedia (UA policy; no personal contact info). +# Game-mode env (modes team, #6) is inert until night/modes/hosting merges. +# WIKIDECK_WIKIMEDIA_NODES_PER_IP / WIKIDECK_OPERATOR_CONTACT (#62): the 3 nodes share one egress IP, so the +# polite client splits its rate and daily cap 3 ways. Inert until the wikimedia client merges. +services: + node-a: + ports: !override ["192.168.1.32:3101:3001"] + environment: + PUBLIC_ORIGIN: http://192.168.1.32:3101 + WIKIDECK_USER_AGENT: &ua WikiDeck-testnet/0.1 (https://gitea.eom.dev/claude/wikideck; private testnet) + WIKIDECK_WIKIMEDIA_NODES_PER_IP: &perip "3" + WIKIDECK_OPERATOR_CONTACT: &contact https://gitea.eom.dev/claude/wikideck + WIKIDECK_MODES: classic,trending + WIKIDECK_GAME_OPERATOR: Testnet A + WIKIDECK_GAME_PEERS: http://192.168.1.32:3102,http://192.168.1.32:3103 + node-b: + ports: !override ["192.168.1.32:3102:3001"] + environment: + PUBLIC_ORIGIN: http://192.168.1.32:3102 + WIKIDECK_USER_AGENT: *ua + WIKIDECK_WIKIMEDIA_NODES_PER_IP: *perip + WIKIDECK_OPERATOR_CONTACT: *contact + WIKIDECK_MODES: draft + WIKIDECK_GAME_OPERATOR: Testnet B + WIKIDECK_GAME_PEERS: http://192.168.1.32:3101,http://192.168.1.32:3103 + node-c: + ports: !override ["192.168.1.32:3103:3001"] + environment: + PUBLIC_ORIGIN: http://192.168.1.32:3103 + WIKIDECK_USER_AGENT: *ua + WIKIDECK_WIKIMEDIA_NODES_PER_IP: *perip + WIKIDECK_OPERATOR_CONTACT: *contact + WIKIDECK_MODES: classic,trending,draft + WIKIDECK_GAME_OPERATOR: Testnet C + WIKIDECK_GAME_PEERS: http://192.168.1.32:3101,http://192.168.1.32:3102 diff --git a/deploy/night/mine.ts b/deploy/night/mine.ts new file mode 100644 index 0000000..9e39fb6 --- /dev/null +++ b/deploy/night/mine.ts @@ -0,0 +1,100 @@ +// sim-testnet: multi-worker native RandomX miner for the PRIVATE wikideck-night testnet. +// Runs inside the wikideck:testnet image (which ships the native engine). Testnet only. +// Usage: node --experimental-strip-types /night/mine.ts +import { mkdirSync, readFileSync, writeFileSync, existsSync, appendFileSync } from 'node:fs'; +import { randomInt, webcrypto } from 'node:crypto'; +import { RandomX } from '/app/server/testnet/randomx.ts'; +import { CHAIN_ID, sha256, miningBlob, mintId, blockSchema, address } from '/app/server/testnet/consensus.ts'; +import { blockClaimMessage, NETWORK, type MiningTemplate, type TestnetBlock } from '/app/shared/testnet.ts'; +import { encryptWallet } from '/app/shared/wallet-backup.ts'; + +if (!NETWORK.includes('testnet')) throw new Error('testnet only'); +const blocks = Number(process.argv[2] ?? 45), workers = Number(process.argv[3] ?? 4); +if (!(workers >= 1 && workers <= 8)) throw new Error('1..8 workers'); +const NODES = ['http://node-a:3001', 'http://node-b:3001', 'http://node-c:3001']; +const WALLET_NAMES = ['alice', 'bob', 'carol', 'dave']; +// PUBLIC, TESTNET-ONLY password for the disposable wallets' browser backups (posted on #4). Never reuse. +const PASSWORD = process.env.TESTNET_WALLET_PASSWORD ?? 'wikideck-night-testnet'; +const STATE = process.env.STATE_DIR ?? '/state'; +const dir = `${STATE}/wallets`; +mkdirSync(dir, { recursive: true }); +const subtle = webcrypto.subtle; + +type W = { name: string; address: string; publicKey: string; privateKey: CryptoKey }; +async function loadOrCreate(name: string): Promise { + const keyFile = `${dir}/${name}.jwk.json`; + let jwk: JsonWebKey; + if (existsSync(keyFile)) jwk = JSON.parse(readFileSync(keyFile, 'utf8')); + else { + const kp = await subtle.generateKey({ name: 'ECDSA', namedCurve: 'P-256' }, true, ['sign', 'verify']) as CryptoKeyPair; + jwk = await subtle.exportKey('jwk', kp.privateKey); + writeFileSync(keyFile, JSON.stringify(jwk), { mode: 0o600 }); + } + const privateKey = await subtle.importKey('jwk', jwk, { name: 'ECDSA', namedCurve: 'P-256' }, true, ['sign']); + const pubJwk = { kty: jwk.kty, crv: jwk.crv, x: jwk.x, y: jwk.y }; + const pub = await subtle.importKey('jwk', pubJwk, { name: 'ECDSA', namedCurve: 'P-256' }, true, ['verify']); + const publicKey = Buffer.from(await subtle.exportKey('spki', pub)).toString('base64'); + const w = { name, address: address(publicKey), publicKey, privateKey }; + const backupFile = `${dir}/${name}.backup.json`; + if (!existsSync(backupFile)) writeFileSync(backupFile, JSON.stringify(await encryptWallet(privateKey, publicKey, PASSWORD), null, 2)); + return w; +} +const wallets = await Promise.all(WALLET_NAMES.map(loadOrCreate)); +writeFileSync(`${dir}/addresses.json`, JSON.stringify(Object.fromEntries(wallets.map(w => [w.name, w.address])), null, 2)); +console.log(`chain ${CHAIN_ID}; wallets: ${wallets.map(w => `${w.name}=${w.address.slice(0, 12)}`).join(' ')}`); + +async function api(node: string, path: string, body?: unknown) { + const r = await fetch(node + path, { method: body ? 'POST' : 'GET', redirect: 'error', signal: AbortSignal.timeout(60000), + headers: body ? { 'Content-Type': 'application/json' } : {}, body: body ? JSON.stringify(body) : undefined }); + const data = await r.json(); + if (!r.ok) throw new Error(data.error ?? `HTTP ${r.status}`); + return data; +} +const engines = Array.from({ length: workers }, () => new RandomX()); +const close = () => { for (const e of engines) e.close(); }; +process.once('SIGTERM', () => { close(); process.exit(0); }); + +let accepted = 0, round = 0, fails = 0; +// Each template costs several Wikipedia API calls, and Wikipedia rate-limits this egress IP: +// pace templates (>= MIN_GAP s apart) and back off exponentially on failure. +const MIN_GAP = Number(process.env.MIN_GAP ?? 45), sleep = (s: number) => new Promise(r => setTimeout(r, s * 1000)); +let lastTemplate = 0; +try { + while (accepted < blocks) { + const wait = lastTemplate + MIN_GAP * 1000 - Date.now(); if (wait > 0) await sleep(wait / 1000); + lastTemplate = Date.now(); + const node = NODES[round % NODES.length], w = wallets[accepted % wallets.length]; round++; + let template: MiningTemplate; + try { template = await api(node, '/api/mining/template', { owner: w.address, publicKey: w.publicKey }); fails = 0; } + catch (e) { fails++; const b = Math.min(60 * 2 ** (fails - 1), 600); console.error(`template ${node}: ${(e as Error).message} (fail ${fails}, backoff ${b}s)`); await sleep(b); continue; } + const h = template.header; if (h.chainId !== CHAIN_ID) throw new Error('wrong chain'); + const started = Date.now(); let attempts = 0; let found: { hash: string; nonce: number } | null = null; + let base = randomInt(0, 2 ** 40); const BATCH = 64; + while (!found) { + const results = await Promise.all(engines.map((e, i) => { + const hdr = { ...h, nonce: base + i * BATCH }; + return e.mine(h.key, miningBlob(hdr), h.target, 32, BATCH); + })); + attempts += BATCH * workers; base += BATCH * workers; + found = results.find(Boolean) ?? null; + if (!found && Date.now() / 1000 - h.createdAt > 600) break; // stale template + } + if (!found) continue; + h.nonce = found.nonce; + const hash = sha256(miningBlob(h)); + const signature = Buffer.from(await subtle.sign({ name: 'ECDSA', hash: 'SHA-256' }, w.privateKey, + new TextEncoder().encode(blockClaimMessage(hash)))).toString('base64'); + const block: TestnetBlock = { ...h, hash, tokenId: mintId(h), powHash: found.hash, signature, transactions: template.transactions }; + blockSchema.parse(block); + try { + const res = await api(node, '/api/blocks', block); + if (!res.accepted) { console.error(`not accepted: ${JSON.stringify(res).slice(0, 200)}`); continue; } + accepted++; + const secs = (Date.now() - started) / 1000; + const line = `#${h.height} ${w.name} "${h.article.title}" token=${block.tokenId} via=${node} ${attempts}H ${(attempts / secs).toFixed(0)}H/s`; + console.log(`[${accepted}/${blocks}] ${line}`); + appendFileSync(`${STATE}/mined.log`, `${new Date().toISOString()} ${line}\n`); + } catch (e) { console.error(`submit: ${(e as Error).message}`); } + } +} finally { close(); } +console.log('done'); diff --git a/deploy/night/testnet.sh b/deploy/night/testnet.sh new file mode 100755 index 0000000..4d43f0b --- /dev/null +++ b/deploy/night/testnet.sh @@ -0,0 +1,49 @@ +#!/bin/sh +# sim-testnet: private 3-node testnet fixture for WikiDeck Night 1 (poweredge-r350, LAN only). +# Usage (from the repo root): +# deploy/night/testnet.sh up build the image from this checkout and (re)start the 3 nodes +# deploy/night/testnet.sh rolling build, then restart node-a, b, c one at a time (waits for /healthz) +# deploy/night/testnet.sh busy print live matches + open lobbies across the 3 nodes +# deploy/night/testnet.sh mine N [W] mine N real RandomX blocks with W workers (default 4, max 8) +# deploy/night/testnet.sh status tip/height of each node +# deploy/night/testnet.sh down stop the nodes (volumes, i.e. the ledgers, are kept) +# STATE_DIR (default ~/.local/share/wikideck-night) holds the disposable testnet wallets and mined.log. +# It is outside the repo on purpose: never commit wallets. +set -eu +P=wikideck-night +LAN_IP=${LAN_IP:-192.168.1.32} +STATE_DIR=${STATE_DIR:-$HOME/.local/share/wikideck-night} +DC="docker compose -p $P -f compose.testnet.yaml -f deploy/night/compose.lan.yaml" +case "${1:-}" in + up) $DC build node-a && $DC up -d --no-build ;; + down) $DC down ;; + rolling) + # Never take the whole testnet dark: one node at a time, each must pass /healthz before the next. + $DC build node-a + for n in a b c; do + port=$(( 3100 + $(printf %d "'$n") - 96 )) + $DC up -d --no-build --no-deps node-$n + i=0 + until node -e "fetch('http://$LAN_IP:$port/healthz',{signal:AbortSignal.timeout(3000)}).then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"; do + i=$((i+1)); [ $i -ge 60 ] && { echo "node-$n not healthy after 120 s"; exit 1; }; sleep 2 + done + echo "node-$n healthy" + done ;; + busy) + # Sum of liveMatches + openLobbies over all hosted modes on all nodes (unreachable node counts 0). + node -e "Promise.all([3101,3102,3103].map(p=>fetch('http://$LAN_IP:'+p+'/api/game/modes',{signal:AbortSignal.timeout(5000)}).then(r=>r.json()).then(m=>m.modes.reduce((t,x)=>t+(x.stats?.liveMatches??0)+(x.stats?.openLobbies??0),0)).catch(()=>0))).then(v=>console.log(v.reduce((a,b)=>a+b,0)))" ;; + mine) + mkdir -p "$STATE_DIR" + W=${3:-4} + docker rm -f $P-miner >/dev/null 2>&1 || true + docker run -d --name $P-miner --network ${P}_default --cpus "$W" --memory 1600m \ + --user "$(id -u):$(id -g)" -e WIKIDECK_NETWORK=testnet -e WIKIDECK_GENESIS_TIME=1792411200 \ + -e MIN_GAP="${MIN_GAP:-45}" -v "$STATE_DIR":/state -v "$PWD/deploy/night":/night:ro \ + wikideck:testnet node --experimental-strip-types /night/mine.ts "$2" "$W" + echo "follow with: docker logs -f $P-miner" ;; + status) + for port in 3101 3102 3103; do + docker run --rm --network host wikideck:testnet node -e "fetch('http://$LAN_IP:$port/p2p/status').then(r=>r.json()).then(s=>console.log($port,'blocks',s.size,'tip',s.tip.slice(0,16))).catch(e=>console.log($port,'DOWN',e.message))" + done ;; + *) sed -n 2,11p "$0"; exit 1 ;; +esac diff --git a/docs/game/BALANCE.md b/docs/game/BALANCE.md new file mode 100644 index 0000000..c89e2bc --- /dev/null +++ b/docs/game/BALANCE.md @@ -0,0 +1,464 @@ +# WikiDeck: Edit War — balance report + +Owner: sim-balance (claude/wikideck#4). Harness: `shared/bots/`, `scripts/sim/` (PR #14). + +## Report v1: 2026-11-17 00:45 EST + +**Engine:** `night/2026-11-16` @ 482de6c/4a4941c (engine #25 and #27, keywords and Portals; card data #28). +**Bots:** view-only (`viewFor`); see Method. +**Card pool:** `docs/game/card-sample.json` (236 cards), derived per §1 with percentiles from the sample. +**Decks:** the 4 §2.1 starter decks, 4 "realistic owned" decks (12 random cards from the sample), and archetypes. +**Runs:** +- full field: 3,000 matches per ruleset (report mix, 4 workers; r350 is memory-limited tonight) +- focused starters + owned round robin: 2,000 matches per ruleset +- greedy lever sweeps: 2,000–3,000 per variant + +## v1.1 re-run on the real engine hooks (00:31) + +> **Seat figures are pre-#38.** Every first-player and seat number in this report was measured on an engine before #38, which removed `opponent.queuedCount` from `PlayerView`. The bots never read the queue split (`stateFromView` uses the total hand, and an invariance test covers it), so the effect should be nil. A re-run on the merged head is still the clean number, and it is open for v1.2. + +**Engine:** `night/engine/v1-1` @ 4a0dbd0, with `RULESET_V1_1` (DESIGN #32): `viral {base 1, cap 3}`, `encyclopedic {sides 1}`, `rising.powerDelta -1`, `cultureKeyword: home`, `costThresholds [26,39,51,63,78]`. It is the same focused run as above: the §2.1 starters plus 4 owned decks (cost thresholds and Culture keyword per v1.1), 2,000 matches per ruleset. + +| | v1 | **v1.1 (#32, exact)** | v1.1 + item 6 | +|---|---|---|---| +| starter deck WR, overall (FG / Head / Pio / Star) | 65 / 40 / 57 / 54 | **52 / 52 / 52 / 53** ✅ | 50 / 56 / 50 / 52 | +| starter pairings, min–max | 23–77% | 39–61% (only FG–Head 61%, n = 51, is outside 45–55) | 42–58% | +| owned vs starters (FG / Head / Pio / Star) | 37 / 54 / 40 / 41 | 51 / 42 / 47 / 43 | 51 / 41 / 46 / 48 | +| first player (pre-#38) | 53.4% | **51.2% [48.8–53.6]** ✅ | 51.0% [48.6–53.5] | +| decided in the first third | 4.1% | 3.3% | 4.1% | +| greedy > maxpower, lookahead-lite > greedy | 62%, 60% | 63%, 65% | 51%, 70% | + +Net keyword value per card under the exact v1.1 (counterfactual trigger value plus `powerDelta`): + +| keyword | v1.1 net per card | +|---|---| +| translated | **+1.64** | +| nostalgic | **+1.69** | +| viral | +1.15 (base included) | +| encyclopedic | +0.77 | +| rising | 1.71 − 1 = +0.71 | +| local | +0.69 | + +My earlier flat-+1 stand-in for encyclopedic overstated it: the real hook is worth +0.77, not +1.23. + +**Updated recommendation:** +1. **Ship #32 (v1.1) as it is.** Every starter's overall WR is 52–53% and first player is 51.2%. The one out-of-band pairing (FG vs Headliners at 61%) is within this run's noise. +2. **Item 6 is an optional v1.2 candidate.** `nostalgic` and `translated` at `powerDelta -1` would bring translated and nostalgic (about +1.65) in line with the others (0.7–1.15). It fixes FG vs Headliners (50%), but at n ≈ 55 per pairing it isn't clearly better overall (42–58% vs 39–61%). Decide it on a larger run. +3. **Owned vs starters is 42–51%:** roughly the variety-not-power goal, slightly weak against Headliners and Stargazers. + +Raw tables: + +#### `v1.1`: 2000 matches, 10 draws, 0 engine errors + +- First player (turn-1 initiative), symmetric games: **51.2% [48.8–53.6] (n=1641)** +- Decided early: 3.3% of decisive games locked in during the first third, 12.1% by half-time +- Skill: greedy>maxpower 63.3% (n=147), lookahead-lite>greedy 64.6% (n=99), greedy>random 83.5% (n=103) + +| starters (row vs col) | field-guide | headliners | pioneers | stargazers | vs all decks | +|---|---|---|---|---|---| +| field-guide | – | 61% (n=51) | 49% (n=53) | 56% (n=55) | 51.8% | +| headliners | 39% (n=51) | – | 44% (n=54) | 50% (n=54) | 52.1% | +| pioneers | 51% (n=53) | 56% (n=54) | – | 48% (n=58) | 52.3% | +| stargazers | 44% (n=55) | 50% (n=54) | 52% (n=58) | – | 53.2% | + +| owned (random 12 from card-sample) vs | field-guide | headliners | pioneers | stargazers | all | +|---|---|---|---|---|---| +| owned-0 | 39% | 32% | 41% | 46% | 40.3% | +| owned-1 | 50% | 43% | 42% | 38% | 45.1% | +| owned-2 | 55% | 37% | 62% | 44% | 49.7% | +| owned-3 | 62% | 55% | 43% | 45% | 55.0% | +| **all owned** | **51%** (n=233) | **42%** (n=196) | **47%** (n=198) | **43%** (n=198) | | + + +| keyword | power per card | games decided by it | cards played | +|---|---|---|---| +| rising | +1.71 | 13.3% | 1503 | +| nostalgic | +1.69 | 13.4% | 1791 | +| translated | +1.64 | 17.8% | 4976 | +| viral | +1.15 | 7.3% | 1852 | +| encyclopedic | +0.77 | 6.2% | 2349 | +| local | +0.69 | 6.4% | 4052 | + +#### `v1.1+item6`: 2000 matches, 9 draws, 0 engine errors + +- First player (turn-1 initiative), symmetric games: **51.0% [48.6–53.5] (n=1640)** +- Decided early: 4.1% of decisive games locked in during the first third, 12.6% by half-time +- Skill: greedy>maxpower 51.0% (n=147), lookahead-lite>greedy 70.0% (n=100), greedy>random 82.7% (n=104) + +| starters (row vs col) | field-guide | headliners | pioneers | stargazers | vs all decks | +|---|---|---|---|---|---| +| field-guide | – | 50% (n=52) | 50% (n=52) | 53% (n=55) | 49.7% | +| headliners | 50% (n=52) | – | 58% (n=55) | 48% (n=54) | 56.1% | +| pioneers | 50% (n=52) | 42% (n=55) | – | 42% (n=57) | 49.7% | +| stargazers | 47% (n=55) | 52% (n=54) | 58% (n=57) | – | 51.9% | + +| owned (random 12 from card-sample) vs | field-guide | headliners | pioneers | stargazers | all | +|---|---|---|---|---|---| +| owned-0 | 48% | 41% | 50% | 39% | 47.1% | +| owned-1 | 41% | 44% | 47% | 52% | 47.2% | +| owned-2 | 57% | 36% | 38% | 51% | 48.8% | +| owned-3 | 60% | 41% | 49% | 49% | 49.4% | +| **all owned** | **51%** (n=233) | **41%** (n=197) | **46%** (n=200) | **48%** (n=198) | | + + +| keyword | power per card | games decided by it | cards played | +|---|---|---|---| +| rising | +1.72 | 14.2% | 1546 | +| translated | +1.69 | 17.0% | 4787 | +| nostalgic | +1.68 | 13.2% | 1709 | +| viral | +1.15 | 8.8% | 1924 | +| encyclopedic | +0.79 | 6.7% | 2403 | +| local | +0.70 | 6.7% | 4127 | + + +### TL;DR for the council (report v1, 00:25; see the v1.1 re-run above for the updated recommendation) +1. **Seat and initiative are fine (pre-#38):** 51.5% [49.6–53.5] for the turn-1 initiative holder (n = 2,421 symmetric games), and seat 0 51.2%. Draws are 0.4%. The tie-break (total power) decides 4.7% of games. *This full-field run started before the bot-side queue-count fix (PR #14); the effect is at most a 0.02 nudge to the heuristic. The focused starters run, after the fix, gives a borderline 53.4% [51.0–55.8] under v1 and **51.0% [48.6–53.4]** under the recommended v1.1. Initiative only matters through reveal order, and v1.1 removes most of the order-sensitive power.* +2. **Keyword values are lopsided, confirming the critic's figures within 0.2:** + + | keyword | power per card | + |---|---| + | rising | +1.76 | + | translated | +1.53 | + | nostalgic | +1.45 | + | local | +0.65 | + | **viral** | **+0.19** | + | **encyclopedic** | **+0.19** | + + Values are counterfactual replays. viral and encyclopedic are dead: raising viral to amount 2 / cap 3 only reached +0.24, and encyclopedic amount 3 only +0.33. **Their conditions are the problem, not their numbers.** +3. **The starter decks are not 45–55% in v1:** pairings run 23–77%. Field Guide (rising + nostalgic) wins 65% overall and Headliners (local + viral) 40%. **With v1.1 items 1–6, every pairing is 45–55%.** +4. **Owned decks lose to the starters**, because they are about 51% viral and squashed into cost 2–4. That is the wrong way round for "NFTs give variety, not power". +5. **`costThresholds` squash fame.** The owned cost mix is 3/23/37/22/10/5. `[26,39,51,63,78]` gives 13/20/22/20/15/10, which hits the target and confirms the critic and designer-a. +6. **Pure extremes are dead under every lever:** heavy (cost 5–6 only) at 15%, swarm (cost ≤ 2) at 2%. Top-heavy (curve 1/1/2/2/3/3) is **57%**, so the §8 top-heavy retarget (≥ 40%) **passes**. Swarm and heavy aren't fixable without breaking curve decks: every lever that helps one hurts the other (sweep below). Treat them as non-decks. +7. **Matches are always 6 turns.** Only 6.5% of decisive games are decided in the first third, and 19.9% by half-time, so most games stay live to the end. +8. **Skill expression is healthy:** + - greedy beats maxpower ("always play the biggest card") 59.5%. §8 wants the naive line under 55% against a smart bot; it is at 40.5%. + - lookahead-lite beats greedy 63.7%. + - greedy beats random 77.5%. + +### Proposed v1.1 rule changes (concrete) + +| # | Change | Evidence | Status | +|---|---|---|---| +| 1 | `costThresholds: [26, 39, 51, 63, 78]` (designer-a's quantile rule) | owned cost mix 3/23/37/22/10/5 → 13/20/22/20/15/10 | **adopt** | +| 2 | `rising.powerDelta: -1` | rising +1.76 per card, the top keyword | **adopt** | +| 3 | viral: "+1, plus +1 per earlier reveal this turn, max +3" (critic) | viral +0.19; buffing amount/cap alone gives +0.24 | **adopt.** It needs the base +1. | +| 4 | encyclopedic: "+2 if *you* have no other cards here" (critic) | +0.19; amount 3 alone gives +0.33 | **adopt.** It needs the condition change. | +| 5 | Culture takes its home-stat keyword (critic) | owned decks drop from 51% viral to 18% | see the v1.1 results | +| 6 | `nostalgic.powerDelta -1`, `translated.powerDelta -1` | +1.45 / +1.53 per card, close to rising. Without them Field Guide beats Headliners 60% under 1–5 (approximated hooks). | **optional, v1.2**: see the v1.1 re-run above | +| 7 | No change for heavy or swarm | no lever fixes both | – | +| 8 | No change for seat or initiative | 48–52% target met | – | + +### Starter round robin and owned vs starters (focused run: §2.1 starters plus 4 owned decks, 2,000 matches per ruleset) + +| | v1 | v1.1 critic package (1–5) | **v1.1 critic + item 6** | +|---|---|---|---| +| starter pairings, min–max | **23–77%** | 40–60% | **45–55%** ✅ | +| starter deck WR (FG / Head / Pio / Star) | 65 / 40 / 57 / 54 | 50 / 48 / 54 / 54 | 51 / 55 / 52 / 52 | +| owned vs starters (FG / Head / Pio / Star) | 37 / 54 / 40 / 41 | 52 / 45 / 46 / 43 | 50 / 40 / 46 / 47 | +| first player (turn-1 initiative) | 53.4% [51.0–55.8] | 52.5% [50.1–54.9] | **51.0% [48.6–53.4]** ✅ | +| lookahead-lite > greedy | 60% | 70% | 66% | + +Each starter pairing has about 50–58 symmetric games (±13 pp at 95%). Each owned-vs-starter cell has about 200 games (±7 pp). + +**Net keyword value under v1.1** (counterfactual trigger value per card, plus `powerDelta`), from the 3,000-match critic-package full field: + +| keyword | v1.1 net per card | +|---|---| +| rising | 1.74 − 1 = **+0.74** | +| viral | 0.16 + 1 = **+1.16** | +| encyclopedic | ≈ 0.23 + 1 = **+1.23** (approximated) | +| translated | +1.59, or **+0.59** with item 6 | +| nostalgic | +1.58, or **+0.58** with item 6 | +| local | **+0.66** | + +So every keyword lands within 0.6–1.2. This matches the critic's numbers (viral +1.15, encyclopedic +0.9, rising +0.9) to within 0.35. + +**Recommendation: ship items 1–5 plus item 6** (`nostalgic.powerDelta -1`, `translated.powerDelta -1`). Without item 6, Field Guide still beats Headliners 60% and Headliners sits at 40–41% against every starter. With it, every pairing is inside 45–55. Owned decks then win 40–50% against the starters: the variety-not-power goal, slightly on the weak side. If v1.2 wants owned decks a bit stronger, the next lever is `local.amount 2` (Headliners and owned decks are about 25% local). + +Raw tables: + +#### `v1` (DEFAULT_RULESET), focused: 2000 matches, 9 draws, 0 engine errors + +- First player (turn-1 initiative), symmetric games: **53.4% [51.0–55.8] (n=1641)** +- Decided early: 4.1% of decisive games locked in during the first third, 15.5% by half-time +- Skill: greedy>maxpower 61.6% (n=146), lookahead-lite>greedy 60.0% (n=100), greedy>random 81.7% (n=104) + +| starters (row vs col) | field-guide | headliners | pioneers | stargazers | vs all decks | +|---|---|---|---|---|---| +| field-guide | – | 77% (n=52) | 57% (n=53) | 69% (n=54) | 64.8% | +| headliners | 23% (n=52) | – | 36% (n=56) | 35% (n=54) | 39.6% | +| pioneers | 43% (n=53) | 64% (n=56) | – | 52% (n=58) | 56.9% | +| stargazers | 31% (n=54) | 65% (n=54) | 48% (n=58) | – | 54.3% | + +| owned (random 12 from card-sample) vs | field-guide | headliners | pioneers | stargazers | all | +|---|---|---|---|---|---| +| owned-0 | 42% | 48% | 35% | 37% | 40.0% | +| owned-1 | 26% | 62% | 40% | 45% | 47.4% | +| owned-2 | 45% | 57% | 44% | 43% | 52.7% | +| owned-3 | 35% | 47% | 40% | 37% | 42.3% | +| **all owned** | **37%** (n=233) | **54%** (n=197) | **40%** (n=200) | **41%** (n=197) | | + + +| keyword | power per card | games decided by it | cards played | +|---|---|---|---| +| rising | +1.75 | 12.0% | 1822 | +| translated | +1.55 | 18.6% | 2263 | +| nostalgic | +1.54 | 10.3% | 2197 | +| local | +0.71 | 6.2% | 4300 | +| viral | +0.22 | 3.3% | 6034 | +| encyclopedic | +0.17 | 0.8% | 1042 | + +#### `v1.1-critic`: 2000 matches, 4 draws, 0 engine errors + +- First player (turn-1 initiative), symmetric games: **52.5% [50.1–54.9] (n=1646)** +- Decided early: 3.5% of decisive games locked in during the first third, 11.4% by half-time +- Skill: greedy>maxpower 59.6% (n=146), lookahead-lite>greedy 70.0% (n=100), greedy>random 80.8% (n=104) + +| starters (row vs col) | field-guide | headliners | pioneers | stargazers | vs all decks | +|---|---|---|---|---|---| +| field-guide | – | 60% (n=52) | 51% (n=53) | 51% (n=55) | 50.1% | +| headliners | 40% (n=52) | – | 41% (n=56) | 41% (n=54) | 48.3% | +| pioneers | 49% (n=53) | 59% (n=56) | – | 55% (n=58) | 54.2% | +| stargazers | 49% (n=55) | 59% (n=54) | 45% (n=58) | – | 54.1% | + +| owned (random 12 from card-sample) vs | field-guide | headliners | pioneers | stargazers | all | +|---|---|---|---|---|---| +| owned-0 | 46% | 43% | 46% | 49% | 43.8% | +| owned-1 | 50% | 43% | 40% | 34% | 44.1% | +| owned-2 | 52% | 47% | 56% | 51% | 52.7% | +| owned-3 | 63% | 49% | 43% | 42% | 52.4% | +| **all owned** | **52%** (n=233) | **45%** (n=198) | **46%** (n=198) | **43%** (n=199) | | + + +| keyword | power per card | games decided by it | cards played | +|---|---|---|---| +| rising | +1.71 | 12.8% | 1505 | +| nostalgic | +1.68 | 13.6% | 1789 | +| translated | +1.64 | 17.6% | 4491 | +| local | +0.70 | 6.3% | 4081 | +| encyclopedic | +0.21 | 1.7% | 2177 | +| viral | +0.13 | 0.9% | 2524 | + +#### `v1.1-critic-nerf`: 2000 matches, 14 draws, 0 engine errors + +- First player (turn-1 initiative), symmetric games: **51.0% [48.6–53.4] (n=1636)** +- Decided early: 4.0% of decisive games locked in during the first third, 12.7% by half-time +- Skill: greedy>maxpower 58.2% (n=146), lookahead-lite>greedy 66.0% (n=100), greedy>random 79.8% (n=104) + +| starters (row vs col) | field-guide | headliners | pioneers | stargazers | vs all decks | +|---|---|---|---|---|---| +| field-guide | – | 49% (n=51) | 50% (n=52) | 55% (n=55) | 50.6% | +| headliners | 51% (n=51) | – | 50% (n=54) | 46% (n=54) | 55.3% | +| pioneers | 50% (n=52) | 50% (n=54) | – | 47% (n=58) | 51.8% | +| stargazers | 45% (n=55) | 54% (n=54) | 53% (n=58) | – | 51.9% | + +| owned (random 12 from card-sample) vs | field-guide | headliners | pioneers | stargazers | all | +|---|---|---|---|---|---| +| owned-0 | 51% | 43% | 52% | 46% | 46.0% | +| owned-1 | 40% | 35% | 47% | 33% | 43.1% | +| owned-2 | 52% | 42% | 37% | 56% | 51.1% | +| owned-3 | 58% | 38% | 47% | 55% | 50.1% | +| **all owned** | **50%** (n=231) | **40%** (n=197) | **46%** (n=199) | **47%** (n=197) | | + + +| keyword | power per card | games decided by it | cards played | +|---|---|---|---| +| rising | +1.72 | 15.6% | 1534 | +| translated | +1.69 | 16.3% | 4315 | +| nostalgic | +1.66 | 13.3% | 1686 | +| local | +0.71 | 6.4% | 4113 | +| encyclopedic | +0.21 | 1.8% | 2221 | +| viral | +0.13 | 0.7% | 2571 | + + + +#### Critic package, full field (3,000 matches) + +#### `v1.1-critic`: 3000 matches, 14 draws, 0 engine errors + +- First player (turn-1 initiative), symmetric games: **49.7% [47.7–51.7] (n=2418)** +- Decided early: 8.0% of decisive games locked in during the first third, 17.9% by half-time +- Skill: greedy>maxpower 54.6% (n=238), lookahead-lite>greedy 62.7% (n=161), greedy>random 84.0% (n=169) + +| starters (row vs col) | field-guide | headliners | pioneers | stargazers | vs all decks | +|---|---|---|---|---|---| +| field-guide | – | 38% (n=8) | 50% (n=8) | 29% (n=7) | 60.6% | +| headliners | 62% (n=8) | – | 36% (n=11) | 56% (n=9) | 46.8% | +| pioneers | 50% (n=8) | 64% (n=11) | – | 50% (n=12) | 59.7% | +| stargazers | 71% (n=7) | 44% (n=9) | 50% (n=12) | – | 64.8% | + +| owned (random 12 from card-sample) vs | field-guide | headliners | pioneers | stargazers | all | +|---|---|---|---|---|---| +| owned-0 | 33% | 64% | 36% | 50% | 55.3% | +| owned-1 | 50% | 50% | 33% | 43% | 54.9% | +| owned-2 | 55% | 58% | 27% | 42% | 52.7% | +| owned-3 | 11% | 42% | 9% | 50% | 52.8% | +| **all owned** | **38%** (n=37) | **54%** (n=41) | **26%** (n=39) | **46%** (n=37) | | + +| archetype | WR vs other decks | +|---|---| +| curve | 58.6% [51.7–65.2] (n=203) | +| top-heavy | 52.2% [45.4–58.9] (n=205) | +| heavy | 23.4% [18.1–29.7] (n=205) | +| swarm | 0.9% [0.2–3.3] (n=220) | +| mono-Culture | 55.4% [48.9–61.6] (n=233) | +| mono-People | 47.5% [41.0–54.1] (n=221) | +| mono-Nature | 40.3% [34.0–46.9] (n=216) | + +| keyword | power per card | games decided by it | cards played | +|---|---|---|---| +| rising | +1.74 | 21.1% | 3184 | +| translated | +1.59 | 15.8% | 3450 | +| nostalgic | +1.58 | 19.7% | 2871 | +| local | +0.66 | 7.5% | 4696 | +| encyclopedic | +0.23 | 2.0% | 4548 | +| viral | +0.16 | 1.5% | 4733 | + + + +### v1 full-field detail + +#### `v1` (DEFAULT_RULESET): 3000 matches, 13 draws, 0 engine errors + +- First player (turn-1 initiative), symmetric games: **51.5% [49.6–53.5] (n=2421)** +- Decided early: 6.5% of decisive games locked in during the first third, 19.9% by half-time +- Skill: greedy>maxpower 59.5% (n=237), lookahead-lite>greedy 63.7% (n=160), greedy>random 77.5% (n=169) + +| starters (row vs col) | field-guide | headliners | pioneers | stargazers | vs all decks | +|---|---|---|---|---|---| +| field-guide | – | 70% (n=10) | 57% (n=7) | 83% (n=6) | 67.4% | +| headliners | 30% (n=10) | – | 33% (n=12) | 56% (n=9) | 51.7% | +| pioneers | 43% (n=7) | 67% (n=12) | – | 64% (n=14) | 67.0% | +| stargazers | 17% (n=6) | 44% (n=9) | 36% (n=14) | – | 53.3% | + +| owned (random 12 from card-sample) vs | field-guide | headliners | pioneers | stargazers | all | +|---|---|---|---|---|---| +| owned-0 | 29% | 40% | 15% | 58% | 51.0% | +| owned-1 | 33% | 33% | 67% | 56% | 51.6% | +| owned-2 | 27% | 62% | 62% | 25% | 59.7% | +| owned-3 | 43% | 50% | 56% | 70% | 57.7% | +| **all owned** | **31%** (n=42) | **48%** (n=48) | **44%** (n=36) | **51%** (n=43) | | + +| archetype | WR vs other decks | +|---|---| +| curve | 50.0% [43.5–56.5] (n=222) | +| top-heavy | 56.8% [50.2–63.1] (n=222) | +| heavy | 15.3% [11.0–20.9] (n=203) | +| swarm | 2.0% [0.9–4.6] (n=250) | +| mono-Culture | 42.2% [35.7–48.9] (n=211) | +| mono-People | 51.7% [44.9–58.4] (n=207) | +| mono-Nature | 56.0% [49.6–62.3] (n=232) | + +| keyword | power per card | games decided by it | cards played | +|---|---|---|---| +| rising | +1.76 | 15.6% | 4027 | +| translated | +1.53 | 17.5% | 1266 | +| nostalgic | +1.45 | 16.4% | 3610 | +| local | +0.65 | 6.1% | 6781 | +| viral | +0.19 | 2.3% | 8030 | +| encyclopedic | +0.19 | 1.4% | 1002 | + + +*Starter-vs-starter cells here have small n; the focused round robin above has the real numbers. Keyword table: counterfactual trigger value per card (excluding any powerDelta).* + + +### Lever sweeps (greedy mirrors, real pool) + +Before keywords were implemented (engine core @ c938407), I swept these levers. Each row is 3,000 greedy-mirror games. Columns are win rate vs the other decks. + +| variant | heavy | swarm | curve | first player | +|---|---|---|---|---| +| v1 | 11.9% | 0.9% | 64.5% | 50.5% | +| `energyCarryMax 2` | 17.8% | 0.9% | 59.3% | 51.0% | +| `energyByTurn [2..7]` | **42.4%** | 0.0% | 41.3% | 49.7% | +| `powerByCost [0,2,3,4,6,8,10]` | 8.1% | 13.4% | 65.6% | 49.3% | +| `powerByCost [0,2,4,5,7,8,10]` | 0.3% | **36.1%** | 62.1% | 49.7% | +| `laneCapacity 4` | 10.3% | 0.6% | 63.6% | 50.7% | +| `onTopicBonus [0,2,2,2,2,3,3]` | 10.2% | 6.8% | 62.2% | 49.7% | + +**Reading:** energy 2→7 rescues heavy but kills swarm and curve, and flatter power rescues swarm but kills heavy. Neither helps the normal decks. Keep v1's curve. + +### Caveats +- Bots aren't people. Greedy doesn't plan energy carry and queues one card at a time; lookahead-lite is shallow. +- Hidden cards in determinizations are sampled from the loaner pool, not from the opponent's real decklist. +- Some critic-package items need engine hooks that don't exist yet, so this run approximates them: + + | item | modelled as | exact? | + |---|---|---| + | viral base +1 | `powerDelta +1` | yes | + | encyclopedic "your side only" | `powerDelta +1`, about the critic's measured +0.9 | no: an approximation until engine-b adds `encyclopedic {sides 1}` | + + `powerDelta > 0` is a sim stand-in: the engine's derivation clamps `powerDelta` to [−3, 0]. +- Owned decks are 4 random 12-card draws, not curated. They have no curve fill, so some are lopsided. + + +## Method + +**Engine.** Every match runs on the real rules engine (`shared/game`, public `index.ts` API only), through +`shared/bots/game-adapter.ts`. Nothing in the sim re-implements rules. The engine commit is named in each +results section. + +**Bots** (`shared/bots/index.ts`, each a pure `(state, player, rng) => action`): +- `random`: a uniformly random legal play or commit. +- `maxpower`: always queues the highest printed-power card it can afford, in a random legal lane. This is the + DESIGN §8 "always play the highest-power card" line. +- `greedy`: one-ply. It takes the action whose result scores best on a lane heuristic: a soft lead per Topic + plus total power. The heuristic sees the bot's own queued plays and the opponent's *revealed* cards only. +- `lookahead-lite` / `lookahead`: flat Monte Carlo over the top 3–4 greedy candidates, with 4–8 rollouts + each. Before each rollout, the opponent's queued plays are taken back and its hand and deck reshuffled + (determinization), so the bot never reads hidden information. + +**Seats.** Plans are simultaneous: seat 0 queues and commits, then seat 1. Neither bot can see the other's +queue, so the order leaks nothing. "First player" means the seat with **initiative on turn 1**. + +**Schedule.** Per ruleset, matches are drawn from a fixed mix of bot pairings with random seats: + +| pairing | share | used for | +|---|---|---| +| greedy vs greedy | 55% | balance (decks, cards, keywords, first player) | +| lookahead-lite vs lookahead-lite | 12% | balance with a stronger player | +| random vs random | 5% | baseline | +| greedy vs lookahead-lite, maxpower vs lookahead-lite, maxpower vs greedy, random vs greedy | 28% | skill expression | + +Deck, card and keyword statistics use only **bot-symmetric** games (the same bot on both seats). Deck pairs are +drawn uniformly, mirrors included; the per-deck win rate excludes mirrors. `--mix fast` (greedy only) is used for +quick lever sweeps. + +**Decks.** These are built from a card pool by `defaultDecks()`: +- 6 seeded starter decks (`starterDeck`) +- `curve` (cost counts 2/3/3/2/1/1) +- `top-heavy` (1/1/2/2/3/3) +- `heavy` (cost 5–6 first: the §8 "all-famous" line) +- `swarm` (cost ≤ 2 first) +- `mono-` curve decks for factions with ≥ 6 cards +- `kw-` curve decks for keywords on ≥ 3 cards + +The pool is the engine's preview pool, or council-data's `card-sample.json` derived per DESIGN §1 +(percentile → fame → cost, home stat, faction keyword). Loaner power always follows the ruleset's +`powerByCost`. + +**Metrics.** +- Win rates with Wilson 95% intervals. **↑/↓** marks an interval that excludes 50%. +- First-player WR: initiative holder on turn 1, symmetric games. +- Match length in turns. +- "Decided early": the turn from which the eventual winner led on the heuristic until the end, as a fraction of + the match. +- Per-card WR: the win rate of the side that played the card. +- Per-stat correlations. +- **Keyword value:** a counterfactual. Each finished match is replayed with the same actions and the keyword + removed from one side. We report the side's lost total power per keyword card, and how often removing the + keyword made the result worse for that side ("games decided by it"). DESIGN §10.1 asks for + `keywordParams..powerDelta` when a keyword is worth more than about 1 power. + +**Reproduce.** +``` +SIM_POOL=docs/game/card-sample.json SIM_RULESETS=scripts/sim/variants/v1.json \ + npx tsx scripts/sim/run.ts --engine game --matches 5000 --workers 10 --out sim-out +python3 scripts/sim/summary.py sim-out +``` + +**Limits.** +- Bots are not humans. Greedy undervalues saving energy and bluffing. +- Lookahead rollouts are short. +- Deck archetypes are built automatically, not tuned by hand. +- The 100-card sample is skewed: Culture 53, People 30, Nature 9, History 5, Science 3, Space 0. diff --git a/docs/game/CARD_DATA.md b/docs/game/CARD_DATA.md new file mode 100644 index 0000000..105b0df --- /dev/null +++ b/docs/game/CARD_DATA.md @@ -0,0 +1,149 @@ +# Card data: real stat distributions (council-data) + +Status: **final for tonight**, 236 fully enriched cards, generated 2026-11-16 23:20 EST. Sampling stopped early on night-lead's request because Wikimedia was rate-limiting (429) our shared egress IP. 330 cards were picked; the first 236 finished enrichment. + +**Method:** `scripts/night/card_sample.py` draws random ns0 articles in batches of 20 and keeps those that pass the `server/wiki.ts` filter: a thumbnail from upload/thumb.wikimedia.org and an intro extract of at least 40 characters. About 44% of random pages pass. Each card is enriched with the same API parameters as `server/enrichment.ts`: +- six completed months, Jun–Oct 2026; attention uses October +- monthly views summed from the daily REST pageviews + +On top of that it adds Wikidata P31 and a 30-day drift (views 10-17..11-15 vs 09-17..10-16). + +**Politeness:** the sampler runs serially at 1 request a second or slower, honours Retry-After, and caches every response to disk. `scripts/night/card_analyze.py` produces everything below, plus the `percentiles` (99 cut points each, for DESIGN §1.1) in `card-sample.json`. + +## Files +- `card-sample.json`: `cards[]` with the `PageEnrichment` shape, plus `category` (legacy `category()`), `instanceOf` (P31), `faction` (the P31 rules below), `tiers` and `drift30`. Top level: `percentiles`, `tierBreakpoints`, `factionRules` and `note`. +- `starter-cards.json`: the loaner **pool**, 20 real frozen snapshots (a `MintStatsSnapshot` in `snapshot`). It also holds `starterDeckPageIds`: the 48 DESIGN §2.1 starter titles with their real pageIds and `cardId`s. + +## Headline findings (236 cards) +1. **Raw scores are compressed.** + + | score | median | p10–p90 | max | + |---|---|---|---| + | attention | 32 | 20–53 | 77 | + | depth | 63 | 54–73 | 87 | + | reach | 20 | 0–45 | 70 | + + No honest card reaches 100. Use `percentiles` (§1.1) or the 1–10 tiers, never the raw 0–100 values. +2. **Correlations (Spearman):** + - attention and depth: 0.61, so these two double-count fame + - reach is nearly independent of both (0.17 with attention, 0.02 with depth) +3. **Reach has a hard floor:** 18% of cards (42) have 0 other languages, so reach is 0. Under the §1.1 counting, all of them get pct_reach of about 8. +4. **Raw values are long-tailed:** + + | value | median | p90 | max | + |---|---|---|---| + | monthly views | 82 | 1,576 | 42k | + | pageBytes | 6.1 KB | 24 KB | | + | languageCount | 3 | 22 | | +5. **Trend is mostly down:** + - 65% of cards have a negative trendPercent, 34% positive; median −9.5% + - 16% swing by more than 50% either way + - null: 1% +6. **Live drift is small in score terms.** The 30-day median |pageview drift| is 22% (p90 60%). That moves attention by only **1.7 points** (p90 6.3), so at-mint and live values differ little unless someone inflates them. +7. **The legacy `category()` split is very skewed:** + + | category | share | + |---|---| + | Culture | 56% | + | People | 26% | + | Nature | 8% | + | History | 8% | + | Science | 1% | + | Space | 0.4% | +8. **Candidate factions from P31:** + + | faction | share | + |---|---| + | People | 29% | + | Places | 20% | + | Nature | 8% | + | Structures | 7% | + | Works | 5% | + | Events | 5% | + | Organisations | 4% | + | Ideas & Tech | 3% | + | Sport | 3% | + | unclassified | 14% | + + Suggested 6 for v2: People, Places, Nature, Works & Culture (Works + Organisations + Sport), Structures, Events & Ideas, plus a neutral fallback. + +## Full tables + +Sample: **236 cards**; ~44% (149/340 logged during sampling) of random pages pass the illustrated filter. Pageviews available for 236. + +| stat | n | min | p10 | p25 | median | p75 | p90 | max | mean | skew | +|---|---|---|---|---|---|---|---|---|---|---| +| attention | 236 | 13 | 20 | 25 | 32 | 41 | 53 | 77 | 35 | 0.78 | +| depth | 236 | 48 | 54 | 58 | 63 | 68 | 73 | 87 | 64 | 0.42 | +| reach | 236 | 0 | 0 | 10 | 20 | 33 | 45 | 70 | 23 | 0.36 | +| pageBytes | 236 | 772 | 1847 | 3084 | 6110 | 12805 | 24412 | 168332 | 11691 | 4.61 | +| languageCount | 236 | 0 | 0 | 1 | 3 | 9 | 22 | 124 | 8 | 4.14 | +| monthlyViews | 236 | 5 | 16 | 30 | 82 | 300 | 1576 | 42025 | 812 | 9.82 | +| dailyAverage | 236 | 0.2 | 0.5 | 1.0 | 2.6 | 9.7 | 50.8 | 1355.6 | 26.2 | 9.82 | +| trendPercent | 234 | -86.6 | -49.3 | -26.3 | -9.5 | 5.3 | 31.2 | 388.9 | -3.6 | 4.11 | +| drift30Percent | 235 | -94.7 | -58.2 | -33.8 | -12.9 | 1.0 | 27.7 | 2268.7 | -4.2 | 14.07 | + +**Spearman rank correlations** (cards with pageviews): + +| | attention | depth | reach | trendPercent | drift30Percent | +|---|---|---|---|---|---| +| attention | 1.00 | 0.61 | 0.17 | 0.35 | 0.33 | +| depth | 0.61 | 1.00 | 0.02 | 0.15 | 0.14 | +| reach | 0.17 | 0.02 | 1.00 | 0.00 | 0.09 | +| trendPercent | 0.35 | 0.15 | 0.00 | 1.00 | 0.31 | +| drift30Percent | 0.33 | 0.14 | 0.09 | 0.31 | 1.00 | + +(n=234; attention~monthlyViews, depth~pageBytes, reach~languageCount are monotonic so their rank correlations are identical.) + +**trendPercent sign:** positive 79 (34%), negative 153 (65%), zero 2; null (prior month 0 or no views) 2. |trend| > 50%: 38; > 100%: 7. + +**30-day drift** (views 10-17..11-15 vs 09-17..10-16): median |drift| 22%, p90 |drift| 60%. Attention score change implied: median 1.7 points, p90 6.3 points. + +**attention histogram (deciles 0-9,10-19..90-100):** 0 19 74 74 36 20 12 1 0 0 +**depth histogram (deciles 0-9,10-19..90-100):** 0 0 0 0 2 72 117 38 7 0 +**reach histogram (deciles 0-9,10-19..90-100):** 42 60 53 43 21 15 1 1 0 0 + +Reach = 0 (no other languages): 42; reach 100 (>=999 langs) impossible in practice, max langs 124. Attention null: 0; attention 0: 0. + +**Sum of three stats:** min 73, p10 89, p25 102, median 116, p75 135, p90 156, max 222 + +**Legacy `category()` (server/wiki.ts):** Culture 133, People 62, Nature 19, History 18, Science 3, Space 1 + +**Top Wikidata P31 classes:** human 64, taxon 16, village 7, commune of France 6, river 5, human settlement 4, musical group 3, building 3, gene 3, village of Poland 2, civil parish 2, protest 2, legislative election 2, castle 2, events in a specific year or time period 2, township of Pennsylvania 2, film 2, company 2, island 2, rural municipality of Austria 1, municipality of Austria 1, municipality of Brazil 1, television film 1, nor'easter 1, rail company (Japan) 1, municipality 1, association football match 1, final 1, local government area of Victoria 1, plant disease 1, basketball team season 1, mosque 1, functional programming language 1, purely functional programming language 1, dependently typed programming language 1, programming language 1, free software 1, proof assistant 1, municipality of Croatia 1, municipality of Bangladesh 1 + +No Wikidata item: 0; no P31: 13 + +**Most frequent category words (cards containing):** stubs 81, births 55, people 50, from 50, century 46, living 33, geography 30, american 29, deaths 28, united 27, county 27, states 23, established 21, establishments 20, alumni 18, places 17, university 16, buildings 16, state 15, national 14, structures 14, male 13, players 12, district 11, villages 11, sportsmen 11, members 11, described 10, football 10, sports 10, city 10, film 10, british 9, companies 9, populated 9, sportspeople 9, biography 9, york 9, women 8, taxa 8, germany 8, politicians 8, television 7, writers 7, french 7, genera 7, based 7, communes 7, language 7, expatriate 7, named 7, olympics 7, completed 7, historic 7, register 7, faculty 6, pennsylvania 6, civil 6, history 6, california 6 + + +## Rank-normalised tiers (1–10) + +Tier = 1 + number of breakpoints the score is **>=**. Breakpoints are the sample deciles p10..p90 of the 0–100 score. Ties make some tiers thin (scores are integers). + +| stat | p10 | p20 | p30 | p40 | p50 | p60 | p70 | p80 | p90 | +|---|---|---|---|---|---|---|---|---|---| +| attention | 20 | 24 | 27 | 30 | 32 | 35 | 39 | 44 | 53 | +| depth | 54 | 57 | 59 | 61 | 63 | 65 | 67 | 69 | 73 | +| reach | 0 | 10 | 10 | 16 | 20 | 26 | 30 | 36 | 45 | + +Resulting tier counts — attention: None:0 1:19 2:27 3:24 4:23 5:23 6:17 7:28 8:25 9:22 10:28 +; depth: 1:14 2:23 3:26 4:21 5:25 6:26 7:22 8:21 9:30 10:28 +; reach: 1:0 2:42 3:0 4:30 5:30 6:32 7:21 8:27 9:27 10:27 + + +## Candidate factions (Wikidata P31 rules) + +| faction | n | share | median attention | median depth | median reach | example | +|---|---|---|---|---|---|---| +| People | 68 | 29% | 31 | 65 | 22 | Salahuddin of Aceh | +| Places | 48 | 20% | 28 | 61 | 32 | St. Georgen am Längsee | +| Other | 34 | 14% | 40 | 65 | 16 | Village (Pennsylvania) | +| Nature | 20 | 8% | 30 | 56 | 29 | Dichromorpha viridis | +| Structures | 17 | 7% | 26 | 57 | 10 | Pathrail Mosque | +| Works | 12 | 5% | 36 | 63 | 13 | The Best of Men | +| Events | 12 | 5% | 40 | 72 | 13 | April 2021 nor'easter | +| Organisations | 10 | 4% | 48 | 68 | 10 | Hiroshima Electric Railway | +| Ideas & Tech | 8 | 3% | 30 | 63 | 16 | Agda (programming language) | +| Sport | 7 | 3% | 27 | 70 | 16 | 1912 Argentine Primera División final | + +Unclassified P31 labels: typeface 1, annexation 1, position 1, family 1, historic site 1, automobile manufacturer 1, historical society 1, stock character 1, pigeon breed 1, shopping center 1, Wikimedia list article 1, clinical sign 1, tram route 1, rubber-tyred tram 1, oil refinery 1, waterfall 1, orisha 1, water deity 1, Loa 1, arch 1, award 1, sex scandal 1, military base 1, artillery battery 1 diff --git a/docs/game/DESIGN.md b/docs/game/DESIGN.md new file mode 100644 index 0000000..1d41e9a --- /dev/null +++ b/docs/game/DESIGN.md @@ -0,0 +1,673 @@ +# WikiDeck: Edit War — game design v1 (draft) + +**Status:** v1 DRAFT, freeze target 23:30 EST 2026-11-16. +**Owners:** council-designer-a owns sections 0–9 (research, card derivation, rules). council-designer-b +owns sections 10–12 (keywords, peer-hosted modes, worked example). council-critic reviews. +Every number in **`code font`** is a rules-config key (see §9). Modes can override any of them. + +A two-player lane game for 3–6 minute matches. Each player has a 12-card deck and there are 3 +**Topics** (lanes) with 3 slots per side. There are 6 turns, both players plan at the same time, and +energy ramps from 1 to 6, with 1 unspent energy carried over. Reveals interleave one card at a time. +Win 2 of the 3 Topics. Each Topic is judged on one Wikipedia stat (**Attention**, **Depth** or +**Reach**), and a card is stronger in a Topic that matches its best stat. Fame (how high a card's +stats are overall) sets its **cost**, not its efficiency, so famous cards are sidegrades. They are +not upgrades. + +--- + +## 0. Research summary (what we took, what we left) + +| Game | Why it's fun | Taken | Left | +|---|---|---|---| +| Marvel Snap | 3-minute matches; simultaneous turns; 3 lanes, so the decision is *where*, not just *what* | lanes, about 6 turns, simultaneous planning, small deck | stakes betting (modes only); we deliberately diverge in lane size (3), energy carry-over, interleaved alternating reveals, stats visible from turn 1 with hidden Portals, and on-topic tie-breaks | +| Hearthstone | mana curve; readable cards; tempo | energy = turn number, curve-shaped costs | 30-card decks and 15-minute matches; hero powers | +| Magic: The Gathering | factions (colours) with distinct identities; deckbuilding depth | 6 factions with their own keyword flavour | land screw (resource variance); the stack; long text | +| Balatro | huge "moment" when a combo goes off; simple base rules plus modifiers | lane modifiers (Portals) as the run-to-run variety | single-player scoring | +| Slay the Spire | readable intents; every card is a choice | open information about lane state and power | roguelike runs (could be a mode) | +| Gwent | rows; best 2 of 3; passing and bluffing | best 2 of 3 Topics; hidden commitments | multi-round card advantage (too long) | +| Pokémon TCG | type advantage | on-topic bonus (card stat matches lane stat) | energy attachment; coin flips | +| Top Trumps | instantly understood: "my number beats yours" | lanes judged on one stat | picking the stat is solved play (always pick your best) | +| Dominion | deck building as play | — (too long for 3–6 min) | — | + +**What is ours, not borrowed:** +- (a) each Topic is judged on one Wikipedia stat (the Top Trumps twist) +- (b) cost comes from an article's fame instead of being printed +- (c) a trend arrow driven by live pageviews +- (d) a total-power and consensus tie-break instead of stakes betting +- smaller choices: 3 slots per lane, 1 carried-over energy, interleaved reveals, and stats visible + from turn 1 with hidden Portals + +The core loop is a lanes game in the style of Snap. The Top Trumps twist is that each lane asks for +one Wikipedia stat. That makes every stat matter and gives each turn its main decision: play the card +on-topic for the bonus, or put it where the fight is. + +--- + +## 1. Card derivation (card data → game card) + +The engine never reads raw 0–100 stats as power. Every game card is derived **deterministically** from a +`CardInput` that the match host freezes at match start: + +``` +CardInput = { cardId, pageId, title, category, rarity, + snapshot: MintStatsSnapshot, // at mint, immutable + live: { trendPercent: number | null, dailyAverage: number | null }, // frozen at match start + check: 'verified' | 'unverified' | 'unchecked' | 'loaner', // set by the host (§1.10) + pinned?: { cost, home, faction } } // loaners only (§2.1): replaces §1.1–1.5 +``` + +### 1.1 Percentiles (rank-normalisation) +For each stat `s` in {attention, depth, reach}, `pct_s` = the percentile (0–100, integer) of the card's +snapshot score in the reference table `percentiles.`. That table holds 99 ascending cut points from +council-data's `docs/game/card-sample.json`. +`pct_s` = the number of cut points strictly below the score, plus half the number equal to it, rounded +down. A `null` attention gives `pct_attention = null`. + +### 1.2 Fame → Cost +`fame` = the integer mean (rounded half up) of the non-null percentiles. +`cost` = 1 + the number of thresholds in `costThresholds` (5 ascending values, default +`[26, 39, 51, 63, 78]` in v1.1) that are ≤ `fame`. So cost runs 1–6. +**Thresholds are data, not guesses (v1.1).** `fame` is a *mean* of up to 3 percentiles, so it clusters +around 50 even though each percentile is uniform. The v1.0 values `[15, 35, 55, 75, 90]` treated fame as +uniform, so 82% of the pool landed on cost 2–4 (3/23/37/22/10/5 %). `costThresholds` is therefore set to +the fame values at the **15/35/55/75/90 % points of the reference sample** (the same `card-sample.json` +whose `percentiles` table §1.1 uses). That's the integer set that brings the sample's cost spread closest +to the target 15/20/20/20/15/10 %. The v1.1 defaults come from the 236-card sample (fame 8–98) and +give 13/20/22/20/15/10 %. Whenever council-data refreshes the sample, the percentile table and +`costThresholds` are regenerated together and ship as one change. Pinned loaners (§2.1) are unaffected. + +### 1.3 Power +`power` = `powerByCost[cost]`, default `[_, 1, 2, 4, 6, 8, 10]` (cost 1 → 1 … cost 6 → 10). The +critic's sim showed that heavy decks were too weak with `[…5,7,9]`. +Power depends **only on cost**. Two cards of the same cost have the same base power, whatever their +fame. Inflating stats (forged snapshots, template shopping) only moves a card up the curve. It never +makes a card more efficient. + +### 1.4 Home stat +`home` = the stat with the highest `pct_s`. Ties are broken in this order: depth, reach, attention. +Depth and reach are the hardest to inflate. A `null` stat can never be home. +When a card is in a Topic whose stat equals its `home`, it gets **+`onTopicBonus[cost]`** power +(default `[0, 1, 1, 2, 2, 3, 3]`, i.e. ⌈cost/2⌉). +On-topic efficiency is then about 2 power per energy at every cost (2.0 / 1.5 / 2.0 / 1.75 / 2.0 / 2.0). +Off-topic, cheap cards are weaker (1.0) than expensive ones (1.5). Cheap cards want their Topic, and +big cards are flexible. + +### 1.5 Faction +`faction` = the card's `category` (Space, Nature, People, Science, History, Culture), from +`server/wiki.ts`. Culture is about half the pool, so faction keywords are written so that a +mono-faction deck gains no consistency edge (§10: no v1 keyword scales with faction count). + +### 1.6 Trend (live, small, capped) +`trend` = +1 if `live.trendPercent ≥ trendUp` (default 25), −1 if `≤ trendDown` (default **−200**, +which means there is **no down arrow in v1**: 69% of cards trend negative, so a ▼ would mostly land as +a quiet penalty on famous owned cards; modes can turn it back on), otherwise 0. A `null` value gives 0. Trend also needs `live.dailyAverage ≥ trendMinDaily` (default +**20**), because percentages on tiny articles are noise; otherwise trend is 0. The host computes it **once at match start**, and it is frozen for +the match. It shows as an arrow (▲), not a number. It adds to power in every Topic. *Why no ▼ by default:* 69% of the sample has a +negative `trendPercent`, and only busy (mostly owned, famous) cards pass `trendMinDaily`, so a ▼ would quietly penalise collectors. +Modes may turn it back on with e.g. `trendDown: -25`. + +### 1.7 Rarity +The hash-derived `rarity` (`shared/protocol.ts:38`) is **cosmetic in v1** (frame colour only). Mining luck must not +become power or keyword choice. + +### 1.8 Keyword +Each card has at most **one** keyword: cost-1 cards are vanilla, and the others get their faction's keyword (§10.1). + +### 1.9 Card face (phone) +The card face shows **cost** (top-left), **power** (big, centre; the bonus shows as a "+N" badge on the home icon when the card is on-topic), a **home-stat icon** +(📣 attention / 📚 depth / 🌐 reach), an optional trend arrow, and one keyword word. That is two +numbers, plus the live lane power when the card is on the board. + +### 1.10 Plausibility (anti-forgery, off-chain) +When `verifyStats` is true (the default for hosted matches), the match host checks each owned card's +snapshot before the match: +`pageBytes` against that revision's byte size, `languageCount` ≤ the live count + 5, and views for the +snapshot month within ±10 % of the pageviews API. +A card that fails is played with its live values. The **host replaces `snapshot`** with a snapshot +built from the live values (`deriveStats` on the live bytes, languages and views) **before** it builds +the `CardInput`. The match log marks the card `unverified`. +The engine does no I/O and only ever sees one version of each card. +- **Caching:** results are cached per `(pageId, revisionId, snapshotMonth)`. They are immutable, so a + cached pass or fail never expires. Live values for a failed card are cached for 24 h. +- **Card can't be verified** (the pageId or revision doesn't exist, or the title or category doesn't + match): the card is **rejected at deck validation**, and the player is asked to swap in a loaner. +- **API failure:** if Wikipedia can't be reached and nothing is cached, the card plays from its snapshot + with `check: 'unchecked'`. The engine then caps its cost at `uncheckedCostCap` (default **4**), and + power follows the capped cost. Matches are never blocked. +- The engine's only use of `check` is that cost cap. Loaner cards are `check: 'loaner'`. + +--- + +## 2. Decks + +- **Deck size:** exactly `deckSize` cards (default **12**). +- **Copies:** at most `maxCopiesPerPage` cards with the same `pageId` (default **2**). Owned and loaner + copies count **together**. Each copy keeps its own snapshot, so the two copies may differ in cost. +- **Deck validation** (engine): the size is right, the copy limit holds, every card's `check` is + valid, and there are no more loaners than `maxLoaners`. An invalid deck can't start a match. +- **Owned cards:** any card the player's wallet owns at match start. Ownership is read off-chain. The + match never moves, locks or burns a card. +- **Loaner cards:** off-chain preview cards with a fixed `CardInput`, shipped with the game data + (`docs/game/starter-cards.json`, picked by council-data: about 24 pageIds across all 6 categories, + with frozen, hand-checked snapshot stats, including the 4 cards in `shared/catalog.ts`). + Loaners follow the same curve (§2.1 pins their cost, home and faction), so they are no weaker or stronger than owned cards. +- **Starter decks:** `starterDecks` (default: 4 fixed 12-card loaner decks). Each one has two leading + factions and an average cost of 3.0–3.3, and is **curve-shaped**: at least 3 cards of cost 4 or more, + and at most 4 of cost 1. A new player picks one and can play at once. +- **Mixed decks:** an owned deck may fill any slots with loaners, up to `maxLoaners` (default 12, which + means no limit). Owning NFTs gives **variety**, not power: owned and loaner cards follow the same + curve. + +### 2.1 Starter decks v1 *(owner: council-designer-b)* + +These are the default `starterDecks`: four 12-card loaner decks. +- **Every deck has the same curve:** costs `1,1,2,2,3,3,3,4,4,5,5,6`. That's an average of 3.25, with 5 cards of cost 4 or more and 2 of cost 1. +- **Every deck has the same shape:** 6 cards from each of two factions, and 4 cards for each home stat. So every deck can play on-topic in every lane. +- **Loaner values are pinned.** Cost, home and faction are hand-set (not derived from `starter-cards.json`), so a loaner carries + `pinned: { cost, home, faction }`. For `check: 'loaner'` the engine takes these instead of §1.1–1.5. + Everything after them still applies: `powerByCost`, `onTopicBonus`, `vanillaBonus`, the §10.1 keyword choice and `keywordParams`. + A mode that changes those numbers changes loaners exactly as it changes owned cards. +- **Pinned cost isn't fame.** Cost was set by hand to fit the curve, not from the article's fame. Rarity is `Common` (frame only) and trend is 0. +- **Loaner ids:** `cardId` = `loaner:`, and `pageId` = the article's real pageId (v1 pins the 4 `shared/catalog.ts` ones: Moon 19331, Periodic table 23053, Octopus 22780, + Albert Einstein 736; the rest are filled in from one batched API call in v1.1, `null` until then). The copy limit counts per `pageId` + together with owned copies (§2); a loaner with `pageId: null` counts per `cardId`. +- **Relation to `docs/game/starter-cards.json`** (council-data, real frozen snapshots of random articles): that file is the + **loaner pool** for the sim and for "fill a slot with a loaner" in the deck builder. It is **not** the default starter decks. + The decks below pin their values on purpose, for two reasons. Famous, recognisable articles would all derive to cost 5–6. + And the random sample has no Space cards (CARD_DATA.md finding 6). +- **v1.1 note (factions):** CARD_DATA.md finding 6 shows the legacy `category()` split as Culture 53%, People 30%, Nature 9%, + History 5%, Science 3%, Space 0%. In v1, owned decks were therefore about 50% viral and 30% local. Viral was the weakest keyword, so a typical owned deck + may be *weaker* than the starter decks. That's the wrong way round for "NFTs give variety, not power". v1 ships as is. + For v1.1, sim-balance runs a **realistic owned deck** (12 cards drawn from `card-sample.json` with its real category mix) + against each starter. **v1.1 fix:** viral gets a base of +1, and Culture cards take a keyword by home stat (§10.1), so owned decks + now have all six keywords in the mix. **BALANCE.md v1.1:** starters 52–53% overall, and owned vs starters 42–51% + (weakest vs Headliners and Stargazers; v1.2 candidates: `nostalgic`/`translated` `powerDelta -1`, `local.amount 2`). The P31-based factions council-data proposes (People, Places, Nature, Works & Culture, + Structures, Events & Ideas) are the v2 fix, and would need the host to fetch P31 (it isn't in `PageEnrichment`). + +Keywords follow from §10.1: cost 1 → vanilla, otherwise the faction keyword (shown in brackets). + +**A. Stargazers: Space (translated) + Science (encyclopedic)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Moon | Space | reach | +| 1 | Electron | Science | depth | +| 2 | Mars | Space | attention | +| 2 | Periodic table | Science | depth | +| 3 | Saturn | Space | reach | +| 3 | Photosynthesis | Science | attention | +| 3 | Black hole | Space | depth | +| 4 | Quantum mechanics | Science | reach | +| 4 | Milky Way | Space | attention | +| 5 | DNA | Science | attention | +| 5 | Sun | Space | reach | +| 6 | Theory of relativity | Science | depth | + +**B. Field Guide: Nature (rising) + History (nostalgic)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Octopus | Nature | depth | +| 1 | Stonehenge | History | attention | +| 2 | Axolotl | Nature | attention | +| 2 | Rosetta Stone | History | reach | +| 3 | Coral reef | Nature | depth | +| 3 | Roman Empire | History | reach | +| 3 | Honey bee | Nature | attention | +| 4 | Ancient Egypt | History | depth | +| 4 | Amazon rainforest | Nature | reach | +| 5 | Blue whale | Nature | attention | +| 5 | Great Wall of China | History | reach | +| 6 | World War II | History | depth | + +**C. Headliners: People (local) + Culture (by home stat: attention → viral, depth → encyclopedic, reach → translated)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Haiku | Culture | attention | +| 1 | Ada Lovelace | People | depth | +| 2 | Jazz | Culture | attention | +| 2 | Marie Curie | People | reach | +| 3 | Mona Lisa | Culture | reach | +| 3 | Frida Kahlo | People | attention | +| 3 | Chess | Culture | depth | +| 4 | Leonardo da Vinci | People | reach | +| 4 | The Beatles | Culture | attention | +| 5 | William Shakespeare | People | depth | +| 5 | Olympic Games | Culture | reach | +| 6 | Wolfgang Amadeus Mozart | People | depth | + +**D. Pioneers: People (local) + Space (translated)** +| Cost | Card | Faction | Home | +|---|---|---|---| +| 1 | Sputnik 1 | Space | reach | +| 1 | Nikola Tesla | People | attention | +| 2 | Hubble Space Telescope | Space | depth | +| 2 | Isaac Newton | People | reach | +| 3 | Neil Armstrong | People | attention | +| 3 | Jupiter | Space | reach | +| 3 | Galileo Galilei | People | depth | +| 4 | Albert Einstein | People | attention | +| 4 | International Space Station | Space | depth | +| 5 | Apollo 11 | Space | attention | +| 5 | Charles Darwin | People | reach | +| 6 | Solar System | Space | depth | + +- **Coverage:** all 6 factions appear, and all 4 `shared/catalog.ts` cards are included (Moon, Periodic table, Octopus, Albert Einstein). +- **Tutorial:** Field Guide vs Stargazers, seed 1, against the easy bot. +- **sim-balance:** please run the 4 decks round robin first. The target is every pairing at 45–55%. If a pairing misses, retune by + swapping home stats within a deck, never by changing the curve. + +--- + +## 3. Board + +- 3 **Topics** (lanes), numbered 1–3 from left to right (top to bottom in portrait). +- Each Topic has a **stat** (attention, depth or reach) and an optional **Portal** modifier (§10.3). + Topics have **no faction**. No v1 keyword counts factions: faction only picks the keyword. +- Each player has at most `laneCapacity` cards per Topic (default **3**). That gives 9 slots per side, + which caps cheap-card flooding and fits 3 cards across a 360 px phone. +- **Topic pool:** `topicPool` is a list of Topics, each `{ id, name, stat, portal | null }`. The default + pool has 9 Topics: 3 per stat, one plain and two with Portals. `pool_s` is the sub-list with stat + `s`, in file order. +- **Topic draw (exact):** + - If `distinctStats` is true (the default): for each stat in the fixed order + `[attention, depth, reach]`, pick `pool_s[floor(next() × len(pool_s))]`. That uses 3 `next()` + calls. Then Fisher–Yates the 3 picks into lanes 1–3 (i = 2, 1; j = floor(next() × (i+1))), which + uses 2 calls. + - If `distinctStats` is false: Fisher–Yates the whole pool (i from n−1 down to 1) and take the first + `topicCount` entries as lanes 1–3. +- **Stats visible, Portals hidden:** every Topic's **stat** is face-up from turn 1. Its **Portal** + modifier is face-down until the start of turn `portalReveal[i]` (default `[2, 3, 4]`). You always + know where your card is on-topic, but not what twist a lane will get. + +--- + +## 4. Match setup (deterministic) + +1. The input is `{ seed: uint32, rules, players: [p0, p1] }`, and each player's input is + `{ id, deck: CardInput[12] }`. Seat order is input order. +2. RNG: **mulberry32(seed)**. Every random choice draws `next()` in this fixed order: + 1. shuffle p0's deck (Fisher–Yates, i from n−1 down to 1, j = floor(next() × (i+1))) + 2. shuffle p1's deck the same way + 3. draw and shuffle the Topics + 4. the initiative coin: p0 has initiative on odd turns if next() < 0.5, otherwise p1 + 5. later random events (keywords only), in resolution order +3. Each player draws `openingHand` cards (default **3**). There are no mulligans in v1 + (`mulligan: false`). +4. **Seed fairness (hosted PvP):** commit–reveal. Each party *i* (host, p0, p1) sends + `sha256(r_i)` for a random 32-byte `r_i`, then reveals `r_i` once all commits are in. + `seed` = the first 4 bytes (big-endian uint32) of `sha256(r_host ‖ r_p0 ‖ r_p1)`. + The host still relays the hidden plans, so hosted PvP trusts the host not to leak them. + Local and bot matches use any seed. + +--- + +## 5. Turn structure + +The match lasts `turns` turns (default **6**, hard cap). Each turn has these phases: + +1. **Start** + - Reveal any Portal scheduled for turn *t* (resolve its "on reveal"). + - Each player's energy = `energyByTurn[t-1]` + carry + `bonusEnergy`. Carry is + min(`energyCarryMax`, unspent energy from last turn), default max **1**. Saving one energy on + turn 2 makes a turn-3 four-drop possible: a real tempo choice. + - Each player draws 1 card if their deck isn't empty and their hand holds fewer than `handLimit` + (default **7**) cards. Otherwise they don't draw. This includes turn 1, so the turn-1 hand is + 3 + 1 = 4 cards. + - Order within Start: Portal reveal, then energy, then draw. The Underdog check (step 2) comes after + all three. +2. **Underdog check** (mode option, `underdog: false` by default, because it can be sandbagged). When + it's on, from turn 2, a player who leads in 0 Topics while the opponent leads in ≥ 2 gets + **+1 energy** this turn. +3. **Plan** (simultaneous, hidden) + - Each player queues an ordered list of plays `(handIndex, topic)`. + - Total cost must be ≤ their energy, and each Topic needs room on that player's side. + - Plays can be undone freely until **Commit**. Passing is an empty commit. + - **Hidden means nothing leaks.** While you plan, the opponent's hand count and energy don't change + visibly. Only the bare fact "opponent is ready" (`committed`) is shown. No queue count, no spent energy. + - The turn timer is `turnSeconds` (default **25**). On timeout, whatever is queued is committed. +4. **Reveal (interleaved)** + - Plays reveal **one at a time, alternating**: the initiative player's 1st, the other player's + 1st, the initiative player's 2nd, and so on. When one player runs out, the rest of the other's + reveal in order. + - Each card enters its Topic and its "on reveal" effect resolves at once. + - So the order in which you queue cards matters: lead with the card you want resolved first. + - Energy is reserved when a card is queued. A queued play that is no longer legal at reveal (the + lane is full, or a Portal rejects it) **fizzles**: the card stays in hand and its energy is lost. +5. **End** + - Recompute all Topic powers (§6). + - End-of-turn effects resolve, the initiative player's first. + - Initiative strictly **alternates** each turn (set by the coin in §4). + - Plans are locked before anything reveals, so initiative gives away no information. It only + decides the order of on-reveal effects. §10 includes keywords where that order matters. + +A typical turn is: look at the lanes, tap a card, tap a Topic (×1–3), tap Commit. That is under 10 +seconds, done with one thumb, with no dragging. + +--- + +## 6. Power and Topic control + +- A card's **lane power** = `power` + (`onTopicBonus[cost]` if its home stat is the Topic's stat) + `trend` + + keyword and Portal modifiers. It is never below 0. +- A player's **Topic power** = the sum of their cards' lane power in that Topic. +- A player **leads** a Topic if their Topic power is strictly greater than the opponent's. +- **Consensus tie-break:** if the powers are equal and > 0, the player with more **on-topic** cards + there leads. If that is also equal, nobody leads. 0–0 has no leader. + +--- + +## 7. Win conditions and tie-breaks + +**Scoring** happens after the last turn's End phase (§5.5): every end-of-turn effect, including +the last turn's, and every "at scoring" Portal resolves **before** Topics are judged. Then: +1. The player who leads **more Topics** wins (2–1, 2–0, 1–0 and 3–0 all count). +2. If they lead the same number of Topics: the higher **total power across all Topics** wins. +3. If that is also equal: the match is a **draw**. + +**Concede:** a player can concede at any time, and the opponent wins at once. A player who misses +`afkTurns` timeouts in a row (default **2**) with nothing queued concedes. + +--- + +## 8. Degenerate lines and why they fail (for the critic) + +| Line | Why it isn't dominant | +|---|---| +| All-famous (all max-stat) deck | It becomes an all-cost-5/6 deck with four dead early turns. Cheap cards are more efficient **per energy**, expensive cards **per card**, and only 9 cards are seen per match (3 + 6 draws). So a pure cost-5/6 deck is **weak by design**: **BALANCE.md v1: 15%**, and no lever (power curve, energy ramp) fixes it without breaking curve or swarm decks. There is no hard deck rule; the deck builder warns below 4 cards of cost ≤ 2, and every starter is curve-shaped (§2.1). **Target met:** a **top-heavy curve** (half the deck at cost 4 or more) wins **57%** (target ≥ 40%). `energyByTurn [2..7]` was rejected for v1.1: it lifts heavy decks but kills swarm (20%). | +| All-cheap flood (cost 1–2) | Weak by design: only 9 slots and 9 cards seen. **BALANCE.md v1: 2%** (critic's sim 7–11%). Every lever that revives it breaks curve decks (sweep in BALANCE.md). viral (base +1, v1.1) is its consolation, not its fix. | +| All one faction | No v1 keyword scales with faction count. `factionSynergyCap` is reserved for modes. Culture, the largest pool, splits over three keywords by home stat (§10.1), so it has no single keyword to stack. | +| Owning NFTs buys power (pay-to-win) | Power depends only on cost (§1.3), and cost follows a fixed curve. **BALANCE.md v1.1 re-run (real `RULESET_V1_1`):** each starter deck averages **52–53%** overall. A realistic owned deck from `card-sample.json` wins **42–51%** against the starters (n ≈ 55 per pairing, ±13 pp). So owning cards buys variety, not power. v1.2 levers if owned decks should be a little stronger: `local.amount 2`, and `nostalgic`/`translated` `powerDelta -1` (the two strongest keywords, about +1.65 net per card). | +| "Always play the highest-power card" | It ignores the on-topic bonus, lane capacity and the hidden Portals. **BALANCE.md v1:** the naive max-power line wins **40%** against greedy, and lookahead-lite beats greedy **60–70%**, so skill shows (target < 55%). Critic's sim: 18–21% against a smart bot. | +| Stall or pass | Passing leaves lanes to any 1-power card. Two passing players draw. | +| Mirror the AI | Hidden simultaneous commits: you only see the opponent's cards after you commit. | +| Seat or initiative | Planning is simultaneous and initiative strictly alternates (each seat has it for 3 of the 6 turns). **BALANCE.md v1.1 re-run (real `RULESET_V1_1`): first player 51.2% [48.8–53.6]** (target 48–52%; v1 was 53.4%). | +| Forged or shopped stats | They only raise cost (§1.3), the host check falls back to live stats (§1.10), and trend is capped at ±1. | +| Inflated live pageviews | Worth at most +1, frozen at match start, and only counts for articles with ≥ 20 views a day. | +| Swinginess | No effect may change a lane by more than 6 power or move cards between lanes in v1 (a keyword-design rule for §10). | + +--- + +## 9. Rules config (all defaults) + +The engine takes a `RulesConfig` object. Peer-hosted modes override it (§11). Defaults: + +```json +{ + "version": "1.1", + "deckSize": 12, "maxCopiesPerPage": 2, "maxLoaners": 12, + "openingHand": 3, "handLimit": 7, "mulligan": false, + "turns": 6, "turnSeconds": 25, "afkTurns": 2, + "energyByTurn": [1, 2, 3, 4, 5, 6], "energyCarryMax": 1, "bonusEnergy": 0, "underdog": false, + "topicCount": 3, "distinctStats": true, "portalReveal": [2, 3, 4], "laneCapacity": 3, + "topicPool": [ /* inline Topic objects {id, name, stat, portal}; default = the 9 in §10.3 */ ], + "keywordParams": { /* per-keyword numbers, keyed by keyword id (§10) */ }, + "portalParams": { /* per-Portal numbers, keyed by Topic id (§10.3) */ }, + "costThresholds": [26, 39, 51, 63, 78], + "powerByCost": [0, 1, 2, 4, 6, 8, 10], + "onTopicBonus": [0, 1, 1, 2, 2, 3, 3], "vanillaBonus": 1, + "keywordsEnabled": ["viral","rising","local","encyclopedic","nostalgic","translated"], "cultureKeyword": "home", "ownedCards": true, + "trendUp": 25, "trendDown": -200, "trendMinDaily": 20, "uncheckedCostCap": 4, + "factionSynergyCap": 3, + "verifyStats": true, + "percentiles": "card-sample-2026-11-16", + "starterDecks": "default" +} +``` + + +**What modes may vary:** every key above, plus `topicPool` contents and the starter-deck lists. +**Fixed for all modes:** matches are off-chain and never move or burn NFTs; the RNG and its draw order +(§4); the shape of the derivation (§1: percentile → fame → cost → power); at most one keyword per card; +the phases of a turn (§5). +A mode must keep `turns × turnSeconds ≤ 240` so that matches stay within 3–6 minutes. + +--- + +## 10. Keywords *(owner: council-designer-b)* + +**The v1 keyword set is these six, one per faction.** The ids are the ones engine-b already uses on `night/engine/keywords`. +Topics carry only a **stat**, never a faction. Every keyword below that mentions a Topic keys off stats or board state. + +### 10.1 Which keyword a card gets +First rule that matches: +1. `cost == 1` → **no keyword** (vanilla). The card gets +`vanillaBonus` power (default **1**), so a cost-1 card is 2. +2. `"edition"` is in `keywordsEnabled` (off by default) and the deck holds another card with the same `pageId` → **edition**. +3. If the faction is **Culture** and `cultureKeyword` is `"home"` (v1.1 default) → the keyword for its **home stat**: + attention → **viral**, depth → **encyclopedic**, reach → **translated**. (`"faction"` gives v1 behaviour: every Culture card is viral.) +4. Otherwise → the card's **faction keyword** from 10.2. + +In steps 3–4, if the chosen keyword isn't in `keywordsEnabled`, the card is vanilla, *without* `vanillaBonus`. +*Why step 3:* Culture is about half of all owned cards. Without it, owned decks are half viral and see only 2 of the 6 keywords. + +Rarity plays no part here (it's cosmetic, §1.7). Keywords don't lower power, and v1 has no per-keyword power deltas. +If sim shows that a keyword is worth more than about 1 power on average, sim-balance sets `keywordParams..powerDelta` (default 0, range −3 to 0). + +### 10.2 Keyword list (v1) + +| Faction | id (card word) | Trigger | Reminder text | Cap | Order-sensitive? | +|---|---|---|---|---|---| +| Culture | **viral** | On reveal | +1 power, plus +1 for each other card you revealed earlier this turn. | +3 | yes: your queue order | +| Nature | **rising** | End of turn | +1 power. | +2 total | no | +| People | **local** | Ongoing | +1 power while on-topic (the Topic's stat is its home stat). | +1 | no | +| Science | **encyclopedic** | On reveal | +2 power if you have no other cards here. | +2 | **yes: interleaving** | +| History | **nostalgic** | On reveal | +2 power if you are losing here. | +2 | **yes: interleaving** | +| Space | **translated** | On reveal | +1 power to your most recently revealed card in each *other* Topic. | +2 | yes | + +Why this set: every keyword is one line and one trigger, and only adds power. The largest swing is +2 on one card, +so no lane moves by more than 3 from a keyword (viral at its cap). Nothing scales with faction count, so a mono-Culture deck gets no +consistency edge (`factionSynergyCap` is unused). Viral rewards wide turns, and Culture cards are spread over three keywords (§10.1 step 3). +Three keywords (encyclopedic, nostalgic, translated) react to the interleaved reveal (§5.4), so initiative and queue order matter. + +Precise rules (for engine-b): +- **On reveal** resolves the moment the card enters its Topic, and sees every card revealed before it (both players, + including earlier reveals this turn). The bonuses it grants are permanent counters. +- **Ongoing** is a condition, recalculated whenever power is read. +- **End of turn** resolves in §5.5 order: the initiative player's cards first, then Topic 1→3, then reveal order. +- **viral:** gain = min(`base` + `amount` × N, `cap`), where N = the owner's cards revealed earlier in *this* turn's Reveal phase, in any Topic. + Cards that went back to hand don't count. v1.1: base 1, amount 1, cap 3 (v1 was base 0, cap 2). +- **rising:** stops after it has gained +2 in total. +- **local:** "on-topic" is exactly the §1.4/§6 condition. It's simply an extra +1 on top of `onTopicBonus`. +- **encyclopedic:** with `sides: 1` (v1.1 default), "no other cards here" means **your** side of this Topic is empty, apart from this card, + when it reveals; the opponent's cards don't matter. `sides: 2` is v1 (both sides empty). +- **nostalgic:** "losing here" means the opponent's Topic power here is strictly greater than yours, counted just *before* this card is added. + The consensus tie-break doesn't count: a tie is not losing. +- **translated:** "most recently revealed" means the highest global reveal sequence number among your cards in that Topic. Topics where you have no card are skipped. +- No v1 keyword uses the RNG. §4's "later random events" slot stays empty in v1. + +**Already in code, disabled by default (`keywordsEnabled` excludes them; for modes only):** +- **edition:** +2 for each other copy of this `pageId` on your side. +- **obscure:** the opponent sees it face down until the end of the match. +- **wildcard:** its home stat becomes the Topic's stat on reveal. + +These are engine-b's existing implementations. The faction-based versions of `local` and `wildcard`, and the token version of `viral`, are +**replaced** by the definitions above. + +**`keywordParams` defaults** (keyed by keyword id; modes may change them within the §11 ranges): +```json +{ "viral": {"base": 1, "amount": 1, "cap": 3, "powerDelta": 0}, "rising": {"amount": 1, "cap": 2, "powerDelta": -1}, + "local": {"amount": 1, "powerDelta": 0}, "encyclopedic": {"amount": 2, "sides": 1, "powerDelta": 0}, + "nostalgic": {"amount": 2, "powerDelta": 0}, "translated": {"amount": 1, "powerDelta": 0}, + "edition": {"amount": 2, "powerDelta": 0}, "obscure": {"powerDelta": 0}, "wildcard": {"powerDelta": 0} } +``` +End-of-turn effects on the last turn resolve **before** scoring (§7). + +**v1.2 candidates** (not in v1.1; decide on a larger run, per BALANCE.md's v1.1 re-run): the keyword values are still uneven: +translated +1.64 and nostalgic +1.69 per card vs local +0.69 (critic's target was ±0.3). The starter decks stay even only because each one +pairs a strong keyword with a weak one. The first levers are `nostalgic.powerDelta -1` and `translated.powerDelta -1`, plus `local.amount 2` +if owned decks stay under 45% against Headliners. Both are config only. + +### 10.3 Portals (Topic modifiers) and the default Topic pool +Each Topic has `{ id, name, stat, portal | null }`. The default `topicPool` has 9 Topics, one plain and two with +Portals for each stat. A Portal applies from the moment its Topic is revealed (§3), except where it says otherwise. + +| Topic | Stat | Portal rule | +|---|---|---| +| Current Events | attention | – | +| Main Page | attention | At scoring, each card here gets +1 power. | +| Trending | attention | Trend arrows (§1.6) count double here (±2). | +| Archive | depth | – | +| Featured Article | depth | At end of the match, the player with the single highest-power card here gets +2 Topic power here. If the highest card power here is tied (between the two players), nobody gets the bonus. | +| Stub | depth | Lane capacity here is 2 per player. | +| Translations | reach | – | +| Interwiki | reach | +1 Topic power here for a player who has at least one card in all 3 Topics. | +| Disambiguation | reach | Every card here counts as on-topic, whatever its home stat. | + +As data: `portal = { kind: "scoringCardBonus", amount: 1 } | { kind: "trendMultiplier", factor: 2 } | +{ kind: "highestCardBonus", amount: 2 } | { kind: "laneCapacity", value: 2 } | { kind: "spreadBonus", amount: 1 } | +{ kind: "allOnTopic" }`. Modes may add Topics with these kinds, using new numbers, but not new kinds (engine code). + +**`portalParams` defaults** (keyed by Topic id): `{ "main-page": {"amount": 1}, "trending": {"factor": 2}, +"featured-article": {"amount": 2}, "stub": {"value": 2}, "interwiki": {"amount": 1} }`. Disambiguation has no numbers. +Topic ids are the names in kebab-case: `current-events, main-page, trending, archive, featured-article, stub, +translations, interwiki, disambiguation`. The UI shows each Portal's one-line rule **on the lane itself**, not behind a tap. + +--- + +## 11. Peer-hosted modes *(owner: council-designer-b)* + +A **mode** is data, published by a node operator and run by the match host: +```json +{ + "id": "blitz", // [a-z0-9-]{3,32}, unique per host + "name": "Blitz", "description": "Four quick turns.", // ≤ 40 and ≤ 280 chars, plain text + "rules": { "turns": 4, "energyByTurn": [2, 3, 4, 5], "portalReveal": [1, 1, 2], "deckSize": 10 }, + "topicPool": [ /* optional: Topic objects (10.3); default if omitted */ ], + "starterDecks": [ /* optional: lists of loaner pageIds */ ] +} +``` +- `rules` is a **partial** `RulesConfig` (§9) merged over the defaults. Unknown keys are rejected. +- **Validation** (modes owns the code; these are the limits). If any check fails, the mode is refused: + +| Key | Allowed | +|---|---| +| `turns` | 3–8, and `turns × turnSeconds ≤ 240` | +| `energyByTurn` | length = `turns`, each 0–10 | +| `bonusEnergy` | 0–3 | +| `portalReveal` | length = `topicCount`, each 1..`turns`, non-decreasing | +| `topicCount` | 1–5; `distinctStats` only if ≤ 3 | +| `laneCapacity` | 1–6 | +| `deckSize` | 6–20; `maxCopiesPerPage` 1–4; `maxLoaners` 0..`deckSize` | +| `openingHand` | 0–6; `handLimit` 1–10 | +| `turnSeconds` | 10–60; `afkTurns` 1–5 | +| `costThresholds` | 5 strictly ascending integers in 0–100 | +| `powerByCost` | 7 integers in 0–20, non-decreasing from index 1 | +| `onTopicBonus` (7 entries), `vanillaBonus` | 0–5 each | +| `trendUp` / `trendDown` | 0–200 / −200–0 | +| `factionSynergyCap` | 0–6 | +| `keywordsEnabled` | any subset of the 9 implemented ids (the 6 v1 defaults + edition, obscure, wildcard); a card whose keyword is disabled is vanilla, *without* `vanillaBonus` | +| `keywordParams`, `portalParams` | only the keys listed in §10 / §10.3; amounts and caps 0–6, `viral.base` 0–3, `encyclopedic.sides` 1–2, `powerDelta` −3–0 | +| `cultureKeyword` | `"home"` or `"faction"` | +| `verifyStats` | the host may only turn this off for modes that use only loaners (`maxLoaners == deckSize` and owned cards banned) | +| `topicPool` | 3–20 Topics, Portal kinds only from 10.3 | + +- **Identity:** `modeHash` = SHA-256 of the canonical JSON (sorted keys, no whitespace) of the *merged* rules + plus the topicPool. A match record holds `{ modeHash, seed, both decks' CardInputs, both players' commit lists }`, + and that is enough to replay it exactly. +- **What modes can't change** is the "Fixed for all modes" list in §9. Modes also can't add keywords or Portal kinds, or + stake, move or burn NFTs. + +Example modes (good defaults for operators to publish): +| Mode | Overrides | Feel | +|---|---|---| +| **Blitz** | `turns 4`, `energyByTurn [2,3,4,5]`, `portalReveal [1,1,2]`, `deckSize 10`, `turnSeconds 20` | about 2 minutes | +| **Deep Cuts** | `topicPool`: only the 3 depth Topics, `distinctStats false` | rewards long, obscure articles | +| **Loaner League** | `maxLoaners 12` and owned cards banned (`"ownedCards": false`, a new boolean key, default true) | fully level, for tournaments | +| **Big Board** | `topicCount 5`, `distinctStats false`, `portalReveal [1,2,3,4,5]`, `laneCapacity 3` | win 3 of 5; **tablet/desktop only** (5 × 3 slots won't fit a 360 px phone) | +| **No Keywords** | `keywordsEnabled []`, `onTopicBonus [0,3,3,3,3,3,3]` | Top Trumps–style tutorial mode | + +--- + +## 12. Worked example match *(owner: council-designer-b)* + +**Ruleset for this example: v1.0** (the golden test pins it): `cultureKeyword "faction"`, `viral {base 0, cap 2}`, +`encyclopedic {sides 2}`, `rising.powerDelta 0`; everything else as §9. *(The v1.1 numbers are in §12.1.)* + +These are the §1–9 rules as of this PR: +- `powerByCost [0,1,2,4,6,8,10]`, `onTopicBonus [0,1,1,2,2,3,3]`, `vanillaBonus 1` +- `laneCapacity 3`, `energyCarryMax 1`, interleaved reveals, alternating initiative, `portalReveal [2,3,4]` +- `underdog false`, no trend arrows + +The derived cards are given directly (the §1 output), so the test needs no percentile table. +Topics: **T1 Archive (depth, plain)**, **T2 Main Page (attention; Portal revealed turn 3; at scoring, each card here gets +1)**, +**T3 Translations (reach, plain; revealed turn 4)**. Ana (p0) has initiative on odd turns and Bo (p1) on even turns. + +| Player | Card | Faction | Cost | Base | Home | Keyword | +|---|---|---|---|---|---|---| +| Ana | Octopus | Nature | 1 | 2 | depth | – (vanilla) | +| Ana | Moon | Space | 2 | 2 | reach | translated | +| Ana | Coral reef | Nature | 2 | 2 | depth | rising | +| Ana | Albert Einstein | People | 4 | 6 | attention | local | +| Ana | Ancient Rome | History | 5 | 8 | depth | nostalgic | +| Ana | Library of Alexandria | History | 4 | 6 | depth | nostalgic | +| Ana | Periodic table | Science | 3 | 4 | depth | encyclopedic | +| Bo | Haiku | Culture | 1 | 2 | attention | – (vanilla) | +| Bo | Mars | Space | 2 | 2 | reach | translated | +| Bo | Jazz | Culture | 2 | 2 | attention | viral | +| Bo | Pop music | Culture | 4 | 6 | attention | viral | +| Bo | Jupiter | Space | 5 | 8 | reach | translated | +| Bo | Fern | Nature | 3 | 4 | depth | rising | +| Bo | Mona Lisa | Culture | 3 | 4 | attention | viral | + +Topic power is written as **Ana–Bo** after End of turn. Energy is "available / spent". + +| Turn | Init | Energy Ana / Bo | Reveals, in interleaved order | T1 | T2 | T3 | +|---|---|---|---|---|---|---| +| 1 | Ana | 1/1, 1/1 | Ana Octopus → T1: 2 +1 on-topic = **3**. Bo Haiku → T2: 2+1 = **3** | 3–0 | 0–3 | 0–0 | +| 2 | Bo | 2/2, 2/0 | Bo passes (to carry 1). Ana Moon → T3: 2+1 = 3. translated: Octopus +1 → 4 | 4–0 | 0–3 | 3–0 | +| 3 | Ana | 3/2, **4**/4 | Main Page Portal revealed. Ana Coral reef → T1: 2+1 = 3. Bo Mars → T3: 2+1 = 3, translated: Haiku +1 → 4. Bo Jazz → T2: 2+1 = 3, viral (Mars earlier) +1 → 4. End: rising Coral reef → 4 | 8–0 | 0–8 | 3–3 (tie; on-topic 1–1, so no leader) | +| 4 | Bo | **5**/4, 4/4 | Bo Pop music → T3: 6 (off-topic), viral +0. Ana Einstein → T2: 6+2 on-topic, local +1 = **9**. End: rising Coral reef → 5 (cap reached) | 9–0 | 9–8 | 3–9 | +| 5 | Ana | **6**/5, 5/5 | Ana Ancient Rome → T3: 8 (off-topic). nostalgic: losing 3–9, so +2 → **10**. Bo Jupiter → T1: 8 (off-topic). translated: Jazz → 5 (T2), Pop music → 7 (T3) | 9–8 | 9–9: **Bo leads** (consensus: on-topic 1 vs 2) | 13–10 | +| 6 (last) | Bo | **7**/7, 6/6 | Bo Fern → T1: 4+2 = 6. Ana Library → T1: 6+2 = 8. nostalgic: losing 9–14, so +2 → **10**. Bo Mona Lisa → T2: 4+2 = 6, viral (Fern earlier) +1 → 7. Ana Periodic table → T2: 4 (off-topic), encyclopedic: no (cards here). End: rising Fern → 7. Scoring: Main Page +1 per card in T2 | **19–15** | **15–19** | **13–10** | + +Final card values: +- **T1:** + - Ana: Octopus 4 + Coral reef 5 + Library 10 = 19. + - Bo: Jupiter 8 + Fern 7 = 15. +- **T2:** each card +1 from Main Page. + - Ana: Einstein 10 + Periodic table 5 = 15. + - Bo: Haiku 5 + Jazz 6 + Mona Lisa 8 = 19. +- **T3:** + - Ana: Moon 3 + Ancient Rome 10 = 13. + - Bo: Mars 3 + Pop music 7 = 10. + +**Ana wins 2–1.** Three moments show the v1 mechanics: +- **Carry-over:** Bo passed on turn 2 to afford two plays on turn 3 (4 energy). +- **Consensus:** T2 at 9–9 after turn 5 went to Bo, who had two on-topic attention cards to Ana's one. +- **Interleaving decides the match:** on turn 6 Bo had initiative, so Fern revealed before Library. Ana was then losing T1 (9 vs 14) and nostalgic fired (+2). + If Ana had revealed first, she'd have been ahead 9–8, nostalgic would not have fired, and T1 would have been 17–15. Ana still wins that lane, but by 2 instead of 4. + +**Golden test for engine-b:** +- **Inject:** the Topic order, the opening hands and the draw order directly, with each player's commit list per turn as in the table. The queue order within a turn is as listed. +- **Expected final Topic powers:** `T1 19–15, T2 15–19, T3 13–10`. Winner: p0, by 2 Topics to 1. +- **Also assert:** + - after turn 5, T2 is a 9–9 tie with Bo leading by consensus + - Ana's carried energy is 1 at the start of turns 4, 5 and 6 + - Bo's carried energy is 1 at the start of turn 3 + +### 12.1 The same match under the v1.1 ruleset +Same cards, Topics, hands and commit lists; ruleset = §9 defaults (v1.1: `viral {base 1, cap 3}`, `encyclopedic {sides 1}`, +`rising.powerDelta -1`, `cultureKeyword "home"`). The example's Culture cards (Jazz, Pop music, Mona Lisa) are attention-home, so they stay viral. +Energy and carry are unchanged. + +What changes: +- **rising −1:** Coral reef is 1 base and ends at 1+1+2 = **4**; Fern is 3 base and ends at 3+2+1 = **6**. +- **viral base 1:** Jazz +2 (Mars earlier), Pop music +1 (base only), Mona Lisa +2 (Fern earlier). +- **nostalgic still fires** for Library (Ana is losing T1 8–13 just before it). **encyclopedic still doesn't** (Einstein is already on Ana's side of T2). + +| After turn | T1 | T2 | T3 | +|---|---|---|---| +| 1 | 3–0 | 0–3 | 0–0 | +| 2 | 4–0 | 0–3 | 3–0 | +| 3 | 7–0 | 0–9 | 3–3 | +| 4 | 8–0 | 9–9 | 3–10 | +| 5 | 8–8: **Ana leads** (consensus: on-topic 2 vs 0) | 9–10 | 13–11 | +| 6, before scoring | 18–14 | 13–18 | 13–11 | +| **final** (Main Page +1 per card in T2) | **18–14** | **15–21** | **13–11** | + +**Ana still wins 2–1.** The moments in v1.1: +- **Carry-over:** unchanged. +- **Consensus:** moves to **T1 after turn 5** (8–8). Ana has two on-topic depth cards there (Octopus, Coral reef) and Bo has only the off-topic Jupiter. +- **Interleaving:** unchanged in kind. If Ana had revealed Library before Fern, T1 would have been 8–8 at that moment, a tie is not losing, + so nostalgic would not fire and T1 would end 16–14. + +**v1.1 golden test:** expected `lanePower [[18,14],[15,21],[13,11]]`, winner p0. Also assert the T1 8–8 consensus lead for p0 after turn 5. +(Cross-checked by council-critic with the #27 engine, `tower-plus:scratchpad/critic/golden11.ts`, and by hand by designer-b.) diff --git a/docs/game/DUEL_API.md b/docs/game/DUEL_API.md new file mode 100644 index 0000000..c9f8d54 --- /dev/null +++ b/docs/game/DUEL_API.md @@ -0,0 +1,89 @@ +# WikiDeck Duel: engine API (v1, Night 2) + +Owner: **duel-core** (claude/wikideck#55). Rules: `docs/game/DUEL_DESIGN.md` (duel-design). This file: how code talks to the engine. +- Types: `shared/duel/types.ts`. Ruleset: `shared/duel/ruleset.ts`. Function surface: `DuelEngineApi` in `shared/duel/index.ts`, implemented by `shared/duel/engine.ts` (engine-alpha PR). +- `shared/game/` (Edit War) is untouched. Change requests: comment on #55 with `[from ]`. + +## Principles +- **Pure and deterministic.** `(rules, decks, seed, actions)` → identical state and log. RNG: `shared/game/rng.ts` (mulberry32); its uint32 state lives in `DuelState.rng`. +- **Plain JSON.** `DuelState` round-trips through `JSON.stringify`/`parse`; `serialize`/`deserialize` are thin wrappers. +- **Clone-on-apply.** `applyAction` never mutates its input and throws on an illegal action. +- **Atomic actions.** `legalActions(state, seat)` is small, and `[]` for the seat that is not to act. The host checks an action by deep-equal against that list (`concede` and `timeout` excepted). +- **Off-chain.** Matches never move or burn cards. Cards arrive derived and frozen; the engine does no I/O. + +## Cards (`DuelCard`) +Built by duel-cards (`derive()`), frozen by the host at match start. Shape agreed with duel-cards on #55. + +| Field | Notes | +|---|---| +| `cardId` | unique in a deck (NFT tokenId; sample id in sims; `token:` for tokens) | +| `pageId`, `revisionId?`, `title`, `description?` | `pageId` matches Linked pairs; `revisionId` for recap references | +| `type`, `subtype?` | `Figure` · `Location` · `Event` · `Institution` · `Doctrine` | +| `portal` | `Arts, Earth, History, Science, Society, Neutral`; no deckbuilding restriction | +| `cost` | 1–6 (Locations 1–3) | +| `power`, `toughness` | Figures: body. Locations: 0 / Garrison (0 = can't block). Others: `null` or 0 | +| `keywords` | ≤ `maxKeywords` (2). Figures only | +| `territory?` | Location: +N max Citations while controlled (total from all sources ≤ `territoryCap`) | +| `effects` | `EffectSpec[]` (below), ≤ 4 | +| `rulesText`, `flavor` | display only | +| `connect?` | `{countries, centuries, links, p31}` frozen claims; the engine computes Connected | +| `rarity?`, `deriveVersion?`, `token?` | | + +### Keywords (DUEL_DESIGN §4), as the engine applies them +- **Protected**: can't be the target of Events or Doctrines an opponent controls (abilities of other permanents and combat still apply). +- **Featured**: can be blocked only by Featured, Translated or Multilingual Figures. +- **Multilingual**: can block Featured; can't be blocked by Local Figures. +- **Translated**: can block Featured. +- **Legacy**: when destroyed, its controller draws a card. +- **Well-sourced**: prevent the first 1 damage dealt to it each turn. +- **Stub**: at the start of your turn, a +1/+1 counter, up to `stubMax` (2). +- **Local**: +1/+1 while you control a Location sharing a `connect.countries` value. +- **Trending** (Trending mode, set by the host via `applyLive`): no Pending review, +`trendingPower`/+0. + +### Effects (`EffectSpec`) +`{ trigger, op, target?, amount?, power?, toughness?, duration?, token?, condition?, grant?, template? }` +- **Triggers:** `onPlay` (Event resolves; on a permanent same as `onEnter`), `onEnter`, `onAttack`, `onDestroyed`, `startOfTurn`, `onCombatDamageToPlayer` (on a Figure, or on a Doctrine for its attached Figure), `static`. +- **Ops:** `damage`, `damageEach`, `createToken`, `pump`, `fight`, `draw`, `attach`, `gainLife`, `drain`, `destroy`, `bounce`, `tap`. +- **Targets:** chosen: `figure`, `figureOrLocation`, `ownFigure`, `opponentFigure`, `anyTarget`; automatic: `each`, `self`, `attached`, `ownFigures`, `opponentFigures`, `opponent`, `controller`. Defaults: damage → `anyTarget`, pump → `self`, draw/gainLife/createToken → `controller`, drain → `opponent`. +- **Chosen targets:** each `onPlay`/`onEnter` effect with a chosen target consumes the next entry of `play.targets`, in effect order; `legalActions` enumerates the combinations. An Event or Doctrine with no legal target can't be played; a Figure/Location/Institution enters and its targeted effect fizzles (`targets` omitted). +- **fight:** the previous chosen target in the same card (else the source permanent) and this target deal damage equal to their power to each other. T6 = `[{op:'pump', target:'ownFigure', power:k, toughness:0}, {op:'fight', target:'opponentFigure'}]`. +- **Doctrine:** its `attach` effect's target is the Figure it attaches to (`ownFigure` for T11, `figure` for T12). Its `static` effects with `target: 'attached'` apply to that Figure; `condition.samePortal` on a Doctrine means "other Figures you control of the attached Figure's Portal". When the Figure leaves, the Doctrine is Deleted. +- **static pump** applies while the source is in play; conditions use **printed** power (no feedback loops). `condition.connected` = the affected Figure is Connected to the source (T9). +- **createToken:** `amount` tokens of `token` (a fresh `DuelCard` with `token: true`, uid `t:`); `condition.maxTokens` = only if you control fewer tokens than that. Tokens leaving play cease to exist. +- Triggers resolve immediately: the active player's first, then in entry order. + +## Rules (defaults: `DEFAULT_DUEL_RULESET`; details in DUEL_DESIGN §2) +- 40-card decks (`deckSize`), ≤ 4 per `pageId`, unique `cardId`s, no tokens. 20 Notability. Drawing from an empty library loses (`libraryEmpty: 'lose'`; `'reshuffle'` and `'fatigue'` exist as data). +- Opening hand 7. Up to `mulligans` (1): shuffle in, draw 7, then on `keep` put one card per mulligan on the bottom (the last in hand order). Seat 0 decides first, then seat 1. +- First player (from the seed) skips their first draw. Balance levers (data only): `firstPlayerDraws`, and `secondPlayerCitations` (extra Citations on the second player's first turn; default 1 from balance v1, #64). +- **Turn:** refresh (base max +1 to 10, plus Territory ≤ 2; refill; untap; Pending review ends; Stub and `startOfTurn` triggers) → draw → **main** → **attack** → **block** → damage → end (damage and "until end of turn" clear; discard down to `handSize` 7, **highest cost first**, automatically). +- Locations: `locationsPerTurn` (1), can't attack. Garrison Locations (toughness > 0) block as 0-power. +- Combat: attack the opponent only; each blocker blocks one attacker, at most one blocker per attacker; simultaneous damage; destroy triggers after all combat damage. No trample, first strike, stack or instants. +- **Connected** (engine, from `connect`, tiers in `connectedTiers`): Linked (either `links` contains the other's `pageId`, or either `cites` contains the other's `qid`), Compatriot (shared country), Contemporary (shared century, different types), Kin (shared P31, not Q5/Q16521). A Figure gets the single best bonus among other permanents its controller controls: `+linkedBonus` (2) if Linked, else `+connectedBonus` (1). Logged once (`connected`). Opposing Connected pairs are logged once as `rivalry`. +- **Timeouts:** `timeout` passes (mulligan: keep; main/attack: end the turn without attacking; block: confirm current blocks). `timeoutsToConcede` (3) consecutive timeouts by one seat lose (`reason: 'timeout'`). +- `turnCap` (default 40 total turns from balance v1, #64; `null` = none): after that many total turns, higher Notability wins, then higher total power in play, then the second player. + +## Phases and actions +| Phase | Who acts | Listed actions | +|---|---|---| +| `mulligan` | seat 0 until ready, then seat 1 | `keep`, `mulligan` | +| `main` | active | `play {uid, targets?}`, `endPhase` | +| `attack` | active | `toggleAttacker {uid}` (untapped, not Pending review, not yet declared), `confirmAttack` | +| `block` | defender | `block {blocker, attacker}` (unassigned blocker, unblocked attacker, evasion allowing), `confirmBlocks` | +| any | either seat | `concede` (not listed) | +| any | host, for the seat to act | `timeout` (not listed) | + +Declarations are **monotonic** (no un-declare), so every turn has a bounded number of actions; UIs stage choices locally and send them on confirm. If the defender has no legal block, damage resolves at `confirmAttack` with no block phase. `confirmAttack` with no attackers ends the turn. + +## Views and log +- `viewFor(state, seat): PlayerView`: your hand; the opponent's hand and library **sizes** only; both graveyards; the battlefield with current power/toughness, keywords and Connected badge; combat; `toAct`; `version`; `result`. Never the RNG or library order. +- **The seed is secret until the match ends.** `seed` plus the deck lists reproduce every shuffle, so the host never sends `seed` or `rng` (or the raw `DuelState`) to clients before `gameOver`. Live log rendering picks template variants from a derived `storySeed = sha256(seed + ':story')`. +- `state.log` is omniscient (server, and the recap after the match). Clients get **`logFor(state, seat)`**: the opponent's `draw` events have no `card`. Every other event is public information. +- Every event has `seq` and `turn`. `CardRef` carries `uid, cardId, title, pageId, type` plus `power`/`toughness` right after the event. +- Kinds (DUEL_DESIGN §10 names): `start, mulligan, keep, turnStart, draw, deploy, cast, adopt, tokenCreated, connected, rivalry, effect, attack, block, effectDamage, combatDamage, playerDamage, lifeGain, destroyed, bounced, discard, fatigue, concede, timeout, gameOver`. `destroyed` = the recap's casualties. Prose templates live with duel-design / ui-pvp, not in the engine. + +## Host binding +`duelEnginePort` (engine.ts) is structurally an `EnginePort` (`server/game/engine-port.ts`; `shared/` doesn't import `server/`, so host-pvp types it there). `concedeAction`, `timeoutAction`, `turnSeconds`, `turnOf`, `applyLive` included. `starterDeck` and `previewPool` throw: there are no starters (BRIEF decision 2); draft pools come from both players' collections. + +## Stability +These types are the contract for duel-cards, host-pvp, ui-duel, ui-pvp and sim-balance. Additive changes (optional fields, new log kinds) can land with the engine; breaking ones get a `[duel-core] contract change` comment on #55 first. diff --git a/docs/game/DUEL_BALANCE.md b/docs/game/DUEL_BALANCE.md new file mode 100644 index 0000000..82ab086 --- /dev/null +++ b/docs/game/DUEL_BALANCE.md @@ -0,0 +1,124 @@ +# WikiDeck Duel: balance report + +**Owner:** sim-balance (issue #64). **Rules:** `docs/game/DUEL_DESIGN.md`, `docs/night2/BRIEF.md`. +Every proposal here is **data only**: ruleset keys (`shared/duel` ruleset) or derivation table values (`DERIVE_RULES`). No code changes are proposed in this file. + +## How to reproduce + +``` +# Node 24 (node:24-alpine on r350/inspiron). At most 4 workers on r350 (Night 1 ran out of memory). +npx tsx scripts/sim/duel-run.ts --engine duel --matches 3000 --workers 4 --mix default \ + --out ../sim-out/duel --label base --sha $(git rev-parse --short HEAD) +# Ruleset overrides as JSON (shallow-merged into the duel ruleset): +npx tsx scripts/sim/duel-run.ts --engine duel --rules '{"startingLife":18}' --label life18 ... +``` + +- **Card pool:** the 236 real cards in `docs/game/card-sample.json`, derived by duel-cards (`shared/duel/sample.ts`, `docs/game/duel-card-sample.json`). No chain, no network. +- **Decks:** 120 decks of exactly 40 unique cards (each NFT once), sampled without replacement (`scripts/sim/duel-decks.ts`). Half are uniform random; the rest are skewed archetypes: Figure-, Doctrine-, Event-, Location- and Institution-heavy, low curve and high curve. +- **Bots** (`shared/bots/duel-bots.ts`): `heuristic` (greedy plays on a material evaluation, rule-based attacks and blocks), `mc`/`mc-lite` (shallow Monte Carlo over heuristic rollouts, re-sampling hidden cards on every rollout, so it is not clairvoyant), `greedy` (one-ply) and `random`. Bots see only `viewFor` of their seat. +- **Balance stats use bot-symmetric games only** (both seats the same bot). Mixed pairs measure skill. +- **Card win rate** = win rate of the seat that played the card, in games where only one side played it. It has a positive baseline (winners play more cards), so compare cards against each other and against the "all plays" baseline, not against 50%. +- **Minutes** are a model, not a measurement: 10 s per turn plus 4 s per atomic action (each play, attacker toggle, block and confirm). +- **Connected pair rate** = share of all 27,730 sample pairs with any Connected tier (`connectedTier`). + +## Targets +| Metric | Target | Source | +|---|---|---| +| First-player win rate | 48–54% | DUEL_DESIGN §2.6 (issue #64 asks 48–52%) | +| Median game length | 8–12 turns each, 8–15 minutes | issue #64 | +| Stalls | < 5% reach turn 20 each | DUEL_DESIGN §2.6 | +| Connected | 15–30% of pairs | BRIEF | +| Famous cards | bigger and pricier, not strictly better: fame vs win rate r ≈ 0 within a cost | BRIEF | + +## Balance v1 (00:05, from the v1 runs below) + +**Ship as ruleset defaults (`DEFAULT_DUEL_RULESET`, data only):** + +| Key | From | To | Why | +|---|---|---|---| +| `secondPlayerCitations` | 0 | **1** | First player 60.1% → **54.7%** [53–57] (v1-cand, n≈2700). The edge is tempo, and this is the only lever that moved it. | +| `turnCap` | null | **40** (20 each) | Games past 20 turns each 3.4% → **0%**. 3.9% of games are decided at the cap; median and p90 unchanged (8 / 12). | + +v1-cand (both changes, 3000 matches, engine 4623930 + duel-cards 067de83): first player 54.7% [53–57], turns each 6 / 8 / 12, est. minutes median 7.9 / p90 13.5, 0 library-outs, Connected 17.2% of pairs. + +The first-player rate sits at the top edge of DUEL_DESIGN's 48–54% band (issue #64 asked for 48–52%). `secondPlayerCitations: 2` was not tested; duel-design prefers to accept ~54% over a 2-Citation swing. + +**Landed:** duel-core set both as `DEFAULT_DUEL_RULESET` values on `engine-wip` 0eb80d2. night-review's random-play soak there (300 matches) gives a first-player rate of 51.0%, down from 62.7%, with 0 leaks, exact replay, and `turnCap` ending forced stalls at turn 40. duel-design recorded both in DUEL_DESIGN v1.3 (#66). + +**Not shipped, with the evidence:** +- Second seat +1 opening card: no effect (60.7%); the mulligan and the 7-card hand limit absorb it. +- `garrisonStep` 15: Location-heavy decks +4 pts, but games get longer (p90 14, 4.5% past 20 turns). +- `territoryCap` 3, `locationsPerTurn` 2, `stubMax` 1, `startingLife` 16/24: ≤ ±3 pts on first player or Location decks. +- `libraryEmpty: reshuffle`: games stretch out (the run didn't finish in 9 min); BRIEF keeps the MTG rule. +- `firstPlayerDraws: true`: worsens the edge (+1.7 pts). + +**Open for v1.1: Locations.** Location-heavy decks win ~17–21% in every variant, and Location cards are the weakest type (47–48%). The T2 rider "When this enters, draw a card" (v1-cand-ld) raises the Location card to 51.7% but does **not** help Location-heavy decks (16.5%), pushes the first player back to 58.4%, and brings back library-outs (117 of 3000). It needs another lever first, e.g. the conditional version ("if you already control 2 or more Locations") or a Location body (`garrisonStep`) change, tested together with spc1. Since random collections are ~32% Locations, this matters for real players. + +**Healthy, leave alone:** Connected (17.2% of pairs, fires on 28% of plays, inside 15–30%). Famous cards are bigger, not strictly better: fame vs card win rate r = 0.10–0.20 overall, ≈0 or negative within a cost. Keywords all net positive; Featured strongest, kept per duel-design. + +## Frozen head (01:15) + +**Not run.** At the 01:15 freeze `night/2026-11-17` was still at 2af2e7f: no PR had merged all night (night-lead unreachable, see #53), so there was no frozen head containing the duel engine. The reference result is therefore **v1-cand at engine-wip 4623930 + duel-cards 067de83 (not frozen head)**. At 01:16 the newest unmerged heads were: engine-wip 0eb80d2 (balance v1 as defaults), duel-cards 5076299, duel-adapter d97cbc2. Once they merge, re-run with no overrides: +``` +npx tsx scripts/sim/duel-run.ts --engine duel --workers 4 --mix fast --matches 3000 --label frozen --sha $(git rev-parse --short HEAD) +``` + +## Results + +### v1 runs: engine-wip 4623930 + duel-cards 067de83 (Doctrines working) +Run by ui-duel on inspiron-3670 with this harness (duel-adapter acd2c49/7102239), Node 24, 4 workers, `--mix fast`, 120 decks. Not yet the frozen head; see "Frozen head" below. + +| Run | Overrides | n | First player (sym) | Turns each p10/med/p90 | >20 turns each | Library-out | Loc-heavy | Doc-heavy | Fig-heavy | +|---|---|---|---|---|---|---|---|---|---| +| v1-base | `{}` | 3000 | **60.1%** [58–62] | 6 / 8 / 12 | 3.4% | 2.0% | 20.5% | 42.8% | 66.6% | +| v1-spc1 | `{"secondPlayerCitations":1}` | 1500 | **54.4%** [52–57] | 6 / 8 / 12 | 3.9% | 2.2% | 20.8% | 45.9% | 63.0% | +| v1-extra1 | second seat +1 opening card (sim-only hook) | 1500 | 60.7% [58–63] | 6 / 8 / 12 | 3.6% | 2.3% | 16.8% | 52.9% | 64.7% | +| v1-garr15 | derive `garrisonStep` 15 | 1500 | 58.5% [56–61] | 6 / 8 / 14 | 4.5% | 2.3% | 24.9% | 45.3% | 65.3% | +| v1-terr3 | `{"territoryCap":3}` | 1500 | 59.7% [57–62] | 6 / 8 / 12 | 3.0% | 1.9% | 21.3% | 49.4% | 64.7% | +| v1-cap40 | `{"turnCap":40}` | 1500 | 60.2% [58–63] | 6 / 8 / 12 | 0.0% | 0 (turnCap 3.1%) | 19.8% | 48.3% | 65.9% | +| **v1-cand** (3000) | `{"secondPlayerCitations":1,"turnCap":40}` | 3000 | **54.7%** [53–57] | 6 / 8 / 12 | 0.0% | 0 (turnCap 3.9%) | 17.9% | 41.7% | 64.2% | +| v1-cand-ld (3000) | v1-cand + every Location "When this enters, draw a card" | 3000 | 58.4% [57–60] | 6 / 8 / 12 | 0.0% | 3.9% (turnCap 0.4%) | 16.5% | 39.0% | 62.5% | +| v1-combo | garr15 + `{"secondPlayerCitations":1,"territoryCap":3,"turnCap":40}` | 1500 | **52.8%** [50–55] | 6 / 8 / 13 | 0.0% | 0 (turnCap 4.4%) | 21.3% | 43.0% | 61.8% | + +Card type WR (seat that played it), v1-base → v1-combo: Doctrine 55.8 → 56.4, Event 51.1 → 51.8, Figure 58.8 → 58.4, Institution 53.1 → 52.8, Location 48.1 → 48.0. Est. minutes v1-combo 5.6 / 8.4 / 14.9. + +v1-base other numbers: est. minutes 5.4 / 7.9 / 13.2; Connected 17.2% of pairs, 28.1% of plays (6.96 per game); fame vs card WR r = 0.20 (top vs bottom decile 62.1% vs 53.6%, both above the played-card baseline); card type WR Doctrine 55.8%, Event 51.1%, Location 48.1%. + +### Old-tree sweep (engine 5cd0ffb + duel-cards ae14bc7, Doctrines inert): relative effects only +| Run | Overrides | First player | Turns each p10/med/p90 | >20 turns | Loc-heavy | Doc-heavy | Fig-heavy | +|---|---|---|---|---|---|---|---| +| alpha-base (4000) | `{}` | 57.8% [56–59] | 6 / 8 / 21 | 10.3% | 23.2% | 29.5% | 73.1% | +| p1draws | `{"firstPlayerDraws":true}` | 59.5% [57–62] | 6 / 8 / 19 | 9.4% | 24 | 27 | 74 | +| life24 | `{"startingLife":24}` | 55.0% [52–58] | 6 / 9 / 24 | 12.2% | 21.8% | 29.7% | 72.3% | +| life16 | `{"startingLife":16}` | 57.3% [55–60] | 5 / 8 / 16 | 7.7% | 27.9% | 29.1% | 68.2% | +| terr3 | `{"territoryCap":3}` | 56.0% [53–59] | 6 / 8 / 18 | 9.3% | 23.9% | 30.2% | 71.1% | +| loc2 | `{"locationsPerTurn":2}` | 55.1% [52–58] | 6 / 8 / 20 | 9.8% | 24.4% | 29.1% | 71.1% | +| stub1 | `{"stubMax":1}` | 55.0% [52–58] | 6 / 8 / 17 | 7.7% | 20.3% | 30.8% | 68.2% | +| reshuffle | `{"libraryEmpty":"reshuffle"}` | stopped after 9 min: games stretch out | | | | | | + +### Baseline, engine alpha (duel-core `engine-wip` 5cd0ffb + duel-cards ae14bc7, merged locally). Not the frozen head. + +> **Superseded:** at duel-cards ae14bc7 Doctrines attached but gave no ±k (fixed in 067de83). Doctrine numbers below are therefore wrong, and everything else is slightly off. See the v1 runs. +4000 matches, `--mix fast` (90% heuristic mirrors, 5% heuristic vs random, 5% heuristic vs greedy), 120 decks, 0 engine errors. + +| Metric | Value | Target | +|---|---|---| +| First-player win rate | **57.8%** [56–59] | 48–52% | +| Turns each p10 / median / p90 | 6 / **8** / 21 | 8–12 | +| Est. minutes p10 / median / p90 | 5.6 / 8.6 / 20.3 | 8–15 | +| Games past 20 turns each | **10.3%** | < 5% | +| Library-out losses | 7.2% (70% of the long games) | | +| Connected pair rate / fires per play | 17.2% / 28% | 15–30% | +| Fame vs card WR within each cost | r = −0.24, −0.65, −0.54, +0.12, −0.14, +0.07 (costs 1–6) | ≈ 0 | +| heuristic vs greedy / random | 72.9% / 95.1% | | + +**Findings** +1. **First-player edge is tempo.** 68.5% in games under 7 turns each, 57% at 7–9, ~54% in longer games. `firstPlayerDraws: true` raises it to 59.5% (1500 matches), so the edge needs compensation for the second seat, not a draw change. +2. **Deck composition dominates.** Win rate vs decks without the tag: Figure-heavy 73%, random 67%, high-curve 46%, Event-heavy 44%, Institution-heavy 37%, low-curve 35%, Doctrine-heavy 30%, Location-heavy **23%**. By card type (seat that played it): Figure 58.8%, Institution 51.3%, Event 50.2%, Doctrine 47.3%, Location 47.1%. Every one of the 8 bottom cards is a Location: past the 2-Territory cap a Location is only a 0/1–0/4 Garrison. Random collections are ~32% Locations (75 of 236), so this matters for real players, who can't choose what they mine. +3. **Famous cards are not strictly better.** Within a cost, fame and win rate are uncorrelated or negative (the keyword tax). Cost-6 cards win 61% when played, but that includes a survivorship effect (you only reach 6 Citations in longer games you're still in). +4. **Keywords are all net positive.** When played: Featured 67.6%, Multilingual 67.6%, Well-sourced 59.6%, Protected 59.2%, Translated 59.0%, Legacy 58.6%, Stub 58.2%, Local 54.6%, none 48.6%. Featured is the strongest relative to its tax. +5. **Long games** are not mainly Location decks: past 20 turns each in 16% of low-curve games, 13% random, 11% Location-heavy, 3% Event-, Institution-heavy and high-curve. Boards stall and decks run out. + +Caveats: the heuristic bot may under-use Doctrines and Events, and may be too cautious to attack into walls (the MC-mirror check was stopped, see below), so the Doctrine/Event numbers and the stall rate are upper bounds on the problem. + +The sweep on r350 was stopped at 23:00 when r350 ran out of memory; ui-duel re-ran it on inspiron (tables above). diff --git a/docs/game/DUEL_DESIGN.md b/docs/game/DUEL_DESIGN.md new file mode 100644 index 0000000..fe4d5f3 --- /dev/null +++ b/docs/game/DUEL_DESIGN.md @@ -0,0 +1,279 @@ +# WikiDeck Duel: design v1 + +**Status:** v1.3, Night 2 (2026-11-17): v1 plus night-review's nits on PR #66, duel-cards' implementation choices from PR #70, and the balance v1 rules `secondPlayerCitations` 1 and `turnCap` 40 (#64). Owner: duel-design (issue #60). +**Base:** `docs/night2/BRIEF.md` (Eric's locked decisions). Where this file and BRIEF disagree, BRIEF wins. Reviews used: designer (rules), data §2–4 (derivation), critic S7 (tone). +**Consumers:** duel-core (`shared/duel/` engine and `types.ts`), duel-cards (`classify/derive/effects/text.ts`), sim-balance (bots, `DUEL_BALANCE.md`), ui-duel / ui-pvp (faces, recap), host-pvp (rulesets). + +Every number in this file is a **ruleset key or a derivation table value**, not code. sim-balance tunes them in data-only PRs. + +--- + +## 1. The game in one paragraph +Two players each bring **40 cards they own on-chain**. Each card is a Wikipedia article turned into a Magic-style card by fixed rules over real data. You start at **20 Notability**. Every turn your **Citations** (mana) maximum rises by one. You deploy Figures, attack with them, block with yours, cast Events, adopt Doctrines onto Figures. The first player to 0 Notability, or unable to draw, loses. The match is written up afterwards as an encyclopedic "Battle of X (2026)" page. + +--- + +## 2. Rules + +### 2.1 Decks and eligibility (BRIEF decisions 1–2) +| Key | Default | Rule | +|---|---|---| +| `deckSize` | **40** | Exactly this many cards. Every card is an NFT the player owns (server-verified by `ownership.ts`). No Basics, loaners, proxies or tokens in decks. | +| `maxCopiesPerPage` | **4** | Different mints of the same `pageId` may appear up to 4 times (each mint once: it is unique). | +| colour/Portal rules | none | Any mix of Portals. | +| Eligibility | owns ≥ `deckSize` | Below it, the UI shows "23 / 40 cards" and how to mine. No practice with borrowed cards. Bot matches need eligibility too. | + +Testnet end-to-end mode files may lower `deckSize`. Production stays at 40. + +### 2.2 Setup +- **Notability** (life): `startingLife` **20**. At 0 you lose. +- **Empty library:** drawing from an empty library loses (`libraryEmpty: 'lose'`). +- **Opening hand:** `openingHand` **7**. One mulligan (`mulligans: 1`): shuffle, draw 7, put 1 on the bottom. +- **First player** (seeded coin flip) skips their first draw. +- **Second player** gets +1 Citation maximum on their first turn only (`secondPlayerCitations` **1**). Balance v1: this moved the first-player win rate from 60.1% to 54.4% in 1,500 heuristic-mirror matches (engine 4623930, #64). Neither an extra opening card (washed out by the mulligan and the hand limit) nor `firstPlayerDraws` worked. + +### 2.3 Turn structure: refresh → draw → main → combat → end +1. **Refresh.** Citation maximum +1 (to `maxCitations` **10**), plus Territory (§2.5). Citations refill to the maximum. Your permanents untap. "Pending review" ends for your Figures. Start-of-turn triggers (Stub, Institutions) resolve in the order the permanents entered. +2. **Draw** 1 card. +3. **Main.** Play cards in any order while you can pay their cost in Citations: Figures, Locations (one per turn: `locationsPerTurn` 1), Institutions, Doctrines (attach to a Figure), Events (resolve immediately). +4. **Combat** (§2.4). +5. **End.** Damage on permanents clears. "Until end of turn" effects end. Discard down to `handLimit` **7** (the player chooses; bots discard highest cost first). + +**Zones.** Library and hand are hidden (a hand's size is public). The battlefield and **Deleted** (the graveyard) are **public**: a discarded card is revealed and named once it reaches Deleted. + +There is **no second main phase, no stack, no priority and nothing at instant speed.** Events are sorcery-speed. Triggers resolve immediately, in a fixed order: the active player's first, in the order the cards entered. + +### 2.4 Combat +- **Attack:** the active player chooses any untapped Figures without Pending review and taps them. They attack the opponent only, never permanents. +- **Block:** the defender assigns **at most one blocker per attacker**, and each blocker blocks one attacker. Untapped Figures and Garrison Locations may block. Evasion (Featured) restricts who may block: **a Garrison Location can't block a Featured attacker** (only Featured, Translated or Multilingual Figures can). +- **Damage:** simultaneous. A blocked pair deal their power to each other. An unblocked attacker deals its power to the defending player's Notability. +- A permanent with damage ≥ toughness is **destroyed** (goes to the Deleted pile, the graveyard). Destroy triggers (Legacy) fire after all combat damage. +- No trample, no first strike, no deathtouch, no lifelink in v1. + +### 2.5 Card types (BRIEF; classifier in data §1, built by duel-cards) +| Type | MTG analogue | Rules | +|---|---|---| +| **Figure** | creature | Power/toughness. Enters with **Pending review** (summoning sickness): can't attack until your next turn. | +| **Location** | land-ish permanent | Cost `ceil(derivedCost/2)` (1–3). **Territory:** +1 Citation maximum while you control it; at most **+2 in total** from Territory (`territoryCap` 2). **Garrison 0/T:** can block like a 0-power Figure (T = 1 + floor(pct_depth / 25), so 1–4). Can't attack. Damage clears at end of turn as usual; a Location destroyed in a block goes to Deleted. One per turn. | +| **Event** | sorcery | Resolves at once, then goes to Deleted. | +| **Institution** | artifact | A permanent with a static or triggered ability. | +| **Doctrine** | Aura | **Adopt:** attach to target Figure (yours or the opponent's for negative Doctrines). If the Figure leaves play, the Doctrine goes to Deleted. | + +Classification order (duel-cards owns it): P31 → P279 anchor classes → P31 label regex (`^human$`, fixing the `\bhuman\b` bug) → categories → description → **Doctrine**. The derived profile is **frozen** the first time a card is seen. + +### 2.6 Clock and length +- `turnSeconds` **60** per turn plus `bankSeconds` **300** per player. The turn timer runs first; when it expires, the player's bank drains; when the bank is also empty, the turn passes (`timeout` action). The bank does not refill. Three timeouts in a row concede. +- **`turnCap` 40** (20 turns each, balance v1). At the cap the higher Notability wins, then the higher total power in play, then the second player. In sims it decides about 4% of games and removes every game past 20 turns each, without moving the median. +- **Sim targets** (agreed with sim-balance, #64): median 8–12 turns each; first-player win rate 48–54%; < 5% of games past 20 turns each. **Balance v1 result** (`secondPlayerCitations` 1 + `turnCap` 40; 3,000 heuristic-mirror matches, engine 4623930, duel-cards 067de83; run by ui-duel for sim-balance, #64): first player **54.7%** [53–57], turns each 6 / 8 / 12, 0% past 20, about 8 minutes median. + +### 2.7 Determinism +All randomness (shuffles, coin flip, template variants) comes from the match seed via `shared/game/rng.ts`. The same seed and actions always replay to the same state, log and recap. + +--- + +## 3. Derivation summary (duel-cards implements; data §2) +- **Percentiles** `pct_a`, `pct_d`, `pct_r` from the sample cut points (DESIGN.md §1.1 counting). **fame** = mean of the three, rounded. +- **Cost** 1–6 by `costThresholds` [26, 39, 51, 63, 78]. +- **Figure body budget** P+T = [3, 4, 6, 8, 10, 12] for cost 1–6 (MTG vanilla curve). Subtract **1 per taxed keyword** (§4). At cost 1, a second taxed keyword is skipped, so a body never drops below 1/1. Then `power = clamp(round(budget × pct_a / (pct_a + pct_d)), 1, budget − 1)`, toughness = the rest. Famous cards are bigger and pricier, never more efficient. +- **Magnitude** for non-Figures: `k = ceil(cost / 2)` (1–3). +- **Portal** (faction): Arts, Earth, History, Science, Society, or Neutral, scored by regex hits (designer §3.2); ties go to the type default (Figure → Society, Location → Earth, Event → History, Institution → Arts, Doctrine → Science). No deckbuilding restriction. +- **Flavour text:** first sentence of on-chain `article.extract`; if absent (the sample has none), the Wikidata `description`; if that is empty too, none. + +--- + +## 4. Keywords (10) +Eight card keywords, each triggered only by real data and applied **to Figures only**, at most **2 per card** in the priority order below. Plus two rules keywords. Thresholds are measured on the 236-card sample (86 Figures); sim-balance may move them. + +| # | Keyword | Trigger (real data) | Rules text | Body tax | Rate among Figures | +|---|---|---|---|---|---| +| 1 | **Protected** | category `Living people` | Can't be the target of Events or Doctrines an opponent controls. | 1 | 38% | +| 2 | **Featured** (flying) | pct_attention ≥ 85 | Can't be blocked except by Featured, Translated or Multilingual Figures. | 1 | 15% | +| 3 | **Legacy** | a ` deaths` category (or P570 in the frozen profile) | When this is destroyed, draw a card. | 1 | 33% | +| 4 | **Multilingual** | pct_reach ≥ 90 | Can block Featured Figures. Can't be blocked by Local Figures. | 1 | ~5% | +| 5 | **Translated** (reach) | 75 ≤ pct_reach < 90 | Can block Featured Figures. | 0 | 19% | +| 6 | **Well-sourced** | pct_depth ≥ 85 | Prevent the first 1 damage that would be dealt to this each turn. | 1 | ~13% before cap | +| 7 | **Stub** | pageBytes < 3000 or a `…stubs` category | At the start of your turn, put a +1/+1 counter on this, to a maximum of 2. | 0 | 33% | +| 8 | **Local** | raw reach = 0 (no other language editions) | Gets +1/+1 while you control a Compatriot Location (same P17). | 0 | 7% before cap | +| 9 | **Connected** | the card pair's frozen claims and links (§6) | +1/+1 while you control another card Connected to it; +2/+2 if Linked. | – | target 15–30% of pairs | +| 10 | **Trending** (haste) | Trending mode only: frozen live ▲ (trend ≥ +25% and daily ≥ 20) | Can attack the turn it enters. Gets +1/+0. | – | ~2% of cards | + +Rule words that are not keywords: **Pending review** (summoning sickness), **Territory**, **Garrison**, **Adopt**, **Deleted** (the graveyard). + +Notes: +- Protected deliberately sits first: living people are the most targeted, and the rule that matters most for them is mechanical, not a tone rule. It doesn't stop combat. +- Multilingual and Translated are two bands of the same reach axis, so a card never has both. +- A card's face shows at most 2 keyword words; the reminder text is behind a tap. + +--- + +## 5. Effect templates (12, MTG register) +Subtype regexes run over the frozen P31/P279 labels, then the description, then categories. First match wins, in the order listed. `k = ceil(cost/2)`. + +| # | Type / subtype | Trigger regex (labels, description) | Rules text | +|---|---|---|---| +| T1 | Figure | (all Figures) | Vanilla body + keywords. No other text. | +| T2 | Location | (all Locations) | Territory. Garrison 0/T. | +| T3 | Event: conflict | `battle\|war\|siege\|annexation\|protest\|riot\|uprising\|massacre\|coup` | Deal k+1 damage to target Figure or Location. | +| T4 | Event: disaster | `storm\|nor.easter\|cyclone\|hurricane\|earthquake\|flood\|tornado\|wildfire\|eruption\|famine\|epidemic` | Deal k−1 damage (minimum 1) to each Figure and each Location. | +| T5 | Event: election | `election\|referendum\|straw poll` | Create k 1/1 Society Figure tokens named Elected Member. | +| T6 | Event: sport | `match\|final\|season\|tournament\|championship\|grand prix\|race` | Target Figure you control gets +k/+0 until end of turn, then fights target Figure you don't control. | +| T7 | Event: default (period, ceremony, scandal, other) | anything else | Draw k cards. | +| T8 | Institution: organisation | `company\|organi[sz]ation\|party\|agency\|studio\|military\|university\|diocese\|council\|band\|musical group\|association\|business\|school\|college\|institute\|manufacturer` | Cost ≥ 4: "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member." Cost ≤ 3: "When this enters, create a 1/1 Figure token named Staff Member." | +| T9 | Institution: creative work | `film\|album\|song\|book\|novel\|series\|video game\|painting\|software\|typeface\|newspaper\|magazine` | When this enters, draw a card. Figures you control that are Connected to this get +1/+1. | +| T10 | Institution: team, award, vehicle, other | anything else | Figures you control with power 2 or less get +1/+0. | +| T11 | Doctrine: Adopt | (all non-Pathology Doctrines) | Attach to target Figure you control. It gets +k/+k. Rider by subtype, checked in the order pathology (→ T12) > language/software > mathematics, so "functional programming language" is not maths: mathematics → "and has Well-sourced"; language/software → "Whenever it deals combat damage to a player, draw a card"; ideology/religion → "Other Figures you control of its Portal get +1/+0"; otherwise none. | +| T12 | Doctrine: Pathology | `disease\|clinical sign\|pathogen\|syndrome\|disorder\|toxin\|poison` | Attach to target Figure. It gets −k/−k. | + +Elected Member tokens are Society; Staff Member tokens have no Portal ("1/1 Figure token"). Tokens are not cards: they never appear in decks, are created only by T5/T8, and are removed when they leave play. Token names are fixed generic strings, never real people. + +Rules-text style: +- Second person, present tense, MTG terse register: "Deal 3 damage to target Figure." +- Card names appear in rules text only as "this" (never the article title), so text stays the same length on a 360 px face. +- No adjectives, no puns, no exclamation marks. + +--- + +## 6. Connected (data §4 tiers) +Computed by the host at match start from frozen card profiles. No network calls during a match; the edge list is written into the match record. + +| Tier | Test | Bonus | Cut order | +|---|---|---|---| +| **Linked** | either article links to the other (cached outlinks), or one card's claims cite the other's Q-id | +2/+2 | keep | +| **Compatriot** | share a P17 (country) or P27 (citizenship) value | +1/+1 | keep | +| **Contemporary** | same century from P569/P570/P571/P580/P585, **only between different types** | +1/+1 | cut 4th (BRIEF) | +| **Kin** | same P31 class, excluding Q5 human and Q16521 taxon | +1/+1 | cut 4th (BRIEF) | + +- A Figure gets the **single best** bonus among its Connected cards you control (no stacking): +2/+2 if any is Linked, else +1/+1. +- A Connected creative-work Institution (T9) gives its +1/+1 on top. +- **Target:** 15–30% of random card pairs connected (text proxies measured 21.5% for country OR century). If sims show more, drop the noisiest keys first (P17 = United States, then France); if fewer, add P131. +- The card shows why: "Connected — *Pathrail Mosque* (country: Bangladesh)". +- **Rivalry** (log only): when two opposing cards are Connected, the log may note it once (§8.3). No mechanical effect. + +--- + +## 7. Modes (on the duel engine) +| Mode | Decks | Notes | +|---|---|---| +| **Classic** | constructed from your own 40+ owned cards | Ranked (Elo, keyed to the eom.dev account). Invite links and quick match. | +| **Bot** | your own 40 | Only for eligible players. Not ranked. | +| **Draft** | both players eligible | Pool drawn from both players' collections (e.g. 30 cards from each, shuffled into one pool). Snake-pick until each has `deckSize`. Drafted cards are used for that match only; nothing moves on-chain. Ownership is credited in the recap ("from the collection of bob"). | +| **Trending** | any | Live pageview trend from the daily cache, frozen at match start: ▲ (≥ +25%, daily ≥ 20) gives Trending (haste, +1/+0); ▼ (≤ −50%, daily ≥ 20) gives −1/−0. Cut 3rd. | +| **House rules** | peer-hosted | Data-only, versioned schema. Keys: `deckSize`, `maxCopiesPerPage`, `startingLife`, `openingHand`, `mulligans`, `maxCitations`, `territoryCap`, `handLimit`, `turnSeconds`, `bankSeconds`, `turnCap`, `secondPlayerCitations`, `connectedTiers`, `keywordThresholds`. Night 1 mode files are rejected cleanly with a message. | + +--- + +## 8. Tone and story text + +### 8.1 Tone rules (BRIEF decision 5, critic S7) +1. **Lean in.** Living people, tragedies, wars, disasters, crimes, diseases and dictators are ordinary cards with full mechanics. No `solemn` flags, no special cases, no softened verbs. "Casualties" is fine. A protester shot in 1970 is a 6/3 with Legacy like anything else. +2. **Deadpan.** The text takes itself completely seriously. It **never winks** and **never comments on the matchup** ("in a surprising twist", "unlikely", "ironically" are banned). The comedy lives in the nouns: "*Heart rot* was adopted by *Tom Ewell*." +3. **Encyclopedic texture.** Past tense, third person, passive where Wikipedia would use it, dates and turn numbers, and `[n]` citations linking each card's real article at its revision. +4. **No adjectives about cards or players** (no "brutal", "heroic", "humiliating", "bloodiest"). Mechanical verbs only: deployed, attacked, blocked, was destroyed, was adopted by, took N damage, was cited. +5. **Never invent facts about real people.** All generated text is a deterministic template filled **only** with real card data (title, description, dates, categories, revision id) and real match data (turn, players, numbers). No LLM prose. No made-up quotes, crimes, acts, motives or feelings. The template verbs describe **game events of the card**, and every narrative paragraph is framed as a WikiDeck engagement; the footer says so. +6. **Allowed real data in text:** title, Wikidata `description`, birth/death years parsed from the description or frozen claims, the first extract sentence (flavour), Portal, type. Nothing else about a person. +7. **Dull guard:** 3–4 synonymous variants per event, chosen by the match seed (§8.2). + +| DO | DON'T | +|---|---| +| "Turn 6. *Zbyszek Godlewski* (6/3) attacked. *Pallas's cat* (5/5) blocked. *Zbyszek Godlewski* was destroyed.[3][4]" | "Godlewski got mauled by a cat lol" | +| "The *April 2021 nor'easter* dealt 1 damage to each Figure. *Dichromorpha viridis* was destroyed.[5][6]" | "Mother Nature wiped out the poor grasshopper!" | +| "*Heart rot* was adopted by *Tom Ewell*, which became a 2/2.[7][8]" | "Ewell caught a tree disease, how embarrassing" (adjective + invented claim) | +| "The **Battle of Pathrail Mosque (2026)** was a WikiDeck engagement fought on 17 November 2026 between the forces of alice and bob." | "the bloodiest battle in WikiDeck history" | + +### 8.2 Match-log templates (`shared/duel/story/log.ts`) +- One template group per engine `LogEvent` kind, each with **3–4 variants**. Variant = `rng(seed, turn, eventIndex) mod n`, using the match seed, so `replay` regenerates the log exactly. +- First mention of a card in a match adds its description in parentheses: "*Tom Ewell* (American actor, 1909–1994)". Later mentions use the title only. +- Each first mention of a card assigns it the next reference number `[n]`; later mentions reuse it. +- `logFor(seat)` hides the opponent's hand: their draws read "bob drew a card." and mulligans are not named. Discards are named, because Deleted is public (§2.3). + +| Event | Variants (`{card}` italic, `{player}` the seat name) | +|---|---| +| deploy (Figure/Location/Institution) | "{player} deployed {card}." · "{card} was deployed by {player}." · "{player} brought {card} into play." · "{card} entered play under {player}." | +| event cast | "{player} cited {card}." · "{card} was cited by {player}." · "{player} invoked {card}." | +| adopt | "{doctrine} was adopted by {figure}, which became a {p}/{t}." · "{figure} adopted {doctrine} and became a {p}/{t}." · "{player} attached {doctrine} to {figure} ({p}/{t})." | +| attack | "{card} ({p}/{t}) attacked." · "{player} sent {card} ({p}/{t}) into combat." · "{card} ({p}/{t}) advanced on {opponent}." | +| block | "{blocker} ({p}/{t}) blocked {attacker}." · "{attacker} was blocked by {blocker} ({p}/{t})." · "{blocker} ({p}/{t}) intercepted {attacker}." | +| player damage | "{opponent} lost {n} Notability ({life} remaining)." · "{card} dealt {n} damage to {opponent}, leaving {life} Notability." · "{opponent}'s Notability fell to {life}." | +| destroyed | "{card} was destroyed." · "{card} was moved to Deleted." · "{card} was removed from play." · "{card} did not survive the turn." | +| effect damage | "{source} dealt {n} damage to {target}." · "{target} took {n} damage from {source}." · "{source} inflicted {n} damage on {target}." | +| token created | "{source} produced {n} {token}." · "{n} {token} were created by {source}." · "{source} created {n} {token}." | +| draw (own) | "{player} drew {card}." · "{card} was drawn." · "{player} added {card} to their hand." | +| draw (hidden) | "{player} drew a card." · "{player} drew {n} cards." | +| Connected | "{a} and {b} were Connected ({reason})." · "{a} was Connected to {b} through {reason}." · "Records link {a} and {b} ({reason})." | +| discard | "{player} discarded {card}." · "{card} was discarded by {player}." · "{player} moved {card} from hand to Deleted." | +| rivalry (opposing Connected pair, once) | "{a} and {b} are both listed under {reason}." · "{a} and {b} share {reason}." · "The two sides were linked through {reason}." | +| turn start | "Turn {n}." (fixed) | +| game over | "{loser} was nominated for deletion. The result was **delete**." · "{loser} was reduced to 0 Notability. {winner} won." · "{winner} won on turn {n}." · (library) "{loser} could not draw a card and lost." · (concede) "{loser} withdrew." | + +### 8.3 Battle recap (`shared/duel/story/recap.ts`) +A deterministic function `recap(matchRecord) → RecapDoc` (structured data; ui-pvp renders it). Inputs are the match record only: seed, players, decks' frozen card profiles, the event list, the date. No network, no clock. + +**Title:** "{Prefix} {Name} ({year})" +- **Name:** the winner's highest-cost Location that entered play; else the loser's; else the highest-cost Event cast in the match; else the winner's highest-cost card deployed; ties broken by first played. Living people and tragedies are eligible like any card ("Battle of Zbyszek Godlewski (2026)" is valid). +- **Prefix:** "Skirmish at" (≤ 6 turns each), "Battle of" (7–12), "Siege of" (≥ 13). For a Figure name: "Battle of" becomes "{Name} campaign" (no prefix). +- **Year:** the match date's year (2026). + +**Infobox:** +| Field | Value | +|---|---| +| Date | the match date, "17 November 2026" | +| Location | the Name card if it's a Location, else "WikiDeck host {hostName}" | +| Result | "Decisive {winner} victory" (margin ≥ 10 Notability) · "Pyrrhic {winner} victory" (winner ≤ 3) · "{winner} victory" · "{winner} victory by withdrawal" (concession/timeout) · "{winner} victory by attrition" (empty library) · "Victory by decision" (turn cap) | +| Belligerents | the two seat names (account display names) | +| Commanders | each side's highest-cost Figure deployed | +| Strength | cards deployed per side ("14 cards") | +| Casualties and losses | cards destroyed per side, count, then the titles | + +**Sections:** +1. **Lead** (1 paragraph): "The {title} was a WikiDeck engagement fought on {date} between the forces of {a} and {b}. It lasted {n} turns and ended in {result-lowercase}.[1]" + one sentence on the first Figure deployed: "Contemporary accounts note the deployment of {card} in the {ordinal} turn.[n]" +2. **Background:** each side's Portal mix ("History was the largest Portal in the force of alice (eleven of twenty cards played)"). +3. **Course of the battle:** the 3–5 largest Notability swings and every destroyed card with cost ≥ 4, in turn order, as log sentences (variants from §8.2, but seeded with `seed ⊕ 'recap'` so the recap doesn't repeat the log word for word). +4. **Aftermath:** final Notability, turns, rating change if ranked. +5. **See also:** Connected pairs and rivalries. +6. **References:** every card played by either side, in first-mention order: "{n}. ^ "{title}". Wikipedia. Revision {revisionId}. Minted as token {tokenId}." linking `https://en.wikipedia.org/w/index.php?title={title}&oldid={revisionId}`. + +**Branding and footer:** WikiDeck masthead, never the Wikipedia/Wikimedia name or logo. Footer: "This page records a WikiDeck match. Card names refer to Wikipedia articles; the events described are game events." Shareable at `/recap/{matchId}`. + +--- + +## 9. Worked examples (12 cards from `docs/game/card-sample.json`) +Computed with the rules above (data §2 budget, §4 keyword priority, §5 templates) by a script over the sample, and checked by hand. duel-cards' implementation (PR #70) agrees on all 12, with the two Portal corrections now applied (#9, #11). Flavour is the `description` because the sample has no extracts. Final numbers come from duel-cards' implementation; if they differ, the implementation and its golden test win and this table is updated. + +| # | Card | Derivation | Card | +|---|---|---|---| +| 1 | **Marc Fesneau** (living person) | P31 human → Figure. "politician" → Society. pct 76/68/63 → fame 69 → cost 5, budget 10. Living people → Protected (−1) → 9 split 76:68 → 5/4. | **Marc Fesneau** · 5 · Figure — Society · **5/4** · *Protected.* "French politician (born 1971)." | +| 2 | **Tom Ewell** | human → Figure, Arts. 94/83/93 → fame 90 → cost 6, budget 12. Featured (−1), Legacy (−1); Multilingual dropped by the cap. 10 → 5/5. | **Tom Ewell** · 6 · Figure — Arts · **5/5** · *Featured. Legacy.* "American actor (1909–1994)." | +| 3 | **Zbyszek Godlewski** (killed at a 1970 protest) | human → Figure, History. 77/48/78 → fame 68 → cost 5. Legacy (1970 deaths, −1), Translated (pct_r 78, 0). 9 split 77:48 → 6/3. | **Zbyszek Godlewski** · 5 · Figure — History · **6/3** · *Legacy. Translated.* "Polish protester (1952–1970)." | +| 4 | **Pallas's cat** | taxon → Figure, Earth. 99/97/99 → fame 98 → cost 6. Featured (−1), Multilingual (−1); Well-sourced dropped. 10 → 5/5. | **Pallas's cat** · 6 · Figure — Earth · **5/5** · *Featured. Multilingual.* "Species of small wild cat." | +| 5 | **Dichromorpha viridis** | taxon → Figure, Earth. 58/3/53 → fame 38 → cost 2, budget 4. Stub (1,347 bytes, untaxed). Split clamps to 3/1. | **Dichromorpha viridis** · 2 · Figure — Earth · **3/1** · *Stub.* "Species of grasshopper." | +| 6 | **Monoid** (maths) | no P31; category "Algebraic structures" → Doctrine, Science. fame 96 → cost 6, k = 3. Maths rider. | **Monoid** · 6 · Doctrine — Science · Attach to target Figure you control. It gets +3/+3 and has Well-sourced. "Algebraic structure with an associative operation and an identity element." | +| 7 | **Heart rot** (disease) | P31 plant disease → Doctrine, Pathology (T12). Science. fame 68 → cost 5, k = 3. | **Heart rot** · 5 · Doctrine — Science · Attach to target Figure. It gets −3/−3. "Fungal disease of trees." | +| 8 | **April 2021 nor'easter** (disaster) | P31 nor'easter → Event, disaster (T4). Earth. fame 50 → cost 3, k = 2. | **April 2021 nor'easter** · 3 · Event — Earth · Deal 1 damage to each Figure and each Location. "Slow-moving nor'easter in April 2021." | +| 9 | **2025 Tehreek-e-Labbaik Pakistan protests** (conflict) | P31 protest → Event, conflict (T3). Society (protest/riot hits outnumber "war"). fame 64 → cost 5, k = 3. | **2025 Tehreek-e-Labbaik Pakistan protests** · 5 · Event — Society · Deal 4 damage to target Figure or Location. "Gaza war protests in Pakistan." | +| 10 | **1954 Gold Coast general election** | P31 legislative election → Event, election (T5). Society. fame 45 → cost 3, k = 2. | **1954 Gold Coast general election** · 3 · Event — Society · Create two 1/1 Society Figure tokens named Elected Member. *(no flavour: empty description)* | +| 11 | **Pathrail Mosque** | P31 mosque → Location, Society ("mosque" hits in P31, the description and two categories outnumber 15th-century + Sultanate). fame 49 → cost 3 → Location cost 2. pct_d 54 → Garrison 0/3. | **Pathrail Mosque** · 2 · Location — Society · Territory. Garrison 0/3. "Mosque in Faridpur, Bangladesh." | +| 12 | **Tatsunoko Production** | P31 animation studio → Institution, organisation (T8). Arts. fame 93 → cost 6. | **Tatsunoko Production** · 6 · Institution — Arts · At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member. "Japanese animation studio." | + +Interactions these cards show: +- *Heart rot* on *Marc Fesneau* is illegal (Protected stops opponents' Doctrines). On *Tom Ewell* it makes a 2/2 Featured Legacy. +- *Monoid* on *Dichromorpha viridis* makes a 6/4 Well-sourced Stub that keeps growing to 8/6. +- *April 2021 nor'easter* destroys *Dichromorpha viridis* and both Elected Members, and leaves *Pathrail Mosque* at 0/3 with 1 damage. +- *Pathrail Mosque* and *2025 Tehreek-e-Labbaik Pakistan protests* are not Compatriots (Bangladesh vs Pakistan); *Pathrail Mosque* and *Zbyszek Godlewski* are not Contemporary (15th vs 20th century). + +Sample log: +> Turn 5. alice deployed *Zbyszek Godlewski* (Polish protester, 1952–1970).[1] +> Turn 6. bob cited the *April 2021 nor'easter* (Slow-moving nor'easter in April 2021).[2] The *April 2021 nor'easter* dealt 1 damage to *Zbyszek Godlewski*. +> Turn 7. *Zbyszek Godlewski* (6/3) attacked. *Pallas's cat* (5/5) blocked *Zbyszek Godlewski*.[3] *Zbyszek Godlewski* was destroyed. alice drew a card. + +--- + +## 10. Hand-offs +- **duel-core:** §2 rules and ruleset keys; `LogEvent` kinds needed by §8.2 (deploy, cast, adopt, attack, block, playerDamage, destroyed, effectDamage, tokenCreated, draw, connected, turnStart, gameOver with reason `life|library|concede|timeout|turnCap`). Each event carries card ids, P/T after the event, and Notability where relevant. +- **duel-cards:** §3 derivation, §4 thresholds and priority, §5 templates T1–T12, §6 tiers; the §9 table as golden tests. +- **sim-balance:** §2.6 targets; tune `keywordThresholds`, `connectedTiers`, T4's k−1, the Stub cap and the T8 token rate; report the first-player win rate and the cost-6 dominance check. +- **ui-pvp:** renders `RecapDoc` from §8.3. + +## 11. Open questions for the sim (not blockers) +1. Disaster T4 at k−1 may be weak against 40-card boards; try k. +2. Stub at +2 counters on cheap bodies may be too strong (33% of Figures); try max 1. +3. **Locations (balance v1 finding):** Location-heavy decks win ~20% and Locations are the weakest cards. `territoryCap` 3, `locationsPerTurn` 2 and `garrisonStep` 15 move them ±3 points at most. Tested and **rejected for v1**: a T2 rider "When this enters, draw a card". It lifts the Location card (47 → 52%) but not Location-heavy decks (18 → 17%), pushes the first player back to 58.4%, and brings back library-out losses. Open for v1.1: a lever that helps Location-heavy decks without extra card flow, e.g. Territory that scales (+1 Citation per two Locations) or Garrison Locations that can block Featured. diff --git a/docs/game/ENGINE_API.md b/docs/game/ENGINE_API.md new file mode 100644 index 0000000..ee2e304 --- /dev/null +++ b/docs/game/ENGINE_API.md @@ -0,0 +1,232 @@ +# WikiDeck game engine API (v1) + +**Owner:** engine-a (core and API) and engine-b (keywords, card derivation, tests). Issue: claude/wikideck#3. +**Rules:** `docs/game/DESIGN.md` v1 ("Edit War", as frozen in PR #17 @ cf2fceb). Where this file and DESIGN.md disagree, raise it on #3. +**Stability:** UI, simulation and modes build against this file. Any change to a name or shape below is +announced on #3 before it merges. + +The engine is a pure TypeScript library in `shared/game/`: +- It does no I/O and has no clocks: no `Date.now()`, no `Math.random()`. +- It imports nothing from `server/` or `src/`. +- It runs entirely **off-chain**. A match never reads, moves, locks or burns an NFT. +- It is deterministic: the same `(ruleset, decks, seed, actions)` always gives the same state, byte for byte. + +**Import only from `shared/game/index.ts`.** + +```ts +import { createMatch, legalActions, applyAction, isOver, result, viewFor, + serialize, deserialize, replay, DEFAULT_RULESET, parseRuleset, validateDeck, + starterDeck, previewPool, type MatchState, type Action, type GameCard } from '../shared/game/index.ts'; +``` + +## 1. Lifecycle + +```ts +let state = createMatch(DEFAULT_RULESET, [deck0, deck1], seed); // turn 1, planning +while (!isOver(state)) { + // Each seat (in any order, any interleaving) queues plays, then commits. + const actions = legalActions(state, seat); // play / undo / commit + state = applyAction(state, chosen); // returns a NEW state + // When both seats have committed, the turn resolves inside applyAction. +} +const r = result(state); // { winner: 0 | 1 | null, reason, topicsLed, lanePower, totalPower, turns } +``` + +| Function | Description | +|---|---| +| `createMatch(ruleset, [deck0, deck1], seed: number \| string): MatchState` | Validates the ruleset (`parseRuleset`) and both decks (`validateDeck`), then performs DESIGN §4 setup and turn-1 start. A `seed` is a uint32. A string is hashed with FNV-1a (`seedFromString`). Throws `ZodError` for a bad ruleset and `IllegalActionError` for a bad deck. | +| `legalActions(state, seat): Action[]` | Lists every `play` (each card × each lane it can legally go into), every `undo`, and `commit`. Returns `[]` once the seat has committed or the match is over. It never lists `concede` (always legal while the match is running) or `timeout` (host only). | +| `applyAction(state, action): MatchState` | Pure: the input is never mutated. Throws `IllegalActionError` if the action is illegal. | +| `actionProblem(state, action): string \| null` | Explains why an action is illegal, without throwing. Use it for UI hints and for validating client input on a host. | +| `isOver(state)` / `result(state)` | `result` is `null` while the match is running. | +| `viewFor(state, seat): PlayerView` | The **hidden-information view**. Send only this to clients and AIs, never `MatchState`, because a `MatchState` contains both deck orders and the RNG state. | +| `serialize(state): string` / `deserialize(json): MatchState` | Lossless JSON. `MatchState` is plain data. | +| `replay(ruleset, decks, seed, actions): MatchState` | Rebuilds a match from its inputs. `state.actions` records every action applied, so a host can store `(ruleset, decks, seed, actions)` and verify a result later. | +| `validateDeck(ruleset, cards): string[]` | Returns the list of problems; empty means the deck is legal. | +| `cardPower(state, cardInPlay)`, `lanePower(state, lane)`, `laneLeader(state, lane)`, `topicsLed(state)` | Power queries (DESIGN §6). `laneLeader` and `topicsLed` apply the consensus tie-break. | +| `scoringPower(state, lane)` | Lane power plus revealed "at scoring" Portals (§7). `result().lanePower` uses this. | +| `laneCapacity(state, lane)` | Per-seat capacity of a lane. A Portal such as Stub may override it. | +| `isOnTopic(state, cardInPlay)` | §1.4/§6 on-topic test, including Disambiguation. | +| `STARTER_DECKS`, `starterDeckById(id, rules?)` | The 4 DESIGN §2.1 starter decks (`stargazers`, `field-guide`, `headliners`, `pioneers`), derived through `deriveCard` with the given rules (a `Ruleset` works). **Use these for new players.** | +| `starterDeck(seed)` | Older placeholder loaner deck (seeded, 2 per cost from `STARTER_POOL`). Kept for tests and tools; not a §2.1 starter deck. | +| `previewPool(rules?)` | The 20 frozen `docs/game/starter-cards.json` loaners (council-data), derived via §1 against the `card-sample-2026-11-16` percentile table. For loaner slots and draft modes. | +| `deriveCard(input, table, rules?)`, `deriveDeck(inputs, table, rules?)` | DESIGN §1 + §10.1: `CardInput` → `GameCard`. **Hosts only**: run on host-frozen, plausibility-checked inputs, never on client JSON. A `Ruleset` can be passed as `rules`. | +| `placeCard(state, seat, lane, card)`, `revealPortal(state, lane)` | Test helpers for building boards by hand. | + +## 2. Actions + +```ts +type Action = + | { type: 'play'; player: 0 | 1; cardId: string; lane: number } // queue a card from hand (hidden) + | { type: 'undo'; player: 0 | 1; cardId: string } // un-queue it (refunds energy) + | { type: 'commit'; player: 0 | 1 } // lock in this turn (empty = pass) + | { type: 'timeout'; player: 0 | 1 } // HOST ONLY: turn timer expired + | { type: 'concede'; player: 0 | 1 }; +``` + +**Queuing a play** +- `play` reserves the card's cost from this turn's energy. It checks the energy, the lane's room (cards already in the lane plus queued plays must stay under `laneCapacity(state, lane)`), and, once the Portal is revealed, whether it accepts the card (`canPlay`). +- Your plays reveal in **your queue order**, interleaved with the opponent's (see below). +- `undo` and new plays are allowed until the seat sends `commit`. + +**Resolving a turn** +- When both seats have committed, `applyAction` resolves the turn (DESIGN §5.4–5.5): + 1. Carry is set: min(`energyCarryMax`, energy not reserved by queued plays). Energy spent on a play that later fizzles is still spent. + 2. **Interleaved reveal:** the initiative seat's 1st play, then the other seat's 1st, then the initiative seat's 2nd, and so on. When one seat runs out, the other's remaining plays reveal in order. Each card gets the next global `seq` number, and its on-reveal effects (keyword, then Portal) run at once. + 3. End-of-turn effects run: the initiative seat's cards first, then lanes left→right, then `seq` order. + 4. On the last turn, scoring follows (§7). Otherwise the next turn starts: + - initiative **alternates** + - any Portal scheduled by `portalReveal` is revealed + - energy = `energyByTurn[t-1]` + carry + `bonusEnergy` + - each seat draws + - the underdog bonus applies (only if `underdog` is on) +- **A play that is illegal at reveal** (the lane filled up, or a Portal rejects the card) fizzles. The card stays in hand and its energy is lost. A `fizzle` log event records it. + +**Timeouts.** `timeout` is how a host enforces `turnSeconds`. It commits whatever is queued. A timeout with an empty queue counts toward `afkTurns`. When that count is reached, the seat concedes and the result has `reason: 'afk'`. An ordinary `commit` resets the count. + +**Seat ownership.** The engine does not authenticate anyone. The host must check that the seat in `action.player` is the caller's. + +## 3. Cards + +```ts +interface GameCard { + cardId: string; // unique within a deck: the NFT card hash, or `loaner::` + pageId: number | null; // at most maxCopiesPerPage cards share a pageId; null (unpinned loaners) → counted per cardId + title: string; + faction: 'Space' | 'Nature' | 'People' | 'Science' | 'History' | 'Culture'; + rarity: 'Common' | 'Rare' | 'Epic' | 'Legendary'; // cosmetic in v1 + cost: number; // 0–6 (uncheckedCostCap already applied by derivation) + power: number; // 0–30, base power + home: 'attention' | 'depth' | 'reach'; + trend: -1 | 0 | 1; // frozen at match start + keyword: string | null; // an id in KEYWORDS + source: 'owned' | 'loaner'; + check?: 'verified' | 'unverified' | 'unchecked' | 'loaner'; // host plausibility result (§1.10), for logs +} +``` + +- **The engine takes already-derived cards and never reads raw stats.** The council asked for this, because snapshot stats are self-reported (#1, critic brief A.1). +- Derivation (DESIGN §1 and §10.1: percentile → fame → cost → power, home, trend, keyword and vanillaBonus) lives in `shared/game/derive.ts`, which engine-b owns. Hosts run it on host-frozen, plausibility-checked inputs before calling `createMatch`. +- `CardInput = { cardId, pageId | null, title, category, rarity, snapshot: { stats }, live: { trendPercent, dailyAverage }, check, pinned? }`. `pinned: { cost, home, faction }` replaces §1.1–1.5 **only** when `check === 'loaner'`. `check === 'unchecked'` caps cost at `uncheckedCostCap` (home and fame are kept). +- **Never build `GameCard`s from client JSON.** `validateDeck` only checks shapes and ranges; a client could send cost 1 / power 30. Constructed modes must re-derive on the host. +- Both seats can hold the same loaner `cardId`. The engine keys per seat, so UIs should key cards by `owner + cardId`. +- Modes may adjust `GameCard` fields such as `power` before `createMatch`. The engine does not re-derive them. +- **`check` and `pinned` are host decisions, not player input.** Build loaner inputs only from shipped data (`STARTER_DECKS`, + `previewPool()`, `LOANER_SNAPSHOTS`), and set `check` for owned cards from the host's own §1.10 check. Otherwise a client could + send `check: 'loaner', pinned: {cost: 1, …}` for any card. +- **`obscure` leaks in v1.** `viewFor` does not mask Obscure cards yet. Modes must not put `obscure` in `keywordsEnabled` until it does. +- A keyword that isn't in `ruleset.keywordsEnabled` never runs. Derivation is responsible for not giving that card `vanillaBonus`. +- Lane power = `power` + `bonus` + `trend` + `onTopicBonus[cost]` if on-topic + ongoing keyword and Portal effects, floored at 0. + +## 4. Ruleset + +`Ruleset` holds the DESIGN §9 keys, **flat** (nothing deeper than one level, apart from `topicPool` entries and the param tables). +- `parseRuleset(unknown)` is a **strict** zod parse: unknown keys are rejected and every number is bounded, so any ruleset that passes terminates within `turns` turns. +- Modes merge overrides onto `DEFAULT_RULESET` and then call `parseRuleset`. + +Notes on the §9 keys: +- `topicPool` is inline `TopicDef[] = { id, name, stat, portal: PortalId | null }[]`. `DEFAULT_TOPIC_POOL` is the 9 Topics of §10.3. A Portal id is one of `PORTAL_IDS` (`main-page, trending, featured-article, stub, interwiki, disambiguation`). +- `keywordParams[keywordId]` holds keyword numbers; keys must be in `KEYWORD_IDS`. `portalParams[topicId]` holds Portal numbers, and falls back to `portalParams[portalId]`, so a mode can add a Topic that reuses a Portal kind with new numbers. +- `keywordsEnabled` ⊆ `KEYWORD_IDS` (the 6 v1 ids plus `edition`, `obscure` and `wildcard`). +- `mulligan` must be `false`. Mulligans are not implemented in v1. +- `percentiles`, `starterDecks`, `trendUp/Down`, `trendMinDaily`, `uncheckedCostCap`, `vanillaBonus`, `costThresholds`, `powerByCost`, `verifyStats` and `factionSynergyCap` are for derivation and the host. The core loop doesn't read them. + +Validation also enforces: +- `turns × turnSeconds ≤ 240` +- `energyByTurn.length ≥ turns` +- `portalReveal.length = topicCount` +- `openingHand ≤ handLimit` +- `costThresholds` in ascending order +- with `distinctStats`, `topicCount == 3` and the pool has all 3 stats +- the ranges in DESIGN §11 are **stricter** and are enforced by modes (`shared/game/modes.ts`). The engine's bounds only guarantee safety and termination. + +## 5. Determinism and the RNG + +- The RNG is **mulberry32(seed: uint32)**, as in DESIGN §4. Its state is a single uint32 in `state.rng`. +- Draw order: + 1. p0's deck is shuffled. + 2. p1's deck is shuffled. + 3. **The Topics are drawn.** With `distinctStats`: for each stat in the order `attention, depth, reach`, take `group[floor(next() × group.length)]`, where `group` is that stat's Topics in `topicPool` order. Then the picks are shuffled, and that is the lane order. Without `distinctStats`: the whole pool is shuffled and the first `topicCount` are taken. + 4. The initiative coin is flipped: p0 has initiative on turn 1 (and every odd turn) if `next() < 0.5`; otherwise p1 does. After that, initiative strictly alternates. + 5. Keyword and Portal hooks draw in resolution order. +- Shuffles are Fisher–Yates with `i` from n−1 down to 1 and `j = floor(next() × (i+1))`. +- `ongoing` power hooks get a throwaway RNG copy, so computing power never changes the match RNG. + +## 6. State and views + +The full `MatchState` (plain JSON) is for the **host only**: + +```ts +interface MatchState { + schema: 'wikideck-match/1'; engineVersion: number; ruleset: Ruleset; seed: number; rng: number; + turn: number /* 1-based */; phase: 'planning' | 'over'; initiative: 0 | 1; + players: [PlayerState, PlayerState]; // deck, hand, energy, queue, committed, afk + lanes: { topic: TopicDef; portalRevealed: boolean; cards: [CardInPlay[], CardInPlay[]] }[]; + revealSeq: number; log: LogEvent[]; actions: Action[]; result: MatchResult | null; +} +interface PlayerState { deck; hand; energy; queue: { cardId; lane }[]; committed; afk; carry } +interface CardInPlay { card: GameCard; owner: 0 | 1; lane: number; turn: number; seq: number; bonus: number } +``` + +`PlayerView`, returned by `viewFor(state, seat)`, is what a seat may see. In it, "you" is always index 0 and the opponent is index 1: + +```ts +interface PlayerView { + you: 0 | 1; ruleset; turn; phase; initiative; + energy: number; energyLeft: number; hand: GameCard[]; queue: { cardId; lane }[]; committed; deckCount; + opponent: { handCount; deckCount; committed }; // §5.3: nothing about their queue (cards, count or energy) until reveal + lanes: { topic: TopicDef /* stat always; id/name/portal masked until portalRevealed */, portalRevealed, cards: [mine, theirs], + cardPower: [number[], number[]], power: [mine, theirs], leader: 'you' | 'opponent' | null }[]; + result: MatchResult | null; +} +``` + +`state.log` is an append-only event list for animation and replays. Event types: `turnStart`, `portalRevealed`, `underdog`, `draw`, `reveal`, `fizzle`, `effect`, `concede` and `matchOver`. It contains both seats' draws, so a host must filter it per seat before sending it. + +## 7. Results + +```ts +interface MatchResult { + winner: 0 | 1 | null; // null = draw + reason: 'topics' | 'totalPower' | 'draw' | 'concede' | 'afk'; + topicsLed: [number, number]; lanePower: [number, number][]; totalPower: [number, number]; turns: number; +} +``` + +Scoring runs after the last turn's End phase. Lane powers include revealed "at scoring" Portals, and each lane's leader uses the consensus tie-break (§6). Winner, per DESIGN §7: +1. The seat that leads more Topics. +2. If tied on Topics, the seat with more total power. +3. If that is also tied, a draw. + +## 8. Keywords and Portals (extension contract) + +`KEYWORDS` and `PORTALS` in `shared/game/keywords.ts` (engine-b) are registries of hook objects. v1 keywords (`V1_KEYWORDS`, one per faction via `FACTION_KEYWORD`): viral, rising, local, encyclopedic, nostalgic, translated; optional (`OPTIONAL_KEYWORDS`, off by default): edition, obscure, wildcard. Portals: the 6 kinds of §10.3. The header of that file is normative. Every hook gets `ctx = { state, rng, params, lane, log, power(card) }`. + +**Keywords** +- `onReveal(ctx, self)` and `endOfTurn(ctx, self)` may change `bonus` on cards in `ctx.state`. +- `ongoing(ctx, self, target) → number` must be **pure**, and must not call `ctx.power`. +- Keyword hooks run only if the keyword is in `keywordsEnabled`. + +**Portals** have the same hooks, plus: +- `onPortalReveal(ctx)` +- `canPlay(ctx, card, seat) → boolean`, checked when a play is queued and again at reveal +- `capacity(ctx) → number` +- `allOnTopic: true` +- `atScoring(ctx) → [delta0, delta1]` + +Portal hooks act only once the Portal is revealed. + +**Rules for all hooks** +- Hooks must not move or remove cards (DESIGN §10). +- Any randomness must come from `ctx.rng`. No v1 keyword uses it. + +## 9. Testing + +- `tests/game-core.test.ts` (engine-a) covers the core loop: + - the RNG reference value, ruleset bounds and setup + - hidden information and hidden Portals + - energy carry, interleaved reveal and alternating initiative + - on-topic power, the consensus tie-break, and Portal capacity, fizzle and at-scoring hooks + - disabled keywords, AFK and concede, and draws + - the random-play property: matches terminate, replay exactly, and serialise after every action +- `tests/game-keywords`, `game-derive`, `game-starter`, `game-property`, `game-golden` (engine-b): every keyword and Portal, derivation, starter decks, properties (termination, determinism, round-trip, no input mutation, legality, power ≥ 0, capacity, no hand leak) and the DESIGN §12 golden match (19–15 / 15–19 / 13–10, p0 wins). diff --git a/docs/game/HOSTING.md b/docs/game/HOSTING.md new file mode 100644 index 0000000..49aa7a3 --- /dev/null +++ b/docs/game/HOSTING.md @@ -0,0 +1,285 @@ +# Hosting WikiDeck game modes + +Anyone running a WikiDeck node can host their own **game modes**: their own twist on the +rules, played with WikiDeck cards on their node, with visible credit for hosting them. +Hosting a popular mode is the night-1 incentive to run a peer. + +- Schema and validator: `shared/game/modes.ts` +- Node API: `server/game/` (mounted at `/api/game` by `server/testnet/http.ts`) +- Example modes: `server/game/modes/*.json` (shipped in the node image) +- Tests: `tests/modes-*.test.ts` + +Everything here is **off-chain**. Hosting a mode never touches blocks, transfers, trades, +validation or NFT ownership. A match never moves or burns a card. + +## 1. Modes are data, never code + +A mode is a JSON document, at most 8 KiB: + +```json +{ + "schema": "wikideck.mode/2", + "id": "trending", + "version": 1, + "name": "Trending", + "description": "Live Wikipedia pageview trends power cards up or down.", + "tags": ["live-data"], + "engine": "editwar", + "rules": { "trendUp": 25, "trendDown": -25 }, + "cards": { "preset": "trending", "percentPerPoint": 25, "maxBonus": 3, "penalise": true }, + "decks": { "kind": "starter" }, + "limits": { "maxConcurrentMatches": 32, "turnSeconds": 90, "lobbyMinutes": 15 } +} +``` + +| Field | Meaning | +|---|---| +| `schema` | `wikideck.mode/2`. Night 1 documents (`wikideck.mode/1`) are rejected with a message saying what to change. | +| `engine` | Required: `editwar` (the Night 1 simultaneous-reveal game, `shared/game`) or `duel` (the Night 2 Magic-style duel, `shared/duel`). Duel modes only allow `constructed` and `draft` with `source: "collections"`: every card is one the players own. | +| `id`, `version` | Lowercase slug and a version integer. Bump `version` whenever the rules change, so old match records and leaderboards stay attributable (`#@`). | +| `name`, `description`, `tags` | Plain text only: no control characters or `<` `>`. | +| `rules` | **Overrides** on top of the engine's `DEFAULT_RULESET` (see `docs/game/ENGINE_API.md`). Objects merge one level deep; arrays and numbers replace. The merged result then goes through the engine's strict `parseRuleset`, so the engine alone decides what's legal (bounded turns, Topics, deck sizes, known keywords and portals only; see DESIGN.md §9 for the keys). | +| `cards` | A card-mapping **preset** from a fixed list. `standard` leaves cards as dealt. `live` freezes each card's live trend arrow (DESIGN §1.6, using the ruleset's `trendUp`/`trendDown`) at match start. `trending` does the same and also adds a bounded power bonus from the live pageview trend. The mode only picks a preset and tunes its bounded numbers. | +| `decks` | `constructed` (each player submits exactly `deckSize` NFT token ids they own; the host verifies ownership and confirmations on the chain, `minConfirmations` default 1, and builds every card from its block), `starter` (Edit War only: a seeded starter deck) or `draft` (snake draft; `source: "preview"` uses preview cards, Edit War only; `source: "collections"` pools both players' owned cards for that match only, and both must own at least `deckSize`). | +| `limits` | Concurrency and lobby expiry for this mode on this host. `rated: true` moves Elo (start 1200, K 24) when both seats are eom.dev accounts; `accountsOnly: true` refuses guest seats (owned-card modes always do). `turnSeconds` only applies to engines without their own turn timer; with tonight's engine, the ruleset's `turnSeconds` (plus 5 s network grace) is the timer. | + +The schema is strict: unknown fields are rejected, as are prototype keys +(`__proto__`, `constructor`, `prototype`) anywhere in the document, nesting deeper than two +levels inside `rules`, more than 48 rule keys, and oversized strings and arrays. A peer +**never** evaluates, imports or runs anything another peer sends. Nothing in a mode can name +a file, a URL, a script or a function. + +### Seats, invites, quick match and polling (Night 2) + +- **Seats:** `POST /modes/:id/lobbies`, `POST /lobbies/:id/join` and `POST /modes/:id/quick` take `{idToken, deck?, private?}` for an eom.dev account (the Dex ID token may also be sent as `Authorization: Bearer `), or `{name, secret}` for a guest in Edit War modes. The reply is `{lobbyId, seat, token, invite, playerId}`; `token` is the seat bearer for every later call. Account player ids are `sha256("acct:" + iss + "\n" + sub)`. +- **Invites:** every lobby gets a 12-character `invite` code. `private: true` hides it from `/lobbies` and quick match. `GET /invites/:code` describes it and `POST /invites/:code/join` joins it (SPA link: `/play/invite/`). +- **Quick match:** `POST /modes/:id/quick` joins the oldest open public lobby someone else opened (`matched: true`), or opens one (`matched: false`) to poll. +- **Polling:** every lobby view has a `version`. `GET /lobbies/:id?v=` answers **204** while nothing changed. Poll; never hold requests open (the node caps concurrent `/api` requests). +- **Ladder:** `GET /modes/:id/ladder` (same as `/leaderboard`): entries carry `rating` (Elo, or null if unrated) plus W/L/D. +- **Duel cards:** `server/game/duel-binding.ts` `toDuelCard` is the one path from an owned NFT to a duel card, for matches and for `GET /api/game/collection` card faces. It uses the frozen card identity (`/card-identity.sqlite`, testnet-ops' pre-bake) when present. Otherwise it types the card from what its block carries (the extract's first sentence, then the mint-time category), with no fetch. So a card's *collection* type can change **once**, when its identity is first frozen. Matches never change: the record stores the derived cards. Run the identity pre-bake before opening a node to PvP. +- **Clock:** duel turns get `turnSeconds` (+5 s grace) plus a per-seat `bankSeconds` bank; seat views carry `clock: {turnStartedAt, turnMs, bankMs}`. +- **Records:** `GET /matches/:id` has the seed, rules, both decks (as the engine cards), every action, `engine`, `rated`, and for constructed modes `tokens` (the NFT ids each seat played), so the recap can replay the match. + +## 2. Running your own modes + +Configure modes with environment variables on your node: + +| Variable | Default | Meaning | +|---|---|---| +| `WIKIDECK_MODES` | `classic` | Comma list of built-in ids (`classic`, `trending`, `draft`) and/or paths to `.json` files. `none` hosts nothing (the node still lists its peers' modes). | +| `WIKIDECK_MODES_DIR` | unset | A directory: every `*.json` in it is loaded as a mode. | +| `WIKIDECK_GAME_OPERATOR` | your origin's host | The name shown as **"Hosted by …"**. | +| `WIKIDECK_GAME_NOTE` | unset | A short note shown next to your name, e.g. "EU, best effort". | +| `WIKIDECK_GAME_PEERS` | `WIKIDECK_PEERS` | Peer origins whose modes to list. Use the peers' **public** origins, because players open the peer's own site to play there. | +| `WIKIDECK_GAME_TREND_INTERVAL_MS` | `20000` | Background trend warm-up pace for `trending` modes (minimum 15000). | +| `PUBLIC_ORIGIN` | `http://127.0.0.1:$PORT` | Your node's identity as a host. | + +At most 16 modes per node. A bad mode file stops the node at startup with a readable error, +because rules are validated once with the engine's parser when the node starts. + +Example for the night-1 testnet (three nodes, different modes): + +```yaml +# node-a: the base rules plus Trending +WIKIDECK_MODES: classic,trending +WIKIDECK_GAME_OPERATOR: Testnet A +WIKIDECK_GAME_PEERS: http://192.168.1.32:3102,http://192.168.1.32:3103 +# node-b: the draft +WIKIDECK_MODES: draft +WIKIDECK_GAME_OPERATOR: Testnet B +# node-c: everything, including a custom file +WIKIDECK_MODES: classic,trending,draft,/app/data/modes/blitz.json +``` + +### Writing a new mode + +Start from `server/game/modes/classic.json`, change `id`, `name` and `description`, then +override rules. Some ideas within tonight's rules: + +- **Blitz:** `"rules": { "turns": 4, "energyByTurn": [3, 4, 5, 6] }` +- **On-topic:** `"rules": { "onTopicBonus": [0, 2, 2, 3, 3, 4, 4], "trendUp": 10, "trendDown": -10 }` +- **Slow play:** `"rules": { "turns": 6, "turnSeconds": 40 }` (the engine caps turns × turnSeconds at 240) +- **Big decks:** `"rules": { "deckSize": 16, "maxLoaners": 16 }` with `"decks": { "kind": "draft", "poolSize": 40 }`. + Starter decks are 12 cards, so a non-draft mode with another deck size is rejected at startup. + +Check that a mode parses with `npm test` (the built-in modes are tested), or load it on a +local node: it fails at startup if the engine rejects it. + +## 3. The node API + +Everything is under `/api/game`, behind the node's existing `/api` admission budget and +global rate limit, plus stricter per-route limits. + +| Method | Path | What it does | +|---|---|---| +| GET | `/modes` | **Publish:** this node's host identity, total matches hosted, and each mode with live stats (players online, open lobbies, live matches, matches played, distinct players). | +| GET | `/network/modes` | **Discover:** this node's list plus each configured peer's list, fetched as data. | +| GET | `/hosts/leaderboard` | Hosts ranked by matches hosted (this node plus peers). | +| GET | `/modes/:id/leaderboard` | Per-mode player leaderboard (wins, losses, draws). | +| GET | `/modes/:id/lobbies` | Open lobbies waiting for an opponent. | +| POST | `/modes/:id/lobbies` | Create a lobby: `{ name, secret }` → `{ lobbyId, seat: 0, token }`. | +| POST | `/lobbies/:lobby/join` | Join: `{ name, secret }` → `{ lobbyId, seat: 1, token }`. The match (or draft) starts. | +| GET | `/lobbies/:lobby` | Status. With `Authorization: Bearer `: your `PlayerView` and your `legalActions`. | +| POST | `/lobbies/:lobby/pick` | Draft pick: `{ index }`. | +| POST | `/lobbies/:lobby/actions` | Play: `{ action }`, which must equal one of your `legalActions`. | +| POST | `/lobbies/:lobby/resign` | Resign (or cancel a waiting lobby). | +| GET | `/matches/:matchId` | A finished match record: seed, both decks, the full action log and the result. | + +**Players.** The browser generates a random `secret` once and keeps it in local storage. The +host only ever stores and shows `sha256("wikideck-player:" + secret)` as the player id, so a +leaderboard name can't be claimed by someone else who uses the same display name. Each seat +also gets a fresh bearer token per lobby; only its hash is kept. When eom.dev accounts land +(#7), the player id can come from the account instead. + +**Playing on a peer's mode.** The browser's CSP keeps API calls same-origin, so the lobby +shows peer modes with "Hosted by …" and links to the peer's own site to play there. No node +proxies another node's matches. + +### Restarts + +Live lobbies, drafts and matches survive a node restart. The node saves them to +`$WIKIDECK_DATA_DIR/game/live.json` every 15 s and on SIGTERM/SIGINT, and restores them on start. +Player tokens keep working, and turn and draft timers restart from the moment the node is back. +A lobby is dropped instead of restored if its mode is no longer hosted with the same `version` +and rules, so a match never continues under different rules. A hard crash can lose up to 15 s +of moves. + +## 4. Credit for hosts + +Every mode shows **"Hosted by <operator>"** (with the node's origin), its player counts, +its own leaderboard, and the node's total matches hosted. `/hosts/leaderboard` ranks nodes by +matches hosted. + +Tonight these numbers are **informational**: each node reports its own counts. See section 6 +for how they could become rewards without trusting the host's word. + +## 5. Security notes + +### Limits + +| Limit | Value | +|---|---| +| Mode document | 8 KiB; 48 rule keys; rule nesting depth 2; strings ≤ 64 chars inside rules | +| Modes per node / per peer response | 16 | +| Peer `/api/game/modes` response | 192 KiB, read with a streaming byte cap; 3 s timeout; no redirects; cached 30 s; at most one refresh in flight | +| Peers | at most 16, operator-configured origins only (HTTPS, or HTTP with `WIKIDECK_ALLOW_PRIVATE_PEERS=1`) | +| Lobbies + matches in memory | 512 per node; `maxConcurrentMatches` per mode; 3 per player | +| Match length | engine bounds (`turns` ≤ 12, turns × turnSeconds ≤ 240 s) plus a hard 2,000-action cap | +| Rate limits per IP | 240/min reads and plays, 60/min lobby create/join/resign, 30/min peer-discovery routes (on top of the node-wide 300/min `/api` limit and the RPC admission budget) | +| Request body | the node's 68 KB JSON limit | +| Wikipedia lookups (`trending`) | background only: one page per 20 s by default (`WIKIDECK_GAME_TREND_INTERVAL_MS`, minimum 15 s), at most 256 queued, never per request | + +### Mode validation + +A mode is rejected at node startup, never handed to the engine half-checked, if: +- it fails the mode schema (section 1), or +- the merged ruleset fails the engine's strict `parseRuleset`, or +- it fails the host-side checks in `server/game/engine-binding.ts`: `distinctStats` requires + `topicCount` 3; every `portalReveal` turn ≤ `turns`; `energyByTurn` has an entry per turn; + `turns × turnSeconds ≤ 240`; `powerByCost` has 7 entries; no keyword whose hidden information + `viewFor` doesn't mask yet (`obscure`) is enabled; or +- its deck policy can't produce legal decks (starter decks illegal under its rules, or a draft + pool smaller than 2 × `deckSize`). + +### Wikipedia load (`verifyStats`) + +Our Wikipedia egress is shared and rate-limited, so tonight the host makes **no Wikipedia +requests in any request or match path**: +- Hosted decks are loaners (starter or drafted), so there are no owned-card stats to verify, + and `verifyStats` never triggers a fetch. +- When owned decks arrive, verification must use the DESIGN §1.10 immutable cache keyed by + `(pageId, revisionId, snapshotMonth)`, with `check: 'unchecked'` and `uncheckedCostCap` as the + normal path when the cache is cold, not a per-card fetch. +- `trending` reads only the background-warmed trend cache (see "Not yet"). + +### Cheating + +- **The client is never trusted.** Each action must deep-equal one of the engine's + `legalActions` for the token's seat, so you can't act for the other seat, play cards you + don't hold, overspend energy or act after the match ends. +- **Hidden information stays on the host.** Each seat only ever receives `viewFor(state, seat)`; + the opponent's hand and staged plays never leave the server. Spectators see status only. +- **Seeds are the host's.** The host picks a random seed when the lobby opens, so players can't + grind for a favourable shuffle. The engine hashes it to 32 bits: fine against players, but + not a secret worth relying on against a host. +- **Stalling:** when a seat runs out of turn time, the host applies the engine's `timeout` + action (auto-commit). After `afkTurns` idle timeouts the engine forfeits that seat. Timeouts + are in the action log, so they replay. A stalled draft pick is made automatically. +- **Sybils and win-trading:** anyone can make a new player id, and two ids controlled by the same + person can feed each other wins. Tonight's leaderboards are for fun. Accounts (#7) or + wallet-signed identities would raise the cost. +- **Card input.** The host builds every deck from shipped engine data (starter decks and the + loaner pool). It never accepts cards, `check` values or pinned stats from client JSON. +- **Card stats.** Card numbers come from the engine's card mapping. Minted stats are self-reported + by the minter (see council-critic in #3); a mode can only pick a mapping preset, not supply numbers. + +### What a malicious host can and can't do + +**Hosted PvP trusts the host.** The host holds both players' hidden plans (hands and queued plays) +and relays them; it decides the seed; and it would be the one to mark card stats as checked or +unchecked (DESIGN §1.10). Nothing tonight lets players verify a match *while* it's being played. +So a host is **trusted for the matches it hosts**, and only those. Play on hosts you trust, and +treat leaderboards on any other host as that host's claims. + +A malicious host **can**: +- lie about its stats, its matches hosted and its leaderboards; +- rig its own matches: pick seeds, peek at hands, or ignore the rules; +- drop or stall your match, or record a false result. + +A malicious host **can't**: +- touch your cards: matches are off-chain, and the host never receives a key or signature; +- run code on other nodes: its modes are inert data, validated with hard limits; +- make other nodes fetch anything except its own `/api/game/modes`, or make them fetch it + in a way that slows them down (byte cap, timeout, cache, single flight); +- publish modes under another node's origin: discovery pins the origin it actually fetched; +- see your player secret: it only receives it once, over its own origin, and stores the hash. + **Use a different secret per host** if you don't trust a host (the UI can derive one per origin). + +**Audit trail.** Every finished match record publishes the seed, both decks and the full action +log, so anyone can re-run it with the engine's `replay(ruleset, decks, seed, actions)` and check +the result. A host that lies about a result can be caught; a host that peeked at hands can't. + +## 6. Proposal: on-chain host rewards (not tonight) + +Rewarding hosts on-chain is a **protocol change**, so it's out of scope for night 1. This is a +proposal for later, to be reviewed like any consensus change. + +**Goal:** pay hosts for matches real players actually played, without trusting the host's count. + +1. **Signed match results.** Both players sign the final result + (`matchId`, `#@`, seed hash, action-log hash, winner) with their wallet + keys. The host signs too. A result needs all three signatures, so a host can't invent matches + or results alone, and players can't deny a match they played. +2. **Replayable evidence.** The record keeps the seed, decks and action log. Anyone can replay it + with the pinned engine version to check the result. Disputes are settled by replay, not by vote. +3. **Batched claims.** Once per epoch, a host submits one transaction committing a Merkle root of + its signed results. A new `hostClaim` transaction type would carry the root and a count. This is + the protocol change: a new transaction type, its validation and its reward rule. +4. **Rewards that resist farming.** A host's reward per epoch grows with the number of **distinct + paired wallets** (not matches), each wallet counts toward at most one host per epoch, wallets + must hold at least one minted card older than N blocks, and the total is a small, capped + share of block rewards. That makes sybil farms cost real mining work. +5. **Challenges.** For a window after a claim, anyone can post a replay that contradicts a + committed result, or proof that a wallet was double-counted. A successful challenge voids + the host's claim for that epoch. + +Open questions: who pays (a share of block rewards versus a fee from players), how to stop +colluding players and hosts from farming one another, and whether the engine version must +be pinned in consensus. + +## Not yet + +- `constructed` decks of **owned NFTs** are verified on the hosting node only, against its + own account store (Night 2). Playing them on a *peer* needs a wallet-signed deck claim, + because accounts are per node; that's a follow-up. +- `trending` never calls Wikipedia when a match starts. The node warms a cache-only trend + store in the background, one page every 20 s (configurable, never faster than 15 s), through its existing enrichment cache (6 h TTL), + starting with the preview-card pages. A card whose page isn't warm yet gets no bonus. This + keeps load on the shared, rate-limited Wikipedia egress tiny: a few dozen pages per 6 hours per node. +- Spectating and rematches. +- **Separate game RPC budget.** `/api/game` sits behind the node's global `/api` admission + budget (`WIKIDECK_RPC_REQUESTS_PER_SECOND`, 10 writes/s node-wide), so a flood of game + traffic can delay chain RPC (and the reverse). At human speed this is fine. The fix is to give + game routes their own `RpcBudget`, which means mounting them ahead of the shared budget in + `server/testnet/http.ts`: a change to that shared file, so it's proposed in #6 rather than made + tonight. diff --git a/docs/game/OWNERSHIP_API.md b/docs/game/OWNERSHIP_API.md new file mode 100644 index 0000000..0a03096 --- /dev/null +++ b/docs/game/OWNERSHIP_API.md @@ -0,0 +1,73 @@ +# Ownership and collection API (Night 2, #57) + +Server-side checks that a player owns the cards they play. Off-chain only: nothing here moves, burns or locks a card, and nothing changes consensus. + +## The rules (ruleset data) + +| Key | Default | Meaning | +|---|---|---| +| `deckSize` | 40 | A constructed deck has exactly this many cards. A testnet mode file may lower it. | +| `maxCopiesPerPage` | 4 | The MTG-style copy limit. Cards minted from the same Wikipedia `pageId` are separate cards, but at most this many go in one deck. | +| `minConfirmations` | 1 | The confirmations each card's mint block needs. Rated play uses `RATED_MIN_CONFIRMATIONS` = 3. | + +## `server/game/ownership.ts` (used by the PvP host) + +```ts +verifyAccount(deps, idToken: unknown): Promise +resolveDeck(deps, account, tokenIds: unknown, opts?: Partial): Promise +collection(deps, account, opts?: { minConfirmations?: number }): Promise +``` + +- **`deps`** is `{ ledger, accounts, verifyIdToken }`. In production, `server/testnet/http.ts` builds it from the node's `Ledger`, the shared `AccountStore`, and `accountVerifier()` from `server/account/router.ts`. It passes the result to `gameRouter({ ownership })`. +- **`resolveDeck`** accepts token ids only, never card JSON. For each card it checks: + - the card is on the canonical chain (`ledger.nft()`); + - its current owner (after transfers) is one of the account's linked wallets; + - it has enough confirmations; + - the deck size and copy limit. + + Each card is rebuilt from its own block (`article` and `statsSnapshot`). The cards come back in the order given. +- **Errors** are thrown as `DeckError { code, status, tokenIds, pageId? }`. `tokenIds` lists every offending card of that class. + + | `code` | `status` | + |---|---| + | `auth` | 401 | + | `size` | 400 | + | `duplicate-token` | 400 | + | `unknown-token` (not on chain, or malformed) | 400 | + | `not-owned` (includes "no linked wallet") | 403 | + | `unconfirmed` | 400 | + | `copy-limit` | 400 | + + `OwnershipUnavailable` (503) means Dex is unreachable or the chain tip kept moving during a read. +- **`collection`** pages `ledger.deck()` (24 per page) across every linked wallet at one canonical tip, restarting if the tip moves. There is no 128-block snapshot cap. + +## `GET /api/game/collection` + +`Authorization: Bearer ` (the same token as `/api/account/me`). Optional: `?minConfirmations=N`. + +```ts +{ + tip, wallets: string[], + deckSize: 40, copyLimit: 4, maxCopiesPerPage: 4, minConfirmations: 1, + owned: number, // confirmed cards across all linked wallets + playable: number, // Σ min(copies, copyLimit) per pageId + needed: number, // max(0, deckSize - playable) + eligible: boolean, // playable >= deckSize + cards: ChainCard[] // tokenId, owner, confirmations, pageId, title, revisionId, url, extract, imageUrl?, + // height, blockHash, createdAt, powHash, article, statsSnapshot +} +``` + +| Case | Response | +|---|---| +| No linked wallets | 200 with `cards: []` and `needed: 40` | +| Missing or invalid token | 401 | +| Dex unreachable | 503 | +| Bad query | 400 | + +The UI shows `playable / deckSize`, for example "23 / 40 cards", and how to mine. + +## Not covered (known gaps) + +- **Peer hosts.** Account stores are per node, and a Dex token sent to a peer could be replayed elsewhere (engineer review §2, G6). This API is for the self-hosted node only. The stretch fix is a wallet-signed deck claim. +- **Plausibility of minted stats** (G5): `pageId` → `title` and `revisionId` → `size` are not cross-checked yet. diff --git a/docs/game/card-sample.json b/docs/game/card-sample.json new file mode 100644 index 0000000..b82b298 --- /dev/null +++ b/docs/game/card-sample.json @@ -0,0 +1,18702 @@ +{ + "generatedAt": "2026-11-17T04:19:07.777994+00:00", + "method": "random ns0 batches of 20, filter as server/wiki.ts (thumbnail + extract>=40); enrichment as server/enrichment.ts; monthly views summed from daily REST pageviews; P31 from Wikidata", + "randomBatches": 17, + "rawPagesSeen": 340, + "cards": [ + { + "pageId": 8723556, + "title": "Salahuddin of Aceh", + "description": "Sultan of Aceh (1530–1537/9)", + "wikidataId": "Q4264920", + "revisionId": 1358732737, + "pageBytes": 5773, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "1548 deaths", + "16th-century Indonesian people", + "16th-century monarchs in Asia", + "Sultans of Aceh" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 151 + }, + { + "month": "2026-06", + "views": 129 + }, + { + "month": "2026-07", + "views": 155 + }, + { + "month": "2026-08", + "views": 155 + }, + { + "month": "2026-09", + "views": 159 + }, + { + "month": "2026-10", + "views": 142 + } + ], + "latestMonth": "2026-10", + "total": 891, + "dailyAverage": 4.580645161290323, + "trendPercent": -10.69182389937107 + }, + "stats": { + "attention": 36, + "depth": 63, + "reach": 28 + }, + "legacyCategory": "People", + "drift30": { + "last30": 140, + "prev30": 152, + "pct": -7.894736842105263 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 10800205, + "title": "St. Georgen am Längsee", + "description": "Municipality in Carinthia, Austria", + "wikidataId": "Q664135", + "revisionId": 1376918522, + "pageBytes": 5004, + "languageCount": 30, + "languagesTruncated": false, + "categories": [ + "Carinthia geography stubs", + "Cities and towns in Sankt Veit an der Glan District" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 46 + }, + { + "month": "2026-06", + "views": 33 + }, + { + "month": "2026-07", + "views": 43 + }, + { + "month": "2026-08", + "views": 53 + }, + { + "month": "2026-09", + "views": 56 + }, + { + "month": "2026-10", + "views": 45 + } + ], + "latestMonth": "2026-10", + "total": 276, + "dailyAverage": 1.4516129032258065, + "trendPercent": -19.642857142857142 + }, + "stats": { + "attention": 28, + "depth": 62, + "reach": 50 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 36, + "prev30": 46, + "pct": -21.73913043478261 + }, + "instanceOf": [ + { + "id": "Q1802801", + "label": "rural municipality of Austria" + }, + { + "id": "Q667509", + "label": "municipality of Austria" + } + ], + "tiers": { + "attention": 4, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 25468405, + "title": "Maracás", + "description": "Municipality of Bahia, Brazil", + "wikidataId": "Q1795100", + "revisionId": 1378546622, + "pageBytes": 5063, + "languageCount": 27, + "languagesTruncated": false, + "categories": [ + "Bahia geography stubs", + "Municipalities in Bahia" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 105 + }, + { + "month": "2026-06", + "views": 81 + }, + { + "month": "2026-07", + "views": 68 + }, + { + "month": "2026-08", + "views": 67 + }, + { + "month": "2026-09", + "views": 79 + }, + { + "month": "2026-10", + "views": 58 + } + ], + "latestMonth": "2026-10", + "total": 458, + "dailyAverage": 1.8709677419354838, + "trendPercent": -26.582278481012654 + }, + "stats": { + "attention": 30, + "depth": 62, + "reach": 48 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 55, + "prev30": 62, + "pct": -11.29032258064516 + }, + "instanceOf": [ + { + "id": "Q3184121", + "label": "municipality of Brazil" + } + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 25856905, + "title": "Dichromorpha viridis", + "description": "Species of grasshopper", + "wikidataId": "Q5272562", + "revisionId": 1367363150, + "pageBytes": 1347, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Gomphocerinae", + "Insects described in 1863" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 182 + }, + { + "month": "2026-06", + "views": 242 + }, + { + "month": "2026-07", + "views": 326 + }, + { + "month": "2026-08", + "views": 296 + }, + { + "month": "2026-09", + "views": 236 + }, + { + "month": "2026-10", + "views": 133 + } + ], + "latestMonth": "2026-10", + "total": 1415, + "dailyAverage": 4.290322580645161, + "trendPercent": -43.64406779661017 + }, + "stats": { + "attention": 35, + "depth": 52, + "reach": 23 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 121, + "prev30": 197, + "pct": -38.578680203045685 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 7, + "depth": 1, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 36740675, + "title": "The Best of Men", + "description": "2012 British television film", + "wikidataId": "Q7717125", + "revisionId": 1372732350, + "pageBytes": 6002, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "2010s docudrama films", + "2012 British films", + "2012 films", + "2012 television films", + "BBC television dramas", + "British docudrama films", + "Science docudramas" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 521 + }, + { + "month": "2026-06", + "views": 656 + }, + { + "month": "2026-07", + "views": 644 + }, + { + "month": "2026-08", + "views": 518 + }, + { + "month": "2026-09", + "views": 493 + }, + { + "month": "2026-10", + "views": 476 + } + ], + "latestMonth": "2026-10", + "total": 3308, + "dailyAverage": 15.35483870967742, + "trendPercent": -3.4482758620689653 + }, + "stats": { + "attention": 45, + "depth": 63, + "reach": 23 + }, + "legacyCategory": "Science", + "drift30": { + "last30": 436, + "prev30": 455, + "pct": -4.175824175824175 + }, + "instanceOf": [ + { + "id": "Q506240", + "label": "television film" + } + ], + "tiers": { + "attention": 9, + "depth": 6, + "reach": 6 + }, + "faction": "Works", + "category": "Science" + }, + { + "pageId": 41530188, + "title": "Hervé Fischer", + "description": null, + "wikidataId": "Q3134490", + "revisionId": 1383948367, + "pageBytes": 10429, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "1941 births", + "French male writers", + "French sociologists", + "Living people" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 68 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 49 + }, + { + "month": "2026-08", + "views": 62 + }, + { + "month": "2026-09", + "views": 81 + }, + { + "month": "2026-10", + "views": 47 + } + ], + "latestMonth": "2026-10", + "total": 339, + "dailyAverage": 1.5161290322580645, + "trendPercent": -41.9753086419753 + }, + "stats": { + "attention": 28, + "depth": 67, + "reach": 28 + }, + "legacyCategory": "People", + "drift30": { + "last30": 47, + "prev30": 68, + "pct": -30.88235294117647 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 41676480, + "title": "Mary Sophie Young", + "description": "American botanist (c.1872–1919)", + "wikidataId": "Q16043849", + "revisionId": 1187069209, + "pageBytes": 4654, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1870s births", + "1919 deaths", + "American botanists", + "American women academics", + "American women botanists", + "Botanists active in North America", + "People from Glendale, Ohio", + "University of Chicago alumni", + "University of Texas at Austin faculty", + "Wellesley College alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 20 + }, + { + "month": "2026-06", + "views": 25 + }, + { + "month": "2026-07", + "views": 15 + }, + { + "month": "2026-08", + "views": 11 + }, + { + "month": "2026-09", + "views": 16 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 105, + "dailyAverage": 0.5806451612903226, + "trendPercent": 12.5 + }, + "stats": { + "attention": 21, + "depth": 61, + "reach": 20 + }, + "legacyCategory": "People", + "drift30": { + "last30": 20, + "prev30": 20, + "pct": 0.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 2, + "depth": 5, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 60187566, + "title": "Oncopagurus", + "description": "Genus of crustaceans", + "wikidataId": "Q4471563", + "revisionId": 1353977816, + "pageBytes": 2123, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Anomura stubs", + "Decapod genera", + "Hermit crabs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 90 + }, + { + "month": "2026-06", + "views": 66 + }, + { + "month": "2026-07", + "views": 72 + }, + { + "month": "2026-08", + "views": 82 + }, + { + "month": "2026-09", + "views": 39 + }, + { + "month": "2026-10", + "views": 63 + } + ], + "latestMonth": "2026-10", + "total": 412, + "dailyAverage": 2.032258064516129, + "trendPercent": 61.53846153846154 + }, + "stats": { + "attention": 30, + "depth": 55, + "reach": 28 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 51, + "prev30": 47, + "pct": 8.51063829787234 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 5, + "depth": 2, + "reach": 7 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 67426902, + "title": "April 2021 nor'easter", + "description": "Slow-moving nor'easter in April 2021", + "wikidataId": "Q106542029", + "revisionId": 1355258366, + "pageBytes": 24519, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "2020–21 North American winter", + "2021 in Maine", + "2021 in Massachusetts", + "2021 in New Hampshire", + "2021 in Vermont", + "April 2021 in the United States", + "Nor'easters" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 127 + }, + { + "month": "2026-06", + "views": 86 + }, + { + "month": "2026-07", + "views": 78 + }, + { + "month": "2026-08", + "views": 108 + }, + { + "month": "2026-09", + "views": 302 + }, + { + "month": "2026-10", + "views": 89 + } + ], + "latestMonth": "2026-10", + "total": 790, + "dailyAverage": 2.870967741935484, + "trendPercent": -70.52980132450331 + }, + "stats": { + "attention": 33, + "depth": 73, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 80, + "prev30": 277, + "pct": -71.11913357400722 + }, + "instanceOf": [ + { + "id": "Q2001587", + "label": "nor'easter" + } + ], + "tiers": { + "attention": 6, + "depth": 10, + "reach": 2 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 8330236, + "title": "Hiroshima Electric Railway", + "description": "Japanese transportation company", + "wikidataId": "Q16595959", + "revisionId": 1383654640, + "pageBytes": 8796, + "languageCount": 14, + "languagesTruncated": false, + "categories": [ + "Bus companies of Japan", + "Companies based in Hiroshima Prefecture", + "Companies listed on the Tokyo Stock Exchange", + "Hiroshima Electric Railway", + "Japanese companies established in 1910", + "Railway companies established in 1910", + "Railway companies of Japan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1387 + }, + { + "month": "2026-06", + "views": 1086 + }, + { + "month": "2026-07", + "views": 1092 + }, + { + "month": "2026-08", + "views": 1483 + }, + { + "month": "2026-09", + "views": 1232 + }, + { + "month": "2026-10", + "views": 1059 + } + ], + "latestMonth": "2026-10", + "total": 7339, + "dailyAverage": 34.16129032258065, + "trendPercent": -14.042207792207792 + }, + "stats": { + "attention": 50, + "depth": 66, + "reach": 39 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1048, + "prev30": 1102, + "pct": -4.900181488203267 + }, + "instanceOf": [ + { + "id": "Q85907346", + "label": "rail company (Japan)" + } + ], + "tiers": { + "attention": 9, + "depth": 7, + "reach": 9 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 15810707, + "title": "Charmont-en-Beauce", + "description": "Commune in Centre-Val de Loire, France", + "wikidataId": "Q667131", + "revisionId": 1381828954, + "pageBytes": 1811, + "languageCount": 32, + "languagesTruncated": false, + "categories": [ + "Communes of Loiret", + "Loiret geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 26 + }, + { + "month": "2026-06", + "views": 14 + }, + { + "month": "2026-07", + "views": 9 + }, + { + "month": "2026-08", + "views": 7 + }, + { + "month": "2026-09", + "views": 18 + }, + { + "month": "2026-10", + "views": 23 + } + ], + "latestMonth": "2026-10", + "total": 97, + "dailyAverage": 0.7419354838709677, + "trendPercent": 27.77777777777778 + }, + "stats": { + "attention": 23, + "depth": 54, + "reach": 51 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 14, + "prev30": 21, + "pct": -33.33333333333333 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 15884863, + "title": "Freshwater River", + "description": "River on Stewart Island / Rakiura, New Zealand", + "wikidataId": "Q5503122", + "revisionId": 1358001871, + "pageBytes": 4058, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Rivers of Stewart Island" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 21 + }, + { + "month": "2026-06", + "views": 39 + }, + { + "month": "2026-07", + "views": 31 + }, + { + "month": "2026-08", + "views": 28 + }, + { + "month": "2026-09", + "views": 32 + }, + { + "month": "2026-10", + "views": 29 + } + ], + "latestMonth": "2026-10", + "total": 180, + "dailyAverage": 0.9354838709677419, + "trendPercent": -9.375 + }, + "stats": { + "attention": 25, + "depth": 60, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 26, + "prev30": 41, + "pct": -36.58536585365854 + }, + "instanceOf": [ + { + "id": "Q4022", + "label": "river" + } + ], + "tiers": { + "attention": 3, + "depth": 4, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 18775530, + "title": "Złaków Kościelny", + "description": "Village in Łódź Voivodeship, Poland", + "wikidataId": "Q321622", + "revisionId": 1378518207, + "pageBytes": 1153, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Villages in Łowicz County", + "Łowicz County geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 19 + }, + { + "month": "2026-06", + "views": 10 + }, + { + "month": "2026-07", + "views": 7 + }, + { + "month": "2026-08", + "views": 27 + }, + { + "month": "2026-09", + "views": 13 + }, + { + "month": "2026-10", + "views": 11 + } + ], + "latestMonth": "2026-10", + "total": 87, + "dailyAverage": 0.3548387096774194, + "trendPercent": -15.384615384615385 + }, + "stats": { + "attention": 18, + "depth": 51, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 7, + "prev30": 10, + "pct": -30.0 + }, + "instanceOf": [ + { + "id": "Q3558970", + "label": "village of Poland" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 24509551, + "title": "Village (Pennsylvania)", + "description": null, + "wikidataId": "Q16936588", + "revisionId": 1367096869, + "pageBytes": 4229, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Local government in Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 88 + }, + { + "month": "2026-06", + "views": 80 + }, + { + "month": "2026-07", + "views": 74 + }, + { + "month": "2026-08", + "views": 70 + }, + { + "month": "2026-09", + "views": 67 + }, + { + "month": "2026-10", + "views": 51 + } + ], + "latestMonth": "2026-10", + "total": 430, + "dailyAverage": 1.6451612903225807, + "trendPercent": -23.88059701492537 + }, + "stats": { + "attention": 29, + "depth": 60, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 40, + "prev30": 60, + "pct": -33.33333333333333 + }, + "instanceOf": [], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 25207440, + "title": "Sainte-Félicité, Chaudière-Appalaches", + "description": "Municipality in Quebec, Canada", + "wikidataId": "Q3464275", + "revisionId": 1376759357, + "pageBytes": 4402, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Chaudière-Appalaches geography stubs", + "Incorporated places in Chaudière-Appalaches", + "Municipalities in Quebec" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 18 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 12 + }, + { + "month": "2026-08", + "views": 23 + }, + { + "month": "2026-09", + "views": 27 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 122, + "dailyAverage": 0.5806451612903226, + "trendPercent": -33.33333333333333 + }, + "stats": { + "attention": 21, + "depth": 61, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 6, + "prev30": 26, + "pct": -76.92307692307693 + }, + "instanceOf": [ + { + "id": "Q27676428", + "label": "municipality" + } + ], + "tiers": { + "attention": 2, + "depth": 5, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 29902322, + "title": "Llanveynoe", + "description": "Village in Herefordshire, England", + "wikidataId": "Q6661845", + "revisionId": 1325745411, + "pageBytes": 4047, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Civil parishes in Herefordshire", + "Villages in Herefordshire" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 55 + }, + { + "month": "2026-06", + "views": 36 + }, + { + "month": "2026-07", + "views": 59 + }, + { + "month": "2026-08", + "views": 84 + }, + { + "month": "2026-09", + "views": 54 + }, + { + "month": "2026-10", + "views": 43 + } + ], + "latestMonth": "2026-10", + "total": 331, + "dailyAverage": 1.3870967741935485, + "trendPercent": -20.37037037037037 + }, + "stats": { + "attention": 27, + "depth": 60, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 29, + "prev30": 40, + "pct": -27.500000000000004 + }, + "instanceOf": [ + { + "id": "Q532", + "label": "village" + }, + { + "id": "Q1115575", + "label": "civil parish" + } + ], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 66508497, + "title": "Amanita mairei", + "description": "Species of fungus", + "wikidataId": "Q15651951", + "revisionId": 1323515500, + "pageBytes": 998, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "Amanita", + "Fungi described in 1949", + "Fungus species" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 24 + }, + { + "month": "2026-06", + "views": 30 + }, + { + "month": "2026-07", + "views": 19 + }, + { + "month": "2026-08", + "views": 54 + }, + { + "month": "2026-09", + "views": 78 + }, + { + "month": "2026-10", + "views": 61 + } + ], + "latestMonth": "2026-10", + "total": 266, + "dailyAverage": 1.967741935483871, + "trendPercent": -21.794871794871796 + }, + "stats": { + "attention": 30, + "depth": 50, + "reach": 32 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 49, + "prev30": 67, + "pct": -26.865671641791046 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 5, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 80560274, + "title": "1912 Argentine Primera División final", + "description": "Football match", + "wikidataId": "Q135493693", + "revisionId": 1351705367, + "pageBytes": 11909, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1910s in Buenos Aires", + "1912 in Argentine football", + "Argentine Primera División", + "Club Atlético Independiente matches", + "Club Atlético Porteño matches", + "December 1912 in sports", + "Football competitions in Buenos Aires" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 41 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 21 + }, + { + "month": "2026-08", + "views": 23 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 19 + } + ], + "latestMonth": "2026-10", + "total": 151, + "dailyAverage": 0.6129032258064516, + "trendPercent": -17.391304347826086 + }, + "stats": { + "attention": 22, + "depth": 68, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 6, + "prev30": 27, + "pct": -77.77777777777779 + }, + "instanceOf": [ + { + "id": "Q12166442", + "label": "association football match" + }, + { + "id": "Q1366722", + "label": "final" + } + ], + "tiers": { + "attention": 2, + "depth": 8, + "reach": 2 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 466891, + "title": "City of Wyndham", + "description": "Local government area in Victoria, Australia", + "wikidataId": "Q1502429", + "revisionId": 1386046344, + "pageBytes": 13630, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "1862 establishments in Australia", + "City of Wyndham", + "Local government areas in Melbourne", + "Populated places established in 1862" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1464 + }, + { + "month": "2026-06", + "views": 1160 + }, + { + "month": "2026-07", + "views": 1194 + }, + { + "month": "2026-08", + "views": 1260 + }, + { + "month": "2026-09", + "views": 1034 + }, + { + "month": "2026-10", + "views": 954 + } + ], + "latestMonth": "2026-10", + "total": 7066, + "dailyAverage": 30.774193548387096, + "trendPercent": -7.7369439071566735 + }, + "stats": { + "attention": 50, + "depth": 69, + "reach": 33 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 841, + "prev30": 991, + "pct": -15.136226034308779 + }, + "instanceOf": [ + { + "id": "Q1426035", + "label": "local government area of Victoria" + } + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 2453788, + "title": "Heart rot", + "description": "Fungal disease of trees", + "wikidataId": "Q5692479", + "revisionId": 1374732887, + "pageBytes": 10880, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Fungal tree pathogens and diseases" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 854 + }, + { + "month": "2026-06", + "views": 691 + }, + { + "month": "2026-07", + "views": 567 + }, + { + "month": "2026-08", + "views": 670 + }, + { + "month": "2026-09", + "views": 799 + }, + { + "month": "2026-10", + "views": 762 + } + ], + "latestMonth": "2026-10", + "total": 4343, + "dailyAverage": 24.580645161290324, + "trendPercent": -4.630788485607009 + }, + "stats": { + "attention": 48, + "depth": 67, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 665, + "prev30": 765, + "pct": -13.071895424836603 + }, + "instanceOf": [ + { + "id": "Q2662845", + "label": "plant disease" + } + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 6 + }, + "faction": "Nature", + "category": "Culture" + }, + { + "pageId": 2806760, + "title": "Jess Harnell", + "description": "American voice actor and singer (born 1963)", + "wikidataId": "Q258503", + "revisionId": 1385958400, + "pageBytes": 53307, + "languageCount": 22, + "languagesTruncated": false, + "categories": [ + "1963 births", + "20th-century American male actors", + "20th-century American male singers", + "21st-century American male actors", + "21st-century American male singers", + "American announcers", + "American casting directors", + "American impressionists (entertainers)", + "American male film actors", + "American male radio actors", + "American male television actors", + "American male video game actors", + "American male voice actors", + "American rock singers", + "American voice directors", + "Audiobook narrators", + "Disney people", + "Living people", + "Male actors from Englewood, New Jersey", + "Male actors from Teaneck, New Jersey", + "Musicians from Englewood, New Jersey", + "Musicians from Teaneck, New Jersey" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 13061 + }, + { + "month": "2026-06", + "views": 12627 + }, + { + "month": "2026-07", + "views": 14539 + }, + { + "month": "2026-08", + "views": 14585 + }, + { + "month": "2026-09", + "views": 14785 + }, + { + "month": "2026-10", + "views": 14374 + } + ], + "latestMonth": "2026-10", + "total": 83971, + "dailyAverage": 463.6774193548387, + "trendPercent": -2.77984443692932 + }, + "stats": { + "attention": 69, + "depth": 79, + "reach": 45 + }, + "legacyCategory": "People", + "drift30": { + "last30": 14621, + "prev30": 13492, + "pct": 8.367921731396383 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 9026000, + "title": "Names of Poland", + "description": "", + "wikidataId": "Q6961536", + "revisionId": 1351068420, + "pageBytes": 18966, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Country name etymology", + "History of Poland", + "Polish language" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2197 + }, + { + "month": "2026-06", + "views": 1797 + }, + { + "month": "2026-07", + "views": 1657 + }, + { + "month": "2026-08", + "views": 1500 + }, + { + "month": "2026-09", + "views": 1444 + }, + { + "month": "2026-10", + "views": 1431 + } + ], + "latestMonth": "2026-10", + "total": 10026, + "dailyAverage": 46.16129032258065, + "trendPercent": -0.9002770083102494 + }, + "stats": { + "attention": 53, + "depth": 71, + "reach": 23 + }, + "legacyCategory": "History", + "drift30": { + "last30": 1295, + "prev30": 1458, + "pct": -11.179698216735254 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 6 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 15768716, + "title": "Ungersheim", + "description": "Commune in Grand Est, France", + "wikidataId": "Q122940", + "revisionId": 1382030873, + "pageBytes": 3450, + "languageCount": 39, + "languagesTruncated": false, + "categories": [ + "Communes of Haut-Rhin", + "Mulhouse arrondissement geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 69 + }, + { + "month": "2026-06", + "views": 62 + }, + { + "month": "2026-07", + "views": 113 + }, + { + "month": "2026-08", + "views": 96 + }, + { + "month": "2026-09", + "views": 73 + }, + { + "month": "2026-10", + "views": 66 + } + ], + "latestMonth": "2026-10", + "total": 479, + "dailyAverage": 2.129032258064516, + "trendPercent": -9.58904109589041 + }, + "stats": { + "attention": 30, + "depth": 59, + "reach": 53 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 62, + "prev30": 64, + "pct": -3.125 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + } + ], + "tiers": { + "attention": 5, + "depth": 4, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 38195538, + "title": "Joe Gideon & the Shark", + "description": "English blues/indie rock band", + "wikidataId": "Q3012108", + "revisionId": 1354427246, + "pageBytes": 2489, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "British musical group stubs", + "English blues rock musical groups", + "Rock music groups from London" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 102 + }, + { + "month": "2026-06", + "views": 71 + }, + { + "month": "2026-07", + "views": 75 + }, + { + "month": "2026-08", + "views": 91 + }, + { + "month": "2026-09", + "views": 85 + }, + { + "month": "2026-10", + "views": 96 + } + ], + "latestMonth": "2026-10", + "total": 520, + "dailyAverage": 3.096774193548387, + "trendPercent": 12.941176470588237 + }, + "stats": { + "attention": 33, + "depth": 57, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 87, + "prev30": 88, + "pct": -1.1363636363636365 + }, + "instanceOf": [ + { + "id": "Q215380", + "label": "musical group" + } + ], + "tiers": { + "attention": 6, + "depth": 3, + "reach": 4 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 39770094, + "title": "2013–14 California Golden Bears men's basketball team", + "description": "American college basketball season", + "wikidataId": "Q16245089", + "revisionId": 1376919282, + "pageBytes": 31778, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "2013 in sports in California", + "2013–14 Pac-12 Conference men's basketball season", + "2014 National Invitation Tournament participants", + "2014 in sports in California", + "California Golden Bears men's basketball seasons" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 68 + }, + { + "month": "2026-06", + "views": 66 + }, + { + "month": "2026-07", + "views": 39 + }, + { + "month": "2026-08", + "views": 27 + }, + { + "month": "2026-09", + "views": 36 + }, + { + "month": "2026-10", + "views": 29 + } + ], + "latestMonth": "2026-10", + "total": 265, + "dailyAverage": 0.9354838709677419, + "trendPercent": -19.444444444444446 + }, + "stats": { + "attention": 25, + "depth": 75, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 29, + "prev30": 41, + "pct": -29.268292682926827 + }, + "instanceOf": [ + { + "id": "Q26894053", + "label": "basketball team season" + } + ], + "tiers": { + "attention": 3, + "depth": 10, + "reach": 2 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 49830722, + "title": "Dicroidium odontopteroides", + "description": "Species of ancient plant", + "wikidataId": "Q25095289", + "revisionId": 1116073630, + "pageBytes": 1943, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Mesozoic plant stubs", + "Pteridospermatophyta", + "Triassic plants" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 41 + }, + { + "month": "2026-06", + "views": 82 + }, + { + "month": "2026-07", + "views": 52 + }, + { + "month": "2026-08", + "views": 69 + }, + { + "month": "2026-09", + "views": 56 + }, + { + "month": "2026-10", + "views": 59 + } + ], + "latestMonth": "2026-10", + "total": 359, + "dailyAverage": 1.903225806451613, + "trendPercent": 5.357142857142857 + }, + "stats": { + "attention": 30, + "depth": 55, + "reach": 0 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 42, + "prev30": 64, + "pct": -34.375 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 5, + "depth": 2, + "reach": 2 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 52302489, + "title": "Pathrail Mosque", + "description": "Mosque in Faridpur, Bangladesh", + "wikidataId": "Q28173356", + "revisionId": 1380325251, + "pageBytes": 6701, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "15th-century mosques in Bangladesh", + "Bengal Sultanate mosques", + "Faridpur District", + "Mosque buildings with domes in Bangladesh", + "Mosque buildings with minarets in Bangladesh", + "Mosques in Dhaka Division" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 117 + }, + { + "month": "2026-06", + "views": 100 + }, + { + "month": "2026-07", + "views": 100 + }, + { + "month": "2026-08", + "views": 98 + }, + { + "month": "2026-09", + "views": 81 + }, + { + "month": "2026-10", + "views": 71 + } + ], + "latestMonth": "2026-10", + "total": 567, + "dailyAverage": 2.2903225806451615, + "trendPercent": -12.345679012345679 + }, + "stats": { + "attention": 31, + "depth": 64, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 70, + "prev30": 69, + "pct": 1.4492753623188406 + }, + "instanceOf": [ + { + "id": "Q32815", + "label": "mosque" + } + ], + "tiers": { + "attention": 5, + "depth": 6, + "reach": 6 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 1979500, + "title": "Zbyszek Godlewski", + "description": "Polish protester (1952–1970)", + "wikidataId": "Q3497070", + "revisionId": 1382599906, + "pageBytes": 6049, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "1952 births", + "1970 deaths", + "Anti-communism in Poland", + "Deaths by firearm in Poland", + "Fictional characters based on real people", + "Legendary Polish people", + "Polish murder victims", + "Polish poems", + "Polish songs", + "Victims of human rights abuses" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 507 + }, + { + "month": "2026-06", + "views": 397 + }, + { + "month": "2026-07", + "views": 452 + }, + { + "month": "2026-08", + "views": 427 + }, + { + "month": "2026-09", + "views": 385 + }, + { + "month": "2026-10", + "views": 402 + } + ], + "latestMonth": "2026-10", + "total": 2570, + "dailyAverage": 12.96774193548387, + "trendPercent": 4.415584415584416 + }, + "stats": { + "attention": 43, + "depth": 63, + "reach": 36 + }, + "legacyCategory": "People", + "drift30": { + "last30": 451, + "prev30": 352, + "pct": 28.125 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 4426773, + "title": "Agda (programming language)", + "description": "Functional programming language", + "wikidataId": "Q20479", + "revisionId": 1384528612, + "pageBytes": 14254, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "2007 software", + "Academic programming languages", + "Chalmers University of Technology", + "Cross-platform free software", + "Dependently typed languages", + "Extensible syntax programming languages", + "Free and open source compilers", + "Free software programmed in Haskell", + "Functional languages", + "Haskell programming language family", + "Pattern matching programming languages", + "Programming languages", + "Programming languages created in 2007", + "Proof assistants", + "Statically typed programming languages" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2783 + }, + { + "month": "2026-06", + "views": 2318 + }, + { + "month": "2026-07", + "views": 2230 + }, + { + "month": "2026-08", + "views": 2257 + }, + { + "month": "2026-09", + "views": 2262 + }, + { + "month": "2026-10", + "views": 2439 + } + ], + "latestMonth": "2026-10", + "total": 14289, + "dailyAverage": 78.6774193548387, + "trendPercent": 7.824933687002653 + }, + "stats": { + "attention": 56, + "depth": 69, + "reach": 36 + }, + "legacyCategory": "Science", + "drift30": { + "last30": 2310, + "prev30": 2299, + "pct": 0.4784688995215311 + }, + "instanceOf": [ + { + "id": "Q3839507", + "label": "functional programming language" + }, + { + "id": "Q28920201", + "label": "purely functional programming language" + }, + { + "id": "Q56223375", + "label": "dependently typed programming language" + }, + { + "id": "Q9143", + "label": "programming language" + }, + { + "id": "Q341", + "label": "free software" + }, + { + "id": "Q11387554", + "label": "proof assistant" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 9 + }, + "faction": "Ideas & Tech", + "category": "Science" + }, + { + "pageId": 4674437, + "title": "Topusko", + "description": "Commune in Sisak-Moslavina County, Croatia", + "wikidataId": "Q2457438", + "revisionId": 1384106265, + "pageBytes": 13847, + "languageCount": 23, + "languagesTruncated": false, + "categories": [ + "Hot springs of Croatia", + "Municipalities of Croatia", + "Populated places in Sisak-Moslavina County", + "Spa towns in Croatia", + "Zagreb County (former)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 649 + }, + { + "month": "2026-06", + "views": 331 + }, + { + "month": "2026-07", + "views": 303 + }, + { + "month": "2026-08", + "views": 372 + }, + { + "month": "2026-09", + "views": 289 + }, + { + "month": "2026-10", + "views": 302 + } + ], + "latestMonth": "2026-10", + "total": 2246, + "dailyAverage": 9.741935483870968, + "trendPercent": 4.498269896193772 + }, + "stats": { + "attention": 41, + "depth": 69, + "reach": 46 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 297, + "prev30": 257, + "pct": 15.56420233463035 + }, + "instanceOf": [ + { + "id": "Q57058", + "label": "municipality of Croatia" + } + ], + "tiers": { + "attention": 8, + "depth": 9, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 5096391, + "title": "Isabella of Aragon, Queen of Portugal", + "description": "Queen of Portugal from 1497 to 1498", + "wikidataId": "Q466305", + "revisionId": 1376332037, + "pageBytes": 14306, + "languageCount": 43, + "languagesTruncated": false, + "categories": [ + "1470 births", + "1498 deaths", + "15th-century Portuguese people", + "15th-century Portuguese women", + "15th-century Spanish people", + "15th-century Spanish women", + "Aragonese infantas", + "Castilian infantas", + "Children of Ferdinand II of Aragon", + "Children of Isabella I of Castile", + "Daughters of counts", + "Daughters of kings", + "Daughters of queens regnant", + "Deaths in childbirth", + "Heirs presumptive", + "House of Aviz", + "House of Trastámara", + "Princes of Asturias", + "Princesses of Portugal", + "Queens consort of Portugal", + "Spanish Roman Catholics", + "Spanish expatriate royalty", + "Spanish people of English descent", + "Spanish people of French descent", + "Spanish people of Italian descent", + "Spanish people of Portuguese descent" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7082 + }, + { + "month": "2026-06", + "views": 6550 + }, + { + "month": "2026-07", + "views": 7514 + }, + { + "month": "2026-08", + "views": 7636 + }, + { + "month": "2026-09", + "views": 6506 + }, + { + "month": "2026-10", + "views": 6358 + } + ], + "latestMonth": "2026-10", + "total": 41646, + "dailyAverage": 205.09677419354838, + "trendPercent": -2.2748232400860746 + }, + "stats": { + "attention": 63, + "depth": 69, + "reach": 55 + }, + "legacyCategory": "People", + "drift30": { + "last30": 5553, + "prev30": 6384, + "pct": -13.016917293233082 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 15915366, + "title": "Montjavoult", + "description": "Commune in Hauts-de-France, France", + "wikidataId": "Q1336846", + "revisionId": 1381946137, + "pageBytes": 1584, + "languageCount": 36, + "languagesTruncated": false, + "categories": [ + "Beauvais arrondissement geography stubs", + "Communes of Oise" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 33 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 29 + }, + { + "month": "2026-08", + "views": 57 + }, + { + "month": "2026-09", + "views": 44 + }, + { + "month": "2026-10", + "views": 10 + } + ], + "latestMonth": "2026-10", + "total": 193, + "dailyAverage": 0.3225806451612903, + "trendPercent": -77.27272727272727 + }, + "stats": { + "attention": 17, + "depth": 53, + "reach": 52 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 12, + "prev30": 17, + "pct": -29.411764705882355 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 15963682, + "title": "Viktor Genev", + "description": "Bulgarian footballer", + "wikidataId": "Q2604995", + "revisionId": 1384826851, + "pageBytes": 13767, + "languageCount": 13, + "languagesTruncated": false, + "categories": [ + "1988 births", + "21st-century Bulgarian sportsmen", + "Botev Plovdiv players", + "Bulgarian expatriate men's footballers", + "Bulgarian expatriate sportspeople in Israel", + "Bulgarian expatriate sportspeople in Kazakhstan", + "Bulgarian expatriate sportspeople in Romania", + "Bulgarian expatriate sportspeople in Russia", + "Bulgarian expatriate sportspeople in Scotland", + "Bulgarian expatriate sportspeople in Ukraine", + "Bulgarian men's footballers", + "Expatriate men's footballers in Belarus", + "Expatriate men's footballers in Israel", + "Expatriate men's footballers in Kazakhstan", + "Expatriate men's footballers in Russia", + "Expatriate men's footballers in Scotland", + "Expatriate men's footballers in Ukraine", + "F.C. Ashdod players", + "FC Dinamo Minsk players", + "FC Montana players", + "FC Oleksandriya players", + "FC Petrolul Ploiești players", + "FC Rilski Sportist Samokov players", + "FC Yelimay players", + "First Professional Football League (Bulgaria) players", + "Footballers from Sofia", + "Israeli Premier League players", + "Kazakhstan Premier League players", + "Liga I players", + "Living people", + "Men's association football defenders", + "PFC Beroe Stara Zagora players", + "PFC Cherno More Varna players", + "PFC Krylia Sovetov Samara players", + "PFC Levski Sofia players", + "PFC Slavia Sofia players", + "Russian Premier League players", + "St Mirren F.C. players", + "Ukrainian Premier League players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 123 + }, + { + "month": "2026-06", + "views": 65 + }, + { + "month": "2026-07", + "views": 61 + }, + { + "month": "2026-08", + "views": 80 + }, + { + "month": "2026-09", + "views": 74 + }, + { + "month": "2026-10", + "views": 93 + } + ], + "latestMonth": "2026-10", + "total": 496, + "dailyAverage": 3.0, + "trendPercent": 25.675675675675674 + }, + "stats": { + "attention": 33, + "depth": 69, + "reach": 38 + }, + "legacyCategory": "People", + "drift30": { + "last30": 98, + "prev30": 69, + "pct": 42.028985507246375 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 9, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 28025187, + "title": "Pühajõe", + "description": "Village in Estonia", + "wikidataId": "Q179358", + "revisionId": 1377386321, + "pageBytes": 1880, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "Ida-Viru County geography stubs", + "Toila Parish", + "Villages in Ida-Viru County", + "Wierland County" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 30 + }, + { + "month": "2026-08", + "views": 58 + }, + { + "month": "2026-09", + "views": 41 + }, + { + "month": "2026-10", + "views": 16 + } + ], + "latestMonth": "2026-10", + "total": 200, + "dailyAverage": 0.5161290322580645, + "trendPercent": -60.97560975609756 + }, + "stats": { + "attention": 21, + "depth": 55, + "reach": 36 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 22, + "prev30": 23, + "pct": -4.3478260869565215 + }, + "instanceOf": [ + { + "id": "Q51049922", + "label": "village" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 49116132, + "title": "Kalihati", + "description": "Town in Dhaka Division, Bangladesh", + "wikidataId": "Q22348003", + "revisionId": 1376271314, + "pageBytes": 4406, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Dhaka Division geography stubs", + "Populated places in Tangail District", + "Towns in Bangladesh" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 72 + }, + { + "month": "2026-06", + "views": 53 + }, + { + "month": "2026-07", + "views": 59 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 78 + }, + { + "month": "2026-10", + "views": 37 + } + ], + "latestMonth": "2026-10", + "total": 378, + "dailyAverage": 1.1935483870967742, + "trendPercent": -52.56410256410257 + }, + "stats": { + "attention": 26, + "depth": 61, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 42, + "prev30": 45, + "pct": -6.666666666666667 + }, + "instanceOf": [ + { + "id": "Q23759397", + "label": "municipality of Bangladesh" + }, + { + "id": "Q3957", + "label": "town" + } + ], + "tiers": { + "attention": 3, + "depth": 5, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 49444193, + "title": "Miloje Vasić", + "description": "Serbian archaeologist (1869–1956)", + "wikidataId": "Q3314419", + "revisionId": 1371976132, + "pageBytes": 22470, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "1869 births", + "1956 deaths", + "20th-century Serbian people", + "Members of the Serbian Academy of Sciences and Arts", + "People from Veliko Gradište", + "People from the Kingdom of Serbia", + "Serbian archaeologists", + "University of Belgrade people", + "Yugoslav archaeologists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 208 + }, + { + "month": "2026-06", + "views": 145 + }, + { + "month": "2026-07", + "views": 162 + }, + { + "month": "2026-08", + "views": 191 + }, + { + "month": "2026-09", + "views": 197 + }, + { + "month": "2026-10", + "views": 128 + } + ], + "latestMonth": "2026-10", + "total": 1031, + "dailyAverage": 4.129032258064516, + "trendPercent": -35.025380710659896 + }, + "stats": { + "attention": 35, + "depth": 73, + "reach": 36 + }, + "legacyCategory": "People", + "drift30": { + "last30": 104, + "prev30": 180, + "pct": -42.22222222222222 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 10, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 110015, + "title": "Haralson, Georgia", + "description": "Town in Georgia, United States", + "wikidataId": "Q2520618", + "revisionId": 1377786275, + "pageBytes": 8736, + "languageCount": 26, + "languagesTruncated": false, + "categories": [ + "Towns in Coweta County, Georgia", + "Towns in Georgia (U.S. state)", + "Towns in Meriwether County, Georgia" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 182 + }, + { + "month": "2026-06", + "views": 145 + }, + { + "month": "2026-07", + "views": 142 + }, + { + "month": "2026-08", + "views": 214 + }, + { + "month": "2026-09", + "views": 168 + }, + { + "month": "2026-10", + "views": 137 + } + ], + "latestMonth": "2026-10", + "total": 988, + "dailyAverage": 4.419354838709677, + "trendPercent": -18.452380952380953 + }, + "stats": { + "attention": 36, + "depth": 66, + "reach": 48 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 138, + "prev30": 152, + "pct": -9.210526315789473 + }, + "instanceOf": [ + { + "id": "Q15127012", + "label": "town in the United States" + }, + { + "id": "Q76514543", + "label": "municipality of Georgia" + } + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 11240525, + "title": "Joseph Ujlaki", + "description": "French-Hungarian footballer (1929-2006)", + "wikidataId": "Q905343", + "revisionId": 1382620781, + "pageBytes": 3449, + "languageCount": 14, + "languagesTruncated": false, + "categories": [ + "1929 births", + "2006 deaths", + "20th-century French sportsmen", + "20th-century Hungarian sportsmen", + "AS Aix-en-Provence players", + "FC Metz players", + "Footballers from Budapest", + "France men's international footballers", + "French football forward stubs", + "French men's footballers", + "French people of Hungarian descent", + "Hungarian men's footballers", + "Ligue 1 players", + "Men's association football forwards", + "Naturalized citizens of France", + "Nîmes Olympique players", + "OGC Nice players", + "Racing Club de France Football players", + "SC Sète players", + "Stade Français (association football) players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 188 + }, + { + "month": "2026-06", + "views": 242 + }, + { + "month": "2026-07", + "views": 327 + }, + { + "month": "2026-08", + "views": 211 + }, + { + "month": "2026-09", + "views": 148 + }, + { + "month": "2026-10", + "views": 163 + } + ], + "latestMonth": "2026-10", + "total": 1279, + "dailyAverage": 5.258064516129032, + "trendPercent": 10.135135135135135 + }, + "stats": { + "attention": 37, + "depth": 59, + "reach": 39 + }, + "legacyCategory": "People", + "drift30": { + "last30": 159, + "prev30": 118, + "pct": 34.74576271186441 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 23256692, + "title": "Coelogyne trinervis", + "description": "Species of orchid", + "wikidataId": "Q1601035", + "revisionId": 1176682009, + "pageBytes": 1580, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Coelogyne", + "Epidendroideae stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 30 + }, + { + "month": "2026-06", + "views": 18 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 36 + }, + { + "month": "2026-09", + "views": 42 + }, + { + "month": "2026-10", + "views": 24 + } + ], + "latestMonth": "2026-10", + "total": 177, + "dailyAverage": 0.7741935483870968, + "trendPercent": -42.857142857142854 + }, + "stats": { + "attention": 23, + "depth": 53, + "reach": 30 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 28, + "prev30": 34, + "pct": -17.647058823529413 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + }, + { + "id": "Q188238", + "label": "epiphyte" + } + ], + "tiers": { + "attention": 2, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 30886907, + "title": "Pine River (Manistee River tributary)", + "description": "River in Michigan, United States", + "wikidataId": "Q7195337", + "revisionId": 1367824379, + "pageBytes": 4768, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Manistee River", + "Michigan river stubs", + "Rivers of Lake County, Michigan", + "Rivers of Manistee County, Michigan", + "Rivers of Michigan", + "Rivers of Osceola County, Michigan", + "Rivers of Wexford County, Michigan", + "Wild and Scenic Rivers of the United States" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 208 + }, + { + "month": "2026-06", + "views": 218 + }, + { + "month": "2026-07", + "views": 301 + }, + { + "month": "2026-08", + "views": 277 + }, + { + "month": "2026-09", + "views": 151 + }, + { + "month": "2026-10", + "views": 115 + } + ], + "latestMonth": "2026-10", + "total": 1270, + "dailyAverage": 3.7096774193548385, + "trendPercent": -23.841059602649008 + }, + "stats": { + "attention": 34, + "depth": 61, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 91, + "prev30": 131, + "pct": -30.53435114503817 + }, + "instanceOf": [ + { + "id": "Q4022", + "label": "river" + } + ], + "tiers": { + "attention": 6, + "depth": 5, + "reach": 4 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 62190512, + "title": "Nguyễn Văn Huy", + "description": "Vietnamese chess grandmaster (born 1985)", + "wikidataId": "Q20026028", + "revisionId": 1377313379, + "pageBytes": 3624, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1985 births", + "21st-century Vietnamese chess players", + "21st-century Vietnamese sportsmen", + "Asian chess biography stubs", + "Chess Grandmasters", + "Chess Olympiad competitors", + "Living people", + "People from Bắc Ninh", + "Vietnamese chess players", + "Vietnamese sportspeople stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 50 + }, + { + "month": "2026-06", + "views": 42 + }, + { + "month": "2026-07", + "views": 30 + }, + { + "month": "2026-08", + "views": 36 + }, + { + "month": "2026-09", + "views": 62 + }, + { + "month": "2026-10", + "views": 71 + } + ], + "latestMonth": "2026-10", + "total": 291, + "dailyAverage": 2.2903225806451615, + "trendPercent": 14.516129032258066 + }, + "stats": { + "attention": 31, + "depth": 59, + "reach": 20 + }, + "legacyCategory": "People", + "drift30": { + "last30": 56, + "prev30": 68, + "pct": -17.647058823529413 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 4, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 64406081, + "title": "San Wai (San Tin)", + "description": null, + "wikidataId": "Q96739151", + "revisionId": 1280859035, + "pageBytes": 6034, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "San Tin", + "Villages in Yuen Long District, Hong Kong", + "Yuen Long District geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 24 + }, + { + "month": "2026-06", + "views": 17 + }, + { + "month": "2026-07", + "views": 14 + }, + { + "month": "2026-08", + "views": 17 + }, + { + "month": "2026-09", + "views": 21 + }, + { + "month": "2026-10", + "views": 27 + } + ], + "latestMonth": "2026-10", + "total": 120, + "dailyAverage": 0.8709677419354839, + "trendPercent": 28.57142857142857 + }, + "stats": { + "attention": 24, + "depth": 63, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 28, + "prev30": 21, + "pct": 33.33333333333333 + }, + "instanceOf": [ + { + "id": "Q532", + "label": "village" + } + ], + "tiers": { + "attention": 3, + "depth": 6, + "reach": 4 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 65287105, + "title": "Kishore Tirumala", + "description": "Indian film director", + "wikidataId": "Q93762585", + "revisionId": 1376673468, + "pageBytes": 6604, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Film directors from Andhra Pradesh", + "Film people from Andhra Pradesh", + "Indian film director stubs", + "Indian film directors", + "Indian screenwriters", + "Living people", + "People from Andhra Pradesh", + "People from Chittoor district", + "People from Tirupati", + "Screenwriters from Andhra Pradesh", + "Telugu film directors" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2548 + }, + { + "month": "2026-06", + "views": 2543 + }, + { + "month": "2026-07", + "views": 2500 + }, + { + "month": "2026-08", + "views": 4416 + }, + { + "month": "2026-09", + "views": 3484 + }, + { + "month": "2026-10", + "views": 2283 + } + ], + "latestMonth": "2026-10", + "total": 17774, + "dailyAverage": 73.64516129032258, + "trendPercent": -34.47187141216992 + }, + "stats": { + "attention": 56, + "depth": 64, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 1793, + "prev30": 2984, + "pct": -39.91286863270778 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 6, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 81307395, + "title": "2025 Tehreek-e-Labbaik Pakistan protests", + "description": "Gaza war protests in Pakistan", + "wikidataId": "Q136649814", + "revisionId": 1378554406, + "pageBytes": 20919, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "2020s in Islamabad", + "2020s in Lahore", + "2025 in Punjab, Pakistan", + "2025 protests", + "21st century in Faisalabad", + "Anti-Israeli sentiment in Pakistan", + "Gaza war protests", + "October 2025 in Pakistan", + "Protest marches in Pakistan", + "Protests in Pakistan", + "Riots and civil disorder in Pakistan", + "Tehreek-e-Labbaik Pakistan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 686 + }, + { + "month": "2026-06", + "views": 986 + }, + { + "month": "2026-07", + "views": 782 + }, + { + "month": "2026-08", + "views": 629 + }, + { + "month": "2026-09", + "views": 735 + }, + { + "month": "2026-10", + "views": 618 + } + ], + "latestMonth": "2026-10", + "total": 4436, + "dailyAverage": 19.93548387096774, + "trendPercent": -15.918367346938775 + }, + "stats": { + "attention": 47, + "depth": 72, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 318, + "prev30": 771, + "pct": -58.754863813229576 + }, + "instanceOf": [ + { + "id": "Q273120", + "label": "protest" + } + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 4 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 902446, + "title": "Guidimaka region", + "description": "Region of Mauritania", + "wikidataId": "Q768119", + "revisionId": 1378970556, + "pageBytes": 13210, + "languageCount": 32, + "languagesTruncated": false, + "categories": [ + "Guidimaka region", + "Regions of Mauritania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 207 + }, + { + "month": "2026-06", + "views": 140 + }, + { + "month": "2026-07", + "views": 124 + }, + { + "month": "2026-08", + "views": 154 + }, + { + "month": "2026-09", + "views": 149 + }, + { + "month": "2026-10", + "views": 123 + } + ], + "latestMonth": "2026-10", + "total": 897, + "dailyAverage": 3.967741935483871, + "trendPercent": -17.449664429530202 + }, + "stats": { + "attention": 35, + "depth": 69, + "reach": 51 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 123, + "prev30": 143, + "pct": -13.986013986013987 + }, + "instanceOf": [ + { + "id": "Q846327", + "label": "region of Mauritania" + } + ], + "tiers": { + "attention": 7, + "depth": 9, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 1374812, + "title": "Tom Ewell", + "description": "American actor (1909–1994)", + "wikidataId": "Q427388", + "revisionId": 1381663979, + "pageBytes": 17965, + "languageCount": 30, + "languagesTruncated": false, + "categories": [ + "1909 births", + "1994 deaths", + "20th-century American male actors", + "American male film actors", + "American male stage actors", + "American male television actors", + "Best Musical or Comedy Actor Golden Globe (film) winners", + "Clarence Derwent Award winners", + "Donaldson Award winners", + "Male actors from Kentucky", + "People from Owensboro, Kentucky", + "Tony Award winners", + "United States Navy personnel of World War II", + "United States Navy sailors" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 5239 + }, + { + "month": "2026-06", + "views": 13927 + }, + { + "month": "2026-07", + "views": 5978 + }, + { + "month": "2026-08", + "views": 5693 + }, + { + "month": "2026-09", + "views": 5668 + }, + { + "month": "2026-10", + "views": 4548 + } + ], + "latestMonth": "2026-10", + "total": 41053, + "dailyAverage": 146.70967741935485, + "trendPercent": -19.760056457304167 + }, + "stats": { + "attention": 61, + "depth": 71, + "reach": 50 + }, + "legacyCategory": "People", + "drift30": { + "last30": 4027, + "prev30": 4518, + "pct": -10.86764054891545 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 15362336, + "title": "1954 Gold Coast general election", + "description": "", + "wikidataId": "Q2539674", + "revisionId": 1351181171, + "pageBytes": 4141, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1954 elections in Africa", + "1954 elections in the British Empire", + "1954 in the Gold Coast (British colony)", + "Parliamentary elections in Ghana" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 592 + }, + { + "month": "2026-06", + "views": 512 + }, + { + "month": "2026-07", + "views": 407 + }, + { + "month": "2026-08", + "views": 219 + }, + { + "month": "2026-09", + "views": 202 + }, + { + "month": "2026-10", + "views": 181 + } + ], + "latestMonth": "2026-10", + "total": 2113, + "dailyAverage": 5.838709677419355, + "trendPercent": -10.396039603960396 + }, + "stats": { + "attention": 38, + "depth": 60, + "reach": 16 + }, + "legacyCategory": "History", + "drift30": { + "last30": 196, + "prev30": 167, + "pct": 17.365269461077844 + }, + "instanceOf": [ + { + "id": "Q2618461", + "label": "legislative election" + } + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 5 + }, + "faction": "Events", + "category": "History" + }, + { + "pageId": 23242983, + "title": "Larry Weber", + "description": "American entrepreneur", + "wikidataId": "Q6491266", + "revisionId": 1351414373, + "pageBytes": 12852, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1955 births", + "American business writers", + "Living people", + "Writers from Ohio" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 230 + }, + { + "month": "2026-06", + "views": 184 + }, + { + "month": "2026-07", + "views": 160 + }, + { + "month": "2026-08", + "views": 167 + }, + { + "month": "2026-09", + "views": 158 + }, + { + "month": "2026-10", + "views": 188 + } + ], + "latestMonth": "2026-10", + "total": 1087, + "dailyAverage": 6.064516129032258, + "trendPercent": 18.9873417721519 + }, + "stats": { + "attention": 38, + "depth": 68, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 161, + "prev30": 186, + "pct": -13.440860215053762 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 49648409, + "title": "Ulla! min Ulla! Säj får jag dig bjuda", + "description": "Song by the 18th century Swedish bard Carl Michael Bellman", + "wikidataId": "Q19528685", + "revisionId": 1344963259, + "pageBytes": 17244, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1790 compositions", + "Fredmans epistlar", + "Swedish songs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 79 + }, + { + "month": "2026-06", + "views": 48 + }, + { + "month": "2026-07", + "views": 17 + }, + { + "month": "2026-08", + "views": 47 + }, + { + "month": "2026-09", + "views": 53 + }, + { + "month": "2026-10", + "views": 34 + } + ], + "latestMonth": "2026-10", + "total": 278, + "dailyAverage": 1.096774193548387, + "trendPercent": -35.84905660377358 + }, + "stats": { + "attention": 26, + "depth": 71, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 33, + "prev30": 43, + "pct": -23.25581395348837 + }, + "instanceOf": [ + { + "id": "Q105543609", + "label": "musical work/composition" + } + ], + "tiers": { + "attention": 3, + "depth": 9, + "reach": 4 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 84332185, + "title": "Oscar González Oro", + "description": "Argentine journalist and radio host (1951–2026)", + "wikidataId": "Q6053873", + "revisionId": 1378056768, + "pageBytes": 3281, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1951 births", + "2026 deaths", + "20th-century Argentine journalists", + "21st-century Argentine journalists", + "Argentine LGBTQ broadcasters" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 1401 + }, + { + "month": "2026-10", + "views": 188 + } + ], + "latestMonth": "2026-10", + "total": 1589, + "dailyAverage": 6.064516129032258, + "trendPercent": -86.58101356174161 + }, + "stats": { + "attention": 38, + "depth": 59, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 81, + "prev30": 1520, + "pct": -94.67105263157895 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 2385264, + "title": "Ofanto", + "description": "River in Italy", + "wikidataId": "Q841550", + "revisionId": 1334637363, + "pageBytes": 5049, + "languageCount": 29, + "languagesTruncated": false, + "categories": [ + "Adriatic Italian coast basins", + "Apulia geography stubs", + "Basilicata geography stubs", + "Italy river stubs", + "Province of Avellino geography stubs", + "Rivers of Italy", + "Rivers of the Province of Avellino", + "Rivers of the Province of Barletta-Andria-Trani", + "Rivers of the Province of Foggia", + "Rivers of the Province of Potenza" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 291 + }, + { + "month": "2026-06", + "views": 238 + }, + { + "month": "2026-07", + "views": 220 + }, + { + "month": "2026-08", + "views": 256 + }, + { + "month": "2026-09", + "views": 210 + }, + { + "month": "2026-10", + "views": 223 + } + ], + "latestMonth": "2026-10", + "total": 1438, + "dailyAverage": 7.193548387096774, + "trendPercent": 6.190476190476191 + }, + "stats": { + "attention": 39, + "depth": 62, + "reach": 49 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 213, + "prev30": 194, + "pct": 9.793814432989691 + }, + "instanceOf": [ + { + "id": "Q4022", + "label": "river" + } + ], + "tiers": { + "attention": 8, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 7674700, + "title": "Shipley Plateau", + "description": "Place in the Blue Mountains, Australia", + "wikidataId": "Q7498025", + "revisionId": 1384061257, + "pageBytes": 1745, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Geography of the Blue Mountains (New South Wales)", + "New South Wales geography stubs", + "Plateaus of Australia" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 48 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 33 + }, + { + "month": "2026-08", + "views": 54 + }, + { + "month": "2026-09", + "views": 49 + }, + { + "month": "2026-10", + "views": 22 + } + ], + "latestMonth": "2026-10", + "total": 230, + "dailyAverage": 0.7096774193548387, + "trendPercent": -55.10204081632652 + }, + "stats": { + "attention": 23, + "depth": 54, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 18, + "prev30": 40, + "pct": -55.00000000000001 + }, + "instanceOf": [ + { + "id": "Q75520", + "label": "plateau" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 4 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 21016492, + "title": "Xiancantan", + "description": null, + "wikidataId": "Q434483", + "revisionId": 1363646521, + "pageBytes": 1731, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "1740s establishments in China", + "1742 establishments in Asia", + "Religious buildings and structures in Beijing" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 155 + }, + { + "month": "2026-06", + "views": 87 + }, + { + "month": "2026-07", + "views": 67 + }, + { + "month": "2026-08", + "views": 88 + }, + { + "month": "2026-09", + "views": 86 + }, + { + "month": "2026-10", + "views": 85 + } + ], + "latestMonth": "2026-10", + "total": 568, + "dailyAverage": 2.7419354838709675, + "trendPercent": -1.1627906976744187 + }, + "stats": { + "attention": 32, + "depth": 54, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 83, + "prev30": 86, + "pct": -3.488372093023256 + }, + "instanceOf": [ + { + "id": "Q41176", + "label": "building" + } + ], + "tiers": { + "attention": 6, + "depth": 2, + "reach": 8 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 51796741, + "title": "Alex Piquero", + "description": "Cuban-American criminologist (born 1970)", + "wikidataId": "Q27058048", + "revisionId": 1356084913, + "pageBytes": 7837, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1970 births", + "American academic journal editors", + "American criminologists", + "American sociologist stubs", + "Criminologist stubs", + "Cuban emigrants to the United States", + "Living people", + "University of Maryland, College Park alumni", + "University of Miami faculty", + "University of Texas at Dallas faculty" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 239 + }, + { + "month": "2026-06", + "views": 152 + }, + { + "month": "2026-07", + "views": 150 + }, + { + "month": "2026-08", + "views": 154 + }, + { + "month": "2026-09", + "views": 308 + }, + { + "month": "2026-10", + "views": 151 + } + ], + "latestMonth": "2026-10", + "total": 1154, + "dailyAverage": 4.870967741935484, + "trendPercent": -50.97402597402597 + }, + "stats": { + "attention": 36, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 117, + "prev30": 269, + "pct": -56.50557620817844 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 1587861, + "title": "Vélez-Málaga", + "description": "Place in Málaga, Spain", + "wikidataId": "Q492741", + "revisionId": 1382422731, + "pageBytes": 30172, + "languageCount": 56, + "languagesTruncated": false, + "categories": [ + "Municipalities in the Province of Málaga" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1271 + }, + { + "month": "2026-06", + "views": 1491 + }, + { + "month": "2026-07", + "views": 1606 + }, + { + "month": "2026-08", + "views": 1442 + }, + { + "month": "2026-09", + "views": 1586 + }, + { + "month": "2026-10", + "views": 1033 + } + ], + "latestMonth": "2026-10", + "total": 8429, + "dailyAverage": 33.32258064516129, + "trendPercent": -34.867591424968474 + }, + "stats": { + "attention": 50, + "depth": 75, + "reach": 59 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 989, + "prev30": 1051, + "pct": -5.899143672692674 + }, + "instanceOf": [ + { + "id": "Q2074737", + "label": "municipality of Spain" + } + ], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 4289899, + "title": "Anthodon (reptile)", + "description": "Extinct genus of reptiles", + "wikidataId": "Q2505064", + "revisionId": 1384682008, + "pageBytes": 9037, + "languageCount": 12, + "languagesTruncated": false, + "categories": [ + "Changhsingian life", + "Fossil taxa described in 1876", + "Lopingian reptiles of Africa", + "Pareiasauria", + "Prehistoric reptile genera", + "Taxa named by Richard Owen" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 244 + }, + { + "month": "2026-06", + "views": 244 + }, + { + "month": "2026-07", + "views": 229 + }, + { + "month": "2026-08", + "views": 270 + }, + { + "month": "2026-09", + "views": 254 + }, + { + "month": "2026-10", + "views": 233 + } + ], + "latestMonth": "2026-10", + "total": 1474, + "dailyAverage": 7.516129032258065, + "trendPercent": -8.267716535433072 + }, + "stats": { + "attention": 39, + "depth": 66, + "reach": 37 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 198, + "prev30": 243, + "pct": -18.51851851851852 + }, + "instanceOf": [ + { + "id": "Q47487597", + "label": "monotypic fossil taxon" + } + ], + "tiers": { + "attention": 8, + "depth": 7, + "reach": 9 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 17506241, + "title": "Marion Thees", + "description": "German skeleton racer", + "wikidataId": "Q72724", + "revisionId": 1361257647, + "pageBytes": 3061, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "1984 births", + "21st-century German sportswomen", + "German female skeleton racers", + "German winter sports biography stubs", + "Living people", + "Olympic skeleton racers for Germany", + "Skeleton racers at the 2010 Winter Olympics", + "Skeleton racers at the 2014 Winter Olympics", + "Skeleton racing biography stubs", + "Sportspeople from Eisenach" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 58 + }, + { + "month": "2026-06", + "views": 57 + }, + { + "month": "2026-07", + "views": 63 + }, + { + "month": "2026-08", + "views": 63 + }, + { + "month": "2026-09", + "views": 52 + }, + { + "month": "2026-10", + "views": 53 + } + ], + "latestMonth": "2026-10", + "total": 346, + "dailyAverage": 1.7096774193548387, + "trendPercent": 1.9230769230769231 + }, + "stats": { + "attention": 29, + "depth": 58, + "reach": 36 + }, + "legacyCategory": "People", + "drift30": { + "last30": 49, + "prev30": 55, + "pct": -10.909090909090908 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 3, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 20701320, + "title": "Horse Feathers (band)", + "description": "American indie folk band", + "wikidataId": "Q5905442", + "revisionId": 1385997032, + "pageBytes": 6636, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "2004 establishments in Oregon", + "American folk rock groups", + "American indie folk groups", + "Indie rock musical groups from Oregon", + "Kill Rock Stars artists", + "Musical groups established in 2004", + "Musical groups from Portland, Oregon" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 287 + }, + { + "month": "2026-06", + "views": 365 + }, + { + "month": "2026-07", + "views": 416 + }, + { + "month": "2026-08", + "views": 753 + }, + { + "month": "2026-09", + "views": 648 + }, + { + "month": "2026-10", + "views": 263 + } + ], + "latestMonth": "2026-10", + "total": 2732, + "dailyAverage": 8.483870967741936, + "trendPercent": -59.413580246913575 + }, + "stats": { + "attention": 40, + "depth": 64, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 264, + "prev30": 461, + "pct": -42.73318872017354 + }, + "instanceOf": [ + { + "id": "Q215380", + "label": "musical group" + } + ], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 5 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 47784502, + "title": "Christian Zübert", + "description": "German film director and screenwriter (born 1973)", + "wikidataId": "Q1082448", + "revisionId": 1375411209, + "pageBytes": 8086, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "1973 births", + "Film directors from Würzburg", + "German male television writers", + "German screenwriters", + "German television writers", + "Living people" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 152 + }, + { + "month": "2026-06", + "views": 211 + }, + { + "month": "2026-07", + "views": 99 + }, + { + "month": "2026-08", + "views": 134 + }, + { + "month": "2026-09", + "views": 104 + }, + { + "month": "2026-10", + "views": 76 + } + ], + "latestMonth": "2026-10", + "total": 776, + "dailyAverage": 2.4516129032258065, + "trendPercent": -26.923076923076923 + }, + "stats": { + "attention": 31, + "depth": 65, + "reach": 26 + }, + "legacyCategory": "People", + "drift30": { + "last30": 75, + "prev30": 82, + "pct": -8.536585365853659 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 7, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 64423476, + "title": "2023 Seville municipal election", + "description": "Election in the Spanish municipality of Seville", + "wikidataId": "Q97188845", + "revisionId": 1377264425, + "pageBytes": 62894, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "2023 in Seville", + "2023 municipal elections in Spain", + "Elections in Seville", + "May 2023 in Spain" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 126 + }, + { + "month": "2026-06", + "views": 58 + }, + { + "month": "2026-07", + "views": 86 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 85 + }, + { + "month": "2026-10", + "views": 100 + } + ], + "latestMonth": "2026-10", + "total": 534, + "dailyAverage": 3.225806451612903, + "trendPercent": 17.647058823529413 + }, + "stats": { + "attention": 33, + "depth": 80, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 78, + "prev30": 89, + "pct": -12.359550561797752 + }, + "instanceOf": [ + { + "id": "Q152450", + "label": "municipal election" + } + ], + "tiers": { + "attention": 6, + "depth": 10, + "reach": 5 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 77371520, + "title": "Coalición Vamos", + "description": "Political party in Panama", + "wikidataId": "Q127386808", + "revisionId": 1372235441, + "pageBytes": 3605, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Politics of Panama" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 495 + }, + { + "month": "2026-06", + "views": 736 + }, + { + "month": "2026-07", + "views": 561 + }, + { + "month": "2026-08", + "views": 671 + }, + { + "month": "2026-09", + "views": 507 + }, + { + "month": "2026-10", + "views": 852 + } + ], + "latestMonth": "2026-10", + "total": 3822, + "dailyAverage": 27.483870967741936, + "trendPercent": 68.04733727810651 + }, + "stats": { + "attention": 49, + "depth": 59, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 852, + "prev30": 495, + "pct": 72.12121212121212 + }, + "instanceOf": [ + { + "id": "Q7278", + "label": "political party" + } + ], + "tiers": { + "attention": 9, + "depth": 4, + "reach": 4 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 115448, + "title": "Mackville, Kentucky", + "description": "City in Kentucky, United States", + "wikidataId": "Q2246158", + "revisionId": 1374535006, + "pageBytes": 6984, + "languageCount": 33, + "languagesTruncated": false, + "categories": [ + "Cities in Kentucky", + "Cities in Washington County, Kentucky" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 130 + }, + { + "month": "2026-06", + "views": 110 + }, + { + "month": "2026-07", + "views": 129 + }, + { + "month": "2026-08", + "views": 141 + }, + { + "month": "2026-09", + "views": 118 + }, + { + "month": "2026-10", + "views": 87 + } + ], + "latestMonth": "2026-10", + "total": 715, + "dailyAverage": 2.806451612903226, + "trendPercent": -26.27118644067797 + }, + "stats": { + "attention": 32, + "depth": 64, + "reach": 51 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 74, + "prev30": 93, + "pct": -20.43010752688172 + }, + "instanceOf": [ + { + "id": "Q1093829", + "label": "city in the United States" + } + ], + "tiers": { + "attention": 6, + "depth": 6, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 4324457, + "title": "Juha Suoranta", + "description": "Finnish social scientist", + "wikidataId": "Q6305056", + "revisionId": 1372952688, + "pageBytes": 10693, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1966 births", + "Finnish bloggers", + "Finnish educational theorists", + "Finnish sociologists", + "Living people", + "People from Tampere" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 36 + }, + { + "month": "2026-06", + "views": 39 + }, + { + "month": "2026-07", + "views": 30 + }, + { + "month": "2026-08", + "views": 38 + }, + { + "month": "2026-09", + "views": 54 + }, + { + "month": "2026-10", + "views": 46 + } + ], + "latestMonth": "2026-10", + "total": 243, + "dailyAverage": 1.4838709677419355, + "trendPercent": -14.814814814814813 + }, + "stats": { + "attention": 28, + "depth": 67, + "reach": 20 + }, + "legacyCategory": "People", + "drift30": { + "last30": 35, + "prev30": 56, + "pct": -37.5 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 9472671, + "title": "Fletcher (typeface)", + "description": "Serif typeface", + "wikidataId": "Q2539914", + "revisionId": 1280127322, + "pageBytes": 1133, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Blackletter typefaces" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 72 + }, + { + "month": "2026-06", + "views": 66 + }, + { + "month": "2026-07", + "views": 100 + }, + { + "month": "2026-08", + "views": 101 + }, + { + "month": "2026-09", + "views": 90 + }, + { + "month": "2026-10", + "views": 108 + } + ], + "latestMonth": "2026-10", + "total": 537, + "dailyAverage": 3.4838709677419355, + "trendPercent": 20.0 + }, + "stats": { + "attention": 34, + "depth": 51, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 98, + "prev30": 100, + "pct": -2.0 + }, + "instanceOf": [ + { + "id": "Q17451", + "label": "typeface" + } + ], + "tiers": { + "attention": 6, + "depth": 1, + "reach": 4 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 12516367, + "title": "Frogham, Kent", + "description": "Hamlet in Kent, England", + "wikidataId": "Q5505274", + "revisionId": 1320927031, + "pageBytes": 1530, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Dover District", + "Hamlets in Kent", + "Kent geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 42 + }, + { + "month": "2026-06", + "views": 34 + }, + { + "month": "2026-07", + "views": 32 + }, + { + "month": "2026-08", + "views": 77 + }, + { + "month": "2026-09", + "views": 45 + }, + { + "month": "2026-10", + "views": 27 + } + ], + "latestMonth": "2026-10", + "total": 257, + "dailyAverage": 0.8709677419354839, + "trendPercent": -40.0 + }, + "stats": { + "attention": 24, + "depth": 53, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 13, + "prev30": 32, + "pct": -59.375 + }, + "instanceOf": [ + { + "id": "Q5084", + "label": "hamlet" + } + ], + "tiers": { + "attention": 3, + "depth": 1, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 25275009, + "title": "Amur Annexation", + "description": "Russian annexation of Outer Manchuria", + "wikidataId": "Q4379152", + "revisionId": 1381503728, + "pageBytes": 15490, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "19th century in Manchuria", + "Annexations by Russia", + "China–Russian Empire relations", + "History of Siberia", + "Russian Far East" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 3812 + }, + { + "month": "2026-06", + "views": 3492 + }, + { + "month": "2026-07", + "views": 3723 + }, + { + "month": "2026-08", + "views": 3681 + }, + { + "month": "2026-09", + "views": 3469 + }, + { + "month": "2026-10", + "views": 3238 + } + ], + "latestMonth": "2026-10", + "total": 21415, + "dailyAverage": 104.45161290322581, + "trendPercent": -6.65897953300663 + }, + "stats": { + "attention": 59, + "depth": 70, + "reach": 33 + }, + "legacyCategory": "History", + "drift30": { + "last30": 3203, + "prev30": 3248, + "pct": -1.3854679802955665 + }, + "instanceOf": [ + { + "id": "Q194465", + "label": "annexation" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 8 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 33276983, + "title": "Buky", + "description": "Rural locality in Cherkasy Oblast, Ukraine", + "wikidataId": "Q2473493", + "revisionId": 1375320562, + "pageBytes": 4244, + "languageCount": 15, + "languagesTruncated": false, + "categories": [ + "Rural settlements in Uman Raion", + "Umansky uezd" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 73 + }, + { + "month": "2026-06", + "views": 73 + }, + { + "month": "2026-07", + "views": 63 + }, + { + "month": "2026-08", + "views": 68 + }, + { + "month": "2026-09", + "views": 69 + }, + { + "month": "2026-10", + "views": 51 + } + ], + "latestMonth": "2026-10", + "total": 397, + "dailyAverage": 1.6451612903225807, + "trendPercent": -26.08695652173913 + }, + "stats": { + "attention": 29, + "depth": 60, + "reach": 40 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 46, + "prev30": 49, + "pct": -6.122448979591836 + }, + "instanceOf": [ + { + "id": "Q4100864", + "label": "urban-type settlement in Ukraine" + }, + { + "id": "Q486972", + "label": "human settlement" + } + ], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 9 + }, + "faction": "People", + "category": "Culture" + }, + { + "pageId": 39238370, + "title": "2013 San Jose State Spartans football team", + "description": "American college football season", + "wikidataId": "Q16972991", + "revisionId": 1330396969, + "pageBytes": 18442, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "2013 Mountain West Conference football season", + "2013 in sports in California", + "San Jose State Spartans football seasons" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 156 + }, + { + "month": "2026-06", + "views": 83 + }, + { + "month": "2026-07", + "views": 143 + }, + { + "month": "2026-08", + "views": 160 + }, + { + "month": "2026-09", + "views": 185 + }, + { + "month": "2026-10", + "views": 143 + } + ], + "latestMonth": "2026-10", + "total": 870, + "dailyAverage": 4.612903225806452, + "trendPercent": -22.702702702702705 + }, + "stats": { + "attention": 36, + "depth": 71, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 114, + "prev30": 187, + "pct": -39.037433155080215 + }, + "instanceOf": [ + { + "id": "Q26895936", + "label": "American football team season" + } + ], + "tiers": { + "attention": 7, + "depth": 9, + "reach": 2 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 46263191, + "title": "Max Touloute", + "description": "Haitian footballer (born 1990)", + "wikidataId": "Q20641573", + "revisionId": 1384441370, + "pageBytes": 10140, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1990 births", + "21st-century Haitian sportsmen", + "Expatriate men's soccer players in the United States", + "Flint City Bucks players", + "Florida Tropics SC players", + "Haitian expatriate men's footballers", + "Haitian men's footballers", + "Kansas City Comets (2010–) players", + "Living people", + "Major Arena Soccer League players", + "Men's association football forwards", + "People from Les Cayes", + "Pittsburgh Riverhounds SC players", + "Purdue Fort Wayne Mastodons men's soccer players", + "Reading United AC players", + "Tindastóll men's football players", + "USL Championship players", + "USL League Two players", + "Vermont Voltage players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 53 + }, + { + "month": "2026-06", + "views": 37 + }, + { + "month": "2026-07", + "views": 19 + }, + { + "month": "2026-08", + "views": 27 + }, + { + "month": "2026-09", + "views": 24 + }, + { + "month": "2026-10", + "views": 47 + } + ], + "latestMonth": "2026-10", + "total": 207, + "dailyAverage": 1.5161290322580645, + "trendPercent": 95.83333333333334 + }, + "stats": { + "attention": 28, + "depth": 67, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 30, + "prev30": 40, + "pct": -25.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 50185825, + "title": "Majid Qodiri", + "description": "Uzbek literary scholar and educator (1886–1938)", + "wikidataId": "Q23823703", + "revisionId": 1371365886, + "pageBytes": 9420, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "1886 births", + "1938 deaths", + "20th-century Uzbekistani writers", + "People from Syr-Darya Oblast", + "Soviet writers", + "Uzbekistani academics", + "Uzbekistani male writers", + "Writers from Tashkent" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 53 + }, + { + "month": "2026-08", + "views": 65 + }, + { + "month": "2026-09", + "views": 65 + }, + { + "month": "2026-10", + "views": 43 + } + ], + "latestMonth": "2026-10", + "total": 273, + "dailyAverage": 1.3870967741935485, + "trendPercent": -33.84615384615385 + }, + "stats": { + "attention": 27, + "depth": 66, + "reach": 28 + }, + "legacyCategory": "People", + "drift30": { + "last30": 37, + "prev30": 51, + "pct": -27.450980392156865 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 7, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 52540452, + "title": "Olga Gorshenina", + "description": "Russian handball player", + "wikidataId": "Q2019617", + "revisionId": 1381108921, + "pageBytes": 2811, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "1990 births", + "21st-century Russian sportswomen", + "Expatriate handball players in Hungary", + "Expatriate handball players in Romania", + "Handball players from Tolyatti", + "Living people", + "Russian expatriate handball players in Germany", + "Russian expatriate sportspeople in Hungary", + "Russian expatriate sportspeople in Romania", + "Russian handball biography stubs", + "Russian women's handball players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 26 + }, + { + "month": "2026-06", + "views": 26 + }, + { + "month": "2026-07", + "views": 19 + }, + { + "month": "2026-08", + "views": 13 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 21 + } + ], + "latestMonth": "2026-10", + "total": 127, + "dailyAverage": 0.6774193548387096, + "trendPercent": -4.545454545454546 + }, + "stats": { + "attention": 22, + "depth": 57, + "reach": 36 + }, + "legacyCategory": "People", + "drift30": { + "last30": 21, + "prev30": 21, + "pct": 0.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 71038192, + "title": "1952 Avusrennen", + "description": "Motor car race", + "wikidataId": "Q112838670", + "revisionId": 1382877416, + "pageBytes": 4609, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1950s in West Berlin", + "1952 Formula Two races", + "1952 in West German motorsport", + "Motorsport in Berlin", + "September 1952 sports events in Europe", + "Sports competitions in Berlin" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 29 + }, + { + "month": "2026-06", + "views": 25 + }, + { + "month": "2026-07", + "views": 35 + }, + { + "month": "2026-08", + "views": 40 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 31 + } + ], + "latestMonth": "2026-10", + "total": 183, + "dailyAverage": 1.0, + "trendPercent": 34.78260869565217 + }, + "stats": { + "attention": 25, + "depth": 61, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 27, + "prev30": 23, + "pct": 17.391304347826086 + }, + "instanceOf": [], + "tiers": { + "attention": 3, + "depth": 5, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 81318312, + "title": "Guido Iván Justo", + "description": "Argentine tennis player (born 1997)", + "wikidataId": "Q138414200", + "revisionId": 1382049023, + "pageBytes": 6501, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1997 births", + "Argentine male tennis players", + "Argentine tennis biography stubs", + "Living people", + "Sportspeople from Buenos Aires" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 360 + }, + { + "month": "2026-06", + "views": 309 + }, + { + "month": "2026-07", + "views": 535 + }, + { + "month": "2026-08", + "views": 402 + }, + { + "month": "2026-09", + "views": 287 + }, + { + "month": "2026-10", + "views": 824 + } + ], + "latestMonth": "2026-10", + "total": 2717, + "dailyAverage": 26.580645161290324, + "trendPercent": 187.10801393728224 + }, + "stats": { + "attention": 49, + "depth": 64, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 155, + "prev30": 1003, + "pct": -84.54636091724825 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 9, + "depth": 6, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 2218990, + "title": "Deputy Prime Minister of Malaysia", + "description": "Political office in Malaysia", + "wikidataId": "Q5261073", + "revisionId": 1386025479, + "pageBytes": 21259, + "languageCount": 10, + "languagesTruncated": false, + "categories": [ + "Deputy prime ministers of Malaysia", + "Lists of deputy prime ministers", + "Lists of political office-holders in Malaysia", + "Malaysia politics-related lists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1374 + }, + { + "month": "2026-06", + "views": 1126 + }, + { + "month": "2026-07", + "views": 1532 + }, + { + "month": "2026-08", + "views": 1494 + }, + { + "month": "2026-09", + "views": 1837 + }, + { + "month": "2026-10", + "views": 1504 + } + ], + "latestMonth": "2026-10", + "total": 8867, + "dailyAverage": 48.516129032258064, + "trendPercent": -18.127381600435495 + }, + "stats": { + "attention": 53, + "depth": 72, + "reach": 35 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1304, + "prev30": 1919, + "pct": -32.04794163626889 + }, + "instanceOf": [ + { + "id": "Q4164871", + "label": "position" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 8 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 8275276, + "title": "Thomas Wharton Jr.", + "description": "American politician (1735–1778)", + "wikidataId": "Q883460", + "revisionId": 1350443233, + "pageBytes": 12218, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1735 births", + "1778 deaths", + "18th-century American Episcopalians", + "Governors of Pennsylvania", + "Merchants from colonial Pennsylvania", + "Patriots in the American Revolution", + "People disowned by the Quakers", + "People of Pennsylvania in the American Revolution", + "Politicians from Chester County, Pennsylvania", + "Politicians from Philadelphia", + "Wharton family" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 536 + }, + { + "month": "2026-06", + "views": 462 + }, + { + "month": "2026-07", + "views": 656 + }, + { + "month": "2026-08", + "views": 503 + }, + { + "month": "2026-09", + "views": 419 + }, + { + "month": "2026-10", + "views": 420 + } + ], + "latestMonth": "2026-10", + "total": 2996, + "dailyAverage": 13.548387096774194, + "trendPercent": 0.23866348448687352 + }, + "stats": { + "attention": 44, + "depth": 68, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 511, + "prev30": 446, + "pct": 14.573991031390134 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 21376831, + "title": "Bez (Drôme)", + "description": "River in France", + "wikidataId": "Q1019347", + "revisionId": 1374494957, + "pageBytes": 1685, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Auvergne-Rhône-Alpes river stubs", + "Drôme geography stubs", + "Rivers of Auvergne-Rhône-Alpes", + "Rivers of Drôme", + "Rivers of France", + "Tributaries of the Rhône" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 19 + }, + { + "month": "2026-06", + "views": 9 + }, + { + "month": "2026-07", + "views": 36 + }, + { + "month": "2026-08", + "views": 41 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 23 + } + ], + "latestMonth": "2026-10", + "total": 150, + "dailyAverage": 0.7419354838709677, + "trendPercent": 4.545454545454546 + }, + "stats": { + "attention": 23, + "depth": 54, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 8, + "prev30": 21, + "pct": -61.904761904761905 + }, + "instanceOf": [ + { + "id": "Q4022", + "label": "river" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 5 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 22403198, + "title": "Cioc-Maidan", + "description": "Commune in Gagauzia, Moldova", + "wikidataId": "Q2639022", + "revisionId": 1375646501, + "pageBytes": 3479, + "languageCount": 12, + "languagesTruncated": false, + "categories": [ + "Communes of Gagauzia", + "Southern Moldova geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 44 + }, + { + "month": "2026-06", + "views": 39 + }, + { + "month": "2026-07", + "views": 38 + }, + { + "month": "2026-08", + "views": 80 + }, + { + "month": "2026-09", + "views": 52 + }, + { + "month": "2026-10", + "views": 44 + } + ], + "latestMonth": "2026-10", + "total": 297, + "dailyAverage": 1.4193548387096775, + "trendPercent": -15.384615384615385 + }, + "stats": { + "attention": 28, + "depth": 59, + "reach": 37 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 31, + "prev30": 55, + "pct": -43.63636363636363 + }, + "instanceOf": [ + { + "id": "Q4229812", + "label": "commune of Moldova" + }, + { + "id": "Q532", + "label": "village" + } + ], + "tiers": { + "attention": 4, + "depth": 4, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 22517668, + "title": "Kwong Wai Siew Peck San Theng", + "description": "Columbarium in Singapore", + "wikidataId": "Q6450554", + "revisionId": 1244289559, + "pageBytes": 6673, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Bishan, Singapore", + "Columbaria in Singapore", + "Hakka culture in Singapore" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 504 + }, + { + "month": "2026-06", + "views": 308 + }, + { + "month": "2026-07", + "views": 393 + }, + { + "month": "2026-08", + "views": 438 + }, + { + "month": "2026-09", + "views": 412 + }, + { + "month": "2026-10", + "views": 304 + } + ], + "latestMonth": "2026-10", + "total": 2359, + "dailyAverage": 9.806451612903226, + "trendPercent": -26.21359223300971 + }, + "stats": { + "attention": 41, + "depth": 64, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 279, + "prev30": 347, + "pct": -19.596541786743515 + }, + "instanceOf": [], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 4 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 47519878, + "title": "Jeanne Madden", + "description": "American singer and actress (1917–1989)", + "wikidataId": "Q20974011", + "revisionId": 1382761423, + "pageBytes": 1817, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "1917 births", + "1989 deaths", + "20th-century American actresses", + "20th-century American singers", + "Actors from Scranton, Pennsylvania", + "Actresses from Lackawanna County, Pennsylvania", + "American film actor, 1910s birth stubs", + "American film actresses", + "American singer stubs", + "American stage actresses", + "American theatre actor, 20th-century birth stubs", + "Musicians from Scranton, Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 39 + }, + { + "month": "2026-06", + "views": 44 + }, + { + "month": "2026-07", + "views": 48 + }, + { + "month": "2026-08", + "views": 46 + }, + { + "month": "2026-09", + "views": 44 + }, + { + "month": "2026-10", + "views": 26 + } + ], + "latestMonth": "2026-10", + "total": 247, + "dailyAverage": 0.8387096774193549, + "trendPercent": -40.909090909090914 + }, + "stats": { + "attention": 24, + "depth": 54, + "reach": 23 + }, + "legacyCategory": "People", + "drift30": { + "last30": 35, + "prev30": 35, + "pct": 0.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 48714450, + "title": "Payam Heydari", + "description": "Iranian-American Professor", + "wikidataId": "Q22097382", + "revisionId": 1383721847, + "pageBytes": 12398, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "American electrical engineers", + "Engineers from California", + "Fellows of the IEEE", + "Iranian electrical engineers", + "Iranian engineers", + "Iranian expatriate academics", + "Living people", + "Sharif University of Technology alumni", + "USC Viterbi School of Engineering alumni", + "University of California, Irvine faculty" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 225 + }, + { + "month": "2026-06", + "views": 145 + }, + { + "month": "2026-07", + "views": 114 + }, + { + "month": "2026-08", + "views": 154 + }, + { + "month": "2026-09", + "views": 126 + }, + { + "month": "2026-10", + "views": 127 + } + ], + "latestMonth": "2026-10", + "total": 891, + "dailyAverage": 4.096774193548387, + "trendPercent": 0.7936507936507936 + }, + "stats": { + "attention": 35, + "depth": 68, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 122, + "prev30": 125, + "pct": -2.4 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 78868030, + "title": "Mercenasco Castle", + "description": "Building in Mercenasco, Italy", + "wikidataId": "Q131729377", + "revisionId": 1327239041, + "pageBytes": 2716, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Castles in the Metropolitan City of Turin", + "Mercenasco" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 12 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 17 + }, + { + "month": "2026-08", + "views": 10 + }, + { + "month": "2026-09", + "views": 11 + }, + { + "month": "2026-10", + "views": 5 + } + ], + "latestMonth": "2026-10", + "total": 77, + "dailyAverage": 0.16129032258064516, + "trendPercent": -54.54545454545454 + }, + "stats": { + "attention": 13, + "depth": 57, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 7, + "prev30": 10, + "pct": -30.0 + }, + "instanceOf": [ + { + "id": "Q23413", + "label": "castle" + } + ], + "tiers": { + "attention": 1, + "depth": 3, + "reach": 5 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 84606242, + "title": "Edward Ellsworth Underwood", + "description": "American physician (1864–1942)", + "wikidataId": "Q141822855", + "revisionId": 1382829231, + "pageBytes": 7526, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1864 births", + "1942 deaths", + "19th-century African-American medical doctors", + "19th-century American medical doctors", + "20th-century African-American medical doctors", + "20th-century American medical doctors", + "African-American people in Kentucky politics", + "African Methodist Episcopal Church clergy", + "Burials at Frankfort Cemetery", + "Case Western Reserve University School of Medicine alumni", + "People from Dayton, Ohio", + "People from Frankfort, Kentucky", + "People from Jefferson County, Ohio" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 0 + }, + { + "month": "2026-10", + "views": 81 + } + ], + "latestMonth": "2026-10", + "total": 81, + "dailyAverage": 2.6129032258064515, + "trendPercent": null + }, + "stats": { + "attention": 32, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 97, + "prev30": 0, + "pct": null + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 981340, + "title": "Tatsunoko Production", + "description": "Japanese animation studio", + "wikidataId": "Q1323459", + "revisionId": 1384823392, + "pageBytes": 74169, + "languageCount": 19, + "languagesTruncated": false, + "categories": [ + "Animation studios in Tokyo", + "Companies based in Musashino, Tokyo", + "Film production companies of Japan", + "Japanese animation studios", + "Japanese companies established in 1962", + "Mass media companies established in 1962", + "Tatsunoko Production", + "Television production companies of Japan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 5947 + }, + { + "month": "2026-06", + "views": 4922 + }, + { + "month": "2026-07", + "views": 5774 + }, + { + "month": "2026-08", + "views": 6054 + }, + { + "month": "2026-09", + "views": 5228 + }, + { + "month": "2026-10", + "views": 4738 + } + ], + "latestMonth": "2026-10", + "total": 32663, + "dailyAverage": 152.83870967741936, + "trendPercent": -9.372609028309105 + }, + "stats": { + "attention": 61, + "depth": 81, + "reach": 43 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 4819, + "prev30": 4525, + "pct": 6.497237569060774 + }, + "instanceOf": [ + { + "id": "Q1107679", + "label": "animation studio" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 9 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 2020649, + "title": "Luxury box", + "description": "Class of seating in arena or stadium", + "wikidataId": "Q852359", + "revisionId": 1356568738, + "pageBytes": 17537, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Luxury", + "Rooms", + "Sports venues", + "Stadiums" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1291 + }, + { + "month": "2026-06", + "views": 1503 + }, + { + "month": "2026-07", + "views": 1176 + }, + { + "month": "2026-08", + "views": 926 + }, + { + "month": "2026-09", + "views": 1083 + }, + { + "month": "2026-10", + "views": 1071 + } + ], + "latestMonth": "2026-10", + "total": 7050, + "dailyAverage": 34.54838709677419, + "trendPercent": -1.10803324099723 + }, + "stats": { + "attention": 51, + "depth": 71, + "reach": 28 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1003, + "prev30": 1117, + "pct": -10.205908683974933 + }, + "instanceOf": [], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 2978129, + "title": "Saraca", + "description": "Genus of legumes", + "wikidataId": "Q2426272", + "revisionId": 1354827085, + "pageBytes": 3926, + "languageCount": 18, + "languagesTruncated": false, + "categories": [ + "Fabaceae genera", + "Saraca" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 161 + }, + { + "month": "2026-06", + "views": 119 + }, + { + "month": "2026-07", + "views": 159 + }, + { + "month": "2026-08", + "views": 188 + }, + { + "month": "2026-09", + "views": 153 + }, + { + "month": "2026-10", + "views": 130 + } + ], + "latestMonth": "2026-10", + "total": 910, + "dailyAverage": 4.193548387096774, + "trendPercent": -15.032679738562091 + }, + "stats": { + "attention": 35, + "depth": 60, + "reach": 43 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 116, + "prev30": 127, + "pct": -8.661417322834646 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 7, + "depth": 4, + "reach": 9 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 14048250, + "title": "Frontier, Saskatchewan", + "description": "Village in Saskatchewan, Canada", + "wikidataId": "Q2003391", + "revisionId": 1377607311, + "pageBytes": 13275, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Division No. 4, Saskatchewan", + "Rural Municipality of Frontier No. 19", + "Villages in Saskatchewan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 319 + }, + { + "month": "2026-06", + "views": 239 + }, + { + "month": "2026-07", + "views": 248 + }, + { + "month": "2026-08", + "views": 212 + }, + { + "month": "2026-09", + "views": 210 + }, + { + "month": "2026-10", + "views": 182 + } + ], + "latestMonth": "2026-10", + "total": 1410, + "dailyAverage": 5.870967741935484, + "trendPercent": -13.333333333333334 + }, + "stats": { + "attention": 38, + "depth": 69, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 145, + "prev30": 196, + "pct": -26.02040816326531 + }, + "instanceOf": [ + { + "id": "Q6644778", + "label": "village in Saskatchewan" + } + ], + "tiers": { + "attention": 7, + "depth": 9, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 30524663, + "title": "Aichi AB-2", + "description": "Prototype reconnaissance floatplane", + "wikidataId": "Q4696551", + "revisionId": 1321144611, + "pageBytes": 5492, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1930s Japanese military reconnaissance aircraft", + "Aichi aircraft", + "Aircraft first flown in 1930", + "Biplanes", + "Floatplanes", + "Single-engined tractor aircraft" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 65 + }, + { + "month": "2026-06", + "views": 68 + }, + { + "month": "2026-07", + "views": 70 + }, + { + "month": "2026-08", + "views": 75 + }, + { + "month": "2026-09", + "views": 77 + }, + { + "month": "2026-10", + "views": 70 + } + ], + "latestMonth": "2026-10", + "total": 425, + "dailyAverage": 2.2580645161290325, + "trendPercent": -9.090909090909092 + }, + "stats": { + "attention": 31, + "depth": 62, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 53, + "prev30": 85, + "pct": -37.64705882352941 + }, + "instanceOf": [ + { + "id": "Q15056995", + "label": "aircraft model" + } + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 6 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 30852837, + "title": "Symphodus", + "description": "Genus of fishes", + "wikidataId": "Q2019861", + "revisionId": 1366643102, + "pageBytes": 5918, + "languageCount": 21, + "languagesTruncated": false, + "categories": [ + "Fauna of Morocco", + "Fauna of Spain", + "Fish of the East Atlantic", + "Fish of the Mediterranean Sea", + "Labridae", + "Labridae stubs", + "Marine fish genera", + "Symphodus", + "Taxa named by Constantine Samuel Rafinesque" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 96 + }, + { + "month": "2026-06", + "views": 84 + }, + { + "month": "2026-07", + "views": 82 + }, + { + "month": "2026-08", + "views": 111 + }, + { + "month": "2026-09", + "views": 98 + }, + { + "month": "2026-10", + "views": 67 + } + ], + "latestMonth": "2026-10", + "total": 538, + "dailyAverage": 2.161290322580645, + "trendPercent": -31.63265306122449 + }, + "stats": { + "attention": 31, + "depth": 63, + "reach": 45 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 72, + "prev30": 74, + "pct": -2.7027027027027026 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 5, + "depth": 6, + "reach": 10 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 42770753, + "title": "Château de la Faye (Villexavier)", + "description": "Manor house in Charente-Maritime, France", + "wikidataId": "Q2971223", + "revisionId": 1375492681, + "pageBytes": 1851, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Châteaux in Charente-Maritime", + "Monuments historiques of Charente-Maritime" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 11 + }, + { + "month": "2026-07", + "views": 10 + }, + { + "month": "2026-08", + "views": 19 + }, + { + "month": "2026-09", + "views": 13 + }, + { + "month": "2026-10", + "views": 14 + } + ], + "latestMonth": "2026-10", + "total": 98, + "dailyAverage": 0.45161290322580644, + "trendPercent": 7.6923076923076925 + }, + "stats": { + "attention": 20, + "depth": 54, + "reach": 10 + }, + "legacyCategory": "History", + "drift30": { + "last30": 12, + "prev30": 14, + "pct": -14.285714285714285 + }, + "instanceOf": [ + { + "id": "Q23413", + "label": "castle" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 4 + }, + "faction": "Structures", + "category": "History" + }, + { + "pageId": 48653101, + "title": "Tornadoes of 1978", + "description": "", + "wikidataId": "Q22093730", + "revisionId": 1381828221, + "pageBytes": 16373, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1978-related lists", + "Meteorological events in 1978", + "Tornado-related lists by year", + "Tornadoes of 1978" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 569 + }, + { + "month": "2026-06", + "views": 572 + }, + { + "month": "2026-07", + "views": 525 + }, + { + "month": "2026-08", + "views": 643 + }, + { + "month": "2026-09", + "views": 495 + }, + { + "month": "2026-10", + "views": 511 + } + ], + "latestMonth": "2026-10", + "total": 3315, + "dailyAverage": 16.483870967741936, + "trendPercent": 3.2323232323232323 + }, + "stats": { + "attention": 45, + "depth": 70, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 491, + "prev30": 536, + "pct": -8.395522388059701 + }, + "instanceOf": [ + { + "id": "Q18340514", + "label": "events in a specific year or time period" + } + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 2 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 55083500, + "title": "United Kingdom House", + "description": "Building on Oxford Street, London, England", + "wikidataId": "Q26319049", + "revisionId": 1383844197, + "pageBytes": 2837, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1906 establishments in England", + "Buildings and structures completed in 1906", + "Department store buildings in the United Kingdom", + "Grade II listed buildings in the City of Westminster", + "Grade II listed retail buildings", + "London building and structure stubs", + "Oxford Street" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 125 + }, + { + "month": "2026-06", + "views": 101 + }, + { + "month": "2026-07", + "views": 100 + }, + { + "month": "2026-08", + "views": 75 + }, + { + "month": "2026-09", + "views": 103 + }, + { + "month": "2026-10", + "views": 109 + } + ], + "latestMonth": "2026-10", + "total": 613, + "dailyAverage": 3.5161290322580645, + "trendPercent": 5.825242718446602 + }, + "stats": { + "attention": 34, + "depth": 58, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 111, + "prev30": 92, + "pct": 20.652173913043477 + }, + "instanceOf": [ + { + "id": "Q41176", + "label": "building" + } + ], + "tiers": { + "attention": 6, + "depth": 3, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 3372934, + "title": "Hermes Ramírez", + "description": "Cuban sprinter (1948–2024)", + "wikidataId": "Q522855", + "revisionId": 1364063954, + "pageBytes": 8264, + "languageCount": 13, + "languagesTruncated": false, + "categories": [ + "1948 births", + "2024 deaths", + "20th-century Cuban sportsmen", + "Athletes (track and field) at the 1967 Pan American Games", + "Athletes (track and field) at the 1968 Summer Olympics", + "Athletes (track and field) at the 1971 Pan American Games", + "Athletes (track and field) at the 1972 Summer Olympics", + "Athletes (track and field) at the 1975 Pan American Games", + "Athletes (track and field) at the 1976 Summer Olympics", + "Central American and Caribbean Games gold medalists for Cuba", + "Central American and Caribbean Games medalists in athletics", + "Competitors at the 1965 Summer Universiade", + "Competitors at the 1966 Central American and Caribbean Games", + "Competitors at the 1970 Central American and Caribbean Games", + "Cuban Olympic medalist stubs", + "Cuban athletics biography stubs", + "Cuban men sprinters", + "Medalists at the 1967 Pan American Games", + "Medalists at the 1968 Summer Olympics", + "Medalists at the 1971 Pan American Games", + "Medalists at the 1975 Pan American Games", + "Olympic athletes for Cuba", + "Olympic men sprinters", + "Olympic silver medalists for Cuba", + "Olympic silver medalists in athletics", + "Pan American Games bronze medalists for Cuba", + "Pan American Games bronze medalists in athletics (track and field)", + "Pan American Games silver medalists for Cuba", + "Pan American Games silver medalists in athletics (track and field)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 54 + }, + { + "month": "2026-06", + "views": 72 + }, + { + "month": "2026-07", + "views": 53 + }, + { + "month": "2026-08", + "views": 58 + }, + { + "month": "2026-09", + "views": 65 + }, + { + "month": "2026-10", + "views": 59 + } + ], + "latestMonth": "2026-10", + "total": 361, + "dailyAverage": 1.903225806451613, + "trendPercent": -9.230769230769232 + }, + "stats": { + "attention": 30, + "depth": 65, + "reach": 38 + }, + "legacyCategory": "People", + "drift30": { + "last30": 55, + "prev30": 52, + "pct": 5.769230769230769 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 7, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 8341140, + "title": "Ceaușescu family", + "description": "Family of Nicolae Ceaușescu", + "wikidataId": "Q5055770", + "revisionId": 1370304900, + "pageBytes": 8422, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Ceaușescu family", + "Nicolae Ceaușescu", + "Romanian revolution" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2312 + }, + { + "month": "2026-06", + "views": 2282 + }, + { + "month": "2026-07", + "views": 2408 + }, + { + "month": "2026-08", + "views": 2665 + }, + { + "month": "2026-09", + "views": 2662 + }, + { + "month": "2026-10", + "views": 2560 + } + ], + "latestMonth": "2026-10", + "total": 14889, + "dailyAverage": 82.58064516129032, + "trendPercent": -3.831705484598046 + }, + "stats": { + "attention": 57, + "depth": 65, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 2274, + "prev30": 2605, + "pct": -12.7063339731286 + }, + "instanceOf": [ + { + "id": "Q8436", + "label": "family" + } + ], + "tiers": { + "attention": 10, + "depth": 7, + "reach": 6 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 13799810, + "title": "Levophacetoperane", + "description": "Stimulant drug", + "wikidataId": "Q6535818", + "revisionId": 1374230485, + "pageBytes": 4639, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "2-Benzylpiperidines", + "2-Piperidinyl compounds", + "Acetate esters", + "Amphetamine stubs", + "Anorectics", + "Antidepressants", + "Beta-Hydroxyamphetamines", + "Drugs not assigned an ATC code", + "Norepinephrine–dopamine reuptake inhibitors", + "Phenylethanolamine ethers", + "Stimulants", + "Wakefulness-promoting agents" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 193 + }, + { + "month": "2026-06", + "views": 170 + }, + { + "month": "2026-07", + "views": 166 + }, + { + "month": "2026-08", + "views": 185 + }, + { + "month": "2026-09", + "views": 168 + }, + { + "month": "2026-10", + "views": 165 + } + ], + "latestMonth": "2026-10", + "total": 1047, + "dailyAverage": 5.32258064516129, + "trendPercent": -1.7857142857142856 + }, + "stats": { + "attention": 37, + "depth": 61, + "reach": 16 + }, + "legacyCategory": "Science", + "drift30": { + "last30": 148, + "prev30": 160, + "pct": -7.5 + }, + "instanceOf": [ + { + "id": "Q113145171", + "label": "type of chemical entity" + } + ], + "tiers": { + "attention": 7, + "depth": 5, + "reach": 5 + }, + "faction": "Ideas & Tech", + "category": "Science" + }, + { + "pageId": 17755916, + "title": "Xiaoliang Sunney Xie", + "description": "Chinese-American biochemist", + "wikidataId": "Q906616", + "revisionId": 1360992742, + "pageBytes": 35403, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "1962 births", + "Chinese emigrants to the United States", + "Fellows of the American Academy of Arts and Sciences", + "Fellows of the American Association for the Advancement of Science", + "Foreign members of the Chinese Academy of Sciences", + "Harvard University faculty", + "Living people", + "Members of the National Academy of Medicine", + "Members of the Standing Committee of the 14th Chinese People's Political Consultative Conference", + "Members of the United States National Academy of Sciences", + "Peking University alumni", + "Scientists from Beijing", + "Spectroscopists", + "University of California, San Diego alumni", + "University of Chicago alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 348 + }, + { + "month": "2026-06", + "views": 213 + }, + { + "month": "2026-07", + "views": 190 + }, + { + "month": "2026-08", + "views": 222 + }, + { + "month": "2026-09", + "views": 182 + }, + { + "month": "2026-10", + "views": 269 + } + ], + "latestMonth": "2026-10", + "total": 1424, + "dailyAverage": 8.67741935483871, + "trendPercent": 47.8021978021978 + }, + "stats": { + "attention": 41, + "depth": 76, + "reach": 26 + }, + "legacyCategory": "People", + "drift30": { + "last30": 241, + "prev30": 249, + "pct": -3.2128514056224895 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 10, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 19025970, + "title": "Marina Kuzina", + "description": "Russian basketball player", + "wikidataId": "Q2704942", + "revisionId": 1385734329, + "pageBytes": 2074, + "languageCount": 18, + "languagesTruncated": false, + "categories": [ + "1985 births", + "21st-century Russian sportswomen", + "Basketball players at the 2008 Summer Olympics", + "Basketball players at the 2012 Summer Olympics", + "Indiana Fever draft picks", + "Living people", + "Medalists at the 2008 Summer Olympics", + "Olympic basketball players for Russia", + "Olympic bronze medalists for Russia", + "Olympic medalists in basketball", + "Russian Olympic medalist stubs", + "Russian basketball biography stubs", + "Russian women's basketball players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 59 + }, + { + "month": "2026-06", + "views": 37 + }, + { + "month": "2026-07", + "views": 144 + }, + { + "month": "2026-08", + "views": 49 + }, + { + "month": "2026-09", + "views": 47 + }, + { + "month": "2026-10", + "views": 27 + } + ], + "latestMonth": "2026-10", + "total": 363, + "dailyAverage": 0.8709677419354839, + "trendPercent": -42.5531914893617 + }, + "stats": { + "attention": 24, + "depth": 55, + "reach": 43 + }, + "legacyCategory": "People", + "drift30": { + "last30": 26, + "prev30": 44, + "pct": -40.909090909090914 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 24114222, + "title": "Rum cake", + "description": "Type of dessert", + "wikidataId": "Q7379109", + "revisionId": 1317119586, + "pageBytes": 4446, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "Caribbean cuisine", + "Christmas cakes", + "Dessert stubs", + "Guyanese cuisine", + "Jamaican desserts", + "Puerto Rican cuisine", + "Rum desserts", + "Sponge cakes", + "Trinidad and Tobago cuisine" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1340 + }, + { + "month": "2026-06", + "views": 1343 + }, + { + "month": "2026-07", + "views": 1536 + }, + { + "month": "2026-08", + "views": 1878 + }, + { + "month": "2026-09", + "views": 1808 + }, + { + "month": "2026-10", + "views": 1919 + } + ], + "latestMonth": "2026-10", + "total": 9824, + "dailyAverage": 61.903225806451616, + "trendPercent": 6.139380530973451 + }, + "stats": { + "attention": 55, + "depth": 61, + "reach": 32 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 2299, + "prev30": 1848, + "pct": 24.404761904761905 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 5, + "reach": 8 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 31581668, + "title": "Ian Potter Museum of Art", + "description": "Art museum in Parkville, Victoria", + "wikidataId": "Q5982619", + "revisionId": 1377811586, + "pageBytes": 10524, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Archaeological museums in Australia", + "Art museums and galleries established in 1998", + "Art museums and galleries in Melbourne", + "Buildings and structures in the City of Melbourne (LGA)", + "Contemporary art galleries in Australia", + "University museums in Australia", + "University of Melbourne" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 136 + }, + { + "month": "2026-06", + "views": 117 + }, + { + "month": "2026-07", + "views": 138 + }, + { + "month": "2026-08", + "views": 156 + }, + { + "month": "2026-09", + "views": 128 + }, + { + "month": "2026-10", + "views": 148 + } + ], + "latestMonth": "2026-10", + "total": 823, + "dailyAverage": 4.774193548387097, + "trendPercent": 15.625 + }, + "stats": { + "attention": 36, + "depth": 67, + "reach": 16 + }, + "legacyCategory": "History", + "drift30": { + "last30": 125, + "prev30": 122, + "pct": 2.459016393442623 + }, + "instanceOf": [ + { + "id": "Q207694", + "label": "art museum" + } + ], + "tiers": { + "attention": 7, + "depth": 8, + "reach": 5 + }, + "faction": "Structures", + "category": "History" + }, + { + "pageId": 33510186, + "title": "Piet Hesse", + "description": "Dutch actor and comedian (1872–1936)", + "wikidataId": "Q2513810", + "revisionId": 1371413731, + "pageBytes": 3044, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "1872 births", + "1936 deaths", + "20th-century Dutch comedians", + "20th-century Dutch male actors", + "Comedians from Amsterdam", + "Dutch male comedians", + "Dutch male silent film actors", + "Dutch slapstick comedians", + "Male actors from Amsterdam" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 30 + }, + { + "month": "2026-06", + "views": 15 + }, + { + "month": "2026-07", + "views": 21 + }, + { + "month": "2026-08", + "views": 30 + }, + { + "month": "2026-09", + "views": 16 + }, + { + "month": "2026-10", + "views": 22 + } + ], + "latestMonth": "2026-10", + "total": 134, + "dailyAverage": 0.7096774193548387, + "trendPercent": 37.5 + }, + "stats": { + "attention": 23, + "depth": 58, + "reach": 23 + }, + "legacyCategory": "People", + "drift30": { + "last30": 17, + "prev30": 16, + "pct": 6.25 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 34748061, + "title": "Goneplax", + "description": "Genus of crabs", + "wikidataId": "Q5234395", + "revisionId": 1315380924, + "pageBytes": 2236, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "Decapod genera", + "Extant Miocene first appearances", + "Goneplacoidea", + "Goneplacoidea stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 21 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 36 + }, + { + "month": "2026-10", + "views": 11 + } + ], + "latestMonth": "2026-10", + "total": 128, + "dailyAverage": 0.3548387096774194, + "trendPercent": -69.44444444444444 + }, + "stats": { + "attention": 18, + "depth": 56, + "reach": 32 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 18, + "prev30": 22, + "pct": -18.181818181818183 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 47646414, + "title": "John Mellencamp Pavilion", + "description": "American athletics facility at Indiana University Bloomington", + "wikidataId": "Q22097461", + "revisionId": 1384401817, + "pageBytes": 4069, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1996 establishments in Indiana", + "Indiana Hoosiers field hockey", + "Indiana Hoosiers football", + "Indiana Hoosiers sports venues", + "John Mellencamp", + "Sports venues completed in 1996" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 168 + }, + { + "month": "2026-06", + "views": 132 + }, + { + "month": "2026-07", + "views": 229 + }, + { + "month": "2026-08", + "views": 306 + }, + { + "month": "2026-09", + "views": 316 + }, + { + "month": "2026-10", + "views": 263 + } + ], + "latestMonth": "2026-10", + "total": 1414, + "dailyAverage": 8.483870967741936, + "trendPercent": -16.77215189873418 + }, + "stats": { + "attention": 40, + "depth": 60, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 242, + "prev30": 284, + "pct": -14.788732394366196 + }, + "instanceOf": [ + { + "id": "Q41176", + "label": "building" + } + ], + "tiers": { + "attention": 8, + "depth": 4, + "reach": 2 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 59063273, + "title": "Nathan M. Johnson", + "description": "American politician and composer (born 1968)", + "wikidataId": "Q58756295", + "revisionId": 1385547666, + "pageBytes": 24226, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1968 births", + "21st-century members of the Texas Legislature", + "Anime composers", + "Composers from Texas", + "Democratic Party Texas state senators", + "Lawyers from Dallas", + "Lawyers from Fort Worth, Texas", + "Living people", + "Politicians from Dallas", + "Politicians from Fort Worth, Texas", + "Texas attorneys general", + "University of Arizona alumni", + "University of Texas School of Law alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7795 + }, + { + "month": "2026-06", + "views": 1850 + }, + { + "month": "2026-07", + "views": 2567 + }, + { + "month": "2026-08", + "views": 2615 + }, + { + "month": "2026-09", + "views": 3447 + }, + { + "month": "2026-10", + "views": 11429 + } + ], + "latestMonth": "2026-10", + "total": 29703, + "dailyAverage": 368.6774193548387, + "trendPercent": 231.5636785610676 + }, + "stats": { + "attention": 68, + "depth": 73, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 151291, + "prev30": 6387, + "pct": 2268.733364646939 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 61315367, + "title": "Payson J. Treat", + "description": "American Japanologist (1879–1972)", + "wikidataId": "Q59628931", + "revisionId": 1380314462, + "pageBytes": 4887, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1879 births", + "1972 deaths", + "20th-century American historians", + "20th-century American male non-fiction writers", + "Academic staff of the University of Tokyo", + "American Japanologists", + "American academic biography stubs", + "Columbia University alumni", + "Historians of Japan", + "Stanford University Department of History faculty", + "Wesleyan University alumni", + "Writers from New York City" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 19 + }, + { + "month": "2026-06", + "views": 30 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 15 + }, + { + "month": "2026-09", + "views": 19 + }, + { + "month": "2026-10", + "views": 16 + } + ], + "latestMonth": "2026-10", + "total": 126, + "dailyAverage": 0.5161290322580645, + "trendPercent": -15.789473684210526 + }, + "stats": { + "attention": 21, + "depth": 61, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 18, + "prev30": 10, + "pct": 80.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 2, + "depth": 5, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 1544504, + "title": "Walter Rauschenbusch", + "description": "American theologian and Baptist pastor (1861-1918)", + "wikidataId": "Q1345238", + "revisionId": 1384187229, + "pageBytes": 28946, + "languageCount": 18, + "languagesTruncated": false, + "categories": [ + "1861 births", + "1918 deaths", + "19th-century American Protestant theologians", + "19th-century American male non-fiction writers", + "19th-century Baptist ministers from the United States", + "20th-century American Protestant theologians", + "20th-century Baptist ministers from the United States", + "American Baptist Churches USA ministers", + "American Christian pacifists", + "American Christian socialists", + "American historians of Christianity", + "American people of German descent", + "Baptist pacifists", + "Baptist socialists", + "Baptist theologians from the United States", + "Baptists from New York (state)", + "Christian ethicists", + "Christian socialist theologians", + "Colgate Rochester Crozer Divinity School faculty", + "Georgist activists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1475 + }, + { + "month": "2026-06", + "views": 1163 + }, + { + "month": "2026-07", + "views": 1184 + }, + { + "month": "2026-08", + "views": 1171 + }, + { + "month": "2026-09", + "views": 1657 + }, + { + "month": "2026-10", + "views": 1476 + } + ], + "latestMonth": "2026-10", + "total": 8126, + "dailyAverage": 47.61290322580645, + "trendPercent": -10.92335546167773 + }, + "stats": { + "attention": 53, + "depth": 74, + "reach": 43 + }, + "legacyCategory": "People", + "drift30": { + "last30": 1385, + "prev30": 1689, + "pct": -17.998815867377147 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 2431156, + "title": "Organization of the Luftwaffe (1933–1945)", + "description": "Structure of German air force", + "wikidataId": "Q636182", + "revisionId": 1368504160, + "pageBytes": 89478, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Luftwaffe", + "Structure of contemporary air forces" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1865 + }, + { + "month": "2026-06", + "views": 1751 + }, + { + "month": "2026-07", + "views": 1536 + }, + { + "month": "2026-08", + "views": 1766 + }, + { + "month": "2026-09", + "views": 1563 + }, + { + "month": "2026-10", + "views": 1568 + } + ], + "latestMonth": "2026-10", + "total": 10049, + "dailyAverage": 50.58064516129032, + "trendPercent": 0.3198976327575176 + }, + "stats": { + "attention": 53, + "depth": 83, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1457, + "prev30": 1492, + "pct": -2.3458445040214477 + }, + "instanceOf": [ + { + "id": "Q15627509", + "label": "military organization" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 8 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 7008871, + "title": "Duke Blue Devils football", + "description": "Football team of Duke University", + "wikidataId": "Q5312733", + "revisionId": 1382159622, + "pageBytes": 89730, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1888 establishments in North Carolina", + "American football teams established in 1888", + "Duke Blue Devils football" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2888 + }, + { + "month": "2026-06", + "views": 2485 + }, + { + "month": "2026-07", + "views": 3482 + }, + { + "month": "2026-08", + "views": 4578 + }, + { + "month": "2026-09", + "views": 9980 + }, + { + "month": "2026-10", + "views": 9280 + } + ], + "latestMonth": "2026-10", + "total": 32693, + "dailyAverage": 299.35483870967744, + "trendPercent": -7.014028056112225 + }, + "stats": { + "attention": 66, + "depth": 83, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11566, + "prev30": 8795, + "pct": 31.506537805571348 + }, + "instanceOf": [ + { + "id": "Q17156793", + "label": "American football team" + }, + { + "id": "Q18558301", + "label": "college sports team" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 5 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 11087981, + "title": "SREBP cleavage-activating protein", + "description": "Protein-coding gene in the species Homo sapiens", + "wikidataId": "Q14913782", + "revisionId": 1383233544, + "pageBytes": 10534, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Genes on human chromosome 3", + "Human chromosome 3 gene stubs", + "WD repeat proteins" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 78 + }, + { + "month": "2026-06", + "views": 60 + }, + { + "month": "2026-07", + "views": 55 + }, + { + "month": "2026-08", + "views": 52 + }, + { + "month": "2026-09", + "views": 77 + }, + { + "month": "2026-10", + "views": 63 + } + ], + "latestMonth": "2026-10", + "total": 385, + "dailyAverage": 2.032258064516129, + "trendPercent": -18.181818181818183 + }, + "stats": { + "attention": 30, + "depth": 67, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 49, + "prev30": 76, + "pct": -35.526315789473685 + }, + "instanceOf": [ + { + "id": "Q7187", + "label": "gene" + } + ], + "tiers": { + "attention": 5, + "depth": 8, + "reach": 5 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 14967767, + "title": "Everton, Nottinghamshire", + "description": "Village and civil parish in Nottinghamshire, England", + "wikidataId": "Q5417389", + "revisionId": 1346472302, + "pageBytes": 6739, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Bassetlaw District", + "Civil parishes in Nottinghamshire", + "Villages in Nottinghamshire" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 147 + }, + { + "month": "2026-06", + "views": 103 + }, + { + "month": "2026-07", + "views": 129 + }, + { + "month": "2026-08", + "views": 136 + }, + { + "month": "2026-09", + "views": 104 + }, + { + "month": "2026-10", + "views": 82 + } + ], + "latestMonth": "2026-10", + "total": 701, + "dailyAverage": 2.6451612903225805, + "trendPercent": -21.153846153846153 + }, + "stats": { + "attention": 32, + "depth": 64, + "reach": 28 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 102, + "prev30": 72, + "pct": 41.66666666666667 + }, + "instanceOf": [ + { + "id": "Q532", + "label": "village" + }, + { + "id": "Q1115575", + "label": "civil parish" + } + ], + "tiers": { + "attention": 6, + "depth": 6, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 23223171, + "title": "Plectania", + "description": "Genus of fungi", + "wikidataId": "Q5235905", + "revisionId": 1351215348, + "pageBytes": 6797, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Pezizales", + "Pezizales genera", + "Pezizomycetes stubs", + "Taxa described in 1870", + "Taxa named by Karl Wilhelm Gottlieb Leopold Fuckel" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 53 + }, + { + "month": "2026-06", + "views": 44 + }, + { + "month": "2026-07", + "views": 39 + }, + { + "month": "2026-08", + "views": 47 + }, + { + "month": "2026-09", + "views": 53 + }, + { + "month": "2026-10", + "views": 38 + } + ], + "latestMonth": "2026-10", + "total": 274, + "dailyAverage": 1.2258064516129032, + "trendPercent": -28.30188679245283 + }, + "stats": { + "attention": 27, + "depth": 64, + "reach": 30 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 23, + "prev30": 42, + "pct": -45.23809523809524 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 36287721, + "title": "Magheracross", + "description": "Townland in County Fermanagh, Northern Ireland", + "wikidataId": "Q6730410", + "revisionId": 1364688814, + "pageBytes": 7448, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Civil parishes of County Fermanagh", + "Civil parishes of County Tyrone", + "Townlands of County Fermanagh" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 48 + }, + { + "month": "2026-06", + "views": 44 + }, + { + "month": "2026-07", + "views": 103 + }, + { + "month": "2026-08", + "views": 66 + }, + { + "month": "2026-09", + "views": 57 + }, + { + "month": "2026-10", + "views": 36 + } + ], + "latestMonth": "2026-10", + "total": 354, + "dailyAverage": 1.1612903225806452, + "trendPercent": -36.84210526315789 + }, + "stats": { + "attention": 26, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 40, + "prev30": 52, + "pct": -23.076923076923077 + }, + "instanceOf": [ + { + "id": "Q2151232", + "label": "townland" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 2 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 52781093, + "title": "SS Iberia (1873)", + "description": "Steamship by John Elder", + "wikidataId": "Q28232395", + "revisionId": 1360733771, + "pageBytes": 2604, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1873 ships", + "Individual ship or boat stubs", + "Ships built on the River Clyde", + "Steamships of the United Kingdom" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 34 + }, + { + "month": "2026-07", + "views": 32 + }, + { + "month": "2026-08", + "views": 33 + }, + { + "month": "2026-09", + "views": 43 + }, + { + "month": "2026-10", + "views": 37 + } + ], + "latestMonth": "2026-10", + "total": 210, + "dailyAverage": 1.1935483870967742, + "trendPercent": -13.953488372093023 + }, + "stats": { + "attention": 26, + "depth": 57, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 40, + "prev30": 43, + "pct": -6.976744186046512 + }, + "instanceOf": [ + { + "id": "Q12859788", + "label": "steamship" + } + ], + "tiers": { + "attention": 3, + "depth": 3, + "reach": 2 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 19652, + "title": "Monoid", + "description": "Algebraic structure with an associative operation and an identity element", + "wikidataId": "Q208237", + "revisionId": 1382146482, + "pageBytes": 35884, + "languageCount": 47, + "languagesTruncated": false, + "categories": [ + "Algebraic structures", + "Category theory", + "Semigroup theory" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 6802 + }, + { + "month": "2026-06", + "views": 5702 + }, + { + "month": "2026-07", + "views": 5579 + }, + { + "month": "2026-08", + "views": 5479 + }, + { + "month": "2026-09", + "views": 5671 + }, + { + "month": "2026-10", + "views": 6028 + } + ], + "latestMonth": "2026-10", + "total": 35261, + "dailyAverage": 194.4516129032258, + "trendPercent": 6.295186034209134 + }, + "stats": { + "attention": 63, + "depth": 76, + "reach": 56 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5409, + "prev30": 5957, + "pct": -9.199261373174416 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 4961906, + "title": "Chinese star maps", + "description": "Depictions of the positions of stars on the celestial sphere", + "wikidataId": "Q16241158", + "revisionId": 1343697567, + "pageBytes": 27997, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Astronomy in China", + "Star atlases", + "Star maps" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 515 + }, + { + "month": "2026-06", + "views": 399 + }, + { + "month": "2026-07", + "views": 487 + }, + { + "month": "2026-08", + "views": 476 + }, + { + "month": "2026-09", + "views": 506 + }, + { + "month": "2026-10", + "views": 437 + } + ], + "latestMonth": "2026-10", + "total": 2820, + "dailyAverage": 14.096774193548388, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 44, + "depth": 74, + "reach": 16 + }, + "legacyCategory": "Space", + "drift30": { + "last30": 407, + "prev30": 464, + "pct": -12.284482758620689 + }, + "instanceOf": [], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 5 + }, + "faction": "Other", + "category": "Space" + }, + { + "pageId": 9131803, + "title": "Shooting at the 1912 Summer Olympics – Men's 30 metre rapid fire pistol", + "description": "Olympic shooting event", + "wikidataId": "Q7500632", + "revisionId": 1351670352, + "pageBytes": 9919, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Rapid fire pistol at the Olympics", + "Shooting at the 1912 Summer Olympics" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 53 + }, + { + "month": "2026-06", + "views": 47 + }, + { + "month": "2026-07", + "views": 71 + }, + { + "month": "2026-08", + "views": 65 + }, + { + "month": "2026-09", + "views": 41 + }, + { + "month": "2026-10", + "views": 43 + } + ], + "latestMonth": "2026-10", + "total": 320, + "dailyAverage": 1.3870967741935485, + "trendPercent": 4.878048780487805 + }, + "stats": { + "attention": 27, + "depth": 67, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 60, + "prev30": 43, + "pct": 39.53488372093023 + }, + "instanceOf": [ + { + "id": "Q18536594", + "label": "Olympic sporting event" + } + ], + "tiers": { + "attention": 4, + "depth": 8, + "reach": 7 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 12123196, + "title": "Phu Phra Bat Buabok Forest Park", + "description": "Forest park in Ban Phue District, Thailand", + "wikidataId": "Q250022", + "revisionId": 1362893730, + "pageBytes": 2744, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1996 establishments in Thailand", + "Forest parks of Thailand", + "IUCN Category V", + "Isan geography stubs", + "Phu Phan Mountains", + "Protected areas established in 1996", + "Tourist attractions in Udon Thani province" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 55 + }, + { + "month": "2026-06", + "views": 43 + }, + { + "month": "2026-07", + "views": 18 + }, + { + "month": "2026-08", + "views": 15 + }, + { + "month": "2026-09", + "views": 26 + }, + { + "month": "2026-10", + "views": 33 + } + ], + "latestMonth": "2026-10", + "total": 190, + "dailyAverage": 1.064516129032258, + "trendPercent": 26.923076923076923 + }, + "stats": { + "attention": 26, + "depth": 57, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 17, + "prev30": 38, + "pct": -55.26315789473685 + }, + "instanceOf": [ + { + "id": "Q13020522", + "label": "forest park in Thailand" + } + ], + "tiers": { + "attention": 3, + "depth": 3, + "reach": 5 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 15105978, + "title": "Well", + "description": "Excavation or structure to provide access to groundwater", + "wikidataId": "Q43483", + "revisionId": 1384889405, + "pageBytes": 49360, + "languageCount": 124, + "languagesTruncated": false, + "categories": [ + "Archaeological features", + "Bodies of water", + "In situ geotechnical investigations", + "Water supply infrastructure", + "Water wells" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7066 + }, + { + "month": "2026-06", + "views": 6418 + }, + { + "month": "2026-07", + "views": 6817 + }, + { + "month": "2026-08", + "views": 6116 + }, + { + "month": "2026-09", + "views": 7739 + }, + { + "month": "2026-10", + "views": 7247 + } + ], + "latestMonth": "2026-10", + "total": 41403, + "dailyAverage": 233.7741935483871, + "trendPercent": -6.357410518154801 + }, + "stats": { + "attention": 64, + "depth": 78, + "reach": 70 + }, + "legacyCategory": "History", + "drift30": { + "last30": 7881, + "prev30": 7423, + "pct": 6.170012124477974 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 48469081, + "title": "Dr. John L. Butler House", + "description": "Historic house in Arkansas, United States", + "wikidataId": "Q24041379", + "revisionId": 1373109716, + "pageBytes": 2235, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Grant County, Arkansas", + "Colonial Revival architecture in Arkansas", + "Houses completed in 1914", + "Houses on the National Register of Historic Places in Arkansas", + "National Register of Historic Places in Grant County, Arkansas", + "Southwest Arkansas Registered Historic Place stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 7 + }, + { + "month": "2026-07", + "views": 7 + }, + { + "month": "2026-08", + "views": 2 + }, + { + "month": "2026-09", + "views": 13 + }, + { + "month": "2026-10", + "views": 10 + } + ], + "latestMonth": "2026-10", + "total": 61, + "dailyAverage": 0.3225806451612903, + "trendPercent": -23.076923076923077 + }, + "stats": { + "attention": 17, + "depth": 56, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 6, + "prev30": 16, + "pct": -62.5 + }, + "instanceOf": [ + { + "id": "Q3947", + "label": "house" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 2 + }, + "faction": "Structures", + "category": "History" + }, + { + "pageId": 66276726, + "title": "Inaechelys", + "description": "Genus of reptiles", + "wikidataId": "Q26700596", + "revisionId": 1326195763, + "pageBytes": 2058, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Bothremydidae", + "Danian life", + "Fossil taxa described in 2016", + "Fossils of Brazil", + "Monotypic turtle genera", + "Paleocene turtles", + "Paleogene Brazil", + "Paleogene reptiles of South America", + "Prehistoric turtle genera", + "Prehistoric turtle stubs", + "Tiupampan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 54 + }, + { + "month": "2026-06", + "views": 38 + }, + { + "month": "2026-07", + "views": 41 + }, + { + "month": "2026-08", + "views": 44 + }, + { + "month": "2026-09", + "views": 36 + }, + { + "month": "2026-10", + "views": 33 + } + ], + "latestMonth": "2026-10", + "total": 246, + "dailyAverage": 1.064516129032258, + "trendPercent": -8.333333333333332 + }, + "stats": { + "attention": 26, + "depth": 55, + "reach": 10 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 29, + "prev30": 46, + "pct": -36.95652173913043 + }, + "instanceOf": [ + { + "id": "Q23038290", + "label": "fossil taxon" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 4 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 81502704, + "title": "Wenshet", + "description": null, + "wikidataId": "Q2559642", + "revisionId": 1373685251, + "pageBytes": 6048, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "26th-century BC clergy", + "26th-century BC women", + "Ancient Egyptian priestesses", + "Princesses of the Fourth Dynasty of Egypt" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 54 + }, + { + "month": "2026-06", + "views": 57 + }, + { + "month": "2026-07", + "views": 88 + }, + { + "month": "2026-08", + "views": 160 + }, + { + "month": "2026-09", + "views": 87 + }, + { + "month": "2026-10", + "views": 49 + } + ], + "latestMonth": "2026-10", + "total": 495, + "dailyAverage": 1.5806451612903225, + "trendPercent": -43.67816091954023 + }, + "stats": { + "attention": 28, + "depth": 63, + "reach": 23 + }, + "legacyCategory": "History", + "drift30": { + "last30": 51, + "prev30": 58, + "pct": -12.068965517241379 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 6 + }, + "faction": "People", + "category": "History" + }, + { + "pageId": 2141241, + "title": "Hvis lyset tar oss", + "description": "1994 studio album by Burzum", + "wikidataId": "Q1129211", + "revisionId": 1381701379, + "pageBytes": 5731, + "languageCount": 25, + "languagesTruncated": false, + "categories": [ + "1990s concept albums", + "1994 albums", + "Burzum albums", + "Misanthropy Records albums", + "Norwegian-language albums" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2870 + }, + { + "month": "2026-06", + "views": 2517 + }, + { + "month": "2026-07", + "views": 2705 + }, + { + "month": "2026-08", + "views": 3136 + }, + { + "month": "2026-09", + "views": 2882 + }, + { + "month": "2026-10", + "views": 3264 + } + ], + "latestMonth": "2026-10", + "total": 17374, + "dailyAverage": 105.29032258064517, + "trendPercent": 13.25468424705066 + }, + "stats": { + "attention": 59, + "depth": 63, + "reach": 47 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 3084, + "prev30": 3000, + "pct": 2.8000000000000003 + }, + "instanceOf": [ + { + "id": "Q482994", + "label": "album" + } + ], + "tiers": { + "attention": 10, + "depth": 6, + "reach": 10 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 4127940, + "title": "Lunugala", + "description": "Town in Uva Province, Sri Lanka", + "wikidataId": "Q6704475", + "revisionId": 1376763672, + "pageBytes": 5617, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Populated places in Uva Province", + "Sri Lanka geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 159 + }, + { + "month": "2026-06", + "views": 130 + }, + { + "month": "2026-07", + "views": 178 + }, + { + "month": "2026-08", + "views": 196 + }, + { + "month": "2026-09", + "views": 165 + }, + { + "month": "2026-10", + "views": 108 + } + ], + "latestMonth": "2026-10", + "total": 936, + "dailyAverage": 3.4838709677419355, + "trendPercent": -34.54545454545455 + }, + "stats": { + "attention": 34, + "depth": 62, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 110, + "prev30": 153, + "pct": -28.104575163398692 + }, + "instanceOf": [ + { + "id": "Q486972", + "label": "human settlement" + } + ], + "tiers": { + "attention": 6, + "depth": 5, + "reach": 5 + }, + "faction": "People", + "category": "Culture" + }, + { + "pageId": 15488641, + "title": "Dominique Rodgers-Cromartie", + "description": "American football player (born 1986)", + "wikidataId": "Q434024", + "revisionId": 1384010653, + "pageBytes": 63642, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "1986 births", + "American football cornerbacks", + "American football safeties", + "American people of Haitian descent", + "Arizona Cardinals players", + "Denver Broncos players", + "Lake Highland Preparatory School alumni", + "Lakewood Ranch High School alumni", + "Living people", + "National Conference Pro Bowl players", + "New York Giants players", + "Oakland Raiders players", + "Philadelphia Eagles players", + "Players of American football from Bradenton, Florida", + "Sportspeople of Haitian descent", + "Tennessee State Tigers football players", + "Unconferenced Pro Bowl players", + "Washington Redskins players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 3046 + }, + { + "month": "2026-06", + "views": 3460 + }, + { + "month": "2026-07", + "views": 3415 + }, + { + "month": "2026-08", + "views": 3973 + }, + { + "month": "2026-09", + "views": 4137 + }, + { + "month": "2026-10", + "views": 4144 + } + ], + "latestMonth": "2026-10", + "total": 22175, + "dailyAverage": 133.67741935483872, + "trendPercent": 0.1692047377326565 + }, + "stats": { + "attention": 60, + "depth": 80, + "reach": 26 + }, + "legacyCategory": "People", + "drift30": { + "last30": 3919, + "prev30": 4146, + "pct": -5.475156777616981 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 24593488, + "title": "Žižki", + "description": "Place in Prekmurje, Slovenia", + "wikidataId": "Q280193", + "revisionId": 1379665199, + "pageBytes": 4821, + "languageCount": 16, + "languagesTruncated": false, + "categories": [ + "Pomurska statistical region geography stubs", + "Populated places in the Municipality of Črenšovci" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 27 + }, + { + "month": "2026-06", + "views": 18 + }, + { + "month": "2026-07", + "views": 20 + }, + { + "month": "2026-08", + "views": 49 + }, + { + "month": "2026-09", + "views": 31 + }, + { + "month": "2026-10", + "views": 25 + } + ], + "latestMonth": "2026-10", + "total": 170, + "dailyAverage": 0.8064516129032258, + "trendPercent": -19.35483870967742 + }, + "stats": { + "attention": 24, + "depth": 61, + "reach": 41 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 21, + "prev30": 18, + "pct": 16.666666666666664 + }, + "instanceOf": [ + { + "id": "Q486972", + "label": "human settlement" + } + ], + "tiers": { + "attention": 3, + "depth": 5, + "reach": 9 + }, + "faction": "People", + "category": "Culture" + }, + { + "pageId": 51469913, + "title": "Beaconsfield Station Sheep Wash", + "description": "Historic site in Queensland, Australia", + "wikidataId": "Q28035337", + "revisionId": 1364729120, + "pageBytes": 11345, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Agricultural buildings and structures in Queensland", + "Australian sheep industry", + "Longreach Region", + "Queensland Heritage Register" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 29 + }, + { + "month": "2026-07", + "views": 22 + }, + { + "month": "2026-08", + "views": 29 + }, + { + "month": "2026-09", + "views": 26 + }, + { + "month": "2026-10", + "views": 14 + } + ], + "latestMonth": "2026-10", + "total": 142, + "dailyAverage": 0.45161290322580644, + "trendPercent": -46.15384615384615 + }, + "stats": { + "attention": 20, + "depth": 68, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 26, + "prev30": 20, + "pct": 30.0 + }, + "instanceOf": [ + { + "id": "Q1081138", + "label": "historic site" + } + ], + "tiers": { + "attention": 2, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 53418112, + "title": "2012 United States presidential straw poll in Guam", + "description": "", + "wikidataId": "Q29097654", + "revisionId": 1383301063, + "pageBytes": 7644, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "2012 United States presidential election by state or territory", + "2012 elections in Guam", + "Guam stubs", + "Oceanian history stubs", + "United States election stubs", + "United States presidential straw polls in Guam" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 204 + }, + { + "month": "2026-07", + "views": 194 + }, + { + "month": "2026-08", + "views": 225 + }, + { + "month": "2026-09", + "views": 150 + }, + { + "month": "2026-10", + "views": 173 + } + ], + "latestMonth": "2026-10", + "total": 1133, + "dailyAverage": 5.580645161290323, + "trendPercent": 15.333333333333332 + }, + "stats": { + "attention": 37, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 428, + "prev30": 160, + "pct": 167.5 + }, + "instanceOf": [ + { + "id": "Q858439", + "label": "presidential election" + } + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "Events", + "category": "Nature" + }, + { + "pageId": 54512419, + "title": "Elephant Square", + "description": null, + "wikidataId": "Q39046311", + "revisionId": 1282834290, + "pageBytes": 2504, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in the London Borough of Southwark", + "London stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 166 + }, + { + "month": "2026-06", + "views": 181 + }, + { + "month": "2026-07", + "views": 179 + }, + { + "month": "2026-08", + "views": 184 + }, + { + "month": "2026-09", + "views": 161 + }, + { + "month": "2026-10", + "views": 166 + } + ], + "latestMonth": "2026-10", + "total": 1037, + "dailyAverage": 5.354838709677419, + "trendPercent": 3.1055900621118013 + }, + "stats": { + "attention": 37, + "depth": 57, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 171, + "prev30": 153, + "pct": 11.76470588235294 + }, + "instanceOf": [ + { + "id": "Q174782", + "label": "square" + }, + { + "id": "Q1788454", + "label": "road junction" + } + ], + "tiers": { + "attention": 7, + "depth": 3, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 59233120, + "title": "Maryland Independent", + "description": "Semi-weekly newspaper published in Waldorf, Maryland, US", + "wikidataId": "Q55667255", + "revisionId": 1316504057, + "pageBytes": 7397, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1874 establishments in Maryland", + "Newspapers established in 1874", + "Newspapers published in Maryland", + "Weekly newspapers published in the United States" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 40 + }, + { + "month": "2026-06", + "views": 29 + }, + { + "month": "2026-07", + "views": 36 + }, + { + "month": "2026-08", + "views": 30 + }, + { + "month": "2026-09", + "views": 31 + }, + { + "month": "2026-10", + "views": 41 + } + ], + "latestMonth": "2026-10", + "total": 207, + "dailyAverage": 1.3225806451612903, + "trendPercent": 32.25806451612903 + }, + "stats": { + "attention": 27, + "depth": 64, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 21, + "prev30": 45, + "pct": -53.333333333333336 + }, + "instanceOf": [ + { + "id": "Q11032", + "label": "newspaper" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 2 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 78154568, + "title": "Lithodes mamillifer", + "description": "Species of king crab", + "wikidataId": "Q13768243", + "revisionId": 1384643280, + "pageBytes": 1515, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Anomura of the Indian Ocean", + "Anomura stubs", + "Crustaceans described in 1988", + "Crustaceans of Madagascar", + "Crustaceans of South Africa", + "King crabs", + "Taxa named by Enrique Macpherson" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 23 + }, + { + "month": "2026-07", + "views": 24 + }, + { + "month": "2026-08", + "views": 24 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 15 + } + ], + "latestMonth": "2026-10", + "total": 134, + "dailyAverage": 0.4838709677419355, + "trendPercent": -34.78260869565217 + }, + "stats": { + "attention": 20, + "depth": 53, + "reach": 10 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 45, + "prev30": 17, + "pct": 164.70588235294116 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 2, + "depth": 1, + "reach": 4 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 132638, + "title": "Perry Township, Greene County, Pennsylvania", + "description": "Township in Pennsylvania, US", + "wikidataId": "Q5809786", + "revisionId": 1375881246, + "pageBytes": 8117, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Townships in Greene County, Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 66 + }, + { + "month": "2026-06", + "views": 33 + }, + { + "month": "2026-07", + "views": 42 + }, + { + "month": "2026-08", + "views": 85 + }, + { + "month": "2026-09", + "views": 57 + }, + { + "month": "2026-10", + "views": 60 + } + ], + "latestMonth": "2026-10", + "total": 343, + "dailyAverage": 1.935483870967742, + "trendPercent": 5.263157894736842 + }, + "stats": { + "attention": 30, + "depth": 65, + "reach": 28 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 26, + "prev30": 62, + "pct": -58.06451612903226 + }, + "instanceOf": [ + { + "id": "Q9035798", + "label": "township of Pennsylvania" + } + ], + "tiers": { + "attention": 5, + "depth": 7, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 858133, + "title": "Ashley (automobile)", + "description": "British manufacturers of car body shells & chassis for specials (1955-1962)", + "wikidataId": "Q725930", + "revisionId": 1261572264, + "pageBytes": 6867, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1955 establishments in England", + "1972 disestablishments in England", + "British companies disestablished in 1972", + "British companies established in 1955", + "Companies based in East Hertfordshire District", + "Companies based in Essex", + "Defunct motor vehicle manufacturers of England", + "Kit car manufacturers", + "Manufacturing companies disestablished in 1972", + "Vehicle manufacturers operating in Essex", + "Vehicle manufacturing companies established in 1955" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 200 + }, + { + "month": "2026-06", + "views": 194 + }, + { + "month": "2026-07", + "views": 168 + }, + { + "month": "2026-08", + "views": 225 + }, + { + "month": "2026-09", + "views": 241 + }, + { + "month": "2026-10", + "views": 186 + } + ], + "latestMonth": "2026-10", + "total": 1214, + "dailyAverage": 6.0, + "trendPercent": -22.821576763485478 + }, + "stats": { + "attention": 38, + "depth": 64, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 163, + "prev30": 213, + "pct": -23.474178403755868 + }, + "instanceOf": [ + { + "id": "Q786820", + "label": "automobile manufacturer" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 5 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 17603693, + "title": "Bad Little Angel", + "description": "1939 film by Wilhelm Thiele", + "wikidataId": "Q2483475", + "revisionId": 1339376467, + "pageBytes": 3197, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1930s drama film stubs", + "1939 American films", + "1939 English-language films", + "1939 drama films", + "1939 films", + "American black-and-white films", + "American drama films", + "English-language drama films", + "Films about orphans", + "Films directed by Wilhelm Thiele", + "Films scored by Edward Ward (composer)", + "Films with screenplays by Dorothy Yost", + "Metro-Goldwyn-Mayer films" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 211 + }, + { + "month": "2026-06", + "views": 165 + }, + { + "month": "2026-07", + "views": 180 + }, + { + "month": "2026-08", + "views": 297 + }, + { + "month": "2026-09", + "views": 294 + }, + { + "month": "2026-10", + "views": 182 + } + ], + "latestMonth": "2026-10", + "total": 1329, + "dailyAverage": 5.870967741935484, + "trendPercent": -38.095238095238095 + }, + "stats": { + "attention": 38, + "depth": 58, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 164, + "prev30": 179, + "pct": -8.379888268156424 + }, + "instanceOf": [ + { + "id": "Q11424", + "label": "film" + } + ], + "tiers": { + "attention": 7, + "depth": 3, + "reach": 5 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 22974735, + "title": "Christianity in the 5th century", + "description": "", + "wikidataId": "Q5110603", + "revisionId": 1374856654, + "pageBytes": 41099, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "5th century in Christianity", + "Christianity by century" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 613 + }, + { + "month": "2026-06", + "views": 515 + }, + { + "month": "2026-07", + "views": 547 + }, + { + "month": "2026-08", + "views": 523 + }, + { + "month": "2026-09", + "views": 499 + }, + { + "month": "2026-10", + "views": 452 + } + ], + "latestMonth": "2026-10", + "total": 3149, + "dailyAverage": 14.580645161290322, + "trendPercent": -9.418837675350701 + }, + "stats": { + "attention": 44, + "depth": 77, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 447, + "prev30": 468, + "pct": -4.487179487179487 + }, + "instanceOf": [ + { + "id": "Q18340514", + "label": "events in a specific year or time period" + } + ], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 5 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 25966388, + "title": "Phacelia quickii", + "description": "Species of plant", + "wikidataId": "Q7179927", + "revisionId": 1329232874, + "pageBytes": 2013, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Endemic flora of California", + "Flora of the Sierra Nevada (United States)", + "Phacelia" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 61 + }, + { + "month": "2026-06", + "views": 63 + }, + { + "month": "2026-07", + "views": 39 + }, + { + "month": "2026-08", + "views": 26 + }, + { + "month": "2026-09", + "views": 29 + }, + { + "month": "2026-10", + "views": 10 + } + ], + "latestMonth": "2026-10", + "total": 228, + "dailyAverage": 0.3225806451612903, + "trendPercent": -65.51724137931035 + }, + "stats": { + "attention": 17, + "depth": 55, + "reach": 20 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 17, + "prev30": 24, + "pct": -29.166666666666668 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 35746583, + "title": "Barbajada", + "description": "Italian chocolate coffee drink", + "wikidataId": "Q3634571", + "revisionId": 1346095921, + "pageBytes": 2816, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Chocolate drinks", + "Coffee in Italy", + "Cuisine of Lombardy", + "Italian drinks" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 321 + }, + { + "month": "2026-06", + "views": 254 + }, + { + "month": "2026-07", + "views": 211 + }, + { + "month": "2026-08", + "views": 186 + }, + { + "month": "2026-09", + "views": 250 + }, + { + "month": "2026-10", + "views": 299 + } + ], + "latestMonth": "2026-10", + "total": 1521, + "dailyAverage": 9.64516129032258, + "trendPercent": 19.6 + }, + "stats": { + "attention": 41, + "depth": 57, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 319, + "prev30": 251, + "pct": 27.091633466135455 + }, + "instanceOf": [], + "tiers": { + "attention": 8, + "depth": 3, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 37575830, + "title": "Özkan Yıldırım", + "description": "German footballer", + "wikidataId": "Q1152151", + "revisionId": 1385253370, + "pageBytes": 7250, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "1993 births", + "2. Bundesliga players", + "21st-century German sportsmen", + "3. Liga players", + "Bundesliga players", + "Eintracht Braunschweig players", + "Expatriate men's footballers in Turkey", + "Footballers from Lower Saxony", + "Fortuna Düsseldorf players", + "German expatriate men's footballers", + "German expatriate sportspeople in Turkey", + "German men's footballers", + "German people of Turkish descent", + "Germany men's under-21 international footballers", + "Germany men's youth international footballers", + "Living people", + "Men's association football midfielders", + "Menemen F.K. footballers", + "People from Sulingen", + "Regionalliga players", + "SV Werder Bremen II players", + "SV Werder Bremen players", + "Sportspeople of Turkish descent", + "TFF 1. Lig players", + "TFF 2. Lig players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 44 + }, + { + "month": "2026-06", + "views": 53 + }, + { + "month": "2026-07", + "views": 50 + }, + { + "month": "2026-08", + "views": 48 + }, + { + "month": "2026-09", + "views": 44 + }, + { + "month": "2026-10", + "views": 29 + } + ], + "latestMonth": "2026-10", + "total": 268, + "dailyAverage": 0.9354838709677419, + "trendPercent": -34.090909090909086 + }, + "stats": { + "attention": 25, + "depth": 64, + "reach": 33 + }, + "legacyCategory": "People", + "drift30": { + "last30": 44, + "prev30": 28, + "pct": 57.14285714285714 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 6, + "reach": 8 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 64381478, + "title": "Denis Zabolotin", + "description": "Russian handball player", + "wikidataId": "Q96644151", + "revisionId": 1381097840, + "pageBytes": 2197, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1998 births", + "21st-century Russian sportsmen", + "Handball players from Krasnodar", + "Living people", + "Russian expatriate handball players", + "Russian expatriate sportspeople in Belarus", + "Russian handball biography stubs", + "Russian male handball players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 44 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 33 + }, + { + "month": "2026-08", + "views": 23 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 25 + } + ], + "latestMonth": "2026-10", + "total": 179, + "dailyAverage": 0.8064516129032258, + "trendPercent": 13.636363636363635 + }, + "stats": { + "attention": 24, + "depth": 56, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 16, + "prev30": 35, + "pct": -54.285714285714285 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 65723245, + "title": "Russell A. Sanborn", + "description": "U.S. Marine major general", + "wikidataId": "Q29852979", + "revisionId": 1380335385, + "pageBytes": 12789, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Living people", + "Recipients of the Defense Superior Service Medal", + "Recipients of the Legion of Merit", + "Recipients of the Meritorious Service Medal (United States)", + "United States Marine Corps generals", + "United States Marine Corps officers", + "United States Marine Corps personnel of the Gulf War", + "United States Marine Corps personnel of the Iraq War" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 135 + }, + { + "month": "2026-06", + "views": 125 + }, + { + "month": "2026-07", + "views": 127 + }, + { + "month": "2026-08", + "views": 146 + }, + { + "month": "2026-09", + "views": 109 + }, + { + "month": "2026-10", + "views": 107 + } + ], + "latestMonth": "2026-10", + "total": 749, + "dailyAverage": 3.4516129032258065, + "trendPercent": -1.834862385321101 + }, + "stats": { + "attention": 34, + "depth": 68, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 117, + "prev30": 114, + "pct": 2.631578947368421 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 8, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 82002316, + "title": "Taupo Totara Timber Company", + "description": "New Zealand timber and building supplies company", + "wikidataId": "Q138001385", + "revisionId": 1357961360, + "pageBytes": 27310, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Logging in New Zealand", + "Railway companies of New Zealand" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 61 + }, + { + "month": "2026-06", + "views": 74 + }, + { + "month": "2026-07", + "views": 50 + }, + { + "month": "2026-08", + "views": 99 + }, + { + "month": "2026-09", + "views": 61 + }, + { + "month": "2026-10", + "views": 61 + } + ], + "latestMonth": "2026-10", + "total": 406, + "dailyAverage": 1.967741935483871, + "trendPercent": 0.0 + }, + "stats": { + "attention": 30, + "depth": 74, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 34, + "prev30": 67, + "pct": -49.25373134328358 + }, + "instanceOf": [ + { + "id": "Q783794", + "label": "company" + } + ], + "tiers": { + "attention": 5, + "depth": 10, + "reach": 2 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 1220003, + "title": "Robert Hawthorne", + "description": "Recipient of the Victoria Cross", + "wikidataId": "Q3681767", + "revisionId": 1381976644, + "pageBytes": 14763, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1823 births", + "1879 deaths", + "19th-century Irish people", + "52nd Regiment of Foot soldiers", + "British Army recipients of the Victoria Cross", + "British military musicians", + "Burials in Greater Manchester", + "Indian Rebellion of 1857 recipients of the Victoria Cross", + "Irish recipients of the Victoria Cross", + "Irish soldiers in the British Army", + "Military personnel from County Londonderry", + "People from Maghera" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 67 + }, + { + "month": "2026-06", + "views": 95 + }, + { + "month": "2026-07", + "views": 93 + }, + { + "month": "2026-08", + "views": 68 + }, + { + "month": "2026-09", + "views": 66 + }, + { + "month": "2026-10", + "views": 318 + } + ], + "latestMonth": "2026-10", + "total": 707, + "dailyAverage": 10.258064516129032, + "trendPercent": 381.8181818181818 + }, + "stats": { + "attention": 42, + "depth": 69, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 151, + "prev30": 224, + "pct": -32.589285714285715 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 9, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 20241765, + "title": "Imre Szöllősi", + "description": "Hungarian canoeist (1941–2022)", + "wikidataId": "Q6008352", + "revisionId": 1362148473, + "pageBytes": 4120, + "languageCount": 14, + "languagesTruncated": false, + "categories": [ + "1941 births", + "2022 deaths", + "20th-century Hungarian sportsmen", + "Canoeists at the 1960 Summer Olympics", + "Canoeists at the 1964 Summer Olympics", + "Canoeists at the 1968 Summer Olympics", + "Canoeists from Budapest", + "Hungarian canoe Olympic medalist stubs", + "Hungarian male canoeists", + "ICF Canoe Sprint World Championships medalists in kayak", + "Medalists at the 1960 Summer Olympics", + "Medalists at the 1968 Summer Olympics", + "Olympic bronze medalists for Hungary", + "Olympic canoeists for Hungary", + "Olympic medalists in canoeing", + "Olympic silver medalists for Hungary" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 16 + }, + { + "month": "2026-07", + "views": 14 + }, + { + "month": "2026-08", + "views": 37 + }, + { + "month": "2026-09", + "views": 28 + }, + { + "month": "2026-10", + "views": 16 + } + ], + "latestMonth": "2026-10", + "total": 148, + "dailyAverage": 0.5161290322580645, + "trendPercent": -42.857142857142854 + }, + "stats": { + "attention": 21, + "depth": 60, + "reach": 39 + }, + "legacyCategory": "People", + "drift30": { + "last30": 19, + "prev30": 21, + "pct": -9.523809523809524 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 9 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 25327485, + "title": "Marc Fesneau", + "description": "French politician (born 1971)", + "wikidataId": "Q6755549", + "revisionId": 1378155021, + "pageBytes": 11163, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "1971 births", + "Democratic Movement (France) politicians", + "Deputies of the 15th National Assembly of the French Fifth Republic", + "Deputies of the 16th National Assembly of the French Fifth Republic", + "Deputies of the 17th National Assembly of the French Fifth Republic", + "Living people", + "Mayors of places in Centre-Val de Loire", + "Members of the Attal government", + "Members of the Borne government", + "Ministers of agriculture of France", + "Ministers of food of France", + "Politicians from Centre-Val de Loire", + "Politicians from Paris", + "Regional councillors of France", + "Sciences Po alumni", + "Union for French Democracy politicians" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 392 + }, + { + "month": "2026-06", + "views": 190 + }, + { + "month": "2026-07", + "views": 166 + }, + { + "month": "2026-08", + "views": 165 + }, + { + "month": "2026-09", + "views": 155 + }, + { + "month": "2026-10", + "views": 335 + } + ], + "latestMonth": "2026-10", + "total": 1403, + "dailyAverage": 10.806451612903226, + "trendPercent": 116.12903225806453 + }, + "stats": { + "attention": 42, + "depth": 67, + "reach": 28 + }, + "legacyCategory": "People", + "drift30": { + "last30": 274, + "prev30": 246, + "pct": 11.38211382113821 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 41543067, + "title": "Arms and the Girl", + "description": "1917 American silent film", + "wikidataId": "Q16248487", + "revisionId": 1381927878, + "pageBytes": 5602, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "1917 American films", + "1917 English-language films", + "1917 drama films", + "1917 films", + "American World War I films", + "American black-and-white films", + "American films based on plays", + "American silent drama films", + "American silent feature films", + "English-language drama films", + "Films directed by Joseph Kaufman", + "Films set in Belgium", + "Paramount Pictures films", + "Surviving American silent films" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 69 + }, + { + "month": "2026-06", + "views": 58 + }, + { + "month": "2026-07", + "views": 83 + }, + { + "month": "2026-08", + "views": 75 + }, + { + "month": "2026-09", + "views": 61 + }, + { + "month": "2026-10", + "views": 75 + } + ], + "latestMonth": "2026-10", + "total": 421, + "dailyAverage": 2.4193548387096775, + "trendPercent": 22.950819672131146 + }, + "stats": { + "attention": 31, + "depth": 62, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 63, + "prev30": 65, + "pct": -3.076923076923077 + }, + "instanceOf": [ + { + "id": "Q11424", + "label": "film" + } + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 6 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 41915964, + "title": "Taylor County Historical Society", + "description": "Non-profit organization in Florida, US", + "wikidataId": "Q16966311", + "revisionId": 1308018675, + "pageBytes": 2822, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1971 establishments in Florida", + "501(c)(3) organizations", + "Florida stubs", + "Historic bank buildings", + "Historical societies in Florida", + "Taylor County, Florida" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 34 + }, + { + "month": "2026-06", + "views": 15 + }, + { + "month": "2026-07", + "views": 15 + }, + { + "month": "2026-08", + "views": 9 + }, + { + "month": "2026-09", + "views": 18 + }, + { + "month": "2026-10", + "views": 20 + } + ], + "latestMonth": "2026-10", + "total": 111, + "dailyAverage": 0.6451612903225806, + "trendPercent": 11.11111111111111 + }, + "stats": { + "attention": 22, + "depth": 58, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 18, + "prev30": 23, + "pct": -21.73913043478261 + }, + "instanceOf": [ + { + "id": "Q5774403", + "label": "historical society" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 42179026, + "title": "Dojikko", + "description": "Extremely clumsy female character in anime and manga", + "wikidataId": "Q164896", + "revisionId": 1373475086, + "pageBytes": 2994, + "languageCount": 12, + "languagesTruncated": false, + "categories": [ + "Anime and manga stubs", + "Anime and manga terminology", + "Female stock characters in anime and manga" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 836 + }, + { + "month": "2026-06", + "views": 635 + }, + { + "month": "2026-07", + "views": 689 + }, + { + "month": "2026-08", + "views": 730 + }, + { + "month": "2026-09", + "views": 782 + }, + { + "month": "2026-10", + "views": 794 + } + ], + "latestMonth": "2026-10", + "total": 4466, + "dailyAverage": 25.612903225806452, + "trendPercent": 1.5345268542199488 + }, + "stats": { + "attention": 48, + "depth": 58, + "reach": 37 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 708, + "prev30": 843, + "pct": -16.014234875444842 + }, + "instanceOf": [ + { + "id": "Q636497", + "label": "stock character" + } + ], + "tiers": { + "attention": 9, + "depth": 3, + "reach": 9 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 53544117, + "title": "Jünkerath station", + "description": "Railway station in Jünkerath, Germany", + "wikidataId": "Q23924993", + "revisionId": 1371197205, + "pageBytes": 14517, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Railway stations in Germany opened in 1870", + "Railway stations in Rhineland-Palatinate", + "Vulkaneifel" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 19 + }, + { + "month": "2026-08", + "views": 24 + }, + { + "month": "2026-09", + "views": 15 + }, + { + "month": "2026-10", + "views": 23 + } + ], + "latestMonth": "2026-10", + "total": 132, + "dailyAverage": 0.7419354838709677, + "trendPercent": 53.333333333333336 + }, + "stats": { + "attention": 23, + "depth": 69, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 13, + "prev30": 19, + "pct": -31.57894736842105 + }, + "instanceOf": [ + { + "id": "Q55488", + "label": "railway station" + } + ], + "tiers": { + "attention": 2, + "depth": 9, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 59880339, + "title": "United Artists Releasing", + "description": "Film distribution successor to United Artists", + "wikidataId": "Q119348733", + "revisionId": 1382490836, + "pageBytes": 32007, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "2017 establishments in California", + "American companies disestablished in 2023", + "American companies established in 2017", + "Film distributors of the United States", + "Former Metro-Goldwyn-Mayer subsidiaries", + "Former joint ventures", + "Mass media companies disestablished in 2023", + "Mass media companies established in 2017" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2418 + }, + { + "month": "2026-06", + "views": 2275 + }, + { + "month": "2026-07", + "views": 2334 + }, + { + "month": "2026-08", + "views": 2505 + }, + { + "month": "2026-09", + "views": 2279 + }, + { + "month": "2026-10", + "views": 3347 + } + ], + "latestMonth": "2026-10", + "total": 15158, + "dailyAverage": 107.96774193548387, + "trendPercent": 46.86265906099166 + }, + "stats": { + "attention": 59, + "depth": 75, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 3347, + "prev30": 2560, + "pct": 30.7421875 + }, + "instanceOf": [ + { + "id": "Q783794", + "label": "company" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 6 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 77720522, + "title": "Hungarian Giant Pigeon", + "description": null, + "wikidataId": "Q12815231", + "revisionId": 1380422871, + "pageBytes": 3939, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Columbidae", + "Crested pigeons", + "Domestic pigeons", + "Pigeon breed stubs", + "Pigeon breeds", + "Utility pigeons" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 200 + }, + { + "month": "2026-06", + "views": 204 + }, + { + "month": "2026-07", + "views": 172 + }, + { + "month": "2026-08", + "views": 183 + }, + { + "month": "2026-09", + "views": 160 + }, + { + "month": "2026-10", + "views": 215 + } + ], + "latestMonth": "2026-10", + "total": 1134, + "dailyAverage": 6.935483870967742, + "trendPercent": 34.375 + }, + "stats": { + "attention": 39, + "depth": 60, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 152, + "prev30": 224, + "pct": -32.142857142857146 + }, + "instanceOf": [ + { + "id": "Q15623573", + "label": "pigeon breed" + } + ], + "tiers": { + "attention": 8, + "depth": 4, + "reach": 6 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 81412097, + "title": "Iona Moir", + "description": "British track cyclist", + "wikidataId": "Q130078456", + "revisionId": 1380568254, + "pageBytes": 9717, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "2003 births", + "21st-century Scottish sportswomen", + "British female cyclists", + "British track cyclists", + "Commonwealth Games bronze medallists in cycling", + "Cyclists at the 2026 Commonwealth Games", + "Living people", + "Medallists at the 2026 Commonwealth Games", + "Scottish female cyclists", + "Scottish track cyclists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 80 + }, + { + "month": "2026-07", + "views": 295 + }, + { + "month": "2026-08", + "views": 295 + }, + { + "month": "2026-09", + "views": 53 + }, + { + "month": "2026-10", + "views": 117 + } + ], + "latestMonth": "2026-10", + "total": 865, + "dailyAverage": 3.774193548387097, + "trendPercent": 120.75471698113208 + }, + "stats": { + "attention": 35, + "depth": 66, + "reach": 30 + }, + "legacyCategory": "People", + "drift30": { + "last30": 77, + "prev30": 85, + "pct": -9.411764705882353 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 7, + "reach": 8 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 84243204, + "title": "Figueiredo (Guimarães)", + "description": "Extinct parish in Guimarães, Portugal", + "wikidataId": "Q1023176", + "revisionId": 1375287029, + "pageBytes": 3763, + "languageCount": 11, + "languagesTruncated": false, + "categories": [ + "Former parishes of Guimarães", + "Portugal geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 29 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 35, + "dailyAverage": 0.1935483870967742, + "trendPercent": -79.3103448275862 + }, + "stats": { + "attention": 14, + "depth": 60, + "reach": 36 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 3, + "prev30": 13, + "pct": -76.92307692307693 + }, + "instanceOf": [ + { + "id": "Q56046844", + "label": "former freguesia of Portugal" + } + ], + "tiers": { + "attention": 1, + "depth": 4, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 87495, + "title": "Kusilvak Census Area, Alaska", + "description": "Census area in Alaska, United States", + "wikidataId": "Q379474", + "revisionId": 1375332586, + "pageBytes": 21507, + "languageCount": 30, + "languagesTruncated": false, + "categories": [ + "Alaska boroughs", + "Alaska census areas", + "Bering Sea", + "Kusilvak Census Area, Alaska" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 881 + }, + { + "month": "2026-06", + "views": 837 + }, + { + "month": "2026-07", + "views": 925 + }, + { + "month": "2026-08", + "views": 930 + }, + { + "month": "2026-09", + "views": 943 + }, + { + "month": "2026-10", + "views": 818 + } + ], + "latestMonth": "2026-10", + "total": 5334, + "dailyAverage": 26.387096774193548, + "trendPercent": -13.255567338282079 + }, + "stats": { + "attention": 49, + "depth": 72, + "reach": 50 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1164, + "prev30": 881, + "pct": 32.122587968217935 + }, + "instanceOf": [ + { + "id": "Q56064719", + "label": "census area of Alaska" + } + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 3560741, + "title": "Martin Taylor (businessman)", + "description": "British businessman (born 1952)", + "wikidataId": "Q6776725", + "revisionId": 1372647813, + "pageBytes": 6171, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1952 births", + "Alumni of Balliol College, Oxford", + "Barclays people", + "British business biography, 1950s birth stubs", + "British chief executives of financial services companies", + "Businesspeople from Lancashire", + "Goldman Sachs people", + "Living people", + "Members of the Steering Committee of the Bilderberg Group", + "People educated at Eton College", + "People from Burnley", + "RTL Group people" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 280 + }, + { + "month": "2026-06", + "views": 260 + }, + { + "month": "2026-07", + "views": 234 + }, + { + "month": "2026-08", + "views": 246 + }, + { + "month": "2026-09", + "views": 266 + }, + { + "month": "2026-10", + "views": 269 + } + ], + "latestMonth": "2026-10", + "total": 1555, + "dailyAverage": 8.67741935483871, + "trendPercent": 1.1278195488721803 + }, + "stats": { + "attention": 41, + "depth": 63, + "reach": 20 + }, + "legacyCategory": "People", + "drift30": { + "last30": 249, + "prev30": 243, + "pct": 2.4691358024691357 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 8, + "depth": 6, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 5368142, + "title": "Brass Mill Center", + "description": "Shopping mall in Connecticut, United States", + "wikidataId": "Q4957871", + "revisionId": 1385081865, + "pageBytes": 8018, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Waterbury, Connecticut", + "Kohan Retail Investment Group", + "Shopping malls developed by GGP Inc.", + "Shopping malls established in 1997", + "Shopping malls in Connecticut", + "Shopping malls in the New York metropolitan area", + "Tourist attractions in New Haven County, Connecticut" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 417 + }, + { + "month": "2026-06", + "views": 342 + }, + { + "month": "2026-07", + "views": 333 + }, + { + "month": "2026-08", + "views": 357 + }, + { + "month": "2026-09", + "views": 277 + }, + { + "month": "2026-10", + "views": 315 + } + ], + "latestMonth": "2026-10", + "total": 2041, + "dailyAverage": 10.161290322580646, + "trendPercent": 13.718411552346572 + }, + "stats": { + "attention": 42, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 305, + "prev30": 283, + "pct": 7.773851590106007 + }, + "instanceOf": [ + { + "id": "Q11315", + "label": "shopping center" + } + ], + "tiers": { + "attention": 8, + "depth": 7, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 31573922, + "title": "Vincenza Sicari", + "description": "Italian long-distance runner (born 1979)", + "wikidataId": "Q2526833", + "revisionId": 1364585710, + "pageBytes": 12187, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "1979 births", + "20th-century Italian women", + "21st-century Italian sportswomen", + "Athletes (track and field) at the 2005 Mediterranean Games", + "Athletes (track and field) at the 2008 Summer Olympics", + "Athletes from Lombardy", + "Italian Athletics Championships winners", + "Italian women long-distance runners", + "Italian women marathon runners", + "Living people", + "Mediterranean Games competitors for Italy", + "Olympic athletes for Italy", + "Olympic women marathon runners", + "Sportspeople from Lodi, Lombardy" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 37 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 22 + }, + { + "month": "2026-09", + "views": 32 + }, + { + "month": "2026-10", + "views": 27 + } + ], + "latestMonth": "2026-10", + "total": 182, + "dailyAverage": 0.8709677419354839, + "trendPercent": -15.625 + }, + "stats": { + "attention": 24, + "depth": 68, + "reach": 26 + }, + "legacyCategory": "People", + "drift30": { + "last30": 21, + "prev30": 39, + "pct": -46.15384615384615 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 8, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 34707772, + "title": "Arnold I of Egmond", + "description": null, + "wikidataId": "Q1920891", + "revisionId": 1376437554, + "pageBytes": 3148, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "1330s births", + "1409 deaths", + "14th-century nobility from the Holy Roman Empire", + "15th-century nobility from the Holy Roman Empire", + "Dutch people stubs", + "European nobility stubs", + "Lords of Egmond", + "Lords of IJsselstein", + "People from Egmond" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 9 + }, + { + "month": "2026-10", + "views": 44 + } + ], + "latestMonth": "2026-10", + "total": 53, + "dailyAverage": 1.4193548387096775, + "trendPercent": 388.88888888888886 + }, + "stats": { + "attention": 28, + "depth": 58, + "reach": 23 + }, + "legacyCategory": "People", + "drift30": { + "last30": 31, + "prev30": 35, + "pct": -11.428571428571429 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 3, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 52333386, + "title": "Lewis and Elizabeth Bolton House", + "description": "Historic house in Missouri, United States", + "wikidataId": "Q28007838", + "revisionId": 1373477524, + "pageBytes": 2029, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Jefferson City, Missouri", + "Central Missouri Registered Historic Place stubs", + "Greek Revival houses in Missouri", + "Houses completed in 1833", + "Houses on the National Register of Historic Places in Missouri", + "National Register of Historic Places in Cole County, Missouri" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 12 + }, + { + "month": "2026-06", + "views": 19 + }, + { + "month": "2026-07", + "views": 18 + }, + { + "month": "2026-08", + "views": 21 + }, + { + "month": "2026-09", + "views": 31 + }, + { + "month": "2026-10", + "views": 31 + } + ], + "latestMonth": "2026-10", + "total": 132, + "dailyAverage": 1.0, + "trendPercent": 0.0 + }, + "stats": { + "attention": 25, + "depth": 55, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 25, + "prev30": 34, + "pct": -26.47058823529412 + }, + "instanceOf": [ + { + "id": "Q1307276", + "label": "single-family detached home" + } + ], + "tiers": { + "attention": 3, + "depth": 2, + "reach": 2 + }, + "faction": "Works", + "category": "History" + }, + { + "pageId": 3440141, + "title": "Belgium at the 1948 Summer Olympics", + "description": "Sporting event delegation", + "wikidataId": "Q592430", + "revisionId": 1384669473, + "pageBytes": 9438, + "languageCount": 17, + "languagesTruncated": false, + "categories": [ + "1948 in Belgian sport", + "Belgium at the Summer Olympics by year", + "Nations at the 1948 Summer Olympics" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 53 + }, + { + "month": "2026-06", + "views": 51 + }, + { + "month": "2026-07", + "views": 51 + }, + { + "month": "2026-08", + "views": 37 + }, + { + "month": "2026-09", + "views": 40 + }, + { + "month": "2026-10", + "views": 29 + } + ], + "latestMonth": "2026-10", + "total": 261, + "dailyAverage": 0.9354838709677419, + "trendPercent": -27.500000000000004 + }, + "stats": { + "attention": 25, + "depth": 66, + "reach": 42 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 28, + "prev30": 36, + "pct": -22.22222222222222 + }, + "instanceOf": [ + { + "id": "Q26213387", + "label": "Olympic delegation" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 9 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 4374694, + "title": "National Register of Historic Places listings in Yates County, New York", + "description": "", + "wikidataId": "Q6977936", + "revisionId": 1384632958, + "pageBytes": 24304, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Buildings and structures in Yates County, New York", + "Lists of National Register of Historic Places in New York (state) by county", + "National Register of Historic Places in Yates County, New York" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 61 + }, + { + "month": "2026-06", + "views": 30 + }, + { + "month": "2026-07", + "views": 45 + }, + { + "month": "2026-08", + "views": 41 + }, + { + "month": "2026-09", + "views": 87 + }, + { + "month": "2026-10", + "views": 39 + } + ], + "latestMonth": "2026-10", + "total": 303, + "dailyAverage": 1.2580645161290323, + "trendPercent": -55.172413793103445 + }, + "stats": { + "attention": 27, + "depth": 73, + "reach": 10 + }, + "legacyCategory": "History", + "drift30": { + "last30": 41, + "prev30": 66, + "pct": -37.878787878787875 + }, + "instanceOf": [ + { + "id": "Q13406463", + "label": "Wikimedia list article" + } + ], + "tiers": { + "attention": 4, + "depth": 10, + "reach": 4 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 15084630, + "title": "Uremic frost", + "description": "Crystallized urea deposits on skin", + "wikidataId": "Q18395101", + "revisionId": 1340554441, + "pageBytes": 3027, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Cutaneous conditions", + "Endocrine, nutritional and metabolic disease stubs", + "Kidney diseases", + "Nephrology" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1269 + }, + { + "month": "2026-06", + "views": 1136 + }, + { + "month": "2026-07", + "views": 1172 + }, + { + "month": "2026-08", + "views": 1097 + }, + { + "month": "2026-09", + "views": 1044 + }, + { + "month": "2026-10", + "views": 961 + } + ], + "latestMonth": "2026-10", + "total": 6679, + "dailyAverage": 31.0, + "trendPercent": -7.950191570881227 + }, + "stats": { + "attention": 50, + "depth": 58, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 915, + "prev30": 959, + "pct": -4.588112617309697 + }, + "instanceOf": [ + { + "id": "Q1441305", + "label": "clinical sign" + } + ], + "tiers": { + "attention": 9, + "depth": 3, + "reach": 5 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 16038960, + "title": "La Chapelle-Palluau", + "description": "Commune in Pays de la Loire, France", + "wikidataId": "Q675088", + "revisionId": 1381994388, + "pageBytes": 1697, + "languageCount": 35, + "languagesTruncated": false, + "categories": [ + "Communes of Vendée", + "Vendée geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 20 + }, + { + "month": "2026-06", + "views": 13 + }, + { + "month": "2026-07", + "views": 11 + }, + { + "month": "2026-08", + "views": 11 + }, + { + "month": "2026-09", + "views": 10 + }, + { + "month": "2026-10", + "views": 5 + } + ], + "latestMonth": "2026-10", + "total": 70, + "dailyAverage": 0.16129032258064516, + "trendPercent": -50.0 + }, + "stats": { + "attention": 13, + "depth": 54, + "reach": 52 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5, + "prev30": 8, + "pct": -37.5 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 20139020, + "title": "Samuel Yeatman", + "description": "American baseball player (1839–1901)", + "wikidataId": "Q4911449", + "revisionId": 1307118821, + "pageBytes": 2314, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1848 births", + "1905 deaths", + "19th-century American sportsmen", + "19th-century Baptist ministers from the United States", + "19th-century baseball players", + "American baseball outfielder stubs", + "Baseball players from Washington, D.C.", + "George Washington University alumni", + "Georgetown University Law Center alumni", + "Washington Nationals (NA) players" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 11 + }, + { + "month": "2026-06", + "views": 11 + }, + { + "month": "2026-07", + "views": 4 + }, + { + "month": "2026-08", + "views": 7 + }, + { + "month": "2026-09", + "views": 8 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 47, + "dailyAverage": 0.1935483870967742, + "trendPercent": -25.0 + }, + "stats": { + "attention": 14, + "depth": 56, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 4, + "prev30": 4, + "pct": 0.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 28703040, + "title": "Suðurey", + "description": "Island in Iceland", + "wikidataId": "Q3115506", + "revisionId": 1366016093, + "pageBytes": 772, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Iceland geography stubs", + "Vestmannaeyjar" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 97 + }, + { + "month": "2026-06", + "views": 74 + }, + { + "month": "2026-07", + "views": 133 + }, + { + "month": "2026-08", + "views": 113 + }, + { + "month": "2026-09", + "views": 75 + }, + { + "month": "2026-10", + "views": 66 + } + ], + "latestMonth": "2026-10", + "total": 558, + "dailyAverage": 2.129032258064516, + "trendPercent": -12.0 + }, + "stats": { + "attention": 30, + "depth": 48, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 49, + "prev30": 71, + "pct": -30.985915492957744 + }, + "instanceOf": [ + { + "id": "Q23442", + "label": "island" + } + ], + "tiers": { + "attention": 5, + "depth": 1, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 44714079, + "title": "Île-de-France tramway Line 6", + "description": "Suburban tram line in Hauts-de-Seine and Yvelines, southwest of Paris", + "wikidataId": "Q3238993", + "revisionId": 1364832308, + "pageBytes": 3480, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "2014 establishments in France", + "Railway lines opened in 2014", + "Tram lines in Île-de-France" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 242 + }, + { + "month": "2026-06", + "views": 198 + }, + { + "month": "2026-07", + "views": 224 + }, + { + "month": "2026-08", + "views": 269 + }, + { + "month": "2026-09", + "views": 221 + }, + { + "month": "2026-10", + "views": 230 + } + ], + "latestMonth": "2026-10", + "total": 1384, + "dailyAverage": 7.419354838709677, + "trendPercent": 4.072398190045249 + }, + "stats": { + "attention": 39, + "depth": 59, + "reach": 33 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 185, + "prev30": 231, + "pct": -19.913419913419915 + }, + "instanceOf": [ + { + "id": "Q15145593", + "label": "tram route" + }, + { + "id": "Q385653", + "label": "rubber-tyred tram" + } + ], + "tiers": { + "attention": 8, + "depth": 4, + "reach": 8 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 5076812, + "title": "Free-Stater (Kansas)", + "description": "Anti-Slavery organization", + "wikidataId": "Q5499603", + "revisionId": 1373793952, + "pageBytes": 5816, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Abolitionism in the United States", + "Bleeding Kansas", + "Politically motivated migrations" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1086 + }, + { + "month": "2026-06", + "views": 1079 + }, + { + "month": "2026-07", + "views": 1214 + }, + { + "month": "2026-08", + "views": 919 + }, + { + "month": "2026-09", + "views": 1316 + }, + { + "month": "2026-10", + "views": 791 + } + ], + "latestMonth": "2026-10", + "total": 6405, + "dailyAverage": 25.516129032258064, + "trendPercent": -39.8936170212766 + }, + "stats": { + "attention": 48, + "depth": 63, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 960, + "prev30": 766, + "pct": 25.326370757180154 + }, + "instanceOf": [ + { + "id": "Q15911314", + "label": "association" + } + ], + "tiers": { + "attention": 9, + "depth": 6, + "reach": 4 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 8528827, + "title": "Llandarcy Oil Refinery", + "description": "Former oil refinery in Neath Port Talbot, Wales", + "wikidataId": "Q27957412", + "revisionId": 1379603420, + "pageBytes": 13814, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1921 establishments in Wales", + "BP buildings and structures", + "Buildings and structures demolished in 2009", + "Buildings and structures in Neath Port Talbot", + "Demolished buildings and structures in Wales", + "Energy infrastructure completed in 1922", + "Energy infrastructure in Wales", + "Fossil fuels in Wales", + "History of Glamorgan", + "History of the petroleum industry in the United Kingdom", + "Industrial history of Wales", + "Oil refineries in the United Kingdom" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 242 + }, + { + "month": "2026-06", + "views": 161 + }, + { + "month": "2026-07", + "views": 202 + }, + { + "month": "2026-08", + "views": 184 + }, + { + "month": "2026-09", + "views": 232 + }, + { + "month": "2026-10", + "views": 242 + } + ], + "latestMonth": "2026-10", + "total": 1263, + "dailyAverage": 7.806451612903226, + "trendPercent": 4.310344827586207 + }, + "stats": { + "attention": 40, + "depth": 69, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 202, + "prev30": 232, + "pct": -12.931034482758621 + }, + "instanceOf": [ + { + "id": "Q12353044", + "label": "oil refinery" + } + ], + "tiers": { + "attention": 8, + "depth": 9, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 15348229, + "title": "Diocese of Mindelo", + "description": "Roman Catholic diocese in Cape Verde", + "wikidataId": "Q872428", + "revisionId": 1367445085, + "pageBytes": 2466, + "languageCount": 13, + "languagesTruncated": false, + "categories": [ + "African Roman Catholic diocese stubs", + "Cape Verde stubs", + "Christian organizations established in 2003", + "Exempt dioceses", + "Mindelo", + "Roman Catholic dioceses and prelatures established in the 21st century", + "Roman Catholic dioceses in Cape Verde" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 27 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 22 + }, + { + "month": "2026-08", + "views": 20 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 23 + } + ], + "latestMonth": "2026-10", + "total": 134, + "dailyAverage": 0.7419354838709677, + "trendPercent": 4.545454545454546 + }, + "stats": { + "attention": 23, + "depth": 57, + "reach": 38 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 22, + "prev30": 24, + "pct": -8.333333333333332 + }, + "instanceOf": [ + { + "id": "Q3146899", + "label": "Diocese of the Catholic Church" + }, + { + "id": "Q2665272", + "label": "Ecclesiastical circumscription immediately subject to the Holy See" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 9 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 15588865, + "title": "Bonnevaux-le-Prieuré", + "description": "Part of Ornans in Bourgogne-Franche-Comté, France", + "wikidataId": "Q837744", + "revisionId": 1381802984, + "pageBytes": 1557, + "languageCount": 28, + "languagesTruncated": false, + "categories": [ + "Besançon arrondissement geography stubs", + "Former communes of Doubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 15 + }, + { + "month": "2026-06", + "views": 16 + }, + { + "month": "2026-07", + "views": 5 + }, + { + "month": "2026-08", + "views": 15 + }, + { + "month": "2026-09", + "views": 11 + }, + { + "month": "2026-10", + "views": 13 + } + ], + "latestMonth": "2026-10", + "total": 75, + "dailyAverage": 0.41935483870967744, + "trendPercent": 18.181818181818183 + }, + "stats": { + "attention": 19, + "depth": 53, + "reach": 49 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 6, + "prev30": 17, + "pct": -64.70588235294117 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + }, + { + "id": "Q21869758", + "label": "delegated commune" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 17172975, + "title": "Bukama", + "description": "Place in Haut-Lomami, Democratic Republic of the Congo", + "wikidataId": "Q2915071", + "revisionId": 1378041962, + "pageBytes": 6699, + "languageCount": 16, + "languagesTruncated": false, + "categories": [ + "Democratic Republic of the Congo geography stubs", + "Populated places in Haut-Lomami" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 110 + }, + { + "month": "2026-06", + "views": 112 + }, + { + "month": "2026-07", + "views": 150 + }, + { + "month": "2026-08", + "views": 118 + }, + { + "month": "2026-09", + "views": 161 + }, + { + "month": "2026-10", + "views": 159 + } + ], + "latestMonth": "2026-10", + "total": 810, + "dailyAverage": 5.129032258064516, + "trendPercent": -1.2422360248447204 + }, + "stats": { + "attention": 37, + "depth": 64, + "reach": 41 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 106, + "prev30": 170, + "pct": -37.64705882352941 + }, + "instanceOf": [ + { + "id": "Q515", + "label": "city" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 23305148, + "title": "Agios Isidoros, Cyprus", + "description": "Place in Paphos District, Cyprus", + "wikidataId": "Q4831291", + "revisionId": 1377045846, + "pageBytes": 3417, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "Communities in Paphos District", + "Paphos District geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 24 + }, + { + "month": "2026-06", + "views": 20 + }, + { + "month": "2026-07", + "views": 14 + }, + { + "month": "2026-08", + "views": 21 + }, + { + "month": "2026-09", + "views": 12 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 109, + "dailyAverage": 0.5806451612903226, + "trendPercent": 50.0 + }, + "stats": { + "attention": 21, + "depth": 59, + "reach": 33 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 6, + "prev30": 20, + "pct": -70.0 + }, + "instanceOf": [ + { + "id": "Q29414133", + "label": "community of Cyprus Republic" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 38872265, + "title": "Ethel Post-Parrish", + "description": "American Spiritualist medium (died 1960)", + "wikidataId": "Q15999505", + "revisionId": 1370478726, + "pageBytes": 2819, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1960 deaths", + "American spiritual mediums", + "People from Ephrata, Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 94 + }, + { + "month": "2026-06", + "views": 71 + }, + { + "month": "2026-07", + "views": 59 + }, + { + "month": "2026-08", + "views": 42 + }, + { + "month": "2026-09", + "views": 68 + }, + { + "month": "2026-10", + "views": 69 + } + ], + "latestMonth": "2026-10", + "total": 403, + "dailyAverage": 2.225806451612903, + "trendPercent": 1.4705882352941175 + }, + "stats": { + "attention": 31, + "depth": 58, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 65, + "prev30": 63, + "pct": 3.1746031746031744 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 3, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 63363087, + "title": "Keyontae Johnson", + "description": "American basketball player (born 2000)", + "wikidataId": "Q88963854", + "revisionId": 1385804220, + "pageBytes": 19745, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "2000 births", + "21st-century American sportsmen", + "All-American college men's basketball players", + "American men's basketball players", + "Basketball players from Norfolk, Virginia", + "Florida Gators men's basketball players", + "Greensboro Swarm players", + "IMG Academy alumni", + "Kansas State Wildcats men's basketball players", + "Living people", + "Oklahoma City Blue players", + "Oklahoma City Thunder draft picks", + "Oklahoma City Thunder players", + "Small forwards" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2277 + }, + { + "month": "2026-06", + "views": 1393 + }, + { + "month": "2026-07", + "views": 1344 + }, + { + "month": "2026-08", + "views": 811 + }, + { + "month": "2026-09", + "views": 1129 + }, + { + "month": "2026-10", + "views": 1809 + } + ], + "latestMonth": "2026-10", + "total": 8763, + "dailyAverage": 58.354838709677416, + "trendPercent": 60.23029229406555 + }, + "stats": { + "attention": 54, + "depth": 72, + "reach": 28 + }, + "legacyCategory": "People", + "drift30": { + "last30": 1920, + "prev30": 1498, + "pct": 28.17089452603471 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 7 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 73426976, + "title": "Viniče", + "description": "Village in Skopje, North Macedonia", + "wikidataId": "Q3560281", + "revisionId": 1379304890, + "pageBytes": 5038, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Skopje Statistical Region geography stubs", + "Villages in Gazi Baba Municipality" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 51 + }, + { + "month": "2026-06", + "views": 39 + }, + { + "month": "2026-07", + "views": 34 + }, + { + "month": "2026-08", + "views": 30 + }, + { + "month": "2026-09", + "views": 30 + }, + { + "month": "2026-10", + "views": 13 + } + ], + "latestMonth": "2026-10", + "total": 197, + "dailyAverage": 0.41935483870967744, + "trendPercent": -56.666666666666664 + }, + "stats": { + "attention": 19, + "depth": 62, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 25, + "prev30": 17, + "pct": 47.05882352941176 + }, + "instanceOf": [ + { + "id": "Q532", + "label": "village" + } + ], + "tiers": { + "attention": 1, + "depth": 5, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 923700, + "title": "Sainte-Foy-lès-Lyon", + "description": "Commune in Auvergne-Rhône-Alpes, France", + "wikidataId": "Q387460", + "revisionId": 1382030380, + "pageBytes": 4865, + "languageCount": 45, + "languagesTruncated": false, + "categories": [ + "Communes of Lyon Metropolis", + "Lyonnais", + "Metropolis of Lyon geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 307 + }, + { + "month": "2026-06", + "views": 223 + }, + { + "month": "2026-07", + "views": 266 + }, + { + "month": "2026-08", + "views": 231 + }, + { + "month": "2026-09", + "views": 268 + }, + { + "month": "2026-10", + "views": 243 + } + ], + "latestMonth": "2026-10", + "total": 1538, + "dailyAverage": 7.838709677419355, + "trendPercent": -9.328358208955224 + }, + "stats": { + "attention": 40, + "depth": 61, + "reach": 55 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 192, + "prev30": 262, + "pct": -26.717557251908396 + }, + "instanceOf": [ + { + "id": "Q484170", + "label": "commune of France" + } + ], + "tiers": { + "attention": 8, + "depth": 5, + "reach": 10 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 3442641, + "title": "Tidewater Provincial Park", + "description": "Provincial park in Ontario, Canada", + "wikidataId": "Q7800881", + "revisionId": 1372311773, + "pageBytes": 3074, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1964 establishments in Ontario", + "Canadian protected area stubs", + "Cochrane District geography stubs", + "IUCN Category II", + "Protected areas established in 1964", + "Protected areas of Cochrane District", + "Provincial parks of Ontario" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 60 + }, + { + "month": "2026-06", + "views": 102 + }, + { + "month": "2026-07", + "views": 106 + }, + { + "month": "2026-08", + "views": 82 + }, + { + "month": "2026-09", + "views": 68 + }, + { + "month": "2026-10", + "views": 64 + } + ], + "latestMonth": "2026-10", + "total": 482, + "dailyAverage": 2.064516129032258, + "trendPercent": -5.88235294117647 + }, + "stats": { + "attention": 30, + "depth": 58, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 51, + "prev30": 65, + "pct": -21.53846153846154 + }, + "instanceOf": [ + { + "id": "Q2006279", + "label": "provincial park of Canada" + } + ], + "tiers": { + "attention": 5, + "depth": 3, + "reach": 5 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 4547560, + "title": "Tracheal collapse", + "description": "Flattening of the trachea in animals", + "wikidataId": "Q2447482", + "revisionId": 1333227991, + "pageBytes": 4473, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Dog diseases" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 658 + }, + { + "month": "2026-06", + "views": 662 + }, + { + "month": "2026-07", + "views": 615 + }, + { + "month": "2026-08", + "views": 500 + }, + { + "month": "2026-09", + "views": 494 + }, + { + "month": "2026-10", + "views": 577 + } + ], + "latestMonth": "2026-10", + "total": 3506, + "dailyAverage": 18.612903225806452, + "trendPercent": 16.801619433198383 + }, + "stats": { + "attention": 46, + "depth": 61, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 572, + "prev30": 513, + "pct": 11.500974658869396 + }, + "instanceOf": [ + { + "id": "Q140427225", + "label": "type of animal disease" + } + ], + "tiers": { + "attention": 9, + "depth": 5, + "reach": 6 + }, + "faction": "Nature", + "category": "Culture" + }, + { + "pageId": 13784221, + "title": "Ellenborough Falls", + "description": "Waterfall on the Ellenborough River in New South Wales, Australia", + "wikidataId": "Q3652636", + "revisionId": 1362220356, + "pageBytes": 2615, + "languageCount": 6, + "languagesTruncated": false, + "categories": [ + "Horsetail waterfalls", + "Mid North Coast", + "Waterfalls of New South Wales" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 154 + }, + { + "month": "2026-06", + "views": 121 + }, + { + "month": "2026-07", + "views": 189 + }, + { + "month": "2026-08", + "views": 135 + }, + { + "month": "2026-09", + "views": 129 + }, + { + "month": "2026-10", + "views": 160 + } + ], + "latestMonth": "2026-10", + "total": 888, + "dailyAverage": 5.161290322580645, + "trendPercent": 24.031007751937985 + }, + "stats": { + "attention": 37, + "depth": 57, + "reach": 28 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 161, + "prev30": 114, + "pct": 41.228070175438596 + }, + "instanceOf": [ + { + "id": "Q34038", + "label": "waterfall" + } + ], + "tiers": { + "attention": 7, + "depth": 3, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 33454946, + "title": "Tydeus Painter", + "description": "Ancient Greek vase painter", + "wikidataId": "Q2462577", + "revisionId": 1270324661, + "pageBytes": 1843, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Ancient Greek vase painters" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 12 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 19 + } + ], + "latestMonth": "2026-10", + "total": 130, + "dailyAverage": 0.6129032258064516, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 22, + "depth": 54, + "reach": 20 + }, + "legacyCategory": "History", + "drift30": { + "last30": 20, + "prev30": 18, + "pct": 11.11111111111111 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + }, + { + "id": "Q1747829", + "label": "notname" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 6 + }, + "faction": "People", + "category": "History" + }, + { + "pageId": 45435120, + "title": "Yemọja", + "description": "Major water Orisha in the Yoruba religion", + "wikidataId": "Q1477162", + "revisionId": 1384697951, + "pageBytes": 19829, + "languageCount": 21, + "languagesTruncated": false, + "categories": [ + "Brazilian mythology", + "Fertility goddesses", + "Lunar goddesses", + "Mother goddesses", + "Santería", + "Sea and river goddesses", + "Tutelary goddesses", + "Voodoo goddesses", + "Water goddesses", + "Yoruba goddesses" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 6674 + }, + { + "month": "2026-06", + "views": 6858 + }, + { + "month": "2026-07", + "views": 6207 + }, + { + "month": "2026-08", + "views": 6655 + }, + { + "month": "2026-09", + "views": 6781 + }, + { + "month": "2026-10", + "views": 5552 + } + ], + "latestMonth": "2026-10", + "total": 38727, + "dailyAverage": 179.09677419354838, + "trendPercent": -18.124170476330924 + }, + "stats": { + "attention": 62, + "depth": 72, + "reach": 45 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5071, + "prev30": 5911, + "pct": -14.210793435966842 + }, + "instanceOf": [ + { + "id": "Q290460", + "label": "orisha" + }, + { + "id": "Q1916821", + "label": "water deity" + }, + { + "id": "Q752920", + "label": "Loa" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 75395217, + "title": "Hetifah Sjaifudian", + "description": "Indonesian activist and politician", + "wikidataId": "Q96988706", + "revisionId": 1378415983, + "pageBytes": 13552, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1964 births", + "Bandung Institute of Technology alumni", + "Flinders University alumni", + "Golkar politicians", + "Indonesian Muslims", + "Indonesian activists", + "Living people", + "Members of the House of Representatives (Indonesia), 2009", + "Members of the House of Representatives (Indonesia), 2014", + "Members of the House of Representatives (Indonesia), 2019", + "Members of the House of Representatives (Indonesia), 2024", + "National University of Singapore alumni", + "People from Bandung" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 117 + }, + { + "month": "2026-06", + "views": 74 + }, + { + "month": "2026-07", + "views": 69 + }, + { + "month": "2026-08", + "views": 94 + }, + { + "month": "2026-09", + "views": 49 + }, + { + "month": "2026-10", + "views": 69 + } + ], + "latestMonth": "2026-10", + "total": 472, + "dailyAverage": 2.225806451612903, + "trendPercent": 40.816326530612244 + }, + "stats": { + "attention": 31, + "depth": 69, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 55, + "prev30": 71, + "pct": -22.535211267605636 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 9, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 3110478, + "title": "Laukhella", + "description": "Village in Senja Municipality, Norway", + "wikidataId": "Q3218620", + "revisionId": 1376600347, + "pageBytes": 3064, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Lenvik Municipality", + "Populated places of Arctic Norway", + "Senja Municipality", + "Troms geography stubs", + "Villages in Troms" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 23 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 34 + }, + { + "month": "2026-08", + "views": 38 + }, + { + "month": "2026-09", + "views": 35 + }, + { + "month": "2026-10", + "views": 16 + } + ], + "latestMonth": "2026-10", + "total": 170, + "dailyAverage": 0.5161290322580645, + "trendPercent": -54.285714285714285 + }, + "stats": { + "attention": 21, + "depth": 58, + "reach": 23 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11, + "prev30": 20, + "pct": -45.0 + }, + "instanceOf": [ + { + "id": "Q486972", + "label": "human settlement" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 6 + }, + "faction": "People", + "category": "Culture" + }, + { + "pageId": 7767431, + "title": "Bufo stuarti", + "description": "Species of amphibian", + "wikidataId": "Q28032720", + "revisionId": 1313900503, + "pageBytes": 809, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "Amphibians described in 1929", + "Bufo", + "Frogs of India", + "IUCN Red List least concern species", + "True toad stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 20 + }, + { + "month": "2026-06", + "views": 13 + }, + { + "month": "2026-07", + "views": 8 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 8 + } + ], + "latestMonth": "2026-10", + "total": 89, + "dailyAverage": 0.25806451612903225, + "trendPercent": -63.63636363636363 + }, + "stats": { + "attention": 16, + "depth": 48, + "reach": 33 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 2, + "prev30": 15, + "pct": -86.66666666666667 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 14881994, + "title": "OR56B4", + "description": "Protein-coding gene in the species Homo sapiens", + "wikidataId": "Q18053061", + "revisionId": 1377922091, + "pageBytes": 1685, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Genes on human chromosome 11", + "Olfactory receptors, family 56 (OR56)", + "Transmembrane receptor stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 12 + }, + { + "month": "2026-06", + "views": 16 + }, + { + "month": "2026-07", + "views": 6 + }, + { + "month": "2026-08", + "views": 6 + }, + { + "month": "2026-09", + "views": 9 + }, + { + "month": "2026-10", + "views": 17 + } + ], + "latestMonth": "2026-10", + "total": 66, + "dailyAverage": 0.5483870967741935, + "trendPercent": 88.88888888888889 + }, + "stats": { + "attention": 21, + "depth": 54, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 12, + "prev30": 13, + "pct": -7.6923076923076925 + }, + "instanceOf": [ + { + "id": "Q7187", + "label": "gene" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 7 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 31612771, + "title": "David Cullinane", + "description": "Irish politician (born 1974)", + "wikidataId": "Q5232711", + "revisionId": 1364804505, + "pageBytes": 10821, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1974 births", + "Alumni of Waterford Institute of Technology", + "Labour Panel senators", + "Living people", + "Members of Waterford City Council", + "Members of the 24th Seanad", + "Members of the 32nd Dáil", + "Members of the 33rd Dáil", + "Members of the 34th Dáil", + "Politicians from Waterford (city)", + "Sinn Féin TDs (post-1923)", + "Sinn Féin local councillors in the Republic of Ireland", + "Sinn Féin senators", + "Spouses of Irish politicians" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 478 + }, + { + "month": "2026-06", + "views": 667 + }, + { + "month": "2026-07", + "views": 504 + }, + { + "month": "2026-08", + "views": 324 + }, + { + "month": "2026-09", + "views": 387 + }, + { + "month": "2026-10", + "views": 593 + } + ], + "latestMonth": "2026-10", + "total": 2953, + "dailyAverage": 19.129032258064516, + "trendPercent": 53.229974160206716 + }, + "stats": { + "attention": 46, + "depth": 67, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 380, + "prev30": 584, + "pct": -34.93150684931507 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 33570929, + "title": "Grumbach (Werra)", + "description": "River in Thuringia, Germany", + "wikidataId": "Q826448", + "revisionId": 1374508115, + "pageBytes": 1179, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Rivers of Germany", + "Rivers of Thuringia", + "Thuringia river stubs", + "Tributaries of the Werra" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7 + }, + { + "month": "2026-06", + "views": 11 + }, + { + "month": "2026-07", + "views": 30 + }, + { + "month": "2026-08", + "views": 26 + }, + { + "month": "2026-09", + "views": 18 + }, + { + "month": "2026-10", + "views": 8 + } + ], + "latestMonth": "2026-10", + "total": 100, + "dailyAverage": 0.25806451612903225, + "trendPercent": -55.55555555555556 + }, + "stats": { + "attention": 16, + "depth": 51, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 4, + "prev30": 11, + "pct": -63.63636363636363 + }, + "instanceOf": [ + { + "id": "Q4022", + "label": "river" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 38181803, + "title": "Gábor Scheiring", + "description": "Hungarian economist and politician", + "wikidataId": "Q5625769", + "revisionId": 1378220985, + "pageBytes": 4451, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1981 births", + "Alumni of Hughes Hall, Cambridge", + "Central European University alumni", + "Corvinus University of Budapest alumni", + "Dialogue for Hungary politicians", + "Hungarian economists", + "LMP – Hungary's Green Party politicians", + "Living people", + "Members of the National Assembly of Hungary (2010–2014)", + "Politicians from Budapest" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 624 + }, + { + "month": "2026-06", + "views": 421 + }, + { + "month": "2026-07", + "views": 495 + }, + { + "month": "2026-08", + "views": 60 + }, + { + "month": "2026-09", + "views": 61 + }, + { + "month": "2026-10", + "views": 60 + } + ], + "latestMonth": "2026-10", + "total": 1721, + "dailyAverage": 1.935483870967742, + "trendPercent": -1.639344262295082 + }, + "stats": { + "attention": 30, + "depth": 61, + "reach": 20 + }, + "legacyCategory": "People", + "drift30": { + "last30": 53, + "prev30": 62, + "pct": -14.516129032258066 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 5, + "reach": 6 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 50869430, + "title": "Felt, Not Heard", + "description": null, + "wikidataId": "Q24885448", + "revisionId": 1359436538, + "pageBytes": 2555, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "American companies established in 2008", + "Recording studio stubs", + "Recording studios in Manhattan", + "Sound trademarks" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 26 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 49 + }, + { + "month": "2026-08", + "views": 40 + }, + { + "month": "2026-09", + "views": 33 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 190, + "dailyAverage": 0.5806451612903226, + "trendPercent": -45.45454545454545 + }, + "stats": { + "attention": 21, + "depth": 57, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 23, + "prev30": 19, + "pct": 21.052631578947366 + }, + "instanceOf": [ + { + "id": "Q1589009", + "label": "privately held company" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 57346145, + "title": "Madura perfida", + "description": "Species of true bug", + "wikidataId": "Q10575176", + "revisionId": 1352289182, + "pageBytes": 1728, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Coreini", + "Coreoidea stubs", + "Hemiptera of Central America", + "Hemiptera of South America", + "Insects described in 1862", + "Taxa named by Carl Stål" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 13 + }, + { + "month": "2026-06", + "views": 7 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 5 + }, + { + "month": "2026-09", + "views": 12 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 43, + "dailyAverage": 0.1935483870967742, + "trendPercent": -50.0 + }, + "stats": { + "attention": 14, + "depth": 54, + "reach": 20 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 9, + "prev30": 7, + "pct": 28.57142857142857 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 1, + "depth": 2, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 788417, + "title": "Efrat (Israeli settlement)", + "description": "Israeli settlement in the West Bank", + "wikidataId": "Q64053", + "revisionId": 1385635902, + "pageBytes": 22320, + "languageCount": 19, + "languagesTruncated": false, + "categories": [ + "1983 establishments in the Israeli Civil Administration area", + "Gush Etzion Regional Council", + "Israeli settlements in the West Bank", + "Populated places established in 1983", + "Religious Israeli settlements" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1949 + }, + { + "month": "2026-06", + "views": 1520 + }, + { + "month": "2026-07", + "views": 1489 + }, + { + "month": "2026-08", + "views": 1466 + }, + { + "month": "2026-09", + "views": 1733 + }, + { + "month": "2026-10", + "views": 1583 + } + ], + "latestMonth": "2026-10", + "total": 9740, + "dailyAverage": 51.064516129032256, + "trendPercent": -8.655510675129833 + }, + "stats": { + "attention": 53, + "depth": 72, + "reach": 43 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1552, + "prev30": 1482, + "pct": 4.723346828609987 + }, + "instanceOf": [ + { + "id": "Q582706", + "label": "Israeli settlement" + }, + { + "id": "Q1288520", + "label": "local council in Israel" + }, + { + "id": "Q618123", + "label": "geographical feature" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 3230299, + "title": "St. George's Island, Bermuda", + "description": "One of the principal islands of Bermuda", + "wikidataId": "Q1813379", + "revisionId": 1368444919, + "pageBytes": 5247, + "languageCount": 9, + "languagesTruncated": false, + "categories": [ + "Islands of Bermuda", + "St. George's, Bermuda", + "St. George's Parish, Bermuda" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 424 + }, + { + "month": "2026-06", + "views": 353 + }, + { + "month": "2026-07", + "views": 319 + }, + { + "month": "2026-08", + "views": 420 + }, + { + "month": "2026-09", + "views": 317 + }, + { + "month": "2026-10", + "views": 315 + } + ], + "latestMonth": "2026-10", + "total": 2148, + "dailyAverage": 10.161290322580646, + "trendPercent": -0.6309148264984227 + }, + "stats": { + "attention": 42, + "depth": 62, + "reach": 33 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 253, + "prev30": 320, + "pct": -20.9375 + }, + "instanceOf": [ + { + "id": "Q23442", + "label": "island" + } + ], + "tiers": { + "attention": 8, + "depth": 5, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 7259871, + "title": "National Association of Television Program Executives", + "description": null, + "wikidataId": "Q6970789", + "revisionId": 1356897889, + "pageBytes": 6285, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "American organizations established in 1963", + "Companies that filed for Chapter 11 bankruptcy in 2022", + "Film markets", + "Professional associations based in the United States", + "Television organizations in the United States" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 158 + }, + { + "month": "2026-06", + "views": 143 + }, + { + "month": "2026-07", + "views": 162 + }, + { + "month": "2026-08", + "views": 155 + }, + { + "month": "2026-09", + "views": 146 + }, + { + "month": "2026-10", + "views": 129 + } + ], + "latestMonth": "2026-10", + "total": 893, + "dailyAverage": 4.161290322580645, + "trendPercent": -11.643835616438356 + }, + "stats": { + "attention": 35, + "depth": 63, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 122, + "prev30": 136, + "pct": -10.294117647058822 + }, + "instanceOf": [ + { + "id": "Q163740", + "label": "nonprofit organization" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 5 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 35301595, + "title": "Schläfli double six", + "description": "Arrangement of 30 points and 12 lines", + "wikidataId": "Q7431763", + "revisionId": 1357984673, + "pageBytes": 6463, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "Configurations (geometry)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 132 + }, + { + "month": "2026-06", + "views": 123 + }, + { + "month": "2026-07", + "views": 97 + }, + { + "month": "2026-08", + "views": 110 + }, + { + "month": "2026-09", + "views": 137 + }, + { + "month": "2026-10", + "views": 122 + } + ], + "latestMonth": "2026-10", + "total": 721, + "dailyAverage": 3.935483870967742, + "trendPercent": -10.948905109489052 + }, + "stats": { + "attention": 35, + "depth": 64, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 132, + "prev30": 124, + "pct": 6.451612903225806 + }, + "instanceOf": [ + { + "id": "Q24034552", + "label": "mathematical concept" + } + ], + "tiers": { + "attention": 7, + "depth": 6, + "reach": 5 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 37011977, + "title": "San Michele Arcangelo, Naples", + "description": "Church in Naples, Italy", + "wikidataId": "Q718623", + "revisionId": 1339741732, + "pageBytes": 1663, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "17th-century Roman Catholic church buildings in Italy", + "Baroque architecture in Naples", + "Churches in Naples" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 51 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 19 + }, + { + "month": "2026-08", + "views": 22 + }, + { + "month": "2026-09", + "views": 50 + }, + { + "month": "2026-10", + "views": 21 + } + ], + "latestMonth": "2026-10", + "total": 195, + "dailyAverage": 0.6774193548387096, + "trendPercent": -57.99999999999999 + }, + "stats": { + "attention": 22, + "depth": 54, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 20, + "prev30": 34, + "pct": -41.17647058823529 + }, + "instanceOf": [ + { + "id": "Q16970", + "label": "church building" + } + ], + "tiers": { + "attention": 2, + "depth": 2, + "reach": 8 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 38381588, + "title": "A. R. Poduval", + "description": "Indian surgeon and artist", + "wikidataId": "Q4648301", + "revisionId": 1366241182, + "pageBytes": 8301, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1884 births", + "1940 deaths", + "20th-century Indian male painters", + "20th-century Indian painters", + "20th-century Indian surgeons", + "Artists from British India", + "Artists from Thrissur", + "Expatriates from British India in Germany", + "Expatriates from British India in the United Kingdom", + "Indian portrait painters", + "Medical doctors from British India" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 31 + }, + { + "month": "2026-06", + "views": 35 + }, + { + "month": "2026-07", + "views": 30 + }, + { + "month": "2026-08", + "views": 47 + }, + { + "month": "2026-09", + "views": 42 + }, + { + "month": "2026-10", + "views": 31 + } + ], + "latestMonth": "2026-10", + "total": 216, + "dailyAverage": 1.0, + "trendPercent": -26.190476190476193 + }, + "stats": { + "attention": 25, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 24, + "prev30": 39, + "pct": -38.46153846153847 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 46622613, + "title": "Sarah Hoffman", + "description": "Canadian politician (born 1980)", + "wikidataId": "Q19862161", + "revisionId": 1378272694, + "pageBytes": 12222, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1980 births", + "21st-century Canadian women politicians", + "21st-century members of the Legislative Assembly of Alberta", + "Alberta New Democratic Party MLAs", + "Alberta school board trustees", + "Concordia University alumni", + "Deputy premiers of Alberta", + "Living people", + "Members of the Executive Council of Alberta", + "Ministers of health of Alberta", + "Politicians from Edmonton", + "University of Alberta alumni", + "Women MLAs in Alberta", + "Women government ministers of Canada" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 528 + }, + { + "month": "2026-06", + "views": 373 + }, + { + "month": "2026-07", + "views": 339 + }, + { + "month": "2026-08", + "views": 247 + }, + { + "month": "2026-09", + "views": 375 + }, + { + "month": "2026-10", + "views": 467 + } + ], + "latestMonth": "2026-10", + "total": 2329, + "dailyAverage": 15.064516129032258, + "trendPercent": 24.53333333333333 + }, + "stats": { + "attention": 45, + "depth": 68, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 430, + "prev30": 375, + "pct": 14.666666666666666 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 9, + "depth": 8, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 76390961, + "title": "2024–2026 Cuban protests", + "description": "Protests against the Cuban government", + "wikidataId": "Q125000393", + "revisionId": 1385442003, + "pageBytes": 23735, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "2024 in Cuba", + "2024 protests", + "Decommunization", + "Democratization", + "March 2024 in Cuba", + "Protests in Cuba" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 406 + }, + { + "month": "2026-06", + "views": 1115 + }, + { + "month": "2026-07", + "views": 799 + }, + { + "month": "2026-08", + "views": 765 + }, + { + "month": "2026-09", + "views": 608 + }, + { + "month": "2026-10", + "views": 658 + } + ], + "latestMonth": "2026-10", + "total": 4351, + "dailyAverage": 21.225806451612904, + "trendPercent": 8.223684210526317 + }, + "stats": { + "attention": 47, + "depth": 73, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 652, + "prev30": 638, + "pct": 2.19435736677116 + }, + "instanceOf": [ + { + "id": "Q273120", + "label": "protest" + } + ], + "tiers": { + "attention": 9, + "depth": 10, + "reach": 7 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 7386245, + "title": "The Leslie Uggams Show", + "description": "1969 American TV series or program", + "wikidataId": "Q7746967", + "revisionId": 1385017105, + "pageBytes": 8023, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1960s American musical comedy television series", + "1960s American sketch comedy television series", + "1960s American variety television series", + "1969 American television series debuts", + "1969 American television series endings", + "1969 English-language television series debuts", + "1969 English-language television series endings", + "CBS original programming", + "English-language American television shows" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 288 + }, + { + "month": "2026-06", + "views": 239 + }, + { + "month": "2026-07", + "views": 239 + }, + { + "month": "2026-08", + "views": 328 + }, + { + "month": "2026-09", + "views": 340 + }, + { + "month": "2026-10", + "views": 214 + } + ], + "latestMonth": "2026-10", + "total": 1648, + "dailyAverage": 6.903225806451613, + "trendPercent": -37.05882352941177 + }, + "stats": { + "attention": 39, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 182, + "prev30": 262, + "pct": -30.53435114503817 + }, + "instanceOf": [ + { + "id": "Q5398426", + "label": "television series" + } + ], + "tiers": { + "attention": 8, + "depth": 7, + "reach": 2 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 12474273, + "title": "Iphis monarch", + "description": "Species of bird", + "wikidataId": "Q692954", + "revisionId": 1380009301, + "pageBytes": 2584, + "languageCount": 20, + "languagesTruncated": false, + "categories": [ + "Birds described in 1928", + "Birds of the Marquesas Islands", + "Endemic birds of French Polynesia", + "IUCN Red List critically endangered species", + "Monarchidae stubs", + "Pomarea", + "Taxa named by Gregory Mathews", + "Taxa named by Robert Cushman Murphy" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 109 + }, + { + "month": "2026-06", + "views": 62 + }, + { + "month": "2026-07", + "views": 85 + }, + { + "month": "2026-08", + "views": 116 + }, + { + "month": "2026-09", + "views": 76 + }, + { + "month": "2026-10", + "views": 72 + } + ], + "latestMonth": "2026-10", + "total": 520, + "dailyAverage": 2.3225806451612905, + "trendPercent": -5.263157894736842 + }, + "stats": { + "attention": 31, + "depth": 57, + "reach": 44 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 69, + "prev30": 71, + "pct": -2.8169014084507045 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 5, + "depth": 3, + "reach": 9 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 19438223, + "title": "Friedrich Kasimir Medikus", + "description": "German physician and botanist", + "wikidataId": "Q77464", + "revisionId": 1366832481, + "pageBytes": 971, + "languageCount": 22, + "languagesTruncated": false, + "categories": [ + "1738 births", + "1808 deaths", + "18th-century German botanists", + "German medical doctors", + "People from Kusel (district)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 98 + }, + { + "month": "2026-06", + "views": 73 + }, + { + "month": "2026-07", + "views": 59 + }, + { + "month": "2026-08", + "views": 69 + }, + { + "month": "2026-09", + "views": 65 + }, + { + "month": "2026-10", + "views": 61 + } + ], + "latestMonth": "2026-10", + "total": 425, + "dailyAverage": 1.967741935483871, + "trendPercent": -6.153846153846154 + }, + "stats": { + "attention": 30, + "depth": 50, + "reach": 45 + }, + "legacyCategory": "People", + "drift30": { + "last30": 42, + "prev30": 66, + "pct": -36.36363636363637 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 1, + "reach": 10 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 40068633, + "title": "Wahconah Falls State Park", + "description": "Massachusetts state park", + "wikidataId": "Q14715969", + "revisionId": 1362680935, + "pageBytes": 3291, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Dalton, Massachusetts", + "Parks in Berkshire County, Massachusetts", + "State parks of Massachusetts" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 46 + }, + { + "month": "2026-06", + "views": 39 + }, + { + "month": "2026-07", + "views": 34 + }, + { + "month": "2026-08", + "views": 27 + }, + { + "month": "2026-09", + "views": 34 + }, + { + "month": "2026-10", + "views": 36 + } + ], + "latestMonth": "2026-10", + "total": 216, + "dailyAverage": 1.1612903225806452, + "trendPercent": 5.88235294117647 + }, + "stats": { + "attention": 26, + "depth": 59, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11, + "prev30": 42, + "pct": -73.80952380952381 + }, + "instanceOf": [ + { + "id": "Q37998360", + "label": "Massachusetts state park" + } + ], + "tiers": { + "attention": 3, + "depth": 4, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 81470283, + "title": "Presidential Anti-Organized Crime Commission", + "description": "Government agency in the Philippines", + "wikidataId": "Q136773957", + "revisionId": 1384453410, + "pageBytes": 31485, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1992 establishments in the Philippines", + "National law enforcement agencies of the Philippines", + "Office of the President of the Philippines", + "Organized crime in the Philippines" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 412 + }, + { + "month": "2026-06", + "views": 283 + }, + { + "month": "2026-07", + "views": 348 + }, + { + "month": "2026-08", + "views": 394 + }, + { + "month": "2026-09", + "views": 312 + }, + { + "month": "2026-10", + "views": 252 + } + ], + "latestMonth": "2026-10", + "total": 2001, + "dailyAverage": 8.129032258064516, + "trendPercent": -19.230769230769234 + }, + "stats": { + "attention": 40, + "depth": 75, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 279, + "prev30": 282, + "pct": -1.0638297872340425 + }, + "instanceOf": [ + { + "id": "Q327333", + "label": "government agency" + } + ], + "tiers": { + "attention": 8, + "depth": 10, + "reach": 2 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 82952377, + "title": "Lichen community", + "description": "Recurring assemblage of lichen species and its classification in vegetation science", + "wikidataId": "Q105442186", + "revisionId": 1377598668, + "pageBytes": 50655, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Community ecology", + "Lichenology" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62 + }, + { + "month": "2026-06", + "views": 49 + }, + { + "month": "2026-07", + "views": 58 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 51 + }, + { + "month": "2026-10", + "views": 46 + } + ], + "latestMonth": "2026-10", + "total": 345, + "dailyAverage": 1.4838709677419355, + "trendPercent": -9.803921568627452 + }, + "stats": { + "attention": 28, + "depth": 78, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 32, + "prev30": 66, + "pct": -51.515151515151516 + }, + "instanceOf": [], + "tiers": { + "attention": 4, + "depth": 10, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 1571138, + "title": "Ranks and insignia of the Nazi Party", + "description": "", + "wikidataId": "Q13424724", + "revisionId": 1367893707, + "pageBytes": 45256, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "Nazi paramilitary ranks", + "Nazi political ranks" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 8367 + }, + { + "month": "2026-06", + "views": 6565 + }, + { + "month": "2026-07", + "views": 6217 + }, + { + "month": "2026-08", + "views": 5800 + }, + { + "month": "2026-09", + "views": 5746 + }, + { + "month": "2026-10", + "views": 5129 + } + ], + "latestMonth": "2026-10", + "total": 37824, + "dailyAverage": 165.4516129032258, + "trendPercent": -10.737904629307344 + }, + "stats": { + "attention": 62, + "depth": 78, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5264, + "prev30": 5341, + "pct": -1.4416775884665793 + }, + "instanceOf": [], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 7 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 21263895, + "title": "Przybędza", + "description": "Village in Silesian Voivodeship, Poland", + "wikidataId": "Q7253590", + "revisionId": 1377108521, + "pageBytes": 1166, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "Villages in Żywiec County", + "Żywiec County geography stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 16 + }, + { + "month": "2026-06", + "views": 17 + }, + { + "month": "2026-07", + "views": 4 + }, + { + "month": "2026-08", + "views": 10 + }, + { + "month": "2026-09", + "views": 25 + }, + { + "month": "2026-10", + "views": 8 + } + ], + "latestMonth": "2026-10", + "total": 80, + "dailyAverage": 0.25806451612903225, + "trendPercent": -68.0 + }, + "stats": { + "attention": 16, + "depth": 51, + "reach": 32 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 7, + "prev30": 17, + "pct": -58.82352941176471 + }, + "instanceOf": [ + { + "id": "Q3558970", + "label": "village of Poland" + } + ], + "tiers": { + "attention": 1, + "depth": 1, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 28499047, + "title": "Wu Songgao", + "description": null, + "wikidataId": "Q5970557", + "revisionId": 1346615028, + "pageBytes": 5727, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1898 births", + "1953 deaths", + "Chinese collaborators with the Empire of Japan", + "Chinese jurists", + "Inmates of Tilanqiao Prison", + "Politicians from Suzhou", + "Prisoners and detainees of China", + "Republic of China politicians from Jiangsu" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 60 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 46 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 47 + }, + { + "month": "2026-10", + "views": 39 + } + ], + "latestMonth": "2026-10", + "total": 303, + "dailyAverage": 1.2580645161290323, + "trendPercent": -17.02127659574468 + }, + "stats": { + "attention": 27, + "depth": 63, + "reach": 16 + }, + "legacyCategory": "People", + "drift30": { + "last30": 24, + "prev30": 45, + "pct": -46.666666666666664 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 6, + "reach": 5 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 29615478, + "title": "Rustan's", + "description": "Philippine department store chain", + "wikidataId": "Q7382454", + "revisionId": 1359695857, + "pageBytes": 17685, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Companies based in Makati", + "Department stores of the Philippines", + "Philippine brands", + "Philippine companies established in 1952", + "Retail companies established in 1952" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1037 + }, + { + "month": "2026-06", + "views": 920 + }, + { + "month": "2026-07", + "views": 1050 + }, + { + "month": "2026-08", + "views": 1034 + }, + { + "month": "2026-09", + "views": 895 + }, + { + "month": "2026-10", + "views": 819 + } + ], + "latestMonth": "2026-10", + "total": 5755, + "dailyAverage": 26.419354838709676, + "trendPercent": -8.491620111731843 + }, + "stats": { + "attention": 49, + "depth": 71, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 845, + "prev30": 831, + "pct": 1.684717208182912 + }, + "instanceOf": [ + { + "id": "Q4830453", + "label": "business" + } + ], + "tiers": { + "attention": 9, + "depth": 9, + "reach": 4 + }, + "faction": "Organisations", + "category": "Culture" + }, + { + "pageId": 39728642, + "title": "Wilkeson Arch", + "description": "United States historic place", + "wikidataId": "Q14713945", + "revisionId": 1373482944, + "pageBytes": 3619, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Buildings and structures completed in 1925", + "Buildings and structures in Pierce County, Washington", + "Buildings and structures on the National Register of Historic Places in Washington (state)", + "National Park Service rustic in Washington (state)", + "National Register of Historic Places in Pierce County, Washington" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 19 + }, + { + "month": "2026-06", + "views": 25 + }, + { + "month": "2026-07", + "views": 12 + }, + { + "month": "2026-08", + "views": 9 + }, + { + "month": "2026-09", + "views": 19 + }, + { + "month": "2026-10", + "views": 14 + } + ], + "latestMonth": "2026-10", + "total": 98, + "dailyAverage": 0.45161290322580644, + "trendPercent": -26.31578947368421 + }, + "stats": { + "attention": 20, + "depth": 59, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 8, + "prev30": 24, + "pct": -66.66666666666666 + }, + "instanceOf": [ + { + "id": "Q2860026", + "label": "arch" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 45519379, + "title": "Maine State Route 144", + "description": "State highway in Lincoln County, Maine, US", + "wikidataId": "Q19581200", + "revisionId": 1290644518, + "pageBytes": 7051, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "State highways in Maine", + "Transportation in Lincoln County, Maine" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 25 + }, + { + "month": "2026-07", + "views": 13 + }, + { + "month": "2026-08", + "views": 30 + }, + { + "month": "2026-09", + "views": 14 + }, + { + "month": "2026-10", + "views": 12 + } + ], + "latestMonth": "2026-10", + "total": 116, + "dailyAverage": 0.3870967741935484, + "trendPercent": -14.285714285714285 + }, + "stats": { + "attention": 19, + "depth": 64, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5, + "prev30": 15, + "pct": -66.66666666666666 + }, + "instanceOf": [ + { + "id": "Q1788582", + "label": "state highway" + } + ], + "tiers": { + "attention": 1, + "depth": 6, + "reach": 4 + }, + "faction": "Structures", + "category": "Culture" + }, + { + "pageId": 51404369, + "title": "Luis María Kreckler", + "description": null, + "wikidataId": "Q5983869", + "revisionId": 1320623670, + "pageBytes": 5074, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1954 births", + "Ambassadors of Argentina to Brazil", + "Ambassadors of Argentina to China", + "Ambassadors of Argentina to Germany", + "Living people", + "University of Buenos Aires alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 58 + }, + { + "month": "2026-06", + "views": 56 + }, + { + "month": "2026-07", + "views": 110 + }, + { + "month": "2026-08", + "views": 75 + }, + { + "month": "2026-09", + "views": 55 + }, + { + "month": "2026-10", + "views": 46 + } + ], + "latestMonth": "2026-10", + "total": 400, + "dailyAverage": 1.4838709677419355, + "trendPercent": -16.363636363636363 + }, + "stats": { + "attention": 28, + "depth": 62, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 47, + "prev30": 52, + "pct": -9.615384615384617 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 5, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 57427321, + "title": "Corruption in Kazakhstan", + "description": "", + "wikidataId": "Q12981954", + "revisionId": 1372620649, + "pageBytes": 10869, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Corruption by country", + "Corruption in Asia", + "Crime in Kazakhstan by type", + "Economy of Kazakhstan", + "Government of Kazakhstan", + "Law of Kazakhstan", + "Politics of Kazakhstan", + "Society of Kazakhstan" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 375 + }, + { + "month": "2026-06", + "views": 262 + }, + { + "month": "2026-07", + "views": 254 + }, + { + "month": "2026-08", + "views": 229 + }, + { + "month": "2026-09", + "views": 344 + }, + { + "month": "2026-10", + "views": 236 + } + ], + "latestMonth": "2026-10", + "total": 1700, + "dailyAverage": 7.612903225806452, + "trendPercent": -31.3953488372093 + }, + "stats": { + "attention": 40, + "depth": 67, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 211, + "prev30": 265, + "pct": -20.37735849056604 + }, + "instanceOf": [ + { + "id": "Q74817647", + "label": "aspect in a geographic region" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 59919230, + "title": "Trey Rhodes", + "description": "American politician", + "wikidataId": "Q61685757", + "revisionId": 1365794761, + "pageBytes": 2361, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1975 births", + "21st-century members of the Georgia General Assembly", + "Living people", + "Republican Party members of the Georgia House of Representatives" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 132 + }, + { + "month": "2026-06", + "views": 59 + }, + { + "month": "2026-07", + "views": 78 + }, + { + "month": "2026-08", + "views": 100 + }, + { + "month": "2026-09", + "views": 134 + }, + { + "month": "2026-10", + "views": 129 + } + ], + "latestMonth": "2026-10", + "total": 632, + "dailyAverage": 4.161290322580645, + "trendPercent": -3.731343283582089 + }, + "stats": { + "attention": 35, + "depth": 56, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 178, + "prev30": 129, + "pct": 37.98449612403101 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 7, + "depth": 2, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 84455732, + "title": "Streetsia challengeri", + "description": "Species of marine amphipod", + "wikidataId": "Q4471202", + "revisionId": 1379905236, + "pageBytes": 3086, + "languageCount": 4, + "languagesTruncated": false, + "categories": [ + "Amphipod stubs", + "Hyperiidea" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 0 + }, + { + "month": "2026-07", + "views": 0 + }, + { + "month": "2026-08", + "views": 0 + }, + { + "month": "2026-09", + "views": 0 + }, + { + "month": "2026-10", + "views": 83 + } + ], + "latestMonth": "2026-10", + "total": 83, + "dailyAverage": 2.6774193548387095, + "trendPercent": null + }, + "stats": { + "attention": 32, + "depth": 58, + "reach": 23 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 48, + "prev30": 57, + "pct": -15.789473684210526 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 6, + "depth": 3, + "reach": 6 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 49514, + "title": "Henri Lebesgue", + "description": "French mathematician (1875–1941)", + "wikidataId": "Q206005", + "revisionId": 1372005331, + "pageBytes": 19773, + "languageCount": 43, + "languagesTruncated": false, + "categories": [ + "1875 births", + "1941 deaths", + "20th-century French mathematicians", + "Academic staff of the University of Poitiers", + "Foreign members of the Royal Society", + "French fellows of the Royal Society", + "French mathematical analysts", + "Functional analysts", + "Intuitionism", + "Lycée Louis-le-Grand alumni", + "Measure theorists", + "Members of the French Academy of Sciences", + "People from Beauvais", + "University of Paris alumni", + "École normale supérieure (Paris) alumni" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2432 + }, + { + "month": "2026-06", + "views": 2011 + }, + { + "month": "2026-07", + "views": 1680 + }, + { + "month": "2026-08", + "views": 1975 + }, + { + "month": "2026-09", + "views": 2073 + }, + { + "month": "2026-10", + "views": 2122 + } + ], + "latestMonth": "2026-10", + "total": 12293, + "dailyAverage": 68.45161290322581, + "trendPercent": 2.363724071394115 + }, + "stats": { + "attention": 55, + "depth": 72, + "reach": 55 + }, + "legacyCategory": "People", + "drift30": { + "last30": 2041, + "prev30": 2038, + "pct": 0.14720314033366044 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 10 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 14761136, + "title": "RBMX", + "description": "Protein-coding gene in humans", + "wikidataId": "Q18038778", + "revisionId": 1383624184, + "pageBytes": 8537, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "Genes on human chromosome X", + "RNA-binding motif proteins" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 46 + }, + { + "month": "2026-06", + "views": 40 + }, + { + "month": "2026-07", + "views": 60 + }, + { + "month": "2026-08", + "views": 54 + }, + { + "month": "2026-09", + "views": 28 + }, + { + "month": "2026-10", + "views": 34 + } + ], + "latestMonth": "2026-10", + "total": 262, + "dailyAverage": 1.096774193548387, + "trendPercent": 21.428571428571427 + }, + "stats": { + "attention": 26, + "depth": 66, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 26, + "prev30": 35, + "pct": -25.71428571428571 + }, + "instanceOf": [ + { + "id": "Q7187", + "label": "gene" + } + ], + "tiers": { + "attention": 3, + "depth": 7, + "reach": 4 + }, + "faction": "Ideas & Tech", + "category": "Culture" + }, + { + "pageId": 72270640, + "title": "Chaharbagh County", + "description": "County in Alborz province, Iran", + "wikidataId": "Q107333581", + "revisionId": 1375465027, + "pageBytes": 9184, + "languageCount": 5, + "languagesTruncated": false, + "categories": [ + "2020 establishments in Iran", + "Chaharbagh County", + "Counties of Alborz province" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 45 + }, + { + "month": "2026-06", + "views": 98 + }, + { + "month": "2026-07", + "views": 35 + }, + { + "month": "2026-08", + "views": 51 + }, + { + "month": "2026-09", + "views": 70 + }, + { + "month": "2026-10", + "views": 57 + } + ], + "latestMonth": "2026-10", + "total": 356, + "dailyAverage": 1.8387096774193548, + "trendPercent": -18.571428571428573 + }, + "stats": { + "attention": 29, + "depth": 66, + "reach": 26 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 59, + "prev30": 65, + "pct": -9.230769230769232 + }, + "instanceOf": [ + { + "id": "Q137535", + "label": "county of Iran" + } + ], + "tiers": { + "attention": 4, + "depth": 7, + "reach": 7 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 75179753, + "title": "2016 Queensland local elections", + "description": "", + "wikidataId": "Q115228225", + "revisionId": 1272327430, + "pageBytes": 6310, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "2016 elections in Australia", + "Local elections in Queensland", + "March 2016 in Australia" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 40 + }, + { + "month": "2026-06", + "views": 32 + }, + { + "month": "2026-07", + "views": 21 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 34 + }, + { + "month": "2026-10", + "views": 28 + } + ], + "latestMonth": "2026-10", + "total": 173, + "dailyAverage": 0.9032258064516129, + "trendPercent": -17.647058823529413 + }, + "stats": { + "attention": 24, + "depth": 63, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 37, + "prev30": 19, + "pct": 94.73684210526315 + }, + "instanceOf": [ + { + "id": "Q15966540", + "label": "local election" + } + ], + "tiers": { + "attention": 3, + "depth": 6, + "reach": 2 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 79417550, + "title": "Region Östergötland", + "description": "Regional council of Östergötland County, Sweden", + "wikidataId": "Q3231915", + "revisionId": 1377659696, + "pageBytes": 4828, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "Regioner of Sweden", + "Östergötland County" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 123 + }, + { + "month": "2026-06", + "views": 93 + }, + { + "month": "2026-07", + "views": 73 + }, + { + "month": "2026-08", + "views": 109 + }, + { + "month": "2026-09", + "views": 247 + }, + { + "month": "2026-10", + "views": 133 + } + ], + "latestMonth": "2026-10", + "total": 778, + "dailyAverage": 4.290322580645161, + "trendPercent": -46.15384615384615 + }, + "stats": { + "attention": 35, + "depth": 61, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 89, + "prev30": 214, + "pct": -58.41121495327103 + }, + "instanceOf": [ + { + "id": "Q85164347", + "label": "county council of Sweden" + }, + { + "id": "Q1754161", + "label": "regional council in Sweden" + }, + { + "id": "Q65196511", + "label": "Q65196511" + } + ], + "tiers": { + "attention": 7, + "depth": 5, + "reach": 6 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 83588998, + "title": "Kamil Oniszczuk", + "description": "Polish mixed martial artist (born 1996)", + "wikidataId": "Q97373278", + "revisionId": 1380888360, + "pageBytes": 17654, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1996 births", + "21st-century Polish sportsmen", + "Bellator male fighters", + "Living people", + "Middleweight mixed martial artists", + "Mixed martial artists utilizing Brazilian jiu-jitsu", + "People from Międzyrzecz", + "Polish male mixed martial artists", + "Polish practitioners of Brazilian jiu-jitsu", + "Welterweight mixed martial artists" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 0 + }, + { + "month": "2026-06", + "views": 12 + }, + { + "month": "2026-07", + "views": 209 + }, + { + "month": "2026-08", + "views": 149 + }, + { + "month": "2026-09", + "views": 227 + }, + { + "month": "2026-10", + "views": 110 + } + ], + "latestMonth": "2026-10", + "total": 707, + "dailyAverage": 3.5483870967741935, + "trendPercent": -51.541850220264315 + }, + "stats": { + "attention": 34, + "depth": 71, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 81, + "prev30": 201, + "pct": -59.70149253731343 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 9, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 127076, + "title": "Hillburn, New York", + "description": "Village in New York, United States", + "wikidataId": "Q3452966", + "revisionId": 1384097001, + "pageBytes": 10176, + "languageCount": 20, + "languagesTruncated": false, + "categories": [ + "Ramapos", + "Villages in New York (state)", + "Villages in Rockland County, New York" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 265 + }, + { + "month": "2026-06", + "views": 251 + }, + { + "month": "2026-07", + "views": 305 + }, + { + "month": "2026-08", + "views": 256 + }, + { + "month": "2026-09", + "views": 271 + }, + { + "month": "2026-10", + "views": 266 + } + ], + "latestMonth": "2026-10", + "total": 1614, + "dailyAverage": 8.580645161290322, + "trendPercent": -1.8450184501845017 + }, + "stats": { + "attention": 40, + "depth": 67, + "reach": 44 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 229, + "prev30": 258, + "pct": -11.24031007751938 + }, + "instanceOf": [ + { + "id": "Q751708", + "label": "village in the United States" + }, + { + "id": "Q55237813", + "label": "village of New York" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 9 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 273706, + "title": "Pallas's cat", + "description": "Species of small wild cat", + "wikidataId": "Q166794", + "revisionId": 1385350039, + "pageBytes": 64708, + "languageCount": 86, + "languagesTruncated": false, + "categories": [ + "Fauna listed on CITES Appendix II", + "Felidae of Asia", + "IUCN Red List least concern species", + "Mammals described in 1776", + "Otocolobus", + "Taxa named by Peter Simon Pallas" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 41261 + }, + { + "month": "2026-06", + "views": 45076 + }, + { + "month": "2026-07", + "views": 41171 + }, + { + "month": "2026-08", + "views": 40789 + }, + { + "month": "2026-09", + "views": 42326 + }, + { + "month": "2026-10", + "views": 42025 + } + ], + "latestMonth": "2026-10", + "total": 252648, + "dailyAverage": 1355.6451612903227, + "trendPercent": -0.7111468128337193 + }, + "stats": { + "attention": 77, + "depth": 80, + "reach": 65 + }, + "legacyCategory": "Nature", + "drift30": { + "last30": 37962, + "prev30": 45377, + "pct": -16.340877537078256 + }, + "instanceOf": [ + { + "id": "Q16521", + "label": "taxon" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Nature", + "category": "Nature" + }, + { + "pageId": 27722439, + "title": "Cannon (band)", + "description": "Scottish post-rock band", + "wikidataId": "Q5032746", + "revisionId": 1368237133, + "pageBytes": 4944, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1999 establishments in Scotland", + "Musical groups disestablished in 2003", + "Musical groups established in 1999", + "Rock music groups from Glasgow", + "Scottish indie rock groups", + "Scottish post-rock groups" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 120 + }, + { + "month": "2026-06", + "views": 89 + }, + { + "month": "2026-07", + "views": 89 + }, + { + "month": "2026-08", + "views": 79 + }, + { + "month": "2026-09", + "views": 129 + }, + { + "month": "2026-10", + "views": 122 + } + ], + "latestMonth": "2026-10", + "total": 628, + "dailyAverage": 3.935483870967742, + "trendPercent": -5.426356589147287 + }, + "stats": { + "attention": 35, + "depth": 62, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 90, + "prev30": 137, + "pct": -34.306569343065696 + }, + "instanceOf": [ + { + "id": "Q215380", + "label": "musical group" + } + ], + "tiers": { + "attention": 7, + "depth": 5, + "reach": 2 + }, + "faction": "Works", + "category": "Culture" + }, + { + "pageId": 247636, + "title": "Canadian Grand Prix", + "description": "Formula One Grand Prix", + "wikidataId": "Q7965", + "revisionId": 1380730000, + "pageBytes": 56884, + "languageCount": 44, + "languagesTruncated": false, + "categories": [ + "1961 establishments in Ontario", + "Auto races in Canada", + "Can-Am races", + "Canadian Grand Prix", + "National Grands Prix", + "Recurring sporting events established in 1961", + "Sports car races" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62687 + }, + { + "month": "2026-06", + "views": 9468 + }, + { + "month": "2026-07", + "views": 5499 + }, + { + "month": "2026-08", + "views": 4783 + }, + { + "month": "2026-09", + "views": 5119 + }, + { + "month": "2026-10", + "views": 5339 + } + ], + "latestMonth": "2026-10", + "total": 92895, + "dailyAverage": 172.2258064516129, + "trendPercent": 4.297714397343231 + }, + "stats": { + "attention": 62, + "depth": 79, + "reach": 55 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 4595, + "prev30": 5345, + "pct": -14.03180542563143 + }, + "instanceOf": [ + { + "id": "Q18608583", + "label": "recurring sporting event" + }, + { + "id": "Q108886259", + "label": "Formula One event" + } + ], + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 5733186, + "title": "1969 NFL Championship Game", + "description": "", + "wikidataId": "Q4573604", + "revisionId": 1359130364, + "pageBytes": 15842, + "languageCount": 2, + "languagesTruncated": false, + "categories": [ + "1969 NFL season", + "1970 in sports in Minnesota", + "American football competitions in Minnesota", + "Cleveland Browns postseason", + "January 1970 sports events in the United States", + "Minnesota Vikings postseason", + "NFL Championship games", + "Organized events in Bloomington, Minnesota" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 1145 + }, + { + "month": "2026-06", + "views": 1151 + }, + { + "month": "2026-07", + "views": 1070 + }, + { + "month": "2026-08", + "views": 1298 + }, + { + "month": "2026-09", + "views": 1762 + }, + { + "month": "2026-10", + "views": 2161 + } + ], + "latestMonth": "2026-10", + "total": 8587, + "dailyAverage": 69.70967741935483, + "trendPercent": 22.64472190692395 + }, + "stats": { + "attention": 56, + "depth": 70, + "reach": 16 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 1895, + "prev30": 1941, + "pct": -2.369912416280268 + }, + "instanceOf": [ + { + "id": "Q27020041", + "label": "sports season" + } + ], + "tiers": { + "attention": 10, + "depth": 9, + "reach": 5 + }, + "faction": "Sport", + "category": "Culture" + }, + { + "pageId": 26693983, + "title": "2008 World Sprint Speed Skating Championships", + "description": "International speed skating competition", + "wikidataId": "Q1320203", + "revisionId": 1379250957, + "pageBytes": 12927, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "2008 in Dutch sport", + "2008 in speed skating", + "International speed skating competitions hosted by the Netherlands", + "Sports competitions in Heerenveen", + "World Speed Skating Championships" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 17 + }, + { + "month": "2026-07", + "views": 10 + }, + { + "month": "2026-08", + "views": 7 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 12 + } + ], + "latestMonth": "2026-10", + "total": 94, + "dailyAverage": 0.3870967741935484, + "trendPercent": -47.82608695652174 + }, + "stats": { + "attention": 19, + "depth": 69, + "reach": 32 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 11, + "prev30": 23, + "pct": -52.17391304347826 + }, + "instanceOf": [ + { + "id": "Q114609228", + "label": "recurring sporting event edition" + } + ], + "tiers": { + "attention": 1, + "depth": 9, + "reach": 8 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 28859251, + "title": "Kõruse-Metsaküla", + "description": "Village in Estonia", + "wikidataId": "Q3467661", + "revisionId": 1379439420, + "pageBytes": 3187, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "Saaremaa Parish", + "Saaremaa Parish geography stubs", + "Villages in Saare County" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 9 + }, + { + "month": "2026-06", + "views": 12 + }, + { + "month": "2026-07", + "views": 10 + }, + { + "month": "2026-08", + "views": 12 + }, + { + "month": "2026-09", + "views": 7 + }, + { + "month": "2026-10", + "views": 12 + } + ], + "latestMonth": "2026-10", + "total": 62, + "dailyAverage": 0.3870967741935484, + "trendPercent": 71.42857142857143 + }, + "stats": { + "attention": 19, + "depth": 58, + "reach": 32 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 5, + "prev30": 14, + "pct": -64.28571428571429 + }, + "instanceOf": [ + { + "id": "Q51049922", + "label": "village" + } + ], + "tiers": { + "attention": 1, + "depth": 3, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + }, + { + "pageId": 31946653, + "title": "Cody Floatplane", + "description": null, + "wikidataId": "Q5140425", + "revisionId": 1321146397, + "pageBytes": 8324, + "languageCount": 3, + "languagesTruncated": false, + "categories": [ + "1910s British experimental aircraft", + "1913 in England", + "Aircraft first flown in 1913", + "Aviation accidents and incidents in 1913", + "Aviation accidents and incidents in England", + "Biplanes", + "Cody aircraft", + "Single-engined pusher aircraft" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 105 + }, + { + "month": "2026-06", + "views": 77 + }, + { + "month": "2026-07", + "views": 87 + }, + { + "month": "2026-08", + "views": 107 + }, + { + "month": "2026-09", + "views": 100 + }, + { + "month": "2026-10", + "views": 89 + } + ], + "latestMonth": "2026-10", + "total": 565, + "dailyAverage": 2.870967741935484, + "trendPercent": -11.0 + }, + "stats": { + "attention": 33, + "depth": 65, + "reach": 20 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 92, + "prev30": 97, + "pct": -5.154639175257731 + }, + "instanceOf": [], + "tiers": { + "attention": 6, + "depth": 7, + "reach": 6 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 38230952, + "title": "John Allen Midgett Jr.", + "description": "United States Coast Guardsman", + "wikidataId": "Q6218773", + "revisionId": 1383786404, + "pageBytes": 7473, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1876 births", + "1938 deaths", + "Recipients of the Gold Lifesaving Medal", + "United States Coast Guard enlisted personnel", + "United States Life-Saving Service personnel" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 123 + }, + { + "month": "2026-06", + "views": 182 + }, + { + "month": "2026-07", + "views": 127 + }, + { + "month": "2026-08", + "views": 156 + }, + { + "month": "2026-09", + "views": 112 + }, + { + "month": "2026-10", + "views": 81 + } + ], + "latestMonth": "2026-10", + "total": 781, + "dailyAverage": 2.6129032258064515, + "trendPercent": -27.67857142857143 + }, + "stats": { + "attention": 32, + "depth": 65, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 87, + "prev30": 97, + "pct": -10.309278350515463 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 6, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 39950052, + "title": "Texas State Guard Commanding General's Individual Award", + "description": "Military decoration", + "wikidataId": "Q17108726", + "revisionId": 1271494308, + "pageBytes": 4617, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Awards and decorations of the Texas Military Forces", + "Texas Military Department", + "Texas Military Forces" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 17 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 17 + }, + { + "month": "2026-08", + "views": 27 + }, + { + "month": "2026-09", + "views": 33 + }, + { + "month": "2026-10", + "views": 13 + } + ], + "latestMonth": "2026-10", + "total": 129, + "dailyAverage": 0.41935483870967744, + "trendPercent": -60.60606060606061 + }, + "stats": { + "attention": 19, + "depth": 61, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 15, + "prev30": 36, + "pct": -58.333333333333336 + }, + "instanceOf": [ + { + "id": "Q618779", + "label": "award" + } + ], + "tiers": { + "attention": 1, + "depth": 5, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 43165848, + "title": "John Kane (Medal of Honor)", + "description": "Union Army soldier", + "wikidataId": "Q17479265", + "revisionId": 1380318087, + "pageBytes": 3077, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "American Civil War recipients of the Medal of Honor", + "Irish-born Medal of Honor recipients", + "Irish emigrants to the United States", + "People of New York (state) in the American Civil War", + "Union army officers", + "United States Army Medal of Honor recipients" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 45 + }, + { + "month": "2026-06", + "views": 45 + }, + { + "month": "2026-07", + "views": 35 + }, + { + "month": "2026-08", + "views": 58 + }, + { + "month": "2026-09", + "views": 37 + }, + { + "month": "2026-10", + "views": 25 + } + ], + "latestMonth": "2026-10", + "total": 245, + "dailyAverage": 0.8064516129032258, + "trendPercent": -32.432432432432435 + }, + "stats": { + "attention": 24, + "depth": 58, + "reach": 0 + }, + "legacyCategory": "People", + "drift30": { + "last30": 31, + "prev30": 21, + "pct": 47.61904761904761 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 3, + "depth": 3, + "reach": 2 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 74291637, + "title": "Pullman porter affair", + "description": "LGBT sex scandal in September 1940", + "wikidataId": "Q120123799", + "revisionId": 1380094218, + "pageBytes": 11271, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1940 in the United States", + "1940s in LGBTQ history", + "1950s in LGBTQ history", + "Bisexual history", + "Bisexual men-related controversies", + "Federal political sex scandals in the United States", + "Gay-related controversies", + "Good Neighbor policy", + "LGBTQ-related controversies in the United States", + "LGBTQ-related political scandals", + "May 1956 in the United States", + "Presidency of Franklin D. Roosevelt", + "Pullman Company", + "September 1940 in the United States" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 181 + }, + { + "month": "2026-07", + "views": 175 + }, + { + "month": "2026-08", + "views": 254 + }, + { + "month": "2026-09", + "views": 240 + }, + { + "month": "2026-10", + "views": 215 + } + ], + "latestMonth": "2026-10", + "total": 1252, + "dailyAverage": 6.935483870967742, + "trendPercent": -10.416666666666668 + }, + "stats": { + "attention": 39, + "depth": 68, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 184, + "prev30": 258, + "pct": -28.68217054263566 + }, + "instanceOf": [ + { + "id": "Q2197458", + "label": "sex scandal" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 13240878, + "title": "Lower Shavertown Bridge", + "description": "United States historic place", + "wikidataId": "Q6693791", + "revisionId": 1373484295, + "pageBytes": 2780, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "1877 establishments in New York (state)", + "Bridges completed in 1877", + "Bridges in Delaware County, New York", + "Covered bridges on the National Register of Historic Places in New York (state)", + "Delaware County, New York Registered Historic Place stubs", + "National Register of Historic Places in Delaware County, New York", + "New York (state) bridge (structure) stubs", + "Relocated buildings and structures in New York (state)", + "Road bridges on the National Register of Historic Places in New York (state)", + "Tourist attractions in Delaware County, New York", + "Wooden bridges in New York (state)" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 34 + }, + { + "month": "2026-06", + "views": 37 + }, + { + "month": "2026-07", + "views": 29 + }, + { + "month": "2026-08", + "views": 84 + }, + { + "month": "2026-09", + "views": 57 + }, + { + "month": "2026-10", + "views": 22 + } + ], + "latestMonth": "2026-10", + "total": 263, + "dailyAverage": 0.7096774193548387, + "trendPercent": -61.40350877192983 + }, + "stats": { + "attention": 23, + "depth": 57, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 12, + "prev30": 33, + "pct": -63.63636363636363 + }, + "instanceOf": [ + { + "id": "Q1825472", + "label": "covered bridge" + }, + { + "id": "Q537127", + "label": "road bridge" + } + ], + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Structures", + "category": "History" + }, + { + "pageId": 19412017, + "title": "Andouin Aubert", + "description": "French jurist, bishop and Cardinal", + "wikidataId": "Q1351294", + "revisionId": 1385718836, + "pageBytes": 14024, + "languageCount": 8, + "languagesTruncated": false, + "categories": [ + "1363 deaths", + "14th-century French cardinals", + "Bishops of Auxerre", + "Bishops of Maguelonne", + "Bishops of Paris", + "Cardinal-bishops of Ostia", + "Cardinals created by Pope Innocent VI", + "House of Aubert" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 35 + }, + { + "month": "2026-06", + "views": 35 + }, + { + "month": "2026-07", + "views": 50 + }, + { + "month": "2026-08", + "views": 31 + }, + { + "month": "2026-09", + "views": 27 + }, + { + "month": "2026-10", + "views": 55 + } + ], + "latestMonth": "2026-10", + "total": 233, + "dailyAverage": 1.7741935483870968, + "trendPercent": 103.7037037037037 + }, + "stats": { + "attention": 29, + "depth": 69, + "reach": 32 + }, + "legacyCategory": "People", + "drift30": { + "last30": 24, + "prev30": 52, + "pct": -53.84615384615385 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 4, + "depth": 9, + "reach": 8 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 24778632, + "title": "Storck Barracks", + "description": "US Army facility in Illesheim, Germany", + "wikidataId": "Q108337154", + "revisionId": 1373615936, + "pageBytes": 12507, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Airfields of the United States Army Air Forces in Germany", + "Airports in Bavaria", + "Military installations established in 1936" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 516 + }, + { + "month": "2026-06", + "views": 366 + }, + { + "month": "2026-07", + "views": 373 + }, + { + "month": "2026-08", + "views": 329 + }, + { + "month": "2026-09", + "views": 415 + }, + { + "month": "2026-10", + "views": 338 + } + ], + "latestMonth": "2026-10", + "total": 2337, + "dailyAverage": 10.903225806451612, + "trendPercent": -18.55421686746988 + }, + "stats": { + "attention": 42, + "depth": 68, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 294, + "prev30": 419, + "pct": -29.832935560859188 + }, + "instanceOf": [ + { + "id": "Q245016", + "label": "military base" + } + ], + "tiers": { + "attention": 8, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "category": "History" + }, + { + "pageId": 38958959, + "title": "Genoese Batteries", + "description": "Artillery batteries in Gibraltar", + "wikidataId": "Q16838634", + "revisionId": 1364996502, + "pageBytes": 3468, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Artillery battery fortifications in Gibraltar", + "Gibraltarian building and structure stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 30 + }, + { + "month": "2026-06", + "views": 21 + }, + { + "month": "2026-07", + "views": 18 + }, + { + "month": "2026-08", + "views": 21 + }, + { + "month": "2026-09", + "views": 18 + }, + { + "month": "2026-10", + "views": 15 + } + ], + "latestMonth": "2026-10", + "total": 123, + "dailyAverage": 0.4838709677419355, + "trendPercent": -16.666666666666664 + }, + "stats": { + "attention": 20, + "depth": 59, + "reach": 0 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 9, + "prev30": 22, + "pct": -59.09090909090909 + }, + "instanceOf": [ + { + "id": "Q56344492", + "label": "artillery battery" + } + ], + "tiers": { + "attention": 2, + "depth": 4, + "reach": 2 + }, + "faction": "Other", + "category": "Culture" + }, + { + "pageId": 42871285, + "title": "Yente Serdatzky", + "description": "Russian-born American Yiddish-language writer (1877–1962)", + "wikidataId": "Q17018388", + "revisionId": 1371391529, + "pageBytes": 24540, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "1877 births", + "1962 deaths", + "19th-century American Jews", + "19th-century American dramatists and playwrights", + "19th-century American women dramatists and playwrights", + "20th-century American Jews", + "20th-century American dramatists and playwrights", + "20th-century American women dramatists and playwrights", + "Dramatists and playwrights from New York City", + "Emigrants from the Russian Empire to the United States", + "Jewish American dramatists and playwrights", + "Jewish women writers", + "Jews from the Russian Empire", + "Writers from Kaunas", + "Yiddish-language dramatists and playwrights" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62 + }, + { + "month": "2026-06", + "views": 57 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 61 + }, + { + "month": "2026-09", + "views": 80 + }, + { + "month": "2026-10", + "views": 58 + } + ], + "latestMonth": "2026-10", + "total": 345, + "dailyAverage": 1.8709677419354838, + "trendPercent": -27.500000000000004 + }, + "stats": { + "attention": 30, + "depth": 73, + "reach": 10 + }, + "legacyCategory": "People", + "drift30": { + "last30": 48, + "prev30": 64, + "pct": -25.0 + }, + "instanceOf": [ + { + "id": "Q5", + "label": "human" + } + ], + "tiers": { + "attention": 5, + "depth": 10, + "reach": 4 + }, + "faction": "People", + "category": "People" + }, + { + "pageId": 62859288, + "title": "Waterman Place-Kingsbury Place-Washington Terrace Historic District", + "description": "Historic district in Missouri, United States", + "wikidataId": "Q85814627", + "revisionId": 1373475244, + "pageBytes": 4435, + "languageCount": 0, + "languagesTruncated": false, + "categories": [ + "Colonial Revival architecture in Missouri", + "Historic districts on the National Register of Historic Places in Missouri", + "National Register of Historic Places in St. Louis", + "St. Louis Area, Missouri Registered Historic Place stubs" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 32 + }, + { + "month": "2026-06", + "views": 29 + }, + { + "month": "2026-07", + "views": 16 + }, + { + "month": "2026-08", + "views": 35 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 39 + } + ], + "latestMonth": "2026-10", + "total": 174, + "dailyAverage": 1.2580645161290323, + "trendPercent": 69.56521739130434 + }, + "stats": { + "attention": 27, + "depth": 61, + "reach": 0 + }, + "legacyCategory": "History", + "drift30": { + "last30": 33, + "prev30": 27, + "pct": 22.22222222222222 + }, + "instanceOf": [ + { + "id": "Q15243209", + "label": "historic district" + } + ], + "tiers": { + "attention": 4, + "depth": 5, + "reach": 2 + }, + "faction": "Places", + "category": "History" + }, + { + "pageId": 66437937, + "title": "2021 New Jersey General Assembly election", + "description": "", + "wikidataId": "Q105319974", + "revisionId": 1382576557, + "pageBytes": 168332, + "languageCount": 1, + "languagesTruncated": false, + "categories": [ + "2021 elections in New Jersey", + "2021 state legislature elections in the United States", + "New Jersey General Assembly elections" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 334 + }, + { + "month": "2026-06", + "views": 333 + }, + { + "month": "2026-07", + "views": 238 + }, + { + "month": "2026-08", + "views": 318 + }, + { + "month": "2026-09", + "views": 282 + }, + { + "month": "2026-10", + "views": 360 + } + ], + "latestMonth": "2026-10", + "total": 1865, + "dailyAverage": 11.612903225806452, + "trendPercent": 27.659574468085108 + }, + "stats": { + "attention": 43, + "depth": 87, + "reach": 10 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 493, + "prev30": 368, + "pct": 33.96739130434783 + }, + "instanceOf": [ + { + "id": "Q2618461", + "label": "legislative election" + } + ], + "tiers": { + "attention": 8, + "depth": 10, + "reach": 4 + }, + "faction": "Events", + "category": "Culture" + }, + { + "pageId": 131216, + "title": "Madison Township, Armstrong County, Pennsylvania", + "description": "Township in Pennsylvania, US", + "wikidataId": "Q655024", + "revisionId": 1378756902, + "pageBytes": 8578, + "languageCount": 7, + "languagesTruncated": false, + "categories": [ + "Populated places in the United States established in 1824", + "Townships in Armstrong County, Pennsylvania" + ], + "categoriesTruncated": false, + "fetchedAt": "2026-11-16T00:00:00+00:00", + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 51 + }, + { + "month": "2026-06", + "views": 54 + }, + { + "month": "2026-07", + "views": 32 + }, + { + "month": "2026-08", + "views": 38 + }, + { + "month": "2026-09", + "views": 64 + }, + { + "month": "2026-10", + "views": 49 + } + ], + "latestMonth": "2026-10", + "total": 288, + "dailyAverage": 1.5806451612903225, + "trendPercent": -23.4375 + }, + "stats": { + "attention": 28, + "depth": 66, + "reach": 30 + }, + "legacyCategory": "Culture", + "drift30": { + "last30": 58, + "prev30": 53, + "pct": 9.433962264150944 + }, + "instanceOf": [ + { + "id": "Q9035798", + "label": "township of Pennsylvania" + } + ], + "tiers": { + "attention": 4, + "depth": 7, + "reach": 8 + }, + "faction": "Places", + "category": "Culture" + } + ], + "factionRules": [ + [ + "People", + "\\bhuman\\b|fictional character|person" + ], + [ + "Sport", + "season|sports team|football|match|tournament|championship|final\\b|club|league|olympic|race\\b" + ], + [ + "Nature", + "taxon|species|genus|plant|fungus|disease|epiphyte|mineral|bird|fish|insect" + ], + [ + "Places", + "village|town|city|commune|municipality|river|lake|mountain|county|district|parish|region|plateau|island|settlement|neighbo|locality|census|hamlet|valley|bay|area|province|state of|capital|suburb|stream|peak|unincorporated|human settlement|local government" + ], + [ + "Structures", + "building|castle|mosque|church|cathedral|temple|bridge|station|railway line|road|highway|museum|structure|stadium|dam|tower|house|school|hospital|airport|monument|fort|palace|lighthouse|park" + ], + [ + "Works", + "film|album|single|song|musical|television|book|novel|video game|painting|literary|composition|series|episode|magazine|newspaper|poem|opera|play\\b|artwork|sculpture" + ], + [ + "Organisations", + "company|group|band|organi[sz]ation|university|college|party|business|enterprise|agency|institute|association|brand|union|ministry|military unit" + ], + [ + "Events", + "election|protest|battle|war\\b|storm|nor.easter|cyclone|event|disaster|treaty|conflict|earthquake|incident|festival|referendum|conference|ceremony" + ], + [ + "Ideas & Tech", + "programming|software|language|chemical|compound|gene|protein|theorem|concept|technology|vehicle|aircraft|ship|weapon|class|model|device|algorithm|religion|discipline|theory|food|dish" + ] + ], + "tierBreakpoints": { + "attention": [ + 20, + 24, + 27, + 30, + 32, + 35, + 39, + 44, + 53 + ], + "depth": [ + 54, + 57, + 59, + 61, + 63, + 65, + 67, + 69, + 73 + ], + "reach": [ + 0, + 10, + 10, + 16, + 20, + 26, + 30, + 36, + 45 + ] + }, + "percentiles": { + "attention": [ + 14, + 14, + 16, + 17, + 18, + 19, + 19, + 19, + 20, + 20, + 21, + 21, + 21, + 22, + 22, + 22, + 23, + 23, + 23, + 24, + 24, + 24, + 24, + 25, + 25, + 25, + 26, + 26, + 26, + 27, + 27, + 27, + 27, + 28, + 28, + 28, + 28, + 29, + 29, + 30, + 30, + 30, + 30, + 30, + 30, + 31, + 31, + 31, + 31, + 32, + 32, + 33, + 33, + 34, + 34, + 34, + 35, + 35, + 35, + 35, + 35, + 36, + 36, + 37, + 37, + 38, + 38, + 38, + 39, + 39, + 40, + 40, + 40, + 41, + 41, + 42, + 42, + 43, + 44, + 44, + 45, + 46, + 47, + 48, + 49, + 49, + 50, + 51, + 53, + 53, + 55, + 56, + 57, + 59, + 61, + 62, + 62, + 64, + 68 + ], + "depth": [ + 50, + 51, + 51, + 53, + 53, + 54, + 54, + 54, + 54, + 54, + 55, + 55, + 55, + 56, + 56, + 57, + 57, + 57, + 57, + 57, + 58, + 58, + 58, + 58, + 58, + 58, + 59, + 59, + 59, + 59, + 59, + 60, + 60, + 60, + 60, + 61, + 61, + 61, + 61, + 61, + 61, + 62, + 62, + 62, + 62, + 62, + 63, + 63, + 63, + 63, + 63, + 64, + 64, + 64, + 64, + 64, + 64, + 65, + 65, + 65, + 65, + 65, + 66, + 66, + 66, + 66, + 67, + 67, + 67, + 67, + 67, + 68, + 68, + 68, + 68, + 69, + 69, + 69, + 69, + 69, + 70, + 70, + 71, + 71, + 71, + 72, + 72, + 72, + 73, + 73, + 74, + 75, + 75, + 76, + 78, + 78, + 79, + 80, + 83 + ], + "reach": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 23, + 23, + 23, + 23, + 23, + 26, + 26, + 26, + 26, + 26, + 28, + 28, + 28, + 28, + 30, + 30, + 30, + 30, + 30, + 32, + 32, + 32, + 33, + 33, + 33, + 35, + 36, + 36, + 36, + 37, + 38, + 39, + 40, + 41, + 43, + 43, + 44, + 45, + 45, + 47, + 49, + 50, + 50, + 51, + 52, + 55, + 55, + 59 + ] + }, + "percentilesMethod": "cut point i (1..99) = nearest-rank i-th percentile of the sample snapshot score (sorted ascending, index ceil(i*n/100)-1). Use with DESIGN.md §1.1 counting.", + "randomBatchesNote": "Sampling was resumed from a saved state, so full batch counts were lost. These are the counts logged at batch 17 (149 illustrated of 340 raw pages, 44% pass rate). The 330 picked cards came from about 38 batches; this sample holds the first N of those that finished enrichment before sampling stopped (Wikimedia 429s).", + "note": "docs/game/starter-cards.json is the loaner POOL (real frozen snapshots of random articles), used by the sim and the deck builder to fill slots. The default starter decks are defined in DESIGN.md §2.1; their real pageIds are in starter-cards.json under starterDeckPageIds." +} \ No newline at end of file diff --git a/docs/game/duel-card-sample.json b/docs/game/duel-card-sample.json new file mode 100644 index 0000000..a82bd43 --- /dev/null +++ b/docs/game/duel-card-sample.json @@ -0,0 +1,10821 @@ +{ + "source": "docs/game/card-sample.json", + "deriveVersion": "duel-derive-1", + "count": 236, + "cards": [ + { + "cardId": "0000000000000000000000000000000000000000000000000000000000851c64", + "pageId": 8723556, + "revisionId": 1358732737, + "title": "Salahuddin of Aceh", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 4, + "power": 4, + "toughness": 3, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "Sultan of Aceh (1530–1537/9)", + "connect": { + "countries": [ + "Indonesia" + ], + "centuries": [ + 16 + ], + "links": [], + "p31": [], + "qid": "Q4264920", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 62, + "pctDepth": 48, + "pctReach": 63, + "fame": 58, + "magnitude": 2 + }, + "description": "Sultan of Aceh (1530–1537/9)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000a4cc4d", + "pageId": 10800205, + "revisionId": 1376918522, + "title": "St. Georgen am Längsee", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Municipality in Carinthia, Austria", + "connect": { + "countries": [ + "Austria" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1802801", + "Q667509" + ], + "qid": "Q664135", + "cites": [] + }, + "rarity": "Legendary", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 35, + "pctDepth": 43, + "pctReach": 93, + "fame": 57, + "magnitude": 2 + }, + "description": "Municipality in Carinthia, Austria" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001849df5", + "pageId": 25468405, + "revisionId": 1378546622, + "title": "Maracás", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Municipality of Bahia, Brazil", + "connect": { + "countries": [ + "Brazil" + ], + "centuries": [], + "links": [], + "p31": [ + "Q3184121" + ], + "qid": "Q1795100", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 42, + "pctDepth": 43, + "pctReach": 91, + "fame": 59, + "magnitude": 2 + }, + "description": "Municipality of Bahia, Brazil" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000018a8b89", + "pageId": 25856905, + "revisionId": 1367363150, + "title": "Dichromorpha viridis", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 3, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of grasshopper", + "connect": { + "countries": [], + "centuries": [ + 19 + ], + "links": [], + "p31": [], + "qid": "Q5272562", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 58, + "pctDepth": 3, + "pctReach": 53, + "fame": 38, + "magnitude": 1 + }, + "description": "Species of grasshopper" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002309e43", + "pageId": 36740675, + "revisionId": 1372732350, + "title": "The Best of Men", + "type": "Institution", + "subtype": "work", + "portal": "Arts", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "2012 British television film", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q506240" + ], + "qid": "Q7717125", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 80, + "pctDepth": 48, + "pctReach": 53, + "fame": 60, + "magnitude": 2 + }, + "description": "2012 British television film" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000279b34c", + "pageId": 41530188, + "revisionId": 1383948367, + "title": "Hervé Fischer", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 2, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "", + "connect": { + "countries": [ + "France" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q3134490", + "cites": [] + }, + "rarity": "Legendary", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 35, + "pctDepth": 68, + "pctReach": 63, + "fame": 55, + "magnitude": 2 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000027beec0", + "pageId": 41676480, + "revisionId": 1187069209, + "title": "Mary Sophie Young", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 2, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "American botanist (c.1872–1919)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q16043849", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 11, + "pctDepth": 38, + "pctReach": 47, + "fame": 32, + "magnitude": 1 + }, + "description": "American botanist (c.1872–1919)" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000039663ae", + "pageId": 60187566, + "revisionId": 1353977816, + "title": "Oncopagurus", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 5, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Genus of crustaceans", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q4471563", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 11, + "pctReach": 63, + "fame": 39, + "magnitude": 2 + }, + "description": "Genus of crustaceans" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000404da56", + "pageId": 67426902, + "revisionId": 1355258366, + "title": "April 2021 nor'easter", + "type": "Event", + "subtype": "disaster", + "portal": "Earth", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "damageEach", + "target": "each", + "amount": 1, + "template": "T4" + } + ], + "rulesText": "Deal 1 damage to each Figure and each Location.", + "flavor": "Slow-moving nor'easter in April 2021", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q2001587" + ], + "qid": "Q106542029", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 52, + "pctDepth": 89, + "pctReach": 8, + "fame": 50, + "magnitude": 2 + }, + "description": "Slow-moving nor'easter in April 2021" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000007f1bfc", + "pageId": 8330236, + "revisionId": 1383654640, + "title": "Hiroshima Electric Railway", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Japanese transportation company", + "connect": { + "countries": [ + "Japan" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q85907346" + ], + "qid": "Q16595959", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 86, + "pctDepth": 64, + "pctReach": 82, + "fame": 77, + "magnitude": 3 + }, + "description": "Japanese transportation company" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000f14093", + "pageId": 15810707, + "revisionId": 1381828954, + "title": "Charmont-en-Beauce", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Commune in Centre-Val de Loire, France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q484170" + ], + "qid": "Q667131", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 17, + "pctDepth": 7, + "pctReach": 94, + "fame": 39, + "magnitude": 2 + }, + "description": "Commune in Centre-Val de Loire, France" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000f2623f", + "pageId": 15884863, + "revisionId": 1358001871, + "title": "Freshwater River", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "River on Stewart Island / Rakiura, New Zealand", + "connect": { + "countries": [ + "New Zealand" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4022" + ], + "qid": "Q5503122", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 24, + "pctDepth": 33, + "pctReach": 58, + "fame": 38, + "magnitude": 1 + }, + "description": "River on Stewart Island / Rakiura, New Zealand" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000011e7dea", + "pageId": 18775530, + "revisionId": 1378518207, + "title": "Złaków Kościelny", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Village in Łódź Voivodeship, Poland", + "connect": { + "countries": [ + "Poland" + ], + "centuries": [], + "links": [], + "p31": [ + "Q3558970" + ], + "qid": "Q321622", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 4, + "pctDepth": 2, + "pctReach": 67, + "fame": 24, + "magnitude": 1 + }, + "description": "Village in Łódź Voivodeship, Poland" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000175fc6f", + "pageId": 24509551, + "revisionId": 1367096869, + "title": "Village (Pennsylvania)", + "type": "Location", + "subtype": null, + "portal": "Society", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q16936588", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 38, + "pctDepth": 33, + "pctReach": 8, + "fame": 26, + "magnitude": 1 + } + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000180a290", + "pageId": 25207440, + "revisionId": 1376759357, + "title": "Sainte-Félicité, Chaudière-Appalaches", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Municipality in Quebec, Canada", + "connect": { + "countries": [ + "Canada" + ], + "centuries": [], + "links": [], + "p31": [ + "Q27676428" + ], + "qid": "Q3464275", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 11, + "pctDepth": 38, + "pctReach": 67, + "fame": 39, + "magnitude": 2 + }, + "description": "Municipality in Quebec, Canada" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001c845f2", + "pageId": 29902322, + "revisionId": 1325745411, + "title": "Llanveynoe", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Village in Herefordshire, England", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1115575", + "Q532" + ], + "qid": "Q6661845", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 31, + "pctDepth": 33, + "pctReach": 67, + "fame": 44, + "magnitude": 2 + }, + "description": "Village in Herefordshire, England" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003f6d6d1", + "pageId": 66508497, + "revisionId": 1323515500, + "title": "Amanita mairei", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 3, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of fungus", + "connect": { + "countries": [], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q15651951", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 0, + "pctReach": 71, + "fame": 38, + "magnitude": 1 + }, + "description": "Species of fungus" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004cd4092", + "pageId": 80560274, + "revisionId": 1351705367, + "title": "1912 Argentine Primera División final", + "type": "Event", + "subtype": "sport", + "portal": "Society", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "pump", + "target": "ownFigure", + "power": 1, + "toughness": 0, + "duration": "turn", + "template": "T6" + }, + { + "trigger": "onPlay", + "op": "fight", + "target": "opponentFigure", + "template": "T6" + } + ], + "rulesText": "Target Figure you control gets +1/+0 until end of turn, then it fights target Figure you don't control.", + "flavor": "Football match", + "connect": { + "countries": [ + "Argentina" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q12166442", + "Q1366722" + ], + "qid": "Q135493693", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 14, + "pctDepth": 73, + "pctReach": 8, + "fame": 32, + "magnitude": 1 + }, + "description": "Football match" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000071fcb", + "pageId": 466891, + "revisionId": 1386046344, + "title": "City of Wyndham", + "type": "Location", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Local government area in Victoria, Australia", + "connect": { + "countries": [ + "Australia" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q1426035" + ], + "qid": "Q1502429", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 86, + "pctDepth": 77, + "pctReach": 74, + "fame": 79, + "magnitude": 3 + }, + "description": "Local government area in Victoria, Australia" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000025711c", + "pageId": 2453788, + "revisionId": 1374732887, + "title": "Heart rot", + "type": "Doctrine", + "subtype": "pathology", + "portal": "Science", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "figure", + "template": "T12" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": -3, + "toughness": -3, + "template": "T12" + } + ], + "rulesText": "Attach to target Figure. It gets −3/−3.", + "flavor": "Fungal disease of trees", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q2662845" + ], + "qid": "Q5692479", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 83, + "pctDepth": 68, + "pctReach": 53, + "fame": 68, + "magnitude": 3 + }, + "description": "Fungal disease of trees" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000002ad3e8", + "pageId": 2806760, + "revisionId": 1385958400, + "title": "Jess Harnell", + "type": "Figure", + "subtype": null, + "portal": "Arts", + "cost": 6, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected", + "Featured" + ], + "effects": [], + "rulesText": "Protected, Featured.", + "flavor": "American voice actor and singer (born 1963)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q258503", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 99, + "pctDepth": 96, + "pctReach": 89, + "fame": 95, + "magnitude": 3 + }, + "description": "American voice actor and singer (born 1963)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000089b9d0", + "pageId": 9026000, + "revisionId": 1351068420, + "title": "Names of Poland", + "type": "Doctrine", + "subtype": "language", + "portal": "Neutral", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "template": "T11" + }, + { + "trigger": "onCombatDamageToPlayer", + "op": "draw", + "amount": 1, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3.\nWhenever it deals combat damage to a player, draw a card.", + "flavor": "", + "connect": { + "countries": [ + "Poland" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q6961536", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 89, + "pctDepth": 83, + "pctReach": 53, + "fame": 75, + "magnitude": 3 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000f09c8c", + "pageId": 15768716, + "revisionId": 1382030873, + "title": "Ungersheim", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Commune in Grand Est, France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q484170" + ], + "qid": "Q122940", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 42, + "pctDepth": 28, + "pctReach": 96, + "fame": 55, + "magnitude": 2 + }, + "description": "Commune in Grand Est, France" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000246d152", + "pageId": 38195538, + "revisionId": 1354427246, + "title": "Joe Gideon & the Shark", + "type": "Institution", + "subtype": "organisation", + "portal": "Arts", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "English blues/indie rock band", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [], + "links": [], + "p31": [ + "Q215380" + ], + "qid": "Q3012108", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 52, + "pctDepth": 17, + "pctReach": 23, + "fame": 31, + "magnitude": 1 + }, + "description": "English blues/indie rock band" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000025ed7ee", + "pageId": 39770094, + "revisionId": 1376919282, + "title": "2013–14 California Golden Bears men's basketball team", + "type": "Event", + "subtype": "sport", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "pump", + "target": "ownFigure", + "power": 2, + "toughness": 0, + "duration": "turn", + "template": "T6" + }, + { + "trigger": "onPlay", + "op": "fight", + "target": "opponentFigure", + "template": "T6" + } + ], + "rulesText": "Target Figure you control gets +2/+0 until end of turn, then it fights target Figure you don't control.", + "flavor": "American college basketball season", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q26894053" + ], + "qid": "Q16245089", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 24, + "pctDepth": 92, + "pctReach": 8, + "fame": 41, + "magnitude": 2 + }, + "description": "American college basketball season" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002f85b42", + "pageId": 49830722, + "revisionId": 1116073630, + "title": "Dicroidium odontopteroides", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub", + "Local" + ], + "effects": [], + "rulesText": "Stub, Local.", + "flavor": "Species of ancient plant", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q25095289", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 11, + "pctReach": 8, + "fame": 20, + "magnitude": 1 + }, + "description": "Species of ancient plant" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000031e1299", + "pageId": 52302489, + "revisionId": 1380325251, + "title": "Pathrail Mosque", + "type": "Location", + "subtype": null, + "portal": "Society", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Mosque in Faridpur, Bangladesh", + "connect": { + "countries": [ + "Bangladesh" + ], + "centuries": [ + 15 + ], + "links": [], + "p31": [ + "Q32815" + ], + "qid": "Q28173356", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 47, + "pctDepth": 54, + "pctReach": 47, + "fame": 49, + "magnitude": 2 + }, + "description": "Mosque in Faridpur, Bangladesh" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000001e346c", + "pageId": 1979500, + "revisionId": 1382599906, + "title": "Zbyszek Godlewski", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 5, + "power": 6, + "toughness": 3, + "territory": 0, + "keywords": [ + "Legacy", + "Translated" + ], + "effects": [], + "rulesText": "Legacy, Translated.", + "flavor": "Polish protester (1952–1970)", + "connect": { + "countries": [ + "Poland" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q3497070", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 77, + "pctDepth": 48, + "pctReach": 78, + "fame": 68, + "magnitude": 3 + }, + "description": "Polish protester (1952–1970)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000438c15", + "pageId": 4426773, + "revisionId": 1384528612, + "title": "Agda (programming language)", + "type": "Doctrine", + "subtype": "language", + "portal": "Science", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "template": "T11" + }, + { + "trigger": "onCombatDamageToPlayer", + "op": "draw", + "amount": 1, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3.\nWhenever it deals combat damage to a player, draw a card.", + "flavor": "Functional programming language", + "connect": { + "countries": [], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q11387554", + "Q28920201", + "Q341", + "Q3839507", + "Q56223375", + "Q9143" + ], + "qid": "Q20479", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 91, + "pctDepth": 77, + "pctReach": 78, + "fame": 82, + "magnitude": 3 + }, + "description": "Functional programming language" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000475385", + "pageId": 4674437, + "revisionId": 1384106265, + "title": "Topusko", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Commune in Sisak-Moslavina County, Croatia", + "connect": { + "countries": [ + "Croatia" + ], + "centuries": [], + "links": [], + "p31": [ + "Q57058" + ], + "qid": "Q2457438", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 74, + "pctDepth": 77, + "pctReach": 90, + "fame": 80, + "magnitude": 3 + }, + "description": "Commune in Sisak-Moslavina County, Croatia" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000004dc3c7", + "pageId": 5096391, + "revisionId": 1376332037, + "title": "Isabella of Aragon, Queen of Portugal", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 6, + "power": 6, + "toughness": 4, + "territory": 0, + "keywords": [ + "Featured", + "Legacy" + ], + "effects": [], + "rulesText": "Featured, Legacy.", + "flavor": "Queen of Portugal from 1497 to 1498", + "connect": { + "countries": [ + "France", + "Italy", + "Portugal", + "Spain", + "United Kingdom" + ], + "centuries": [ + 15 + ], + "links": [], + "p31": [], + "qid": "Q466305", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 97, + "pctDepth": 77, + "pctReach": 97, + "fame": 90, + "magnitude": 3 + }, + "description": "Queen of Portugal from 1497 to 1498" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000f2d966", + "pageId": 15915366, + "revisionId": 1381946137, + "title": "Montjavoult", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Commune in Hauts-de-France, France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q484170" + ], + "qid": "Q1336846", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 3, + "pctDepth": 4, + "pctReach": 95, + "fame": 34, + "magnitude": 1 + }, + "description": "Commune in Hauts-de-France, France" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000f39622", + "pageId": 15963682, + "revisionId": 1384826851, + "title": "Viktor Genev", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 5, + "power": 4, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected", + "Translated" + ], + "effects": [], + "rulesText": "Protected, Translated.", + "flavor": "Bulgarian footballer", + "connect": { + "countries": [ + "Bulgaria", + "Israel", + "Kazakhstan", + "Romania", + "Russia", + "Ukraine", + "United Kingdom" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q2604995", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 52, + "pctDepth": 77, + "pctReach": 81, + "fame": 70, + "magnitude": 3 + }, + "description": "Bulgarian footballer" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001aba163", + "pageId": 28025187, + "revisionId": 1377386321, + "title": "Pühajõe", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Village in Estonia", + "connect": { + "countries": [ + "Estonia" + ], + "centuries": [], + "links": [], + "p31": [ + "Q51049922" + ], + "qid": "Q179358", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 11, + "pctDepth": 11, + "pctReach": 78, + "fame": 33, + "magnitude": 1 + }, + "description": "Village in Estonia" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002ed73e4", + "pageId": 49116132, + "revisionId": 1376271314, + "title": "Kalihati", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Town in Dhaka Division, Bangladesh", + "connect": { + "countries": [ + "Bangladesh" + ], + "centuries": [], + "links": [], + "p31": [ + "Q23759397", + "Q3957" + ], + "qid": "Q22348003", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 27, + "pctDepth": 38, + "pctReach": 47, + "fame": 37, + "magnitude": 1 + }, + "description": "Town in Dhaka Division, Bangladesh" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002f27561", + "pageId": 49444193, + "revisionId": 1371976132, + "title": "Miloje Vasić", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 5, + "power": 4, + "toughness": 5, + "territory": 0, + "keywords": [ + "Legacy", + "Translated" + ], + "effects": [], + "rulesText": "Legacy, Translated.", + "flavor": "Serbian archaeologist (1869–1956)", + "connect": { + "countries": [ + "Serbia" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q3314419", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 58, + "pctDepth": 89, + "pctReach": 78, + "fame": 75, + "magnitude": 3 + }, + "description": "Serbian archaeologist (1869–1956)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000001adbf", + "pageId": 110015, + "revisionId": 1377786275, + "title": "Haralson, Georgia", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Town in Georgia, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [ + "Q15127012", + "Q76514543" + ], + "qid": "Q2520618", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 62, + "pctDepth": 64, + "pctReach": 91, + "fame": 72, + "magnitude": 3 + }, + "description": "Town in Georgia, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000ab844d", + "pageId": 11240525, + "revisionId": 1382620781, + "title": "Joseph Ujlaki", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 5, + "toughness": 2, + "territory": 0, + "keywords": [ + "Legacy", + "Translated" + ], + "effects": [], + "rulesText": "Legacy, Translated.", + "flavor": "French-Hungarian footballer (1929-2006)", + "connect": { + "countries": [ + "France", + "Hungary" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q905343", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 64, + "pctDepth": 28, + "pctReach": 82, + "fame": 58, + "magnitude": 2 + }, + "description": "French-Hungarian footballer (1929-2006)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000162de74", + "pageId": 23256692, + "revisionId": 1176682009, + "title": "Coelogyne trinervis", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 3, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of orchid", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q188238" + ], + "qid": "Q1601035", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 17, + "pctDepth": 4, + "pctReach": 67, + "fame": 29, + "magnitude": 1 + }, + "description": "Species of orchid" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001d74bfb", + "pageId": 30886907, + "revisionId": 1367824379, + "title": "Pine River (Manistee River tributary)", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "River in Michigan, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4022" + ], + "qid": "Q7195337", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 54, + "pctDepth": 38, + "pctReach": 23, + "fame": 38, + "magnitude": 1 + }, + "description": "River in Michigan, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003b4f3b0", + "pageId": 62190512, + "revisionId": 1377313379, + "title": "Nguyễn Văn Huy", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 3, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected", + "Stub" + ], + "effects": [], + "rulesText": "Protected, Stub.", + "flavor": "Vietnamese chess grandmaster (born 1985)", + "connect": { + "countries": [ + "Vietnam" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q20026028", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 47, + "pctDepth": 28, + "pctReach": 47, + "fame": 41, + "magnitude": 2 + }, + "description": "Vietnamese chess grandmaster (born 1985)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003d6c241", + "pageId": 64406081, + "revisionId": 1280859035, + "title": "San Wai (San Tin)", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q532" + ], + "qid": "Q96739151", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 21, + "pctDepth": 48, + "pctReach": 23, + "fame": 31, + "magnitude": 1 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003e433c1", + "pageId": 65287105, + "revisionId": 1376673468, + "title": "Kishore Tirumala", + "type": "Figure", + "subtype": null, + "portal": "Arts", + "cost": 4, + "power": 4, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected", + "Featured" + ], + "effects": [], + "rulesText": "Protected, Featured.", + "flavor": "Indian film director", + "connect": { + "countries": [ + "India" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q93762585", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 91, + "pctDepth": 54, + "pctReach": 36, + "fame": 60, + "magnitude": 2 + }, + "description": "Indian film director" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004d8a703", + "pageId": 81307395, + "revisionId": 1378554406, + "title": "2025 Tehreek-e-Labbaik Pakistan protests", + "type": "Event", + "subtype": "conflict", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "damage", + "target": "figureOrLocation", + "amount": 4, + "template": "T3" + } + ], + "rulesText": "Deal 4 damage to target Figure or Location.", + "flavor": "Gaza war protests in Pakistan", + "connect": { + "countries": [ + "Israel", + "Pakistan" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q273120" + ], + "qid": "Q136649814", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 82, + "pctDepth": 86, + "pctReach": 23, + "fame": 64, + "magnitude": 3 + }, + "description": "Gaza war protests in Pakistan" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000000dc52e", + "pageId": 902446, + "revisionId": 1378970556, + "title": "Guidimaka region", + "type": "Location", + "subtype": null, + "portal": "Neutral", + "cost": 3, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Region of Mauritania", + "connect": { + "countries": [ + "Mauritania" + ], + "centuries": [], + "links": [], + "p31": [ + "Q846327" + ], + "qid": "Q768119", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 58, + "pctDepth": 77, + "pctReach": 94, + "fame": 76, + "magnitude": 3 + }, + "description": "Region of Mauritania" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000014fa5c", + "pageId": 1374812, + "revisionId": 1381663979, + "title": "Tom Ewell", + "type": "Figure", + "subtype": null, + "portal": "Arts", + "cost": 6, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Featured", + "Legacy" + ], + "effects": [], + "rulesText": "Featured, Legacy.", + "flavor": "American actor (1909–1994)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q427388", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 94, + "pctDepth": 83, + "pctReach": 93, + "fame": 90, + "magnitude": 3 + }, + "description": "American actor (1909–1994)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000ea6920", + "pageId": 15362336, + "revisionId": 1351181171, + "title": "1954 Gold Coast general election", + "type": "Event", + "subtype": "election", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "createToken", + "amount": 2, + "token": { + "name": "Elected Member", + "power": 1, + "toughness": 1, + "portal": "Society" + }, + "template": "T5" + } + ], + "rulesText": "Create two 1/1 Society Figure tokens named Elected Member.", + "flavor": "", + "connect": { + "countries": [ + "Ghana", + "United Kingdom" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q2618461" + ], + "qid": "Q2539674", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 66, + "pctDepth": 33, + "pctReach": 36, + "fame": 45, + "magnitude": 2 + } + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000162a8e7", + "pageId": 23242983, + "revisionId": 1351414373, + "title": "Larry Weber", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 3, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "American entrepreneur", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q6491266", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 66, + "pctDepth": 73, + "pctReach": 36, + "fame": 58, + "magnitude": 2 + }, + "description": "American entrepreneur" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002f59319", + "pageId": 49648409, + "revisionId": 1344963259, + "title": "Ulla! min Ulla! Säj får jag dig bjuda", + "type": "Institution", + "subtype": "work", + "portal": "Arts", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "Song by the 18th century Swedish bard Carl Michael Bellman", + "connect": { + "countries": [ + "Sweden" + ], + "centuries": [ + 18 + ], + "links": [], + "p31": [ + "Q105543609" + ], + "qid": "Q19528685", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 27, + "pctDepth": 83, + "pctReach": 23, + "fame": 44, + "magnitude": 2 + }, + "description": "Song by the 18th century Swedish bard Carl Michael Bellman" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000506ce99", + "pageId": 84332185, + "revisionId": 1378056768, + "title": "Oscar González Oro", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 3, + "power": 4, + "toughness": 1, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "Argentine journalist and radio host (1951–2026)", + "connect": { + "countries": [ + "Argentina" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q6053873", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 66, + "pctDepth": 28, + "pctReach": 23, + "fame": 39, + "magnitude": 2 + }, + "description": "Argentine journalist and radio host (1951–2026)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000246570", + "pageId": 2385264, + "revisionId": 1334637363, + "title": "Ofanto", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "River in Italy", + "connect": { + "countries": [ + "Italy" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4022" + ], + "qid": "Q841550", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 69, + "pctDepth": 43, + "pctReach": 91, + "fame": 68, + "magnitude": 3 + }, + "description": "River in Italy" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000751b4c", + "pageId": 7674700, + "revisionId": 1384061257, + "title": "Shipley Plateau", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Place in the Blue Mountains, Australia", + "connect": { + "countries": [ + "Australia", + "United Kingdom" + ], + "centuries": [], + "links": [], + "p31": [ + "Q75520" + ], + "qid": "Q7498025", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 17, + "pctDepth": 7, + "pctReach": 23, + "fame": 16, + "magnitude": 1 + }, + "description": "Place in the Blue Mountains, Australia" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000140afac", + "pageId": 21016492, + "revisionId": 1363646521, + "title": "Xiancantan", + "type": "Location", + "subtype": null, + "portal": "Science", + "cost": 2, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "", + "connect": { + "countries": [ + "China" + ], + "centuries": [ + 18 + ], + "links": [], + "p31": [ + "Q41176" + ], + "qid": "Q434483", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 50, + "pctDepth": 7, + "pctReach": 67, + "fame": 41, + "magnitude": 2 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003165b05", + "pageId": 51796741, + "revisionId": 1356084913, + "title": "Alex Piquero", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 3, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected", + "Stub" + ], + "effects": [], + "rulesText": "Protected, Stub.", + "flavor": "Cuban-American criminologist (born 1970)", + "connect": { + "countries": [ + "Cuba", + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q27058048", + "cites": [] + }, + "rarity": "Legendary", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 62, + "pctDepth": 59, + "pctReach": 8, + "fame": 43, + "magnitude": 2 + }, + "description": "Cuban-American criminologist (born 1970)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000183a95", + "pageId": 1587861, + "revisionId": 1382422731, + "title": "Vélez-Málaga", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Place in Málaga, Spain", + "connect": { + "countries": [ + "Spain" + ], + "centuries": [], + "links": [], + "p31": [ + "Q2074737" + ], + "qid": "Q492741", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 86, + "pctDepth": 92, + "pctReach": 98, + "fame": 92, + "magnitude": 3 + }, + "description": "Place in Málaga, Spain" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000041756b", + "pageId": 4289899, + "revisionId": 1384682008, + "title": "Anthodon (reptile)", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 5, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Translated" + ], + "effects": [], + "rulesText": "Translated.", + "flavor": "Extinct genus of reptiles", + "connect": { + "countries": [], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q47487597" + ], + "qid": "Q2505064", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 69, + "pctDepth": 64, + "pctReach": 80, + "fame": 71, + "magnitude": 3 + }, + "description": "Extinct genus of reptiles" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000010b1fc1", + "pageId": 17506241, + "revisionId": 1361257647, + "title": "Marion Thees", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 3, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected", + "Translated" + ], + "effects": [], + "rulesText": "Protected, Translated.", + "flavor": "German skeleton racer", + "connect": { + "countries": [ + "Germany" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q72724", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 38, + "pctDepth": 23, + "pctReach": 78, + "fame": 46, + "magnitude": 2 + }, + "description": "German skeleton racer" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000013be088", + "pageId": 20701320, + "revisionId": 1385997032, + "title": "Horse Feathers (band)", + "type": "Institution", + "subtype": "organisation", + "portal": "Arts", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "American indie folk band", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q215380" + ], + "qid": "Q5905442", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 71, + "pctDepth": 54, + "pctReach": 36, + "fame": 54, + "magnitude": 2 + }, + "description": "American indie folk band" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002d92236", + "pageId": 47784502, + "revisionId": 1375411209, + "title": "Christian Zübert", + "type": "Figure", + "subtype": null, + "portal": "Arts", + "cost": 4, + "power": 3, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "German film director and screenwriter (born 1973)", + "connect": { + "countries": [ + "Germany" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q1082448", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 47, + "pctDepth": 59, + "pctReach": 58, + "fame": 55, + "magnitude": 2 + }, + "description": "German film director and screenwriter (born 1973)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003d70634", + "pageId": 64423476, + "revisionId": 1377264425, + "title": "2023 Seville municipal election", + "type": "Event", + "subtype": "election", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "createToken", + "amount": 2, + "token": { + "name": "Elected Member", + "power": 1, + "toughness": 1, + "portal": "Society" + }, + "template": "T5" + } + ], + "rulesText": "Create two 1/1 Society Figure tokens named Elected Member.", + "flavor": "Election in the Spanish municipality of Seville", + "connect": { + "countries": [ + "Spain" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q152450" + ], + "qid": "Q97188845", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 52, + "pctDepth": 97, + "pctReach": 36, + "fame": 62, + "magnitude": 2 + }, + "description": "Election in the Spanish municipality of Seville" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000049c9880", + "pageId": 77371520, + "revisionId": 1372235441, + "title": "Coalición Vamos", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "Political party in Panama", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q7278" + ], + "qid": "Q127386808", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 85, + "pctDepth": 28, + "pctReach": 23, + "fame": 45, + "magnitude": 2 + }, + "description": "Political party in Panama" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000001c2f8", + "pageId": 115448, + "revisionId": 1374535006, + "title": "Mackville, Kentucky", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "City in Kentucky, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1093829" + ], + "qid": "Q2246158", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 50, + "pctDepth": 54, + "pctReach": 94, + "fame": 66, + "magnitude": 3 + }, + "description": "City in Kentucky, United States" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000041fc69", + "pageId": 4324457, + "revisionId": 1372952688, + "title": "Juha Suoranta", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 2, + "toughness": 3, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Finnish social scientist", + "connect": { + "countries": [ + "Finland" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q6305056", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 35, + "pctDepth": 68, + "pctReach": 47, + "fame": 50, + "magnitude": 2 + }, + "description": "Finnish social scientist" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000908a9f", + "pageId": 9472671, + "revisionId": 1280127322, + "title": "Fletcher (typeface)", + "type": "Institution", + "subtype": "work", + "portal": "Arts", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "Serif typeface", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q17451" + ], + "qid": "Q2539914", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 54, + "pctDepth": 2, + "pctReach": 23, + "fame": 26, + "magnitude": 1 + }, + "description": "Serif typeface" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000befc0f", + "pageId": 12516367, + "revisionId": 1320927031, + "title": "Frogham, Kent", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Hamlet in Kent, England", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [], + "links": [], + "p31": [ + "Q5084" + ], + "qid": "Q5505274", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 21, + "pctDepth": 4, + "pctReach": 47, + "fame": 24, + "magnitude": 1 + }, + "description": "Hamlet in Kent, England" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000181aa81", + "pageId": 25275009, + "revisionId": 1381503728, + "title": "Amur Annexation", + "type": "Event", + "subtype": "conflict", + "portal": "History", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "damage", + "target": "figureOrLocation", + "amount": 4, + "template": "T3" + } + ], + "rulesText": "Deal 4 damage to target Figure or Location.", + "flavor": "Russian annexation of Outer Manchuria", + "connect": { + "countries": [ + "China", + "Russia" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q194465" + ], + "qid": "Q4379152", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 93, + "pctDepth": 81, + "pctReach": 74, + "fame": 83, + "magnitude": 3 + }, + "description": "Russian annexation of Outer Manchuria" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001fbc437", + "pageId": 33276983, + "revisionId": 1375320562, + "title": "Buky", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Rural locality in Cherkasy Oblast, Ukraine", + "connect": { + "countries": [ + "Ukraine" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4100864", + "Q486972" + ], + "qid": "Q2473493", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 38, + "pctDepth": 33, + "pctReach": 83, + "fame": 51, + "magnitude": 2 + }, + "description": "Rural locality in Cherkasy Oblast, Ukraine" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000256bae2", + "pageId": 39238370, + "revisionId": 1330396969, + "title": "2013 San Jose State Spartans football team", + "type": "Event", + "subtype": "sport", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "pump", + "target": "ownFigure", + "power": 2, + "toughness": 0, + "duration": "turn", + "template": "T6" + }, + { + "trigger": "onPlay", + "op": "fight", + "target": "opponentFigure", + "template": "T6" + } + ], + "rulesText": "Target Figure you control gets +2/+0 until end of turn, then it fights target Figure you don't control.", + "flavor": "American college football season", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q26895936" + ], + "qid": "Q16972991", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 62, + "pctDepth": 83, + "pctReach": 8, + "fame": 51, + "magnitude": 2 + }, + "description": "American college football season" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002c1eb97", + "pageId": 46263191, + "revisionId": 1384441370, + "title": "Max Touloute", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 2, + "toughness": 3, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Haitian footballer (born 1990)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q20641573", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 35, + "pctDepth": 68, + "pctReach": 36, + "fame": 46, + "magnitude": 2 + }, + "description": "Haitian footballer (born 1990)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002fdc661", + "pageId": 50185825, + "revisionId": 1371365886, + "title": "Majid Qodiri", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 4, + "power": 2, + "toughness": 5, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "Uzbek literary scholar and educator (1886–1938)", + "connect": { + "countries": [], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q23823703", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 31, + "pctDepth": 64, + "pctReach": 63, + "fame": 53, + "magnitude": 2 + }, + "description": "Uzbek literary scholar and educator (1886–1938)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000321b424", + "pageId": 52540452, + "revisionId": 1381108921, + "title": "Olga Gorshenina", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 2, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected", + "Translated" + ], + "effects": [], + "rulesText": "Protected, Translated.", + "flavor": "Russian handball player", + "connect": { + "countries": [ + "Germany", + "Hungary", + "Romania", + "Russia" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q2019617", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 14, + "pctDepth": 17, + "pctReach": 78, + "fame": 36, + "magnitude": 1 + }, + "description": "Russian handball player" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000043bf4f0", + "pageId": 71038192, + "revisionId": 1382877416, + "title": "1952 Avusrennen", + "type": "Event", + "subtype": "sport", + "portal": "Society", + "cost": 1, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "pump", + "target": "ownFigure", + "power": 1, + "toughness": 0, + "duration": "turn", + "template": "T6" + }, + { + "trigger": "onPlay", + "op": "fight", + "target": "opponentFigure", + "template": "T6" + } + ], + "rulesText": "Target Figure you control gets +1/+0 until end of turn, then it fights target Figure you don't control.", + "flavor": "Motor car race", + "connect": { + "countries": [ + "Germany" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q112838670", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 24, + "pctDepth": 38, + "pctReach": 8, + "fame": 23, + "magnitude": 1 + }, + "description": "Motor car race" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004d8d1a8", + "pageId": 81318312, + "revisionId": 1382049023, + "title": "Guido Iván Justo", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 4, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected", + "Featured" + ], + "effects": [], + "rulesText": "Protected, Featured.", + "flavor": "Argentine tennis player (born 1997)", + "connect": { + "countries": [ + "Argentina" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q138414200", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 85, + "pctDepth": 54, + "pctReach": 23, + "fame": 54, + "magnitude": 2 + }, + "description": "Argentine tennis player (born 1997)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000021dbee", + "pageId": 2218990, + "revisionId": 1386025479, + "title": "Deputy Prime Minister of Malaysia", + "type": "Institution", + "subtype": "other", + "portal": "Society", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 0, + "condition": { + "maxPower": 2 + }, + "template": "T10" + } + ], + "rulesText": "Figures you control with power 2 or less get +1/+0.", + "flavor": "Political office in Malaysia", + "connect": { + "countries": [ + "Malaysia" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4164871" + ], + "qid": "Q5261073", + "cites": [] + }, + "rarity": "Legendary", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 89, + "pctDepth": 86, + "pctReach": 76, + "fame": 84, + "magnitude": 3 + }, + "description": "Political office in Malaysia" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000007e454c", + "pageId": 8275276, + "revisionId": 1350443233, + "title": "Thomas Wharton Jr.", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 5, + "power": 5, + "toughness": 4, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "American politician (1735–1778)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 18 + ], + "links": [], + "p31": [], + "qid": "Q883460", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 79, + "pctDepth": 73, + "pctReach": 36, + "fame": 63, + "magnitude": 3 + }, + "description": "American politician (1735–1778)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001462f3f", + "pageId": 21376831, + "revisionId": 1374494957, + "title": "Bez (Drôme)", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "River in France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4022" + ], + "qid": "Q1019347", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 17, + "pctDepth": 7, + "pctReach": 36, + "fame": 20, + "magnitude": 1 + }, + "description": "River in France" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000155d87e", + "pageId": 22403198, + "revisionId": 1375646501, + "title": "Cioc-Maidan", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Commune in Gagauzia, Moldova", + "connect": { + "countries": [ + "Moldova" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4229812", + "Q532" + ], + "qid": "Q2639022", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 35, + "pctDepth": 28, + "pctReach": 80, + "fame": 48, + "magnitude": 2 + }, + "description": "Commune in Gagauzia, Moldova" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000015797a4", + "pageId": 22517668, + "revisionId": 1244289559, + "title": "Kwong Wai Siew Peck San Theng", + "type": "Location", + "subtype": null, + "portal": "Science", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Columbarium in Singapore", + "connect": { + "countries": [ + "Singapore" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q6450554", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 74, + "pctDepth": 54, + "pctReach": 23, + "fame": 50, + "magnitude": 2 + }, + "description": "Columbarium in Singapore" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002d51886", + "pageId": 47519878, + "revisionId": 1382761423, + "title": "Jeanne Madden", + "type": "Figure", + "subtype": null, + "portal": "Arts", + "cost": 2, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Legacy", + "Stub" + ], + "effects": [], + "rulesText": "Legacy, Stub.", + "flavor": "American singer and actress (1917–1989)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q20974011", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 21, + "pctDepth": 7, + "pctReach": 53, + "fame": 27, + "magnitude": 1 + }, + "description": "American singer and actress (1917–1989)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002e752d2", + "pageId": 48714450, + "revisionId": 1383721847, + "title": "Payam Heydari", + "type": "Figure", + "subtype": null, + "portal": "Science", + "cost": 4, + "power": 3, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Iranian-American Professor", + "connect": { + "countries": [ + "Iran", + "United States" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q22097382", + "cites": [] + }, + "rarity": "Legendary", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 58, + "pctDepth": 73, + "pctReach": 36, + "fame": 56, + "magnitude": 2 + }, + "description": "Iranian-American Professor" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004b36e3e", + "pageId": 78868030, + "revisionId": 1327239041, + "title": "Mercenasco Castle", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Building in Mercenasco, Italy", + "connect": { + "countries": [ + "Italy" + ], + "centuries": [], + "links": [], + "p31": [ + "Q23413" + ], + "qid": "Q131729377", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 0, + "pctDepth": 17, + "pctReach": 36, + "fame": 18, + "magnitude": 1 + }, + "description": "Building in Mercenasco, Italy" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000050afd22", + "pageId": 84606242, + "revisionId": 1382829231, + "title": "Edward Ellsworth Underwood", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 2, + "toughness": 3, + "territory": 0, + "keywords": [ + "Legacy", + "Local" + ], + "effects": [], + "rulesText": "Legacy, Local.", + "flavor": "American physician (1864–1942)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q141822855", + "cites": [] + }, + "rarity": "Legendary", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 50, + "pctDepth": 59, + "pctReach": 8, + "fame": 39, + "magnitude": 2 + }, + "description": "American physician (1864–1942)" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000000ef95c", + "pageId": 981340, + "revisionId": 1384823392, + "title": "Tatsunoko Production", + "type": "Institution", + "subtype": "organisation", + "portal": "Arts", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Japanese animation studio", + "connect": { + "countries": [ + "Japan" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q1107679" + ], + "qid": "Q1323459", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 94, + "pctDepth": 98, + "pctReach": 86, + "fame": 93, + "magnitude": 3 + }, + "description": "Japanese animation studio" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000001ed529", + "pageId": 2020649, + "revisionId": 1356568738, + "title": "Luxury box", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Society", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3.", + "flavor": "Class of seating in arena or stadium", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q852359", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "description", + "basis": { + "pctAttention": 87, + "pctDepth": 83, + "pctReach": 63, + "fame": 78, + "magnitude": 3 + }, + "description": "Class of seating in arena or stadium" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000002d7151", + "pageId": 2978129, + "revisionId": 1354827085, + "title": "Saraca", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 4, + "power": 5, + "toughness": 3, + "territory": 0, + "keywords": [ + "Translated" + ], + "effects": [], + "rulesText": "Translated.", + "flavor": "Genus of legumes", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q2426272", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 58, + "pctDepth": 33, + "pctReach": 86, + "fame": 59, + "magnitude": 2 + }, + "description": "Genus of legumes" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000d65bfa", + "pageId": 14048250, + "revisionId": 1377607311, + "title": "Frontier, Saskatchewan", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Village in Saskatchewan, Canada", + "connect": { + "countries": [ + "Canada" + ], + "centuries": [], + "links": [], + "p31": [ + "Q6644778" + ], + "qid": "Q2003391", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 66, + "pctDepth": 77, + "pctReach": 47, + "fame": 63, + "magnitude": 3 + }, + "description": "Village in Saskatchewan, Canada" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001d1c4f7", + "pageId": 30524663, + "revisionId": 1321144611, + "title": "Aichi AB-2", + "type": "Institution", + "subtype": "organisation", + "portal": "Science", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "Prototype reconnaissance floatplane", + "connect": { + "countries": [ + "Japan" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q15056995" + ], + "qid": "Q4696551", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 47, + "pctDepth": 43, + "pctReach": 47, + "fame": 46, + "magnitude": 2 + }, + "description": "Prototype reconnaissance floatplane" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001d6c6e5", + "pageId": 30852837, + "revisionId": 1366643102, + "title": "Symphodus", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 4, + "power": 4, + "toughness": 4, + "territory": 0, + "keywords": [ + "Translated", + "Stub" + ], + "effects": [], + "rulesText": "Translated, Stub.", + "flavor": "Genus of fishes", + "connect": { + "countries": [ + "Spain" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q2019861", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 47, + "pctDepth": 48, + "pctReach": 89, + "fame": 61, + "magnitude": 2 + }, + "description": "Genus of fishes" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000028ca141", + "pageId": 42770753, + "revisionId": 1375492681, + "title": "Château de la Faye (Villexavier)", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Manor house in Charente-Maritime, France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q23413" + ], + "qid": "Q2971223", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 9, + "pctDepth": 7, + "pctReach": 23, + "fame": 13, + "magnitude": 1 + }, + "description": "Manor house in Charente-Maritime, France" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002e6632d", + "pageId": 48653101, + "revisionId": 1381828221, + "title": "Tornadoes of 1978", + "type": "Event", + "subtype": "disaster", + "portal": "Neutral", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "damageEach", + "target": "each", + "amount": 1, + "template": "T4" + } + ], + "rulesText": "Deal 1 damage to each Figure and each Location.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q18340514" + ], + "qid": "Q22093730", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 80, + "pctDepth": 81, + "pctReach": 8, + "fame": 56, + "magnitude": 2 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000034881ec", + "pageId": 55083500, + "revisionId": 1383844197, + "title": "United Kingdom House", + "type": "Location", + "subtype": null, + "portal": "Science", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Building on Oxford Street, London, England", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q41176" + ], + "qid": "Q26319049", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 54, + "pctDepth": 23, + "pctReach": 23, + "fame": 33, + "magnitude": 1 + }, + "description": "Building on Oxford Street, London, England" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000337786", + "pageId": 3372934, + "revisionId": 1364063954, + "title": "Hermes Ramírez", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 3, + "toughness": 4, + "territory": 0, + "keywords": [ + "Legacy", + "Translated" + ], + "effects": [], + "rulesText": "Legacy, Translated.", + "flavor": "Cuban sprinter (1948–2024)", + "connect": { + "countries": [ + "Cuba", + "United States" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q522855", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 59, + "pctReach": 81, + "fame": 61, + "magnitude": 2 + }, + "description": "Cuban sprinter (1948–2024)" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000007f4694", + "pageId": 8341140, + "revisionId": 1370304900, + "title": "Ceaușescu family", + "type": "Figure", + "subtype": null, + "portal": "Neutral", + "cost": 5, + "power": 5, + "toughness": 4, + "territory": 0, + "keywords": [ + "Featured" + ], + "effects": [], + "rulesText": "Featured.", + "flavor": "Family of Nicolae Ceaușescu", + "connect": { + "countries": [ + "Romania" + ], + "centuries": [], + "links": [], + "p31": [ + "Q8436" + ], + "qid": "Q5055770", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 92, + "pctDepth": 59, + "pctReach": 47, + "fame": 66, + "magnitude": 3 + }, + "description": "Family of Nicolae Ceaușescu" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000d29182", + "pageId": 13799810, + "revisionId": 1374230485, + "title": "Levophacetoperane", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Science", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 2, + "toughness": 2, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +2/+2.", + "flavor": "Stimulant drug", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q113145171" + ], + "qid": "Q6535818", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 64, + "pctDepth": 38, + "pctReach": 36, + "fame": 46, + "magnitude": 2 + }, + "description": "Stimulant drug" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000010eef0c", + "pageId": 17755916, + "revisionId": 1360992742, + "title": "Xiaoliang Sunney Xie", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 5, + "power": 4, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected", + "Well-sourced" + ], + "effects": [], + "rulesText": "Protected, Well-sourced.", + "flavor": "Chinese-American biochemist", + "connect": { + "countries": [ + "China", + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q906616", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 74, + "pctDepth": 93, + "pctReach": 58, + "fame": 75, + "magnitude": 3 + }, + "description": "Chinese-American biochemist" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001225032", + "pageId": 19025970, + "revisionId": 1385734329, + "title": "Marina Kuzina", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 3, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected", + "Translated" + ], + "effects": [], + "rulesText": "Protected, Translated.", + "flavor": "Russian basketball player", + "connect": { + "countries": [ + "Russia" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q2704942", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 21, + "pctDepth": 11, + "pctReach": 86, + "fame": 39, + "magnitude": 2 + }, + "description": "Russian basketball player" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000016ff42e", + "pageId": 24114222, + "revisionId": 1317119586, + "title": "Rum cake", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3.", + "flavor": "Type of dessert", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q7379109", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 90, + "pctDepth": 38, + "pctReach": 71, + "fame": 66, + "magnitude": 3 + }, + "description": "Type of dessert" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001e1e5e4", + "pageId": 31581668, + "revisionId": 1377811586, + "title": "Ian Potter Museum of Art", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Art museum in Parkville, Victoria", + "connect": { + "countries": [ + "Australia" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q207694" + ], + "qid": "Q5982619", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 62, + "pctDepth": 68, + "pctReach": 36, + "fame": 55, + "magnitude": 2 + }, + "description": "Art museum in Parkville, Victoria" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001ff532a", + "pageId": 33510186, + "revisionId": 1371413731, + "title": "Piet Hesse", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 2, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "Dutch actor and comedian (1872–1936)", + "connect": { + "countries": [ + "Netherlands" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q2513810", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 17, + "pctDepth": 23, + "pctReach": 53, + "fame": 31, + "magnitude": 1 + }, + "description": "Dutch actor and comedian (1872–1936)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000212369d", + "pageId": 34748061, + "revisionId": 1315380924, + "title": "Goneplax", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 1, + "toughness": 3, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Genus of crabs", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q5234395", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 4, + "pctDepth": 14, + "pctReach": 71, + "fame": 30, + "magnitude": 1 + }, + "description": "Genus of crabs" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002d706ce", + "pageId": 47646414, + "revisionId": 1384401817, + "title": "John Mellencamp Pavilion", + "type": "Location", + "subtype": null, + "portal": "Society", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "American athletics facility at Indiana University Bloomington", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q41176" + ], + "qid": "Q22097461", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 71, + "pctDepth": 33, + "pctReach": 8, + "fame": 37, + "magnitude": 1 + }, + "description": "American athletics facility at Indiana University Bloomington" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003853be9", + "pageId": 59063273, + "revisionId": 1385547666, + "title": "Nathan M. Johnson", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 5, + "power": 4, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected", + "Featured" + ], + "effects": [], + "rulesText": "Protected, Featured.", + "flavor": "American politician and composer (born 1968)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q58756295", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 98, + "pctDepth": 89, + "pctReach": 23, + "fame": 70, + "magnitude": 3 + }, + "description": "American politician and composer (born 1968)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003a79927", + "pageId": 61315367, + "revisionId": 1380314462, + "title": "Payson J. Treat", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 1, + "power": 1, + "toughness": 1, + "territory": 0, + "keywords": [ + "Legacy", + "Stub" + ], + "effects": [], + "rulesText": "Legacy, Stub.", + "flavor": "American Japanologist (1879–1972)", + "connect": { + "countries": [ + "Japan", + "United States" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q59628931", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 11, + "pctDepth": 38, + "pctReach": 8, + "fame": 19, + "magnitude": 1 + }, + "description": "American Japanologist (1879–1972)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000179138", + "pageId": 1544504, + "revisionId": 1384187229, + "title": "Walter Rauschenbusch", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 6, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Featured", + "Legacy" + ], + "effects": [], + "rulesText": "Featured, Legacy.", + "flavor": "American theologian and Baptist pastor (1861-1918)", + "connect": { + "countries": [ + "Germany", + "United States" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q1345238", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 89, + "pctDepth": 90, + "pctReach": 86, + "fame": 88, + "magnitude": 3 + }, + "description": "American theologian and Baptist pastor (1861-1918)" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000002518b4", + "pageId": 2431156, + "revisionId": 1368504160, + "title": "Organization of the Luftwaffe (1933–1945)", + "type": "Institution", + "subtype": "organisation", + "portal": "Science", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Structure of German air force", + "connect": { + "countries": [ + "Germany" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q15627509" + ], + "qid": "Q636182", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 89, + "pctDepth": 98, + "pctReach": 67, + "fame": 85, + "magnitude": 3 + }, + "description": "Structure of German air force" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000006af267", + "pageId": 7008871, + "revisionId": 1382159622, + "title": "Duke Blue Devils football", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Football team of Duke University", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q17156793", + "Q18558301" + ], + "qid": "Q5312733", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 98, + "pctDepth": 98, + "pctReach": 36, + "fame": 77, + "magnitude": 3 + }, + "description": "Football team of Duke University" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000a9306d", + "pageId": 11087981, + "revisionId": 1383233544, + "title": "SREBP cleavage-activating protein", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Science", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 2, + "toughness": 2, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +2/+2.", + "flavor": "Protein-coding gene in the species Homo sapiens", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q7187" + ], + "qid": "Q14913782", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 68, + "pctReach": 36, + "fame": 49, + "magnitude": 2 + }, + "description": "Protein-coding gene in the species Homo sapiens" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000e463d7", + "pageId": 14967767, + "revisionId": 1346472302, + "title": "Everton, Nottinghamshire", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Village and civil parish in Nottinghamshire, England", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1115575", + "Q532" + ], + "qid": "Q5417389", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 50, + "pctDepth": 54, + "pctReach": 63, + "fame": 56, + "magnitude": 2 + }, + "description": "Village and civil parish in Nottinghamshire, England" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001625b83", + "pageId": 23223171, + "revisionId": 1351215348, + "title": "Plectania", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 4, + "power": 3, + "toughness": 5, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Genus of fungi", + "connect": { + "countries": [], + "centuries": [ + 19 + ], + "links": [], + "p31": [], + "qid": "Q5235905", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 31, + "pctDepth": 54, + "pctReach": 67, + "fame": 51, + "magnitude": 2 + }, + "description": "Genus of fungi" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000229b4e9", + "pageId": 36287721, + "revisionId": 1364688814, + "title": "Magheracross", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Townland in County Fermanagh, Northern Ireland", + "connect": { + "countries": [ + "Ireland" + ], + "centuries": [], + "links": [], + "p31": [ + "Q2151232" + ], + "qid": "Q6730410", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 27, + "pctDepth": 59, + "pctReach": 8, + "fame": 31, + "magnitude": 1 + }, + "description": "Townland in County Fermanagh, Northern Ireland" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003256025", + "pageId": 52781093, + "revisionId": 1360733771, + "title": "SS Iberia (1873)", + "type": "Institution", + "subtype": "other", + "portal": "History", + "cost": 1, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 0, + "condition": { + "maxPower": 2 + }, + "template": "T10" + } + ], + "rulesText": "Figures you control with power 2 or less get +1/+0.", + "flavor": "Steamship by John Elder", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q12859788" + ], + "qid": "Q28232395", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 27, + "pctDepth": 17, + "pctReach": 8, + "fame": 17, + "magnitude": 1 + }, + "description": "Steamship by John Elder" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000004cc4", + "pageId": 19652, + "revisionId": 1382146482, + "title": "Monoid", + "type": "Doctrine", + "subtype": "mathematics", + "portal": "Science", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "grant": [ + "Well-sourced" + ], + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3 and has Well-sourced.", + "flavor": "Algebraic structure with an associative operation and an identity element", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q208237", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 97, + "pctDepth": 93, + "pctReach": 98, + "fame": 96, + "magnitude": 3 + }, + "description": "Algebraic structure with an associative operation and an identity element" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000004bb672", + "pageId": 4961906, + "revisionId": 1343697567, + "title": "Chinese star maps", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Science", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3.", + "flavor": "Depictions of the positions of stars on the celestial sphere", + "connect": { + "countries": [ + "China" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q16241158", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 79, + "pctDepth": 90, + "pctReach": 36, + "fame": 68, + "magnitude": 3 + }, + "description": "Depictions of the positions of stars on the celestial sphere" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000008b571b", + "pageId": 9131803, + "revisionId": 1351670352, + "title": "Shooting at the 1912 Summer Olympics – Men's 30 metre rapid fire pistol", + "type": "Event", + "subtype": "other", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "draw", + "amount": 2, + "template": "T7" + } + ], + "rulesText": "Draw two cards.", + "flavor": "Olympic shooting event", + "connect": { + "countries": [], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q18536594" + ], + "qid": "Q7500632", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 31, + "pctDepth": 68, + "pctReach": 58, + "fame": 52, + "magnitude": 2 + }, + "description": "Olympic shooting event" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000b8fc3c", + "pageId": 12123196, + "revisionId": 1362893730, + "title": "Phu Phra Bat Buabok Forest Park", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Forest park in Ban Phue District, Thailand", + "connect": { + "countries": [ + "Thailand" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q13020522" + ], + "qid": "Q250022", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 27, + "pctDepth": 17, + "pctReach": 36, + "fame": 27, + "magnitude": 1 + }, + "description": "Forest park in Ban Phue District, Thailand" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000e67fba", + "pageId": 15105978, + "revisionId": 1384889405, + "title": "Well", + "type": "Doctrine", + "subtype": "mathematics", + "portal": "Science", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "grant": [ + "Well-sourced" + ], + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3 and has Well-sourced.", + "flavor": "Excavation or structure to provide access to groundwater", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q43483", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "description", + "basis": { + "pctAttention": 97, + "pctDepth": 95, + "pctReach": 99, + "fame": 97, + "magnitude": 3 + }, + "description": "Excavation or structure to provide access to groundwater" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002e39459", + "pageId": 48469081, + "revisionId": 1373109716, + "title": "Dr. John L. Butler House", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Historic house in Arkansas, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q3947" + ], + "qid": "Q24041379", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 3, + "pctDepth": 14, + "pctReach": 8, + "fame": 8, + "magnitude": 1 + }, + "description": "Historic house in Arkansas, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003f34d76", + "pageId": 66276726, + "revisionId": 1326195763, + "title": "Inaechelys", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Genus of reptiles", + "connect": { + "countries": [ + "Brazil" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q23038290" + ], + "qid": "Q26700596", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 27, + "pctDepth": 11, + "pctReach": 23, + "fame": 20, + "magnitude": 1 + }, + "description": "Genus of reptiles" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004dba1f0", + "pageId": 81502704, + "revisionId": 1373685251, + "title": "Wenshet", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 3, + "power": 3, + "toughness": 3, + "territory": 0, + "keywords": [], + "effects": [], + "rulesText": "", + "flavor": "", + "connect": { + "countries": [ + "Egypt" + ], + "centuries": [ + 26 + ], + "links": [], + "p31": [], + "qid": "Q2559642", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 35, + "pctDepth": 48, + "pctReach": 53, + "fame": 45, + "magnitude": 2 + } + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000020ac39", + "pageId": 2141241, + "revisionId": 1381701379, + "title": "Hvis lyset tar oss", + "type": "Institution", + "subtype": "work", + "portal": "Arts", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "1994 studio album by Burzum", + "connect": { + "countries": [ + "Norway" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q482994" + ], + "qid": "Q1129211", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 93, + "pctDepth": 48, + "pctReach": 90, + "fame": 77, + "magnitude": 3 + }, + "description": "1994 studio album by Burzum" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000003efcc4", + "pageId": 4127940, + "revisionId": 1376763672, + "title": "Lunugala", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Town in Uva Province, Sri Lanka", + "connect": { + "countries": [ + "Sri Lanka" + ], + "centuries": [], + "links": [], + "p31": [ + "Q486972" + ], + "qid": "Q6704475", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 54, + "pctDepth": 43, + "pctReach": 36, + "fame": 44, + "magnitude": 2 + }, + "description": "Town in Uva Province, Sri Lanka" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000ec5681", + "pageId": 15488641, + "revisionId": 1384010653, + "title": "Dominique Rodgers-Cromartie", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 6, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected", + "Featured" + ], + "effects": [], + "rulesText": "Protected, Featured.", + "flavor": "American football player (born 1986)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q434024", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 94, + "pctDepth": 97, + "pctReach": 58, + "fame": 83, + "magnitude": 3 + }, + "description": "American football player (born 1986)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001774450", + "pageId": 24593488, + "revisionId": 1379665199, + "title": "Žižki", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Place in Prekmurje, Slovenia", + "connect": { + "countries": [ + "Slovenia" + ], + "centuries": [], + "links": [], + "p31": [ + "Q486972" + ], + "qid": "Q280193", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 21, + "pctDepth": 38, + "pctReach": 84, + "fame": 48, + "magnitude": 2 + }, + "description": "Place in Prekmurje, Slovenia" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003115e59", + "pageId": 51469913, + "revisionId": 1364729120, + "title": "Beaconsfield Station Sheep Wash", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Historic site in Queensland, Australia", + "connect": { + "countries": [ + "Australia" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1081138" + ], + "qid": "Q28035337", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 9, + "pctDepth": 73, + "pctReach": 8, + "fame": 30, + "magnitude": 1 + }, + "description": "Historic site in Queensland, Australia" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000032f1880", + "pageId": 53418112, + "revisionId": 1383301063, + "title": "2012 United States presidential straw poll in Guam", + "type": "Event", + "subtype": "election", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "createToken", + "amount": 2, + "token": { + "name": "Elected Member", + "power": 1, + "toughness": 1, + "portal": "Society" + }, + "template": "T5" + } + ], + "rulesText": "Create two 1/1 Society Figure tokens named Elected Member.", + "flavor": "", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q858439" + ], + "qid": "Q29097654", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 64, + "pctDepth": 59, + "pctReach": 8, + "fame": 44, + "magnitude": 2 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000033fcb23", + "pageId": 54512419, + "revisionId": 1282834290, + "title": "Elephant Square", + "type": "Location", + "subtype": null, + "portal": "Science", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q174782", + "Q1788454" + ], + "qid": "Q39046311", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 64, + "pctDepth": 17, + "pctReach": 23, + "fame": 35, + "magnitude": 1 + } + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000387d360", + "pageId": 59233120, + "revisionId": 1316504057, + "title": "Maryland Independent", + "type": "Institution", + "subtype": "work", + "portal": "Neutral", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "Semi-weekly newspaper published in Waldorf, Maryland, US", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q11032" + ], + "qid": "Q55667255", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 31, + "pctDepth": 54, + "pctReach": 8, + "fame": 31, + "magnitude": 1 + }, + "description": "Semi-weekly newspaper published in Waldorf, Maryland, US" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004a88b48", + "pageId": 78154568, + "revisionId": 1384643280, + "title": "Lithodes mamillifer", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of king crab", + "connect": { + "countries": [ + "India" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q13768243", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 9, + "pctDepth": 4, + "pctReach": 23, + "fame": 12, + "magnitude": 1 + }, + "description": "Species of king crab" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000002061e", + "pageId": 132638, + "revisionId": 1375881246, + "title": "Perry Township, Greene County, Pennsylvania", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Township in Pennsylvania, US", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q9035798" + ], + "qid": "Q5809786", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 42, + "pctDepth": 59, + "pctReach": 63, + "fame": 55, + "magnitude": 2 + }, + "description": "Township in Pennsylvania, US" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000000d1815", + "pageId": 858133, + "revisionId": 1261572264, + "title": "Ashley (automobile)", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "British manufacturers of car body shells & chassis for specials (1955-1962)", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q786820" + ], + "qid": "Q725930", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 66, + "pctDepth": 54, + "pctReach": 36, + "fame": 52, + "magnitude": 2 + }, + "description": "British manufacturers of car body shells & chassis for specials (1955-1962)" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000010c9c6d", + "pageId": 17603693, + "revisionId": 1339376467, + "title": "Bad Little Angel", + "type": "Institution", + "subtype": "work", + "portal": "Arts", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "1939 film by Wilhelm Thiele", + "connect": { + "countries": [ + "United Kingdom", + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q11424" + ], + "qid": "Q2483475", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 66, + "pctDepth": 23, + "pctReach": 36, + "fame": 42, + "magnitude": 2 + }, + "description": "1939 film by Wilhelm Thiele" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000015e910f", + "pageId": 22974735, + "revisionId": 1374856654, + "title": "Christianity in the 5th century", + "type": "Event", + "subtype": "other", + "portal": "Neutral", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "draw", + "amount": 3, + "template": "T7" + } + ], + "rulesText": "Draw three cards.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [ + 5 + ], + "links": [], + "p31": [ + "Q18340514" + ], + "qid": "Q5110603", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 79, + "pctDepth": 94, + "pctReach": 36, + "fame": 70, + "magnitude": 3 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000018c3734", + "pageId": 25966388, + "revisionId": 1329232874, + "title": "Phacelia quickii", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of plant", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q7179927", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 3, + "pctDepth": 11, + "pctReach": 47, + "fame": 20, + "magnitude": 1 + }, + "description": "Species of plant" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002217317", + "pageId": 35746583, + "revisionId": 1346095921, + "title": "Barbajada", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 2, + "toughness": 2, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +2/+2.", + "flavor": "Italian chocolate coffee drink", + "connect": { + "countries": [ + "Italy" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q3634571", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 74, + "pctDepth": 17, + "pctReach": 58, + "fame": 50, + "magnitude": 2 + }, + "description": "Italian chocolate coffee drink" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000023d5c96", + "pageId": 37575830, + "revisionId": 1385253370, + "title": "Özkan Yıldırım", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 2, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "German footballer", + "connect": { + "countries": [ + "Germany", + "Turkey" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q1152151", + "cites": [] + }, + "rarity": "Legendary", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 24, + "pctDepth": 54, + "pctReach": 74, + "fame": 51, + "magnitude": 2 + }, + "description": "German footballer" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003d66226", + "pageId": 64381478, + "revisionId": 1381097840, + "title": "Denis Zabolotin", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 1, + "power": 1, + "toughness": 1, + "territory": 0, + "keywords": [ + "Protected", + "Stub" + ], + "effects": [], + "rulesText": "Protected, Stub.", + "flavor": "Russian handball player", + "connect": { + "countries": [ + "Russia" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q96644151", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 21, + "pctDepth": 14, + "pctReach": 36, + "fame": 24, + "magnitude": 1 + }, + "description": "Russian handball player" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003eadb6d", + "pageId": 65723245, + "revisionId": 1380335385, + "title": "Russell A. Sanborn", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 3, + "power": 2, + "toughness": 3, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "U.S. Marine major general", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q29852979", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 54, + "pctDepth": 73, + "pctReach": 23, + "fame": 50, + "magnitude": 2 + }, + "description": "U.S. Marine major general" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004e3418c", + "pageId": 82002316, + "revisionId": 1357961360, + "title": "Taupo Totara Timber Company", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "New Zealand timber and building supplies company", + "connect": { + "countries": [ + "New Zealand" + ], + "centuries": [], + "links": [], + "p31": [ + "Q783794" + ], + "qid": "Q138001385", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 90, + "pctReach": 8, + "fame": 47, + "magnitude": 2 + }, + "description": "New Zealand timber and building supplies company" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000129da3", + "pageId": 1220003, + "revisionId": 1381976644, + "title": "Robert Hawthorne", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 4, + "power": 3, + "toughness": 4, + "territory": 0, + "keywords": [ + "Legacy", + "Local" + ], + "effects": [], + "rulesText": "Legacy, Local.", + "flavor": "Recipient of the Victoria Cross", + "connect": { + "countries": [ + "India", + "Ireland", + "United Kingdom" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [], + "qid": "Q3681767", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 76, + "pctDepth": 77, + "pctReach": 8, + "fame": 54, + "magnitude": 2 + }, + "description": "Recipient of the Victoria Cross" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000134dd65", + "pageId": 20241765, + "revisionId": 1362148473, + "title": "Imre Szöllősi", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 1, + "toughness": 4, + "territory": 0, + "keywords": [ + "Legacy", + "Translated" + ], + "effects": [], + "rulesText": "Legacy, Translated.", + "flavor": "Hungarian canoeist (1941–2022)", + "connect": { + "countries": [ + "Hungary" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q6008352", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 11, + "pctDepth": 33, + "pctReach": 82, + "fame": 42, + "magnitude": 2 + }, + "description": "Hungarian canoeist (1941–2022)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000182777d", + "pageId": 25327485, + "revisionId": 1378155021, + "title": "Marc Fesneau", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 5, + "power": 5, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "French politician (born 1971)", + "connect": { + "countries": [ + "France" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q6755549", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 76, + "pctDepth": 68, + "pctReach": 63, + "fame": 69, + "magnitude": 3 + }, + "description": "French politician (born 1971)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000279e59b", + "pageId": 41543067, + "revisionId": 1381927878, + "title": "Arms and the Girl", + "type": "Institution", + "subtype": "work", + "portal": "Arts", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "1917 American silent film", + "connect": { + "countries": [ + "Belgium", + "United Kingdom", + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q11424" + ], + "qid": "Q16248487", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 47, + "pctDepth": 43, + "pctReach": 53, + "fame": 48, + "magnitude": 2 + }, + "description": "1917 American silent film" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000027f963c", + "pageId": 41915964, + "revisionId": 1308018675, + "title": "Taylor County Historical Society", + "type": "Institution", + "subtype": "organisation", + "portal": "History", + "cost": 1, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "Non-profit organization in Florida, US", + "connect": { + "countries": [], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q5774403" + ], + "qid": "Q16966311", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 14, + "pctDepth": 23, + "pctReach": 8, + "fame": 15, + "magnitude": 1 + }, + "description": "Non-profit organization in Florida, US" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000028399d2", + "pageId": 42179026, + "revisionId": 1373475086, + "title": "Dojikko", + "type": "Figure", + "subtype": null, + "portal": "Arts", + "cost": 4, + "power": 6, + "toughness": 2, + "territory": 0, + "keywords": [ + "Translated", + "Stub" + ], + "effects": [], + "rulesText": "Translated, Stub.", + "flavor": "Extremely clumsy female character in anime and manga", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q636497" + ], + "qid": "Q164896", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 83, + "pctDepth": 23, + "pctReach": 80, + "fame": 62, + "magnitude": 2 + }, + "description": "Extremely clumsy female character in anime and manga" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000033104b5", + "pageId": 53544117, + "revisionId": 1371197205, + "title": "Jünkerath station", + "type": "Location", + "subtype": null, + "portal": "Neutral", + "cost": 2, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Railway station in Jünkerath, Germany", + "connect": { + "countries": [ + "Germany" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q55488" + ], + "qid": "Q23924993", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 17, + "pctDepth": 77, + "pctReach": 23, + "fame": 39, + "magnitude": 2 + }, + "description": "Railway station in Jünkerath, Germany" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000391b393", + "pageId": 59880339, + "revisionId": 1382490836, + "title": "United Artists Releasing", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Film distribution successor to United Artists", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q783794" + ], + "qid": "Q119348733", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 93, + "pctDepth": 92, + "pctReach": 47, + "fame": 77, + "magnitude": 3 + }, + "description": "Film distribution successor to United Artists" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004a1ebca", + "pageId": 77720522, + "revisionId": 1380422871, + "title": "Hungarian Giant Pigeon", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 4, + "toughness": 2, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q15623573" + ], + "qid": "Q12815231", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 69, + "pctDepth": 33, + "pctReach": 47, + "fame": 50, + "magnitude": 2 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004da4001", + "pageId": 81412097, + "revisionId": 1380568254, + "title": "Iona Moir", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 5, + "power": 4, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "British track cyclist", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [], + "qid": "Q130078456", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 58, + "pctDepth": 64, + "pctReach": 67, + "fame": 63, + "magnitude": 3 + }, + "description": "British track cyclist" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000005057304", + "pageId": 84243204, + "revisionId": 1375287029, + "title": "Figueiredo (Guimarães)", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Extinct parish in Guimarães, Portugal", + "connect": { + "countries": [ + "Portugal" + ], + "centuries": [], + "links": [], + "p31": [ + "Q56046844" + ], + "qid": "Q1023176", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 1, + "pctDepth": 33, + "pctReach": 78, + "fame": 37, + "magnitude": 1 + }, + "description": "Extinct parish in Guimarães, Portugal" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000000155c7", + "pageId": 87495, + "revisionId": 1375332586, + "title": "Kusilvak Census Area, Alaska", + "type": "Location", + "subtype": null, + "portal": "Neutral", + "cost": 3, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Census area in Alaska, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [ + "Q56064719" + ], + "qid": "Q379474", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 85, + "pctDepth": 86, + "pctReach": 93, + "fame": 88, + "magnitude": 3 + }, + "description": "Census area in Alaska, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000365525", + "pageId": 3560741, + "revisionId": 1372647813, + "title": "Martin Taylor (businessman)", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 4, + "toughness": 3, + "territory": 0, + "keywords": [ + "Protected", + "Stub" + ], + "effects": [], + "rulesText": "Protected, Stub.", + "flavor": "British businessman (born 1952)", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q6776725", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 74, + "pctDepth": 48, + "pctReach": 47, + "fame": 56, + "magnitude": 2 + }, + "description": "British businessman (born 1952)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000051e94e", + "pageId": 5368142, + "revisionId": 1385081865, + "title": "Brass Mill Center", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Shopping mall in Connecticut, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q11315" + ], + "qid": "Q4957871", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 76, + "pctDepth": 59, + "pctReach": 8, + "fame": 48, + "magnitude": 2 + }, + "description": "Shopping mall in Connecticut, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001e1c7a2", + "pageId": 31573922, + "revisionId": 1364585710, + "title": "Vincenza Sicari", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 2, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Italian long-distance runner (born 1979)", + "connect": { + "countries": [ + "Italy" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q2526833", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 21, + "pctDepth": 73, + "pctReach": 58, + "fame": 51, + "magnitude": 2 + }, + "description": "Italian long-distance runner (born 1979)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000211993c", + "pageId": 34707772, + "revisionId": 1376437554, + "title": "Arnold I of Egmond", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 2, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Legacy", + "Stub" + ], + "effects": [], + "rulesText": "Legacy, Stub.", + "flavor": "", + "connect": { + "countries": [ + "Netherlands" + ], + "centuries": [ + 14, + 15 + ], + "links": [], + "p31": [], + "qid": "Q1920891", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 35, + "pctDepth": 23, + "pctReach": 53, + "fame": 37, + "magnitude": 1 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000031e8b4a", + "pageId": 52333386, + "revisionId": 1373477524, + "title": "Lewis and Elizabeth Bolton House", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Historic house in Missouri, United States", + "connect": { + "countries": [ + "Greece", + "United States" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q1307276" + ], + "qid": "Q28007838", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 24, + "pctDepth": 11, + "pctReach": 8, + "fame": 14, + "magnitude": 1 + }, + "description": "Historic house in Missouri, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000347e0d", + "pageId": 3440141, + "revisionId": 1384669473, + "title": "Belgium at the 1948 Summer Olympics", + "type": "Event", + "subtype": "other", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "draw", + "amount": 2, + "template": "T7" + } + ], + "rulesText": "Draw two cards.", + "flavor": "Sporting event delegation", + "connect": { + "countries": [ + "Belgium" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q26213387" + ], + "qid": "Q592430", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 24, + "pctDepth": 64, + "pctReach": 85, + "fame": 58, + "magnitude": 2 + }, + "description": "Sporting event delegation" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000042c0a6", + "pageId": 4374694, + "revisionId": 1384632958, + "title": "National Register of Historic Places listings in Yates County, New York", + "type": "Doctrine", + "subtype": "mathematics", + "portal": "Earth", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 2, + "toughness": 2, + "grant": [ + "Well-sourced" + ], + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +2/+2 and has Well-sourced.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q13406463" + ], + "qid": "Q6977936", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 31, + "pctDepth": 89, + "pctReach": 23, + "fame": 48, + "magnitude": 2 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000e62c56", + "pageId": 15084630, + "revisionId": 1340554441, + "title": "Uremic frost", + "type": "Doctrine", + "subtype": "pathology", + "portal": "Science", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "figure", + "template": "T12" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": -2, + "toughness": -2, + "template": "T12" + } + ], + "rulesText": "Attach to target Figure. It gets −2/−2.", + "flavor": "Crystallized urea deposits on skin", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q1441305" + ], + "qid": "Q18395101", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 86, + "pctDepth": 23, + "pctReach": 36, + "fame": 48, + "magnitude": 2 + }, + "description": "Crystallized urea deposits on skin" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000f4bc30", + "pageId": 16038960, + "revisionId": 1381994388, + "title": "La Chapelle-Palluau", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Commune in Pays de la Loire, France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q484170" + ], + "qid": "Q675088", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 0, + "pctDepth": 7, + "pctReach": 95, + "fame": 34, + "magnitude": 1 + }, + "description": "Commune in Pays de la Loire, France" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001334c0c", + "pageId": 20139020, + "revisionId": 1307118821, + "title": "Samuel Yeatman", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 1, + "power": 1, + "toughness": 1, + "territory": 0, + "keywords": [ + "Legacy", + "Stub" + ], + "effects": [], + "rulesText": "Legacy, Stub.", + "flavor": "American baseball player (1839–1901)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q4911449", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 1, + "pctDepth": 14, + "pctReach": 23, + "fame": 13, + "magnitude": 1 + }, + "description": "American baseball player (1839–1901)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001b5f940", + "pageId": 28703040, + "revisionId": 1366016093, + "title": "Suðurey", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Island in Iceland", + "connect": { + "countries": [ + "Iceland" + ], + "centuries": [], + "links": [], + "p31": [ + "Q23442" + ], + "qid": "Q3115506", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 0, + "pctReach": 67, + "fame": 36, + "magnitude": 1 + }, + "description": "Island in Iceland" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002aa485f", + "pageId": 44714079, + "revisionId": 1364832308, + "title": "Île-de-France tramway Line 6", + "type": "Institution", + "subtype": "other", + "portal": "Neutral", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 0, + "condition": { + "maxPower": 2 + }, + "template": "T10" + } + ], + "rulesText": "Figures you control with power 2 or less get +1/+0.", + "flavor": "Suburban tram line in Hauts-de-Seine and Yvelines, southwest of Paris", + "connect": { + "countries": [ + "France" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q15145593", + "Q385653" + ], + "qid": "Q3238993", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 69, + "pctDepth": 28, + "pctReach": 74, + "fame": 57, + "magnitude": 2 + }, + "description": "Suburban tram line in Hauts-de-Seine and Yvelines, southwest of Paris" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000004d774c", + "pageId": 5076812, + "revisionId": 1373793952, + "title": "Free-Stater (Kansas)", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Anti-Slavery organization", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [ + "Q15911314" + ], + "qid": "Q5499603", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 83, + "pctDepth": 48, + "pctReach": 23, + "fame": 51, + "magnitude": 2 + }, + "description": "Anti-Slavery organization" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000008223bb", + "pageId": 8528827, + "revisionId": 1379603420, + "title": "Llandarcy Oil Refinery", + "type": "Location", + "subtype": null, + "portal": "Science", + "cost": 2, + "power": 0, + "toughness": 4, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/4.", + "flavor": "Former oil refinery in Neath Port Talbot, Wales", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [ + "Q12353044" + ], + "qid": "Q27957412", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 71, + "pctDepth": 77, + "pctReach": 8, + "fame": 52, + "magnitude": 2 + }, + "description": "Former oil refinery in Neath Port Talbot, Wales" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000ea3205", + "pageId": 15348229, + "revisionId": 1367445085, + "title": "Diocese of Mindelo", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "Roman Catholic diocese in Cape Verde", + "connect": { + "countries": [], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q2665272", + "Q3146899" + ], + "qid": "Q872428", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 17, + "pctDepth": 17, + "pctReach": 81, + "fame": 38, + "magnitude": 1 + }, + "description": "Roman Catholic diocese in Cape Verde" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000edde01", + "pageId": 15588865, + "revisionId": 1381802984, + "title": "Bonnevaux-le-Prieuré", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Part of Ornans in Bourgogne-Franche-Comté, France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q21869758", + "Q484170" + ], + "qid": "Q837744", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 6, + "pctDepth": 4, + "pctReach": 91, + "fame": 34, + "magnitude": 1 + }, + "description": "Part of Ornans in Bourgogne-Franche-Comté, France" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000010609ef", + "pageId": 17172975, + "revisionId": 1378041962, + "title": "Bukama", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Place in Haut-Lomami, Democratic Republic of the Congo", + "connect": { + "countries": [ + "Congo" + ], + "centuries": [], + "links": [], + "p31": [ + "Q515" + ], + "qid": "Q2915071", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 64, + "pctDepth": 54, + "pctReach": 84, + "fame": 67, + "magnitude": 3 + }, + "description": "Place in Haut-Lomami, Democratic Republic of the Congo" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001639bbc", + "pageId": 23305148, + "revisionId": 1377045846, + "title": "Agios Isidoros, Cyprus", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Place in Paphos District, Cyprus", + "connect": { + "countries": [ + "Cyprus" + ], + "centuries": [], + "links": [], + "p31": [ + "Q29414133" + ], + "qid": "Q4831291", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 11, + "pctDepth": 28, + "pctReach": 74, + "fame": 38, + "magnitude": 1 + }, + "description": "Place in Paphos District, Cyprus" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000025124c9", + "pageId": 38872265, + "revisionId": 1370478726, + "title": "Ethel Post-Parrish", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 2, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Legacy", + "Stub" + ], + "effects": [], + "rulesText": "Legacy, Stub.", + "flavor": "American Spiritualist medium (died 1960)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q15999505", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 47, + "pctDepth": 23, + "pctReach": 8, + "fame": 26, + "magnitude": 1 + }, + "description": "American Spiritualist medium (died 1960)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003c6d80f", + "pageId": 63363087, + "revisionId": 1385804220, + "title": "Keyontae Johnson", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 6, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Protected", + "Featured" + ], + "effects": [], + "rulesText": "Protected, Featured.", + "flavor": "American basketball player (born 2000)", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q88963854", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 90, + "pctDepth": 86, + "pctReach": 63, + "fame": 80, + "magnitude": 3 + }, + "description": "American basketball player (born 2000)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004606820", + "pageId": 73426976, + "revisionId": 1379304890, + "title": "Viniče", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Village in Skopje, North Macedonia", + "connect": { + "countries": [ + "North Macedonia" + ], + "centuries": [], + "links": [], + "p31": [ + "Q532" + ], + "qid": "Q3560281", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 6, + "pctDepth": 43, + "pctReach": 53, + "fame": 34, + "magnitude": 1 + }, + "description": "Village in Skopje, North Macedonia" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000000e1834", + "pageId": 923700, + "revisionId": 1382030380, + "title": "Sainte-Foy-lès-Lyon", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Commune in Auvergne-Rhône-Alpes, France", + "connect": { + "countries": [ + "France" + ], + "centuries": [], + "links": [], + "p31": [ + "Q484170" + ], + "qid": "Q387460", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 71, + "pctDepth": 38, + "pctReach": 97, + "fame": 69, + "magnitude": 3 + }, + "description": "Commune in Auvergne-Rhône-Alpes, France" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000003487d1", + "pageId": 3442641, + "revisionId": 1372311773, + "title": "Tidewater Provincial Park", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Provincial park in Ontario, Canada", + "connect": { + "countries": [ + "Canada" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q2006279" + ], + "qid": "Q7800881", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 42, + "pctDepth": 23, + "pctReach": 36, + "fame": 34, + "magnitude": 1 + }, + "description": "Provincial park in Ontario, Canada" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000004563e8", + "pageId": 4547560, + "revisionId": 1333227991, + "title": "Tracheal collapse", + "type": "Doctrine", + "subtype": "pathology", + "portal": "Science", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "figure", + "template": "T12" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": -2, + "toughness": -2, + "template": "T12" + } + ], + "rulesText": "Attach to target Figure. It gets −2/−2.", + "flavor": "Flattening of the trachea in animals", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q140427225" + ], + "qid": "Q2447482", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 81, + "pctDepth": 38, + "pctReach": 53, + "fame": 57, + "magnitude": 2 + }, + "description": "Flattening of the trachea in animals" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000d2549d", + "pageId": 13784221, + "revisionId": 1362220356, + "title": "Ellenborough Falls", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Waterfall on the Ellenborough River in New South Wales, Australia", + "connect": { + "countries": [ + "Australia", + "United Kingdom" + ], + "centuries": [], + "links": [], + "p31": [ + "Q34038" + ], + "qid": "Q3652636", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 64, + "pctDepth": 17, + "pctReach": 63, + "fame": 48, + "magnitude": 2 + }, + "description": "Waterfall on the Ellenborough River in New South Wales, Australia" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001fe7b62", + "pageId": 33454946, + "revisionId": 1270324661, + "title": "Tydeus Painter", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Ancient Greek vase painter", + "connect": { + "countries": [ + "Greece" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1747829" + ], + "qid": "Q2462577", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 14, + "pctDepth": 7, + "pctReach": 47, + "fame": 23, + "magnitude": 1 + }, + "description": "Ancient Greek vase painter" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002b548f0", + "pageId": 45435120, + "revisionId": 1384697951, + "title": "Yemọja", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 6, + "power": 6, + "toughness": 5, + "territory": 0, + "keywords": [ + "Featured", + "Translated" + ], + "effects": [], + "rulesText": "Featured, Translated.", + "flavor": "Major water Orisha in the Yoruba religion", + "connect": { + "countries": [ + "Brazil" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1916821", + "Q290460", + "Q752920" + ], + "qid": "Q1477162", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 96, + "pctDepth": 86, + "pctReach": 89, + "fame": 90, + "magnitude": 3 + }, + "description": "Major water Orisha in the Yoruba religion" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000047e7091", + "pageId": 75395217, + "revisionId": 1378415983, + "title": "Hetifah Sjaifudian", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 3, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Indonesian activist and politician", + "connect": { + "countries": [ + "Indonesia", + "Singapore" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q96988706", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 47, + "pctDepth": 77, + "pctReach": 36, + "fame": 53, + "magnitude": 2 + }, + "description": "Indonesian activist and politician" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000002f764e", + "pageId": 3110478, + "revisionId": 1376600347, + "title": "Laukhella", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Village in Senja Municipality, Norway", + "connect": { + "countries": [ + "Norway" + ], + "centuries": [], + "links": [], + "p31": [ + "Q486972" + ], + "qid": "Q3218620", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 11, + "pctDepth": 23, + "pctReach": 53, + "fame": 29, + "magnitude": 1 + }, + "description": "Village in Senja Municipality, Norway" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000768587", + "pageId": 7767431, + "revisionId": 1313900503, + "title": "Bufo stuarti", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of amphibian", + "connect": { + "countries": [ + "India" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q28032720", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 2, + "pctDepth": 0, + "pctReach": 74, + "fame": 25, + "magnitude": 1 + }, + "description": "Species of amphibian" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000e314ca", + "pageId": 14881994, + "revisionId": 1377922091, + "title": "OR56B4", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Science", + "cost": 1, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 1, + "toughness": 1, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +1/+1.", + "flavor": "Protein-coding gene in the species Homo sapiens", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q7187" + ], + "qid": "Q18053061", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 11, + "pctDepth": 7, + "pctReach": 58, + "fame": 25, + "magnitude": 1 + }, + "description": "Protein-coding gene in the species Homo sapiens" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001e25f63", + "pageId": 31612771, + "revisionId": 1364804505, + "title": "David Cullinane", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 4, + "toughness": 3, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Irish politician (born 1974)", + "connect": { + "countries": [ + "Ireland" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q5232711", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 81, + "pctDepth": 68, + "pctReach": 36, + "fame": 62, + "magnitude": 2 + }, + "description": "Irish politician (born 1974)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002004071", + "pageId": 33570929, + "revisionId": 1374508115, + "title": "Grumbach (Werra)", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "River in Thuringia, Germany", + "connect": { + "countries": [ + "Germany" + ], + "centuries": [], + "links": [], + "p31": [ + "Q4022" + ], + "qid": "Q826448", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 2, + "pctDepth": 2, + "pctReach": 47, + "fame": 17, + "magnitude": 1 + }, + "description": "River in Thuringia, Germany" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002469bab", + "pageId": 38181803, + "revisionId": 1378220985, + "title": "Gábor Scheiring", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 3, + "power": 3, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Hungarian economist and politician", + "connect": { + "countries": [ + "Hungary" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q5625769", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 38, + "pctReach": 47, + "fame": 42, + "magnitude": 2 + }, + "description": "Hungarian economist and politician" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000030834b6", + "pageId": 50869430, + "revisionId": 1359436538, + "title": "Felt, Not Heard", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 1, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q1589009" + ], + "qid": "Q24885448", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 11, + "pctDepth": 17, + "pctReach": 8, + "fame": 12, + "magnitude": 1 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000036b0861", + "pageId": 57346145, + "revisionId": 1352289182, + "title": "Madura perfida", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of true bug", + "connect": { + "countries": [], + "centuries": [ + 19 + ], + "links": [], + "p31": [], + "qid": "Q10575176", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 1, + "pctDepth": 7, + "pctReach": 47, + "fame": 18, + "magnitude": 1 + }, + "description": "Species of true bug" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000000c07c1", + "pageId": 788417, + "revisionId": 1385635902, + "title": "Efrat (Israeli settlement)", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Israeli settlement in the West Bank", + "connect": { + "countries": [ + "Israel" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q1288520", + "Q582706", + "Q618123" + ], + "qid": "Q64053", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 89, + "pctDepth": 86, + "pctReach": 86, + "fame": 87, + "magnitude": 3 + }, + "description": "Israeli settlement in the West Bank" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000314a5b", + "pageId": 3230299, + "revisionId": 1368444919, + "title": "St. George's Island, Bermuda", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "One of the principal islands of Bermuda", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q23442" + ], + "qid": "Q1813379", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 76, + "pctDepth": 43, + "pctReach": 74, + "fame": 64, + "magnitude": 3 + }, + "description": "One of the principal islands of Bermuda" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000006ec6df", + "pageId": 7259871, + "revisionId": 1356897889, + "title": "National Association of Television Program Executives", + "type": "Institution", + "subtype": "organisation", + "portal": "Arts", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [ + "Q163740" + ], + "qid": "Q6970789", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 58, + "pctDepth": 48, + "pctReach": 36, + "fame": 47, + "magnitude": 2 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000021aa8db", + "pageId": 35301595, + "revisionId": 1357984673, + "title": "Schläfli double six", + "type": "Doctrine", + "subtype": "mathematics", + "portal": "Science", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 2, + "toughness": 2, + "grant": [ + "Well-sourced" + ], + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +2/+2 and has Well-sourced.", + "flavor": "Arrangement of 30 points and 12 lines", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q24034552" + ], + "qid": "Q7431763", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 58, + "pctDepth": 54, + "pctReach": 36, + "fame": 49, + "magnitude": 2 + }, + "description": "Arrangement of 30 points and 12 lines" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000234c209", + "pageId": 37011977, + "revisionId": 1339741732, + "title": "San Michele Arcangelo, Naples", + "type": "Location", + "subtype": null, + "portal": "Society", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Church in Naples, Italy", + "connect": { + "countries": [ + "Italy" + ], + "centuries": [ + 17 + ], + "links": [], + "p31": [ + "Q16970" + ], + "qid": "Q718623", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 14, + "pctDepth": 7, + "pctReach": 67, + "fame": 29, + "magnitude": 1 + }, + "description": "Church in Naples, Italy" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000249a814", + "pageId": 38381588, + "revisionId": 1366241182, + "title": "A. R. Poduval", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 2, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Legacy", + "Local" + ], + "effects": [], + "rulesText": "Legacy, Local.", + "flavor": "Indian surgeon and artist", + "connect": { + "countries": [ + "Germany", + "India", + "United Kingdom" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q4648301", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 24, + "pctDepth": 59, + "pctReach": 8, + "fame": 30, + "magnitude": 1 + }, + "description": "Indian surgeon and artist" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002c76795", + "pageId": 46622613, + "revisionId": 1378272694, + "title": "Sarah Hoffman", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 5, + "power": 5, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Canadian politician (born 1980)", + "connect": { + "countries": [ + "Canada" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q19862161", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 80, + "pctDepth": 73, + "pctReach": 36, + "fame": 63, + "magnitude": 3 + }, + "description": "Canadian politician (born 1980)" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000048da231", + "pageId": 76390961, + "revisionId": 1385442003, + "title": "2024–2026 Cuban protests", + "type": "Event", + "subtype": "conflict", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "damage", + "target": "figureOrLocation", + "amount": 4, + "template": "T3" + } + ], + "rulesText": "Deal 4 damage to target Figure or Location.", + "flavor": "Protests against the Cuban government", + "connect": { + "countries": [ + "Cuba" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q273120" + ], + "qid": "Q125000393", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 82, + "pctDepth": 89, + "pctReach": 58, + "fame": 76, + "magnitude": 3 + }, + "description": "Protests against the Cuban government" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000070b485", + "pageId": 7386245, + "revisionId": 1385017105, + "title": "The Leslie Uggams Show", + "type": "Institution", + "subtype": "work", + "portal": "Arts", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "draw", + "amount": 1, + "template": "T9" + }, + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 1, + "condition": { + "connected": true + }, + "template": "T9" + } + ], + "rulesText": "When this enters, draw a card.\nFigures you control that are Connected to this get +1/+1.", + "flavor": "1969 American TV series or program", + "connect": { + "countries": [ + "United Kingdom", + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q5398426" + ], + "qid": "Q7746967", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 69, + "pctDepth": 59, + "pctReach": 8, + "fame": 45, + "magnitude": 2 + }, + "description": "1969 American TV series or program" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000be57a1", + "pageId": 12474273, + "revisionId": 1380009301, + "title": "Iphis monarch", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 4, + "toughness": 2, + "territory": 0, + "keywords": [ + "Translated", + "Stub" + ], + "effects": [], + "rulesText": "Translated, Stub.", + "flavor": "Species of bird", + "connect": { + "countries": [ + "France" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q692954", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 47, + "pctDepth": 17, + "pctReach": 87, + "fame": 50, + "magnitude": 2 + }, + "description": "Species of bird" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001289a8f", + "pageId": 19438223, + "revisionId": 1366832481, + "title": "Friedrich Kasimir Medikus", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 3, + "power": 4, + "toughness": 1, + "territory": 0, + "keywords": [ + "Legacy", + "Translated" + ], + "effects": [], + "rulesText": "Legacy, Translated.", + "flavor": "German physician and botanist", + "connect": { + "countries": [ + "Germany" + ], + "centuries": [ + 18, + 19 + ], + "links": [], + "p31": [], + "qid": "Q77464", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 0, + "pctReach": 89, + "fame": 44, + "magnitude": 2 + }, + "description": "German physician and botanist" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002636619", + "pageId": 40068633, + "revisionId": 1362680935, + "title": "Wahconah Falls State Park", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Massachusetts state park", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q37998360" + ], + "qid": "Q14715969", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 27, + "pctDepth": 28, + "pctReach": 23, + "fame": 26, + "magnitude": 1 + }, + "description": "Massachusetts state park" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004db234b", + "pageId": 81470283, + "revisionId": 1384453410, + "title": "Presidential Anti-Organized Crime Commission", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Government agency in the Philippines", + "connect": { + "countries": [ + "Philippines" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q327333" + ], + "qid": "Q136773957", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 71, + "pctDepth": 92, + "pctReach": 8, + "fame": 57, + "magnitude": 2 + }, + "description": "Government agency in the Philippines" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004f1c0b9", + "pageId": 82952377, + "revisionId": 1377598668, + "title": "Lichen community", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Earth", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 2, + "toughness": 2, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +2/+2.", + "flavor": "Recurring assemblage of lichen species and its classification in vegetation science", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q105442186", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 35, + "pctDepth": 95, + "pctReach": 8, + "fame": 46, + "magnitude": 2 + }, + "description": "Recurring assemblage of lichen species and its classification in vegetation science" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000017f942", + "pageId": 1571138, + "revisionId": 1367893707, + "title": "Ranks and insignia of the Nazi Party", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Society", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3.", + "flavor": "", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q13424724", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 96, + "pctDepth": 95, + "pctReach": 58, + "fame": 83, + "magnitude": 3 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001447617", + "pageId": 21263895, + "revisionId": 1377108521, + "title": "Przybędza", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Village in Silesian Voivodeship, Poland", + "connect": { + "countries": [ + "Poland" + ], + "centuries": [], + "links": [], + "p31": [ + "Q3558970" + ], + "qid": "Q7253590", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 2, + "pctDepth": 2, + "pctReach": 71, + "fame": 25, + "magnitude": 1 + }, + "description": "Village in Silesian Voivodeship, Poland" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001b2dc67", + "pageId": 28499047, + "revisionId": 1346615028, + "title": "Wu Songgao", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 2, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "", + "connect": { + "countries": [ + "China", + "Japan" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q5970557", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 31, + "pctDepth": 48, + "pctReach": 36, + "fame": 38, + "magnitude": 1 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001c3e576", + "pageId": 29615478, + "revisionId": 1359695857, + "title": "Rustan's", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "startOfTurn", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "condition": { + "maxTokens": 3 + }, + "template": "T8" + } + ], + "rulesText": "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member.", + "flavor": "Philippine department store chain", + "connect": { + "countries": [ + "Philippines" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q4830453" + ], + "qid": "Q7382454", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 85, + "pctDepth": 83, + "pctReach": 23, + "fame": 64, + "magnitude": 3 + }, + "description": "Philippine department store chain" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000025e3602", + "pageId": 39728642, + "revisionId": 1373482944, + "title": "Wilkeson Arch", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "United States historic place", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q2860026" + ], + "qid": "Q14713945", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 9, + "pctDepth": 28, + "pctReach": 8, + "fame": 15, + "magnitude": 1 + }, + "description": "United States historic place" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002b69213", + "pageId": 45519379, + "revisionId": 1290644518, + "title": "Maine State Route 144", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "State highway in Lincoln County, Maine, US", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q1788582" + ], + "qid": "Q19581200", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 6, + "pctDepth": 54, + "pctReach": 23, + "fame": 28, + "magnitude": 1 + }, + "description": "State highway in Lincoln County, Maine, US" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003105e51", + "pageId": 51404369, + "revisionId": 1320623670, + "title": "Luis María Kreckler", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 2, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "", + "connect": { + "countries": [ + "Argentina", + "Brazil", + "China", + "Germany" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q5983869", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 35, + "pctDepth": 43, + "pctReach": 23, + "fame": 34, + "magnitude": 1 + } + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000036c4579", + "pageId": 57427321, + "revisionId": 1372620649, + "title": "Corruption in Kazakhstan", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 3, + "toughness": 3, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +3/+3.", + "flavor": "", + "connect": { + "countries": [ + "Kazakhstan" + ], + "centuries": [], + "links": [], + "p31": [ + "Q74817647" + ], + "qid": "Q12981954", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 71, + "pctDepth": 68, + "pctReach": 67, + "fame": 69, + "magnitude": 3 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003924b7e", + "pageId": 59919230, + "revisionId": 1365794761, + "title": "Trey Rhodes", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 2, + "power": 2, + "toughness": 1, + "territory": 0, + "keywords": [ + "Protected", + "Stub" + ], + "effects": [], + "rulesText": "Protected, Stub.", + "flavor": "American politician", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q61685757", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 58, + "pctDepth": 14, + "pctReach": 8, + "fame": 27, + "magnitude": 1 + }, + "description": "American politician" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000508b134", + "pageId": 84455732, + "revisionId": 1379905236, + "title": "Streetsia challengeri", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 4, + "toughness": 2, + "territory": 0, + "keywords": [ + "Stub" + ], + "effects": [], + "rulesText": "Stub.", + "flavor": "Species of marine amphipod", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q4471202", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 50, + "pctDepth": 23, + "pctReach": 53, + "fame": 42, + "magnitude": 2 + }, + "description": "Species of marine amphipod" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000000c16a", + "pageId": 49514, + "revisionId": 1372005331, + "title": "Henri Lebesgue", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 6, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Featured", + "Legacy" + ], + "effects": [], + "rulesText": "Featured, Legacy.", + "flavor": "French mathematician (1875–1941)", + "connect": { + "countries": [ + "France" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q206005", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 90, + "pctDepth": 86, + "pctReach": 97, + "fame": 91, + "magnitude": 3 + }, + "description": "French mathematician (1875–1941)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000e13cb0", + "pageId": 14761136, + "revisionId": 1383624184, + "title": "RBMX", + "type": "Doctrine", + "subtype": "adopt", + "portal": "Science", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "attach", + "target": "ownFigure", + "template": "T11" + }, + { + "trigger": "static", + "op": "pump", + "target": "attached", + "power": 1, + "toughness": 1, + "template": "T11" + } + ], + "rulesText": "Attach to target Figure you control. It gets +1/+1.", + "flavor": "Protein-coding gene in humans", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q7187" + ], + "qid": "Q18038778", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 27, + "pctDepth": 64, + "pctReach": 23, + "fame": 38, + "magnitude": 1 + }, + "description": "Protein-coding gene in humans" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000044ec330", + "pageId": 72270640, + "revisionId": 1375465027, + "title": "Chaharbagh County", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "County in Alborz province, Iran", + "connect": { + "countries": [ + "Iran" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q137535" + ], + "qid": "Q107333581", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 38, + "pctDepth": 64, + "pctReach": 58, + "fame": 53, + "magnitude": 2 + }, + "description": "County in Alborz province, Iran" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000047b26e9", + "pageId": 75179753, + "revisionId": 1272327430, + "title": "2016 Queensland local elections", + "type": "Event", + "subtype": "election", + "portal": "Society", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "createToken", + "amount": 1, + "token": { + "name": "Elected Member", + "power": 1, + "toughness": 1, + "portal": "Society" + }, + "template": "T5" + } + ], + "rulesText": "Create a 1/1 Society Figure token named Elected Member.", + "flavor": "", + "connect": { + "countries": [ + "Australia" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q15966540" + ], + "qid": "Q115228225", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 21, + "pctDepth": 48, + "pctReach": 8, + "fame": 26, + "magnitude": 1 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004bbd0ce", + "pageId": 79417550, + "revisionId": 1377659696, + "title": "Region Östergötland", + "type": "Institution", + "subtype": "organisation", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "Regional council of Östergötland County, Sweden", + "connect": { + "countries": [ + "Sweden" + ], + "centuries": [], + "links": [], + "p31": [ + "Q1754161", + "Q65196511", + "Q85164347" + ], + "qid": "Q3231915", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 58, + "pctDepth": 38, + "pctReach": 47, + "fame": 48, + "magnitude": 2 + }, + "description": "Regional council of Östergötland County, Sweden" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000004fb7786", + "pageId": 83588998, + "revisionId": 1380888360, + "title": "Kamil Oniszczuk", + "type": "Figure", + "subtype": null, + "portal": "Society", + "cost": 4, + "power": 3, + "toughness": 4, + "territory": 0, + "keywords": [ + "Protected" + ], + "effects": [], + "rulesText": "Protected.", + "flavor": "Polish mixed martial artist (born 1996)", + "connect": { + "countries": [ + "Brazil", + "Poland" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [], + "qid": "Q97373278", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 54, + "pctDepth": 83, + "pctReach": 23, + "fame": 53, + "magnitude": 2 + }, + "description": "Polish mixed martial artist (born 1996)" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000001f064", + "pageId": 127076, + "revisionId": 1384097001, + "title": "Hillburn, New York", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 3, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Village in New York, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [ + "Q55237813", + "Q751708" + ], + "qid": "Q3452966", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 71, + "pctDepth": 68, + "pctReach": 87, + "fame": 75, + "magnitude": 3 + }, + "description": "Village in New York, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000042d2a", + "pageId": 273706, + "revisionId": 1385350039, + "title": "Pallas's cat", + "type": "Figure", + "subtype": null, + "portal": "Earth", + "cost": 6, + "power": 5, + "toughness": 5, + "territory": 0, + "keywords": [ + "Featured", + "Multilingual" + ], + "effects": [], + "rulesText": "Featured, Multilingual.", + "flavor": "Species of small wild cat", + "connect": { + "countries": [], + "centuries": [ + 18 + ], + "links": [], + "p31": [], + "qid": "Q166794", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 99, + "pctDepth": 97, + "pctReach": 99, + "fame": 98, + "magnitude": 3 + }, + "description": "Species of small wild cat" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001a702c7", + "pageId": 27722439, + "revisionId": 1368237133, + "title": "Cannon (band)", + "type": "Institution", + "subtype": "organisation", + "portal": "Arts", + "cost": 2, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "Scottish post-rock band", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 20, + 21 + ], + "links": [], + "p31": [ + "Q215380" + ], + "qid": "Q5032746", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 58, + "pctDepth": 43, + "pctReach": 8, + "fame": 36, + "magnitude": 1 + }, + "description": "Scottish post-rock band" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000003c754", + "pageId": 247636, + "revisionId": 1380730000, + "title": "Canadian Grand Prix", + "type": "Event", + "subtype": "sport", + "portal": "Society", + "cost": 6, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "pump", + "target": "ownFigure", + "power": 3, + "toughness": 0, + "duration": "turn", + "template": "T6" + }, + { + "trigger": "onPlay", + "op": "fight", + "target": "opponentFigure", + "template": "T6" + } + ], + "rulesText": "Target Figure you control gets +3/+0 until end of turn, then it fights target Figure you don't control.", + "flavor": "Formula One Grand Prix", + "connect": { + "countries": [ + "Canada" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q108886259", + "Q18608583" + ], + "qid": "Q7965", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 96, + "pctDepth": 96, + "pctReach": 97, + "fame": 96, + "magnitude": 3 + }, + "description": "Formula One Grand Prix" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000577b42", + "pageId": 5733186, + "revisionId": 1359130364, + "title": "1969 NFL Championship Game", + "type": "Event", + "subtype": "sport", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "pump", + "target": "ownFigure", + "power": 3, + "toughness": 0, + "duration": "turn", + "template": "T6" + }, + { + "trigger": "onPlay", + "op": "fight", + "target": "opponentFigure", + "template": "T6" + } + ], + "rulesText": "Target Figure you control gets +3/+0 until end of turn, then it fights target Figure you don't control.", + "flavor": "", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q27020041" + ], + "qid": "Q4573604", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 91, + "pctDepth": 81, + "pctReach": 36, + "fame": 69, + "magnitude": 3 + } + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000197515f", + "pageId": 26693983, + "revisionId": 1379250957, + "title": "2008 World Sprint Speed Skating Championships", + "type": "Event", + "subtype": "sport", + "portal": "Society", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "pump", + "target": "ownFigure", + "power": 2, + "toughness": 0, + "duration": "turn", + "template": "T6" + }, + { + "trigger": "onPlay", + "op": "fight", + "target": "opponentFigure", + "template": "T6" + } + ], + "rulesText": "Target Figure you control gets +2/+0 until end of turn, then it fights target Figure you don't control.", + "flavor": "International speed skating competition", + "connect": { + "countries": [ + "Netherlands" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q114609228" + ], + "qid": "Q1320203", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 6, + "pctDepth": 77, + "pctReach": 71, + "fame": 51, + "magnitude": 2 + }, + "description": "International speed skating competition" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001b85b73", + "pageId": 28859251, + "revisionId": 1379439420, + "title": "Kõruse-Metsaküla", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "Village in Estonia", + "connect": { + "countries": [ + "Estonia" + ], + "centuries": [], + "links": [], + "p31": [ + "Q51049922" + ], + "qid": "Q3467661", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 6, + "pctDepth": 23, + "pctReach": 71, + "fame": 33, + "magnitude": 1 + }, + "description": "Village in Estonia" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001e7779d", + "pageId": 31946653, + "revisionId": 1321146397, + "title": "Cody Floatplane", + "type": "Institution", + "subtype": "other", + "portal": "Science", + "cost": 4, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "static", + "op": "pump", + "target": "ownFigures", + "power": 1, + "toughness": 0, + "condition": { + "maxPower": 2 + }, + "template": "T10" + } + ], + "rulesText": "Figures you control with power 2 or less get +1/+0.", + "flavor": "", + "connect": { + "countries": [ + "United Kingdom" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [], + "qid": "Q5140425", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "category", + "basis": { + "pctAttention": 52, + "pctDepth": 59, + "pctReach": 47, + "fame": 53, + "magnitude": 2 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000002475ba8", + "pageId": 38230952, + "revisionId": 1383786404, + "title": "John Allen Midgett Jr.", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 3, + "power": 2, + "toughness": 3, + "territory": 0, + "keywords": [ + "Legacy", + "Local" + ], + "effects": [], + "rulesText": "Legacy, Local.", + "flavor": "United States Coast Guardsman", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q6218773", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 50, + "pctDepth": 59, + "pctReach": 8, + "fame": 39, + "magnitude": 2 + }, + "description": "United States Coast Guardsman" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000026196e4", + "pageId": 39950052, + "revisionId": 1271494308, + "title": "Texas State Guard Commanding General's Individual Award", + "type": "Institution", + "subtype": "organisation", + "portal": "Neutral", + "cost": 1, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onEnter", + "op": "createToken", + "amount": 1, + "token": { + "name": "Staff Member", + "power": 1, + "toughness": 1, + "portal": "Neutral" + }, + "template": "T8" + } + ], + "rulesText": "When this enters, create a 1/1 Figure token named Staff Member.", + "flavor": "Military decoration", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q618779" + ], + "qid": "Q17108726", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 6, + "pctDepth": 38, + "pctReach": 8, + "fame": 17, + "magnitude": 1 + }, + "description": "Military decoration" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000292a898", + "pageId": 43165848, + "revisionId": 1380318087, + "title": "John Kane (Medal of Honor)", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 1, + "toughness": 2, + "territory": 0, + "keywords": [ + "Local" + ], + "effects": [], + "rulesText": "Local.", + "flavor": "Union Army soldier", + "connect": { + "countries": [ + "Ireland", + "United States" + ], + "centuries": [], + "links": [], + "p31": [], + "qid": "Q17479265", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 21, + "pctDepth": 23, + "pctReach": 8, + "fame": 17, + "magnitude": 1 + }, + "description": "Union Army soldier" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000046d99b5", + "pageId": 74291637, + "revisionId": 1380094218, + "title": "Pullman porter affair", + "type": "Event", + "subtype": "other", + "portal": "Society", + "cost": 3, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "draw", + "amount": 2, + "template": "T7" + } + ], + "rulesText": "Draw two cards.", + "flavor": "LGBT sex scandal in September 1940", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q2197458" + ], + "qid": "Q120123799", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 69, + "pctDepth": 73, + "pctReach": 8, + "fame": 50, + "magnitude": 2 + }, + "description": "LGBT sex scandal in September 1940" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000ca0a2e", + "pageId": 13240878, + "revisionId": 1373484295, + "title": "Lower Shavertown Bridge", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 0, + "toughness": 1, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/1.", + "flavor": "United States historic place", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q1825472", + "Q537127" + ], + "qid": "Q6693791", + "cites": [] + }, + "rarity": "Epic", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 17, + "pctDepth": 17, + "pctReach": 8, + "fame": 14, + "magnitude": 1 + }, + "description": "United States historic place" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000001283431", + "pageId": 19412017, + "revisionId": 1385718836, + "title": "Andouin Aubert", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 4, + "power": 2, + "toughness": 5, + "territory": 0, + "keywords": [ + "Legacy" + ], + "effects": [], + "rulesText": "Legacy.", + "flavor": "French jurist, bishop and Cardinal", + "connect": { + "countries": [ + "France" + ], + "centuries": [ + 14 + ], + "links": [], + "p31": [], + "qid": "Q1351294", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 38, + "pctDepth": 77, + "pctReach": 71, + "fame": 62, + "magnitude": 2 + }, + "description": "French jurist, bishop and Cardinal" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000017a1788", + "pageId": 24778632, + "revisionId": 1373615936, + "title": "Storck Barracks", + "type": "Location", + "subtype": null, + "portal": "Neutral", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "US Army facility in Illesheim, Germany", + "connect": { + "countries": [ + "Germany", + "United States" + ], + "centuries": [ + 20 + ], + "links": [], + "p31": [ + "Q245016" + ], + "qid": "Q108337154", + "cites": [] + }, + "rarity": "Rare", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 76, + "pctDepth": 73, + "pctReach": 8, + "fame": 52, + "magnitude": 2 + }, + "description": "US Army facility in Illesheim, Germany" + }, + { + "cardId": "000000000000000000000000000000000000000000000000000000000252776f", + "pageId": 38958959, + "revisionId": 1364996502, + "title": "Genoese Batteries", + "type": "Location", + "subtype": null, + "portal": "Science", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Artillery batteries in Gibraltar", + "connect": { + "countries": [], + "centuries": [], + "links": [], + "p31": [ + "Q56344492" + ], + "qid": "Q16838634", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 9, + "pctDepth": 28, + "pctReach": 8, + "fame": 15, + "magnitude": 1 + }, + "description": "Artillery batteries in Gibraltar" + }, + { + "cardId": "00000000000000000000000000000000000000000000000000000000028e29f5", + "pageId": 42871285, + "revisionId": 1371391529, + "title": "Yente Serdatzky", + "type": "Figure", + "subtype": null, + "portal": "History", + "cost": 4, + "power": 2, + "toughness": 4, + "territory": 0, + "keywords": [ + "Legacy", + "Well-sourced" + ], + "effects": [], + "rulesText": "Legacy, Well-sourced.", + "flavor": "Russian-born American Yiddish-language writer (1877–1962)", + "connect": { + "countries": [ + "Russia", + "United States" + ], + "centuries": [ + 19, + 20 + ], + "links": [], + "p31": [], + "qid": "Q17018388", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "qid", + "basis": { + "pctAttention": 42, + "pctDepth": 89, + "pctReach": 23, + "fame": 51, + "magnitude": 2 + }, + "description": "Russian-born American Yiddish-language writer (1877–1962)" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003bf2818", + "pageId": 62859288, + "revisionId": 1373475244, + "title": "Waterman Place-Kingsbury Place-Washington Terrace Historic District", + "type": "Location", + "subtype": null, + "portal": "History", + "cost": 1, + "power": 0, + "toughness": 2, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/2.", + "flavor": "Historic district in Missouri, United States", + "connect": { + "countries": [ + "United States" + ], + "centuries": [], + "links": [], + "p31": [ + "Q15243209" + ], + "qid": "Q85814627", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 31, + "pctDepth": 38, + "pctReach": 8, + "fame": 26, + "magnitude": 1 + }, + "description": "Historic district in Missouri, United States" + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000003f5c331", + "pageId": 66437937, + "revisionId": 1382576557, + "title": "2021 New Jersey General Assembly election", + "type": "Event", + "subtype": "election", + "portal": "Society", + "cost": 5, + "power": null, + "toughness": null, + "territory": 0, + "keywords": [], + "effects": [ + { + "trigger": "onPlay", + "op": "createToken", + "amount": 3, + "token": { + "name": "Elected Member", + "power": 1, + "toughness": 1, + "portal": "Society" + }, + "template": "T5" + } + ], + "rulesText": "Create three 1/1 Society Figure tokens named Elected Member.", + "flavor": "", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 21 + ], + "links": [], + "p31": [ + "Q2618461" + ], + "qid": "Q105319974", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 77, + "pctDepth": 99, + "pctReach": 23, + "fame": 66, + "magnitude": 3 + } + }, + { + "cardId": "0000000000000000000000000000000000000000000000000000000000020090", + "pageId": 131216, + "revisionId": 1378756902, + "title": "Madison Township, Armstrong County, Pennsylvania", + "type": "Location", + "subtype": null, + "portal": "Earth", + "cost": 2, + "power": 0, + "toughness": 3, + "territory": 1, + "keywords": [], + "effects": [], + "rulesText": "Territory.\nGarrison 0/3.", + "flavor": "Township in Pennsylvania, US", + "connect": { + "countries": [ + "United States" + ], + "centuries": [ + 19 + ], + "links": [], + "p31": [ + "Q9035798" + ], + "qid": "Q655024", + "cites": [] + }, + "rarity": "Common", + "deriveVersion": "duel-derive-1", + "typedBy": "p31", + "basis": { + "pctAttention": 35, + "pctDepth": 64, + "pctReach": 67, + "fame": 55, + "magnitude": 2 + }, + "description": "Township in Pennsylvania, US" + } + ] +} diff --git a/docs/game/starter-cards.json b/docs/game/starter-cards.json new file mode 100644 index 0000000..bbb63aa --- /dev/null +++ b/docs/game/starter-cards.json @@ -0,0 +1,1800 @@ +{ + "frozenAt": "2026-11-17", + "note": "cards[] is the loaner POOL: real frozen snapshots of random illustrated articles from card-sample.json (4 per legacy category where the sample has them; it has only 3 Science and 1 Space). It is used by the sim and by the deck builder to fill a slot with a loaner. The default starter decks are defined in DESIGN.md §2.1 with pinned cost/home/faction; starterDeckPageIds gives their real en.wikipedia pageIds (resolved 2026-11-16, no redirects), so copies can be counted per pageId.", + "cards": [ + { + "pageId": 4961906, + "title": "Chinese star maps", + "category": "Space", + "wikidataId": "Q16241158", + "revisionId": 1343697567, + "pageBytes": 27997, + "languageCount": 2, + "monthlyViews": 437, + "latestMonth": "2026-10", + "trendPercent": -13.6, + "stats": { + "attention": 44, + "depth": 74, + "reach": 16 + }, + "tiers": { + "attention": 9, + "depth": 10, + "reach": 5 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1343697567, + "pageBytes": 27997, + "languageCount": 2, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 515 + }, + { + "month": "2026-06", + "views": 399 + }, + { + "month": "2026-07", + "views": 487 + }, + { + "month": "2026-08", + "views": 476 + }, + { + "month": "2026-09", + "views": 506 + }, + { + "month": "2026-10", + "views": 437 + } + ], + "latestMonth": "2026-10", + "total": 2820, + "dailyAverage": 14.096774193548388, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 44, + "depth": 74, + "reach": 16 + } + } + }, + { + "pageId": 78154568, + "title": "Lithodes mamillifer", + "category": "Nature", + "wikidataId": "Q13768243", + "revisionId": 1384643280, + "pageBytes": 1515, + "languageCount": 1, + "monthlyViews": 15, + "latestMonth": "2026-10", + "trendPercent": -34.8, + "stats": { + "attention": 20, + "depth": 53, + "reach": 10 + }, + "tiers": { + "attention": 2, + "depth": 1, + "reach": 4 + }, + "faction": "Nature", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1384643280, + "pageBytes": 1515, + "languageCount": 1, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 25 + }, + { + "month": "2026-06", + "views": 23 + }, + { + "month": "2026-07", + "views": 24 + }, + { + "month": "2026-08", + "views": 24 + }, + { + "month": "2026-09", + "views": 23 + }, + { + "month": "2026-10", + "views": 15 + } + ], + "latestMonth": "2026-10", + "total": 134, + "dailyAverage": 0.4838709677419355, + "trendPercent": -34.78260869565217 + }, + "stats": { + "attention": 20, + "depth": 53, + "reach": 10 + } + } + }, + { + "pageId": 23256692, + "title": "Coelogyne trinervis", + "category": "Nature", + "wikidataId": "Q1601035", + "revisionId": 1176682009, + "pageBytes": 1580, + "languageCount": 7, + "monthlyViews": 24, + "latestMonth": "2026-10", + "trendPercent": -42.9, + "stats": { + "attention": 23, + "depth": 53, + "reach": 30 + }, + "tiers": { + "attention": 2, + "depth": 1, + "reach": 8 + }, + "faction": "Nature", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1176682009, + "pageBytes": 1580, + "languageCount": 7, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 30 + }, + { + "month": "2026-06", + "views": 18 + }, + { + "month": "2026-07", + "views": 27 + }, + { + "month": "2026-08", + "views": 36 + }, + { + "month": "2026-09", + "views": 42 + }, + { + "month": "2026-10", + "views": 24 + } + ], + "latestMonth": "2026-10", + "total": 177, + "dailyAverage": 0.7741935483870968, + "trendPercent": -42.857142857142854 + }, + "stats": { + "attention": 23, + "depth": 53, + "reach": 30 + } + } + }, + { + "pageId": 53418112, + "title": "2012 United States presidential straw poll in Guam", + "category": "Nature", + "wikidataId": "Q29097654", + "revisionId": 1383301063, + "pageBytes": 7644, + "languageCount": 0, + "monthlyViews": 173, + "latestMonth": "2026-10", + "trendPercent": 15.3, + "stats": { + "attention": 37, + "depth": 65, + "reach": 0 + }, + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "Events", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1383301063, + "pageBytes": 7644, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 204 + }, + { + "month": "2026-07", + "views": 194 + }, + { + "month": "2026-08", + "views": 225 + }, + { + "month": "2026-09", + "views": 150 + }, + { + "month": "2026-10", + "views": 173 + } + ], + "latestMonth": "2026-10", + "total": 1133, + "dailyAverage": 5.580645161290323, + "trendPercent": 15.333333333333332 + }, + "stats": { + "attention": 37, + "depth": 65, + "reach": 0 + } + } + }, + { + "pageId": 273706, + "title": "Pallas's cat", + "category": "Nature", + "wikidataId": "Q166794", + "revisionId": 1385350039, + "pageBytes": 64708, + "languageCount": 86, + "monthlyViews": 42025, + "latestMonth": "2026-10", + "trendPercent": -0.7, + "stats": { + "attention": 77, + "depth": 80, + "reach": 65 + }, + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Nature", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1385350039, + "pageBytes": 64708, + "languageCount": 86, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 41261 + }, + { + "month": "2026-06", + "views": 45076 + }, + { + "month": "2026-07", + "views": 41171 + }, + { + "month": "2026-08", + "views": 40789 + }, + { + "month": "2026-09", + "views": 42326 + }, + { + "month": "2026-10", + "views": 42025 + } + ], + "latestMonth": "2026-10", + "total": 252648, + "dailyAverage": 1355.6451612903227, + "trendPercent": -0.7111468128337193 + }, + "stats": { + "attention": 77, + "depth": 80, + "reach": 65 + } + } + }, + { + "pageId": 20139020, + "title": "Samuel Yeatman", + "category": "People", + "wikidataId": "Q4911449", + "revisionId": 1307118821, + "pageBytes": 2314, + "languageCount": 1, + "monthlyViews": 6, + "latestMonth": "2026-10", + "trendPercent": -25.0, + "stats": { + "attention": 14, + "depth": 56, + "reach": 10 + }, + "tiers": { + "attention": 1, + "depth": 2, + "reach": 4 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1307118821, + "pageBytes": 2314, + "languageCount": 1, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 11 + }, + { + "month": "2026-06", + "views": 11 + }, + { + "month": "2026-07", + "views": 4 + }, + { + "month": "2026-08", + "views": 7 + }, + { + "month": "2026-09", + "views": 8 + }, + { + "month": "2026-10", + "views": 6 + } + ], + "latestMonth": "2026-10", + "total": 47, + "dailyAverage": 0.1935483870967742, + "trendPercent": -25.0 + }, + "stats": { + "attention": 14, + "depth": 56, + "reach": 10 + } + } + }, + { + "pageId": 51796741, + "title": "Alex Piquero", + "category": "People", + "wikidataId": "Q27058048", + "revisionId": 1356084913, + "pageBytes": 7837, + "languageCount": 0, + "monthlyViews": 151, + "latestMonth": "2026-10", + "trendPercent": -51.0, + "stats": { + "attention": 36, + "depth": 65, + "reach": 0 + }, + "tiers": { + "attention": 7, + "depth": 7, + "reach": 2 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1356084913, + "pageBytes": 7837, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 239 + }, + { + "month": "2026-06", + "views": 152 + }, + { + "month": "2026-07", + "views": 150 + }, + { + "month": "2026-08", + "views": 154 + }, + { + "month": "2026-09", + "views": 308 + }, + { + "month": "2026-10", + "views": 151 + } + ], + "latestMonth": "2026-10", + "total": 1154, + "dailyAverage": 4.870967741935484, + "trendPercent": -50.97402597402597 + }, + "stats": { + "attention": 36, + "depth": 65, + "reach": 0 + } + } + }, + { + "pageId": 3560741, + "title": "Martin Taylor (businessman)", + "category": "People", + "wikidataId": "Q6776725", + "revisionId": 1372647813, + "pageBytes": 6171, + "languageCount": 3, + "monthlyViews": 269, + "latestMonth": "2026-10", + "trendPercent": 1.1, + "stats": { + "attention": 41, + "depth": 63, + "reach": 20 + }, + "tiers": { + "attention": 8, + "depth": 6, + "reach": 6 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1372647813, + "pageBytes": 6171, + "languageCount": 3, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 280 + }, + { + "month": "2026-06", + "views": 260 + }, + { + "month": "2026-07", + "views": 234 + }, + { + "month": "2026-08", + "views": 246 + }, + { + "month": "2026-09", + "views": 266 + }, + { + "month": "2026-10", + "views": 269 + } + ], + "latestMonth": "2026-10", + "total": 1555, + "dailyAverage": 8.67741935483871, + "trendPercent": 1.1278195488721803 + }, + "stats": { + "attention": 41, + "depth": 63, + "reach": 20 + } + } + }, + { + "pageId": 2806760, + "title": "Jess Harnell", + "category": "People", + "wikidataId": "Q258503", + "revisionId": 1385958400, + "pageBytes": 53307, + "languageCount": 22, + "monthlyViews": 14374, + "latestMonth": "2026-10", + "trendPercent": -2.8, + "stats": { + "attention": 69, + "depth": 79, + "reach": 45 + }, + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1385958400, + "pageBytes": 53307, + "languageCount": 22, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 13061 + }, + { + "month": "2026-06", + "views": 12627 + }, + { + "month": "2026-07", + "views": 14539 + }, + { + "month": "2026-08", + "views": 14585 + }, + { + "month": "2026-09", + "views": 14785 + }, + { + "month": "2026-10", + "views": 14374 + } + ], + "latestMonth": "2026-10", + "total": 83971, + "dailyAverage": 463.6774193548387, + "trendPercent": -2.77984443692932 + }, + "stats": { + "attention": 69, + "depth": 79, + "reach": 45 + } + } + }, + { + "pageId": 13799810, + "title": "Levophacetoperane", + "category": "Science", + "wikidataId": "Q6535818", + "revisionId": 1374230485, + "pageBytes": 4639, + "languageCount": 2, + "monthlyViews": 165, + "latestMonth": "2026-10", + "trendPercent": -1.8, + "stats": { + "attention": 37, + "depth": 61, + "reach": 16 + }, + "tiers": { + "attention": 7, + "depth": 5, + "reach": 5 + }, + "faction": "Ideas & Tech", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1374230485, + "pageBytes": 4639, + "languageCount": 2, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 193 + }, + { + "month": "2026-06", + "views": 170 + }, + { + "month": "2026-07", + "views": 166 + }, + { + "month": "2026-08", + "views": 185 + }, + { + "month": "2026-09", + "views": 168 + }, + { + "month": "2026-10", + "views": 165 + } + ], + "latestMonth": "2026-10", + "total": 1047, + "dailyAverage": 5.32258064516129, + "trendPercent": -1.7857142857142856 + }, + "stats": { + "attention": 37, + "depth": 61, + "reach": 16 + } + } + }, + { + "pageId": 36740675, + "title": "The Best of Men", + "category": "Science", + "wikidataId": "Q7717125", + "revisionId": 1372732350, + "pageBytes": 6002, + "languageCount": 4, + "monthlyViews": 476, + "latestMonth": "2026-10", + "trendPercent": -3.4, + "stats": { + "attention": 45, + "depth": 63, + "reach": 23 + }, + "tiers": { + "attention": 9, + "depth": 6, + "reach": 6 + }, + "faction": "Works", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1372732350, + "pageBytes": 6002, + "languageCount": 4, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 521 + }, + { + "month": "2026-06", + "views": 656 + }, + { + "month": "2026-07", + "views": 644 + }, + { + "month": "2026-08", + "views": 518 + }, + { + "month": "2026-09", + "views": 493 + }, + { + "month": "2026-10", + "views": 476 + } + ], + "latestMonth": "2026-10", + "total": 3308, + "dailyAverage": 15.35483870967742, + "trendPercent": -3.4482758620689653 + }, + "stats": { + "attention": 45, + "depth": 63, + "reach": 23 + } + } + }, + { + "pageId": 4426773, + "title": "Agda (programming language)", + "category": "Science", + "wikidataId": "Q20479", + "revisionId": 1384528612, + "pageBytes": 14254, + "languageCount": 11, + "monthlyViews": 2439, + "latestMonth": "2026-10", + "trendPercent": 7.8, + "stats": { + "attention": 56, + "depth": 69, + "reach": 36 + }, + "tiers": { + "attention": 10, + "depth": 9, + "reach": 9 + }, + "faction": "Ideas & Tech", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1384528612, + "pageBytes": 14254, + "languageCount": 11, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 2783 + }, + { + "month": "2026-06", + "views": 2318 + }, + { + "month": "2026-07", + "views": 2230 + }, + { + "month": "2026-08", + "views": 2257 + }, + { + "month": "2026-09", + "views": 2262 + }, + { + "month": "2026-10", + "views": 2439 + } + ], + "latestMonth": "2026-10", + "total": 14289, + "dailyAverage": 78.6774193548387, + "trendPercent": 7.824933687002653 + }, + "stats": { + "attention": 56, + "depth": 69, + "reach": 36 + } + } + }, + { + "pageId": 48469081, + "title": "Dr. John L. Butler House", + "category": "History", + "wikidataId": "Q24041379", + "revisionId": 1373109716, + "pageBytes": 2235, + "languageCount": 0, + "monthlyViews": 10, + "latestMonth": "2026-10", + "trendPercent": -23.1, + "stats": { + "attention": 17, + "depth": 56, + "reach": 0 + }, + "tiers": { + "attention": 1, + "depth": 2, + "reach": 2 + }, + "faction": "Structures", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1373109716, + "pageBytes": 2235, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 22 + }, + { + "month": "2026-06", + "views": 7 + }, + { + "month": "2026-07", + "views": 7 + }, + { + "month": "2026-08", + "views": 2 + }, + { + "month": "2026-09", + "views": 13 + }, + { + "month": "2026-10", + "views": 10 + } + ], + "latestMonth": "2026-10", + "total": 61, + "dailyAverage": 0.3225806451612903, + "trendPercent": -23.076923076923077 + }, + "stats": { + "attention": 17, + "depth": 56, + "reach": 0 + } + } + }, + { + "pageId": 33454946, + "title": "Tydeus Painter", + "category": "History", + "wikidataId": "Q2462577", + "revisionId": 1270324661, + "pageBytes": 1843, + "languageCount": 3, + "monthlyViews": 19, + "latestMonth": "2026-10", + "trendPercent": -13.6, + "stats": { + "attention": 22, + "depth": 54, + "reach": 20 + }, + "tiers": { + "attention": 2, + "depth": 2, + "reach": 6 + }, + "faction": "People", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1270324661, + "pageBytes": 1843, + "languageCount": 3, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 37 + }, + { + "month": "2026-06", + "views": 22 + }, + { + "month": "2026-07", + "views": 12 + }, + { + "month": "2026-08", + "views": 18 + }, + { + "month": "2026-09", + "views": 22 + }, + { + "month": "2026-10", + "views": 19 + } + ], + "latestMonth": "2026-10", + "total": 130, + "dailyAverage": 0.6129032258064516, + "trendPercent": -13.636363636363635 + }, + "stats": { + "attention": 22, + "depth": 54, + "reach": 20 + } + } + }, + { + "pageId": 74291637, + "title": "Pullman porter affair", + "category": "History", + "wikidataId": "Q120123799", + "revisionId": 1380094218, + "pageBytes": 11271, + "languageCount": 0, + "monthlyViews": 215, + "latestMonth": "2026-10", + "trendPercent": -10.4, + "stats": { + "attention": 39, + "depth": 68, + "reach": 0 + }, + "tiers": { + "attention": 8, + "depth": 8, + "reach": 2 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1380094218, + "pageBytes": 11271, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 187 + }, + { + "month": "2026-06", + "views": 181 + }, + { + "month": "2026-07", + "views": 175 + }, + { + "month": "2026-08", + "views": 254 + }, + { + "month": "2026-09", + "views": 240 + }, + { + "month": "2026-10", + "views": 215 + } + ], + "latestMonth": "2026-10", + "total": 1252, + "dailyAverage": 6.935483870967742, + "trendPercent": -10.416666666666668 + }, + "stats": { + "attention": 39, + "depth": 68, + "reach": 0 + } + } + }, + { + "pageId": 15105978, + "title": "Well", + "category": "History", + "wikidataId": "Q43483", + "revisionId": 1384889405, + "pageBytes": 49360, + "languageCount": 124, + "monthlyViews": 7247, + "latestMonth": "2026-10", + "trendPercent": -6.4, + "stats": { + "attention": 64, + "depth": 78, + "reach": 70 + }, + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1384889405, + "pageBytes": 49360, + "languageCount": 124, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 7066 + }, + { + "month": "2026-06", + "views": 6418 + }, + { + "month": "2026-07", + "views": 6817 + }, + { + "month": "2026-08", + "views": 6116 + }, + { + "month": "2026-09", + "views": 7739 + }, + { + "month": "2026-10", + "views": 7247 + } + ], + "latestMonth": "2026-10", + "total": 41403, + "dailyAverage": 233.7741935483871, + "trendPercent": -6.357410518154801 + }, + "stats": { + "attention": 64, + "depth": 78, + "reach": 70 + } + } + }, + { + "pageId": 50869430, + "title": "Felt, Not Heard", + "category": "Culture", + "wikidataId": "Q24885448", + "revisionId": 1359436538, + "pageBytes": 2555, + "languageCount": 0, + "monthlyViews": 18, + "latestMonth": "2026-10", + "trendPercent": -45.5, + "stats": { + "attention": 21, + "depth": 57, + "reach": 0 + }, + "tiers": { + "attention": 2, + "depth": 3, + "reach": 2 + }, + "faction": "Organisations", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1359436538, + "pageBytes": 2555, + "languageCount": 0, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 26 + }, + { + "month": "2026-06", + "views": 24 + }, + { + "month": "2026-07", + "views": 49 + }, + { + "month": "2026-08", + "views": 40 + }, + { + "month": "2026-09", + "views": 33 + }, + { + "month": "2026-10", + "views": 18 + } + ], + "latestMonth": "2026-10", + "total": 190, + "dailyAverage": 0.5806451612903226, + "trendPercent": -45.45454545454545 + }, + "stats": { + "attention": 21, + "depth": 57, + "reach": 0 + } + } + }, + { + "pageId": 14761136, + "title": "RBMX", + "category": "Culture", + "wikidataId": "Q18038778", + "revisionId": 1383624184, + "pageBytes": 8537, + "languageCount": 1, + "monthlyViews": 34, + "latestMonth": "2026-10", + "trendPercent": 21.4, + "stats": { + "attention": 26, + "depth": 66, + "reach": 10 + }, + "tiers": { + "attention": 3, + "depth": 7, + "reach": 4 + }, + "faction": "Ideas & Tech", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1383624184, + "pageBytes": 8537, + "languageCount": 1, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 46 + }, + { + "month": "2026-06", + "views": 40 + }, + { + "month": "2026-07", + "views": 60 + }, + { + "month": "2026-08", + "views": 54 + }, + { + "month": "2026-09", + "views": 28 + }, + { + "month": "2026-10", + "views": 34 + } + ], + "latestMonth": "2026-10", + "total": 262, + "dailyAverage": 1.096774193548387, + "trendPercent": 21.428571428571427 + }, + "stats": { + "attention": 26, + "depth": 66, + "reach": 10 + } + } + }, + { + "pageId": 31946653, + "title": "Cody Floatplane", + "category": "Culture", + "wikidataId": "Q5140425", + "revisionId": 1321146397, + "pageBytes": 8324, + "languageCount": 3, + "monthlyViews": 89, + "latestMonth": "2026-10", + "trendPercent": -11.0, + "stats": { + "attention": 33, + "depth": 65, + "reach": 20 + }, + "tiers": { + "attention": 6, + "depth": 7, + "reach": 6 + }, + "faction": "Other", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1321146397, + "pageBytes": 8324, + "languageCount": 3, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 105 + }, + { + "month": "2026-06", + "views": 77 + }, + { + "month": "2026-07", + "views": 87 + }, + { + "month": "2026-08", + "views": 107 + }, + { + "month": "2026-09", + "views": 100 + }, + { + "month": "2026-10", + "views": 89 + } + ], + "latestMonth": "2026-10", + "total": 565, + "dailyAverage": 2.870967741935484, + "trendPercent": -11.0 + }, + "stats": { + "attention": 33, + "depth": 65, + "reach": 20 + } + } + }, + { + "pageId": 247636, + "title": "Canadian Grand Prix", + "category": "Culture", + "wikidataId": "Q7965", + "revisionId": 1380730000, + "pageBytes": 56884, + "languageCount": 44, + "monthlyViews": 5339, + "latestMonth": "2026-10", + "trendPercent": 4.3, + "stats": { + "attention": 62, + "depth": 79, + "reach": 55 + }, + "tiers": { + "attention": 10, + "depth": 10, + "reach": 10 + }, + "faction": "Events", + "snapshot": { + "capturedAt": "2026-11-16T00:00:00+00:00", + "revisionId": 1380730000, + "pageBytes": 56884, + "languageCount": 44, + "languagesTruncated": false, + "pageviews": { + "status": "available", + "months": [ + { + "month": "2026-05", + "views": 62687 + }, + { + "month": "2026-06", + "views": 9468 + }, + { + "month": "2026-07", + "views": 5499 + }, + { + "month": "2026-08", + "views": 4783 + }, + { + "month": "2026-09", + "views": 5119 + }, + { + "month": "2026-10", + "views": 5339 + } + ], + "latestMonth": "2026-10", + "total": 92895, + "dailyAverage": 172.2258064516129, + "trendPercent": 4.297714397343231 + }, + "stats": { + "attention": 62, + "depth": 79, + "reach": 55 + } + } + } + ], + "starterDeckPageIds": [ + { + "deck": "Stargazers", + "cost": 1, + "title": "Moon", + "faction": "Space", + "home": "reach", + "pageId": 19331, + "cardId": "loaner:moon" + }, + { + "deck": "Stargazers", + "cost": 1, + "title": "Electron", + "faction": "Science", + "home": "depth", + "pageId": 9476, + "cardId": "loaner:electron" + }, + { + "deck": "Stargazers", + "cost": 2, + "title": "Mars", + "faction": "Space", + "home": "attention", + "pageId": 14640471, + "cardId": "loaner:mars" + }, + { + "deck": "Stargazers", + "cost": 2, + "title": "Periodic table", + "faction": "Science", + "home": "depth", + "pageId": 23053, + "cardId": "loaner:periodic-table" + }, + { + "deck": "Stargazers", + "cost": 3, + "title": "Saturn", + "faction": "Space", + "home": "reach", + "pageId": 44474, + "cardId": "loaner:saturn" + }, + { + "deck": "Stargazers", + "cost": 3, + "title": "Photosynthesis", + "faction": "Science", + "home": "attention", + "pageId": 24544, + "cardId": "loaner:photosynthesis" + }, + { + "deck": "Stargazers", + "cost": 3, + "title": "Black hole", + "faction": "Space", + "home": "depth", + "pageId": 4650, + "cardId": "loaner:black-hole" + }, + { + "deck": "Stargazers", + "cost": 4, + "title": "Quantum mechanics", + "faction": "Science", + "home": "reach", + "pageId": 25202, + "cardId": "loaner:quantum-mechanics" + }, + { + "deck": "Stargazers", + "cost": 4, + "title": "Milky Way", + "faction": "Space", + "home": "attention", + "pageId": 2589714, + "cardId": "loaner:milky-way" + }, + { + "deck": "Stargazers", + "cost": 5, + "title": "DNA", + "faction": "Science", + "home": "attention", + "pageId": 7955, + "cardId": "loaner:dna" + }, + { + "deck": "Stargazers", + "cost": 5, + "title": "Sun", + "faction": "Space", + "home": "reach", + "pageId": 26751, + "cardId": "loaner:sun" + }, + { + "deck": "Stargazers", + "cost": 6, + "title": "Theory of relativity", + "faction": "Science", + "home": "depth", + "pageId": 30001, + "cardId": "loaner:theory-of-relativity" + }, + { + "deck": "Field Guide", + "cost": 1, + "title": "Octopus", + "faction": "Nature", + "home": "depth", + "pageId": 22780, + "cardId": "loaner:octopus" + }, + { + "deck": "Field Guide", + "cost": 1, + "title": "Stonehenge", + "faction": "History", + "home": "attention", + "pageId": 27633, + "cardId": "loaner:stonehenge" + }, + { + "deck": "Field Guide", + "cost": 2, + "title": "Axolotl", + "faction": "Nature", + "home": "attention", + "pageId": 235589, + "cardId": "loaner:axolotl" + }, + { + "deck": "Field Guide", + "cost": 2, + "title": "Rosetta Stone", + "faction": "History", + "home": "reach", + "pageId": 26428, + "cardId": "loaner:rosetta-stone" + }, + { + "deck": "Field Guide", + "cost": 3, + "title": "Coral reef", + "faction": "Nature", + "home": "depth", + "pageId": 87410, + "cardId": "loaner:coral-reef" + }, + { + "deck": "Field Guide", + "cost": 3, + "title": "Roman Empire", + "faction": "History", + "home": "reach", + "pageId": 25507, + "cardId": "loaner:roman-empire" + }, + { + "deck": "Field Guide", + "cost": 3, + "title": "Honey bee", + "faction": "Nature", + "home": "attention", + "pageId": 58261, + "cardId": "loaner:honey-bee" + }, + { + "deck": "Field Guide", + "cost": 4, + "title": "Ancient Egypt", + "faction": "History", + "home": "depth", + "pageId": 874, + "cardId": "loaner:ancient-egypt" + }, + { + "deck": "Field Guide", + "cost": 4, + "title": "Amazon rainforest", + "faction": "Nature", + "home": "reach", + "pageId": 48139, + "cardId": "loaner:amazon-rainforest" + }, + { + "deck": "Field Guide", + "cost": 5, + "title": "Blue whale", + "faction": "Nature", + "home": "attention", + "pageId": 4925, + "cardId": "loaner:blue-whale" + }, + { + "deck": "Field Guide", + "cost": 5, + "title": "Great Wall of China", + "faction": "History", + "home": "reach", + "pageId": 5094570, + "cardId": "loaner:great-wall-of-china" + }, + { + "deck": "Field Guide", + "cost": 6, + "title": "World War II", + "faction": "History", + "home": "depth", + "pageId": 32927, + "cardId": "loaner:world-war-ii" + }, + { + "deck": "Headliners", + "cost": 1, + "title": "Haiku", + "faction": "Culture", + "home": "attention", + "pageId": 13217, + "cardId": "loaner:haiku" + }, + { + "deck": "Headliners", + "cost": 1, + "title": "Ada Lovelace", + "faction": "People", + "home": "depth", + "pageId": 974, + "cardId": "loaner:ada-lovelace" + }, + { + "deck": "Headliners", + "cost": 2, + "title": "Jazz", + "faction": "Culture", + "home": "attention", + "pageId": 15613, + "cardId": "loaner:jazz" + }, + { + "deck": "Headliners", + "cost": 2, + "title": "Marie Curie", + "faction": "People", + "home": "reach", + "pageId": 20408, + "cardId": "loaner:marie-curie" + }, + { + "deck": "Headliners", + "cost": 3, + "title": "Mona Lisa", + "faction": "Culture", + "home": "reach", + "pageId": 70889, + "cardId": "loaner:mona-lisa" + }, + { + "deck": "Headliners", + "cost": 3, + "title": "Frida Kahlo", + "faction": "People", + "home": "attention", + "pageId": 162276, + "cardId": "loaner:frida-kahlo" + }, + { + "deck": "Headliners", + "cost": 3, + "title": "Chess", + "faction": "Culture", + "home": "depth", + "pageId": 5134, + "cardId": "loaner:chess" + }, + { + "deck": "Headliners", + "cost": 4, + "title": "Leonardo da Vinci", + "faction": "People", + "home": "reach", + "pageId": 18079, + "cardId": "loaner:leonardo-da-vinci" + }, + { + "deck": "Headliners", + "cost": 4, + "title": "The Beatles", + "faction": "Culture", + "home": "attention", + "pageId": 29812, + "cardId": "loaner:the-beatles" + }, + { + "deck": "Headliners", + "cost": 5, + "title": "William Shakespeare", + "faction": "People", + "home": "depth", + "pageId": 32897, + "cardId": "loaner:william-shakespeare" + }, + { + "deck": "Headliners", + "cost": 5, + "title": "Olympic Games", + "faction": "Culture", + "home": "reach", + "pageId": 22576, + "cardId": "loaner:olympic-games" + }, + { + "deck": "Headliners", + "cost": 6, + "title": "Wolfgang Amadeus Mozart", + "faction": "People", + "home": "depth", + "pageId": 33163, + "cardId": "loaner:wolfgang-amadeus-mozart" + }, + { + "deck": "Pioneers", + "cost": 1, + "title": "Sputnik 1", + "faction": "Space", + "home": "reach", + "pageId": 28484, + "cardId": "loaner:sputnik-1" + }, + { + "deck": "Pioneers", + "cost": 1, + "title": "Nikola Tesla", + "faction": "People", + "home": "attention", + "pageId": 21473, + "cardId": "loaner:nikola-tesla" + }, + { + "deck": "Pioneers", + "cost": 2, + "title": "Hubble Space Telescope", + "faction": "Space", + "home": "depth", + "pageId": 40203, + "cardId": "loaner:hubble-space-telescope" + }, + { + "deck": "Pioneers", + "cost": 2, + "title": "Isaac Newton", + "faction": "People", + "home": "reach", + "pageId": 14627, + "cardId": "loaner:isaac-newton" + }, + { + "deck": "Pioneers", + "cost": 3, + "title": "Neil Armstrong", + "faction": "People", + "home": "attention", + "pageId": 21247, + "cardId": "loaner:neil-armstrong" + }, + { + "deck": "Pioneers", + "cost": 3, + "title": "Jupiter", + "faction": "Space", + "home": "reach", + "pageId": 38930, + "cardId": "loaner:jupiter" + }, + { + "deck": "Pioneers", + "cost": 3, + "title": "Galileo Galilei", + "faction": "People", + "home": "depth", + "pageId": 29688374, + "cardId": "loaner:galileo-galilei" + }, + { + "deck": "Pioneers", + "cost": 4, + "title": "Albert Einstein", + "faction": "People", + "home": "attention", + "pageId": 736, + "cardId": "loaner:albert-einstein" + }, + { + "deck": "Pioneers", + "cost": 4, + "title": "International Space Station", + "faction": "Space", + "home": "depth", + "pageId": 15043, + "cardId": "loaner:international-space-station" + }, + { + "deck": "Pioneers", + "cost": 5, + "title": "Apollo 11", + "faction": "Space", + "home": "attention", + "pageId": 662, + "cardId": "loaner:apollo-11" + }, + { + "deck": "Pioneers", + "cost": 5, + "title": "Charles Darwin", + "faction": "People", + "home": "reach", + "pageId": 8145410, + "cardId": "loaner:charles-darwin" + }, + { + "deck": "Pioneers", + "cost": 6, + "title": "Solar System", + "faction": "Space", + "home": "depth", + "pageId": 26903, + "cardId": "loaner:solar-system" + } + ] +} \ No newline at end of file diff --git a/docs/night/ANDROID.md b/docs/night/ANDROID.md new file mode 100644 index 0000000..69e76fe --- /dev/null +++ b/docs/night/ANDROID.md @@ -0,0 +1,40 @@ +# WikiDeck Android app (Night 1) + +A Capacitor 7 shell (`dev.eom.wikideck`) around the React UI. It talks to a WikiDeck node over native HTTP. + +![Android emulator screenshots](android/screens.jpg) + +## Build a debug APK +You need JDK 21 (a full JDK with `javac`), the Android SDK (platform 35 and build-tools 35) and `ANDROID_HOME`. +``` +android/build-debug.sh # testnet build: VITE_WIKIDECK_NETWORK=testnet, genesis 1792411200, node http://192.168.1.32:3101 +adb install -r android/app/build/outputs/apk/debug/app-debug.apk +``` +- **Settings:** override any of them with env vars, for example `VITE_NODE_URL=http://192.168.1.32:3102 android/build-debug.sh`. +- **Network:** without `VITE_WIKIDECK_NETWORK=testnet`, the bundle is a **mainnet** build. +- **Signing:** debug signing only. Nothing is published. + +## How it works (`src/native.ts`, imported first in `main.tsx`; does nothing on the web) +- **Node URL:** relative `fetch('/api/…')` and `fetch('/auth/…')` calls go to `VITE_NODE_URL`. The default is the Night-1 testnet node. A runtime override is available through `setNodeUrl()`, stored in localStorage. +- **Native HTTP (`CapacitorHttp`):** fetches go through Android's HTTP stack. There's no CORS, and no WebView `Origin` header, so the node's POST origin check passes without any server change. + - Verified: a POST from the app returns 400 (validation), while the same POST with `Origin: https://localhost` returns 403. + - The interceptor merges headers (`content-length: 0, 384`). `native.ts` drops that header so `StateClient`'s size check works, and byte limits are still enforced while streaming. +- **Mining:** RandomX is desktop-only. `isNativeApp()` hides the mining panel, and `html.native-app` lets CSS target the app. +- **SSO:** "Log in with eom.dev" opens Dex in a Custom Tab (`setNativeBrowser(Browser)`). Dex redirects to `dev.eom.wikideck:/oauth/callback` (intent filter, `singleTask`), and `completeLogin()` has the node exchange the code. +- **Android behaviour:** + - The **back button** closes an open dialog first, then goes back in history, then minimizes the app. + - The **keyboard** uses `adjustResize`. + - **Edge-to-edge** margins are on, with a dark window behind the system bars. + +## Emulator (inspiron-3670, user space) +The SDK, AVD and JDK are under `~/worker/jobs/night/mobile-android/{sdk,avd,jdk}`, and `env.sh` sets the paths. +``` +emulator -avd wikideck -no-window -no-audio -gpu swiftshader_indirect # headless, KVM +adb exec-out screencap -p > shot.png +``` +To inspect the WebView, forward DevTools with `adb forward tcp:9222 localabstract:webview_devtools_remote_$(adb shell pidof dev.eom.wikideck)`. + +## Known gaps +- **Real SSO login:** needs an eom.dev account and wasn't done tonight. The deep-link round trip was verified up to Dex's `invalid_grant` for a dummy code. +- **Touch targets in the Play UI:** the dashed "Play here" lane zone doesn't respond to taps; only the lane plate does (reported on #5). +- **Mining copy on the home hero:** "Explore mining" still shows in the app. diff --git a/docs/night/BOUNDARIES.md b/docs/night/BOUNDARIES.md new file mode 100644 index 0000000..98cb43a --- /dev/null +++ b/docs/night/BOUNDARIES.md @@ -0,0 +1,53 @@ +# Night 1: module boundaries + +Owner: `night-lead`. This file is the rule when two PRs touch the same path. If you need to edit a path you don't own, comment on the owner's issue (`[from ]`) or keep your change to the "shared hook" listed below. + +## Who owns what + +| Path | Owner | Issue | +|---|---|---| +| `docs/game/DESIGN.md` | council (designer-a, designer-b, critic) | #1 | +| `docs/game/CARD_DATA.md`, `docs/game/card-sample.json` | council-data | #2 | +| `shared/game/` (types, RNG, state machine, rules, keywords, `Ruleset`, `starterDeck`) | engine-a (core, API), engine-b (keywords, effects) | #3 | +| `docs/game/ENGINE_API.md` | engine-a | #3 | +| `shared/game/modes.ts` | modes | #6 | +| `server/game*` (e.g. `server/game/`, `server/game-*.ts`) | modes | #6 | +| `docs/game/HOSTING.md` | modes | #6 | +| `src/game/` (screens, lobby, deck builder, match, tutorial) | ui-a | #5 | +| `src/game/ai/` (browser bots, easy and normal) | ui-b | #5 | +| beta-fix files outside `src/game/` (landing page, `Card.tsx`, etc.) | ui-b, one PR per upstream issue | #5 | +| `shared/bots/`, `scripts/sim/` (bots and the simulation runner) | sim-balance | #4 | +| `docs/game/BALANCE.md` | sim-balance | #4 | +| `compose.testnet.yaml` overrides, `deploy/night/` (testnet config, per-node mode files) | sim-testnet | #4 | +| `server/account*` (e.g. `server/account/`), `src/auth/` | sso | #7 | +| `android/`, `capacitor.config.ts` | mobile-android | #8 | +| `ios/`, `docs/night/IOS.md` | mobile-ios, macos-fetch | #9 | +| `docs/night/` (except `IOS.md`), this file, `REPORT.md` | night-lead | #10 | + +## Tests + +`scripts/run-tests.mjs` only picks up **top-level** `tests/*.test.ts`. Name your files with your team as a prefix so they never collide: +`tests/game-*.test.ts` (engine), `tests/modes-*.test.ts`, `tests/ui-*.test.ts`, `tests/bots-*.test.ts`, `tests/account-*.test.ts`. + +## Shared hooks (the only places two teams touch the same file) + +1. **`server/testnet/http.ts`**: modes and sso each export an Express `Router` from their own files and add **exactly one** `app.use(...)` mount line just **above** the `/api` 404 handler (`app.use(['/api','/p2p'],(_req,res)=>{res.status(404)...`). Nothing else in this file. If SSO needs a CSP change (`connect-src` for `https://dex.eom.dev`), keep it to the `helmet` directive and say so in the PR. +2. **`src/App.tsx`**: ui-a owns it. Others get one import and one element each (sso: a login button or provider; mobile: hide the mining controls behind a `isNativeApp()` check from `src/game/` or `src/auth/`, never by deleting code). +3. **`package.json` and `package-lock.json`**: additive changes only (new dependencies or scripts). Don't reformat or bump existing versions. Lockfile conflicts are resolved by night-lead regenerating the lockfile. +4. **`shared/enrichment.ts`**: read-only for everyone tonight. Map card data into game stats inside `shared/game/`. + +## Off limits (consensus and protocol; PRs touching these are rejected) + +`server/chain.ts`, `shared/protocol.ts`, `shared/trade-offer.ts`, `shared/chain-identity.ts`, `shared/network.ts`, `server/testnet/consensus.ts`, `server/testnet/ledger.ts`, `server/testnet/canonical-index.ts`, `server/testnet/randomx.ts`, `server/testnet/miner.ts`, `server/testnet/peers.ts`, `native/`. + +If you think you need a change there, write it up in your issue instead. + +## Dependency direction + +`shared/game/` imports nothing from `server/` or `src/` and does no I/O. `shared/game/modes.ts`, `shared/bots/`, `server/game*`, `src/game/` import from `shared/game/` through the API in `ENGINE_API.md`, not from its internals. + +## Merging + +- Branch `night//`, PR into `night/2026-11-16`, squash-merged by night-lead after night-review approves and `npm test` and `npm run build` pass. +- Small PRs merge faster. Rebase on the integration branch before asking for review if it moved under you. +- After 01:10 (code freeze), only fixes merge. diff --git a/docs/night/HANDBOOK.md b/docs/night/HANDBOOK.md new file mode 100644 index 0000000..2f55967 --- /dev/null +++ b/docs/night/HANDBOOK.md @@ -0,0 +1,99 @@ +# WikiDeck Night 1: team handbook + +Read this whole file before doing anything. It's the contract between about 17 agents on 4 machines. + +**Coordinator:** the Claude session on tower-plus (Eric's interactive session). +**Lead/integrator:** `night-lead` on tower-plus. +**Window:** 2026-11-16 22:45 until **01:30 EST, hard stop**. +**Milestone:** https://gitea.eom.dev/claude/wikideck/milestone/63 + +## Goal +Turn WikiDeck into a game: +1. A **fun, robust, balance-tested card game**, playable in the browser against a private testnet. +2. **eom.dev accounts:** log in through Dex SSO, and link a self-custodial wallet to your account. +3. **Peer-hosted game modes:** node operators publish their own modes as an incentive to run a peer. +4. **An Android app**, built and running in an emulator, and an **iOS app** (macOS VM; Xcode sign-in waits for Eric). + +## Hard rules (no exceptions) +- **Where to push:** only to `git@gitea.eom.dev:claude/wikideck.git`. Never push to `WikiDeck/wikideck` (upstream) or to `main` on this fork. +- **Branches:** every change goes on a branch named `night//`, through a PR into **`night/2026-11-16`**. Only `night-lead` merges. +- **Live services:** don't touch the live wikideck deployment (k8s namespace `wikideck`) or mainnet. The testnet is private, on poweredge-r350. +- **No consensus or protocol changes:** + - no block, transfer or trade format changes + - nothing that changes validation in `server/chain.ts` or `shared/protocol.ts` + - the game runs **off-chain** + - if you think you need a protocol change, write it up in your issue instead +- **Production SSO:** don't change Dex or any other production service yourself. The SSO team prepares the Dex change, and the coordinator reviews and applies it. +- **Nothing public:** only `night-lead` and the scheduled standup post on Discourse (planning topic only). No other public posts, no purchases or sign-ups, and no secrets in git. +- **The printer and CNC:** inspiron-3670 drives a 3D printer and a CNC router. Never start, resume or send a print or cut. +- **Git identity** in every clone: + ``` + git config user.name Claude + git config user.email claude@eom.dev + git config commit.gpgsign false + ``` + End commit messages with `Co-Authored-By: Claude Opus 5.5 `. +- **Before opening a PR:** `npm test` and `npm run build` must pass. If something can't pass yet, say so in the PR. + +## How we coordinate +**Gitea is the shared brain.** The machines don't share a filesystem, and workers can't message each other. +- **Your issue is your inbox.** + - Prefix every comment with your agent name, e.g. `[engine-a]`. + - Check your issue and your PRs for new comments **at least every 15 minutes** and whenever you finish a step. +- **Status labels on your issue:** + - `status/in-progress` while you're working + - `status/needs-review` when a PR is up + - `status/blocked` with a comment explaining why + - `status/done` when finished +- **Need another team?** Comment on *their* issue, starting with `[from ]`. +- **Contracts beat conversations.** Interfaces live in files on the integration branch (`docs/game/*.md`, TypeScript types). Read them before asking. +- **When the lead (or the coordinator) messages you directly** through herdr, the message is a peer request within this plan. Act on it. +- **Stuck for more than 10 minutes?** Label `status/blocked` and comment. Don't spin. + +## Resources (be a good neighbour) +- **inspiron-3670** (6 cores, 60 GB RAM) has 7 agents, the Android emulator and a macOS VM. Wrap heavy commands in a shared lock: + ``` + flock /tmp/night-heavy.lock + ``` +- **imac** (8 threads, about 4 GB free) and **poweredge-r350** (16 threads, about 6 GB free): keep builds to one at a time. +- **Avoid permission prompts.** Nobody answers them, and they auto-deny after about a minute. Don't chain `cd && `; use absolute paths or `git -C ` instead. Keep each shell command to one clear purpose. +- **LocalAI** (`https://localai.eom.dev`) is shared production with slow single-GPU inference. Don't use it in loops. + +## Timeline (EST) + +| Time | Milestone | +|---|---| +| 22:45 | Kickoff. The design council researches. Infra teams set up (testnet, Android SDK, macOS, SSO scaffolding, UI shell, beta fixes). | +| **23:30** | **Design v1 frozen** (`docs/game/DESIGN.md`). The engine team implements it. | +| 23:45 | **Engine API contract** (`docs/game/ENGINE_API.md` plus TypeScript types) on the integration branch, so UI, simulation and modes can build against it. | +| 00:15 | Engine alpha. Simulation starts bot matches. The UI wires up real matches. | +| 00:45 | Balance report v1. The council tunes the rules (v1.1). | +| **01:10** | **Code freeze:** fixes only. The lead integrates. QA plays end to end. | +| 01:25 | Final reports in each issue. The lead writes `docs/night/REPORT.md`. | +| **01:30** | **Stop.** | + +## Teams + +| Agent | Machine | Issue | +|---|---|---| +| council-designer-a, council-designer-b, council-data | imac | Game design council, card data analysis | +| council-critic, night-lead, night-review, macos-fetch | tower-plus | Design council (critic), integration and QA, iOS (download) | +| engine-a, engine-b | inspiron-3670 | Game engine | +| ui-a, ui-b | inspiron-3670 | Game UI and AI opponent, beta fixes | +| modes | inspiron-3670 | Peer-hosted game modes | +| mobile-android, mobile-ios | inspiron-3670 | Android app, iOS app and macOS VM | +| sim-testnet, sim-balance, sso | poweredge-r350 | Testnet and simulation, eom.dev accounts | + +## What the cards hold (game design input) +Each card's data comes from `shared/enrichment.ts`: `PageEnrichment` and `MintStatsSnapshot`. +- **Identity:** `title`, `description`, `wikidataId` (structured facts: instance-of, dates, coordinates...) and `categories[]` +- **Size and history:** `pageBytes` and `revisionId` +- **Reach:** `languageCount`, the number of language editions +- **Pageviews:** monthly views, `total`, `dailyAverage` and `trendPercent` +- **Derived 0–100-ish scores:** `stats.attention`, `stats.depth` and `stats.reach` +- **Two values for everything:** an immutable **at-mint snapshot** and **live current values** that change over time +- **Duplicates:** the same article can be minted more than once, each copy with its own snapshot + +Two facts to design around: +- **New players own no cards.** The design must give them a way to play immediately, for example starter decks of preview or loaner cards that don't touch NFTs. +- **Cards are NFTs.** A match must never move or burn cards on-chain tonight. diff --git a/docs/night/IOS.md b/docs/night/IOS.md new file mode 100644 index 0000000..7a43ca4 --- /dev/null +++ b/docs/night/IOS.md @@ -0,0 +1,109 @@ +# iOS app and macOS VM (Night 1, mobile-ios, issue #9) + +## Status at a glance +- **macOS VM:** QEMU/KVM on inspiron-3670, OSX-KVM style. Sequoia (15) recovery booted, disk erased (APFS volume `machd`), + licence accepted, and **"Reinstall macOS Sequoia" was downloading the full OS from Apple** over inspiron's Wi-Fi + (installer estimate ~2 h 50 min from 23:33). Per the coordinator, the VM is **shut down cleanly before 01:30** + with the disk kept. See "Progress at shutdown" below for exactly where it got to. +- **No Apple ID** was created or used. Nothing signed in to Apple. +- **iOS Capacitor project:** `ios/` (Capacitor **7.6.x**, Swift Package Manager, no CocoaPods), app id + `dev.eom.wikideck`, URL scheme `dev.eom.wikideck` registered for the SSO redirect. +- **Build script:** `scripts/ios/build-sim.sh` (run inside the VM once Xcode is installed). Not yet run: needs Xcode. + +## Where things are (inspiron-3670, outside git) +| Path | What | +|---|---| +| `~/worker/jobs/macos/boot-macos.sh` | Starts the VM: 8 GB RAM, 4 vCPU, q35, OpenCore, VNC 127.0.0.1:5911, SSH fwd 127.0.0.1:10022 | +| `~/worker/jobs/macos/mac_hdd_ng.qcow2` | 80 GB macOS system disk (keep this) | +| `~/worker/jobs/macos/BaseSystem.img` | Sequoia recovery (3,221,110,784 bytes), converted from macos-fetch's verified `BaseSystem.dmg` | +| `~/worker/jobs/macos/OpenCore-osxkvm.qcow2` | OpenCore bootloader from kholia/OSX-KVM | +| `~/worker/jobs/macos/OVMF_CODE_4M.fd`, `OVMF_VARS.fd` | UEFI firmware and this VM's NVRAM | +| `~/worker/jobs/macos/vnc.sh` | `vncdotool` wrapper (`./vnc.sh capture x.png`, `./vnc.sh type ...`) | +| `~/worker/jobs/macos/guest/provision.sh` | Runs **inside** macOS: Command Line Tools + Node 24 (no Apple ID) | +| `~/worker/jobs/macos/CREDENTIALS.txt` | Local macOS user + password (mode 600, never in git), once the account exists | + +## Start the VM again (resume) +On inspiron-3670: +``` +cd ~/worker/jobs/macos +setsid ./boot-macos.sh > qemu.log 2>&1 < /dev/null & # installer image still attached +# after macOS is fully installed you can detach it: NO_INSTALLER=1 setsid ./boot-macos.sh ... +``` +- In the OpenCore picker pick **`macOS Installer`** / **`machd`** (whichever is offered after the interrupted install; + if only "macOS Base System" shows, the download restarts: pick it → **Reinstall macOS Sequoia** → disk `machd`). +- Clean shutdown from outside: `echo system_powerdown | socat - UNIX-CONNECT:$HOME/worker/jobs/macos/qemu-monitor.sock` + (or `kill $(cat ~/worker/jobs/macos/qemu.pid)` if the guest is hung). + +### See it (VNC through an SSH tunnel from tower-plus) +``` +ssh -N -L 5911:127.0.0.1:5911 eric@inspiron-3670 # on tower-plus +# then open a VNC viewer on tower-plus at localhost:5911 (no VNC password; it is bound to localhost only) +``` +SSH into macOS (after Remote Login is on): `ssh -p 10022 @127.0.0.1` on inspiron, or tunnel `-L 10022:127.0.0.1:10022`. + +Note: the VNC keyboard via `vncdotool` drops Shift (everything types lowercase, `|` becomes `\`). A normal VNC viewer is fine. + +## Eric's checklist from here (~10 min of attention, plus download time) +1. **Finish the install:** start the VM (above), open VNC, let the installer finish (several reboots, pick `machd` / + `macOS Installer` in OpenCore each time if it doesn't auto-boot). +2. **Setup Assistant:** country, *skip* Apple ID ("Set Up Later"), create a local admin user. Put the user and password in + `~/worker/jobs/macos/CREDENTIALS.txt` (`chmod 600`). +3. **Enable SSH:** System Settings → General → Sharing → Remote Login: on. +4. **Prerequisites (no Apple ID):** copy and run the guest script: + ``` + scp -P 10022 ~/worker/jobs/macos/guest/provision.sh @127.0.0.1: + ssh -p 10022 @127.0.0.1 ./provision.sh + ``` +5. **Sign in with your Apple ID and install Xcode** (App Store, or developer.apple.com/download). Launch it once, + accept the licence, install the **iOS platform + a Simulator runtime** when prompted. +6. **Build and run:** + ``` + ssh -p 10022 @127.0.0.1 + git clone -b night/2026-11-16 https://gitea.eom.dev/claude/wikideck.git && cd wikideck + scripts/ios/build-sim.sh # optional arg: simulator name, default "iPhone 16" + ``` + It runs `npm ci`, `npm run build`, `npx cap sync ios`, `xcodebuild` for the simulator (no signing), installs and + launches `dev.eom.wikideck`, and saves a screenshot to `~/wikideck-ios-sim.png`. + +## App notes +- Scaffold (`capacitor.config.ts`, Capacitor deps in `package.json`) is owned by mobile-android (#8); `ios/` builds on it. + Capacitor **7** to match Android (Node 20 on inspiron). +- **Swift Package Manager**, not CocoaPods: `ios/App/CapApp-SPM/Package.swift` is managed by `npx cap sync`; Xcode + resolves `capacitor-swift-pm` itself. No Ruby/CocoaPods needed in the VM. +- **Testnet build:** `build-sim.sh` sets the same defaults as `android/build-debug.sh`: `VITE_WIKIDECK_NETWORK=testnet`, + `VITE_WIKIDECK_GENESIS_TIME=1792411200`, `VITE_NODE_URL=http://192.168.1.32:3101` (override via env). +- **Plain HTTP to the LAN node:** `Info.plist` sets `NSAppTransportSecurity` → `NSAllowsLocalNetworking` (local/IP hosts + only, not arbitrary HTTP), because iOS ATS blocks cleartext by default. From the VM's simulator, 192.168.1.32 is reached + through QEMU's user-mode NAT on inspiron. +- **Plugins:** `@capacitor/app` and `@capacitor/browser` (from #35) are wired into `CapApp-SPM/Package.swift`. +- **Origin check:** mobile-android routes native requests through `CapacitorHttp`, which sends no `Origin` header, so + `server/testnet/http.ts` needs no change. Without it, the iOS WebView origin would be `capacitor://localhost`. +- **SSO (#7):** `Info.plist` registers the `dev.eom.wikideck` URL scheme; redirect `dev.eom.wikideck:/oauth/callback` + returns to the app via `@capacitor/app`'s `appUrlOpen`. + +## Progress at shutdown (01:06, 2026-11-17) +- **23:21** recovery `.dmg` received and verified; **23:29** VM booted Sequoia recovery; **23:33** disk erased + (APFS `machd`), licence accepted, "Reinstall macOS Sequoia" started on `machd`. +- **23:33 → 01:03** the installer downloaded the OS over inspiron's Wi-Fi at ~75–120 MB/min. The VM disk grew from + 21 MB to **9.7 GB**. Shortly before 01:03 the progress bar reached the end of its first phase and the estimate + switched to "About 7 hours and 58 minutes remaining" (the next phase; the estimate on screen had sat at + "2 hours 52 minutes" for the whole download, so don't trust it). +- **01:03** ACPI power-off was ignored by the installer, so at **01:05** I pressed **Cancel → Quit** in the installer + (it says: *"When you're ready to install, select Reinstall macOS in the menu and Continue again"*), then + Apple menu → **Shut Down** from Recovery. QEMU exited cleanly at **01:06**. `qemu-img check`: no errors. +- **macOS is not installed yet.** No user account exists, so there is no `CREDENTIALS.txt` and SSH isn't on yet. + The partial download stays on `machd` (9.7 GB qcow2); the installer may reuse it or download again (that was accepted). + +**To resume** (inspiron-3670): +``` +cd ~/worker/jobs/macos && setsid ./boot-macos.sh > qemu.log 2>&1 < /dev/null & +``` +Then, over VNC: OpenCore → **macOS Base System** (or a `macOS Installer` entry if one appears) → **Reinstall macOS Sequoia** +→ Continue → Agree → disk **`machd`**, and continue with "Eric's checklist" above (step 1). + +## What's verified +- `BaseSystem.dmg` sha256 matches macos-fetch's `SHA256SUMS`; converted `BaseSystem.img` is 3,221,110,784 bytes. +- VM boots on inspiron (KVM, no host `ignore_msrs` change needed): OpenCore → Sequoia recovery → Terminal, Disk Utility. +- Disk erase (APFS) and the installer download started. +- `npx cap add ios --packagemanager SPM` (Capacitor 7.6.10) generates the project on Linux; bundle id `dev.eom.wikideck`. +- **Not verified:** the macOS install finishing, Xcode, `build-sim.sh`, the app in the Simulator. diff --git a/docs/night/android/screens.jpg b/docs/night/android/screens.jpg new file mode 100644 index 0000000..dfc2515 Binary files /dev/null and b/docs/night/android/screens.jpg differ diff --git a/docs/night2/BRIEF.md b/docs/night2/BRIEF.md new file mode 100644 index 0000000..d3339c6 --- /dev/null +++ b/docs/night2/BRIEF.md @@ -0,0 +1,144 @@ +# WikiDeck Night 2: design brief (locked decisions) + +**Night 2:** 2026-11-17, 21:30 to **02:00 EST, hard stop**. + +This brief merges three sources: +- the coordinator's plan, in `docs/night2/PLAN.md` +- four reviews (designer, engineer, data and critic), in `docs/night2/reviews/` +- **Eric's decisions on 2026-11-17**, which override anything in the reviews + +Where a review disagrees with this file, **this file wins**. Where this file is silent, follow the reviews, in this order: +1. engineer, for architecture +2. designer, for rules +3. data, for derivation +4. critic, for process + +## Eric's decisions (non-negotiable) +1. **A full 40-card, Magic-style game.** + - A deck is exactly 40 cards, and every card in it is an NFT the player owns. + - There are no loaners, Basics, filler or proxies. +2. **Players can't play until they own enough cards.** + - If a player owns fewer than 40 cards, the game shows their progress (for example "23 / 40 cards") and how to mine. + - There is no "practice with borrowed cards". + - The reviews' Basics, loaners, Signature card and the "Collection + Basics" model are **rejected**. +3. **PvP is first-class.** Bot matches exist, but only for eligible players. +4. **The mobile app must be able to mine.** + - Today `isNativeApp()` hides the mining panel, so mobile players can never earn cards. + - Fix it in the Android app. + - Write in `docs/night2/MOBILE_MINING.md` that Google Play and the App Store both prohibit on-device crypto mining, so for now the mining build is a sideloaded APK. +5. **Tone: lean in, Cards Against Humanity style.** + - Living people, tragedies, wars, disasters, crimes, diseases and dictators are all **ordinary cards with full mechanics**. + - There are no `solemn` flags, no special-casing and no softened verbs. + - The game takes itself completely seriously, and the comedy comes from the juxtapositions. Use the critic's S7 deadpan style guide: never wink, never comment on the matchup, and use encyclopedic texture with [n] citations. + - "Casualties" is fine. + - **One rule stays:** all generated text (rules text, match log, recap) is deterministic templates filled **only with real data from the card and the match**. Never use LLM prose, and never invent factual claims about real people (no made-up crimes, quotes or acts). Humour by juxtaposition is fine; fabricated facts about a real person are defamation. +6. **iOS is paused.** Don't touch `ios/` or the macOS VM. +7. **Wikimedia politeness by default** (the engineer's §4 and the data analyst's §5), including the mint-path bug (§9 below). + +## Supply reality (design around it, don't fight it) +- **Mainnet:** 12 cards, all in one wallet. Consensus mints at most about 96 cards a day, network-wide. That's Eric's accepted trade-off: the game becomes playable as people mine. +- **Our testnet** (`deploy/night/`, on poweredge-r350): + - Wallets alice, bob, carol and dave own about 50 cards between them, with up to 40 more being mined now. + - The `testnet-ops` agent consolidates cards into **alice and bob** with on-chain transfers, so both reach 40 if supply allows. + - Deck size is **ruleset data** (`deckSize`, default 40). If the testnet can't reach 80 cards, the end-to-end test mode may set a lower `deckSize`. That's a testnet mode file only; production stays at 40. +- **Engine, simulation and balance work** uses the 236 real cards in `docs/game/card-sample.json` as the card pool. Build 40-card random decks from it. This needs no chain. + +## Game rules core (designer §2, adapted to 40 cards) +- **Life:** each player starts with 20 Notability; at 0 you lose. Drawing from an empty library loses (the MTG rule). These are ruleset keys. +- **Opening:** hands of 7, with one mulligan (shuffle, draw 7, bottom 1). The first player skips their first draw. +- **Turn:** refresh, draw, main, combat, end. + - **Resources are a fixed income of Citations:** your maximum rises by 1 each turn, to a cap of 10. There are no land cards, so no land screw. + - Locations ramp at most +2 in total. + - Hand limit is 7. +- **Combat:** + - attack the opponent with untapped Figures, with summoning sickness ("Pending review") + - at most one blocker per attacker + - damage is simultaneous + - no trample, no first strike, no stack and no instant speed; Events are sorcery-speed +- **Clock:** 60 s per turn plus a 5-minute bank. No turn cap is required. If the sims show stalls, add `turnCap` as a ruleset key. +- **Card types** (designer §3 and data §1): + - **Figure:** a creature + - **Location:** a permanent with Territory or Garrison + - **Event:** sorcery-speed + - **Institution:** an artifact + - **Doctrine:** an Aura that attaches to a Figure, so *Tetrated dodecahedron* can buff *Cho Yang-ho* + - Classify with data §1's P31 → P279 anchor classes, falling back to categories, then the description, then Doctrine. + - Fix the `\bhuman\b` → People bug. + - Freeze each card's derived profile the first time the card is seen. +- **Factions ("Portals"):** designer §3.2. There are no colour restrictions in deckbuilding. +- **Stats:** data §2. Cost 1–6 comes from the percentile fame curve, with a fixed power+toughness budget per cost, so famous cards are bigger and pricier, not strictly better. +- **Keywords:** designer §3.4 and data §2, at most 2 per card, each triggered by real data: + - Protected + - Featured + - Translated + - Legacy + - Stub + - Well-sourced + - Multilingual + - Local +- **Connected:** the data team's tiers (data §4): Linked, Compatriot, Contemporary and Kin, from cached Wikidata claims and links. + - It gives +1/+1, or +2/+2 for a direct link. + - Aim for it to fire in 15–30% of pairs, tuned in the simulator. +- **Flavour text:** the first sentence of the on-chain `article.extract`. + +## Story +- **Match log:** past-tense, encyclopedic and per player (`logFor`), with no hidden-information leaks. +- **Recap:** a "Battle of X (2026)" page after each match, with: + - an infobox: date, belligerents (the players), strength, casualties (the cards destroyed), result + - a narrative assembled from the log with 3–4 template variants per event, seeded deterministically + - References citing every card played, with revision ids + - "WikiDeck" branding, not Wikipedia's + - a shareable URL + +## Modes (kept, now on the duel engine) +- **Classic:** constructed from your own 40+ cards. It's ranked. +- **Draft:** both players must be eligible. The pool is drawn from both players' collections, and drafted cards are used for that match only. Nothing moves on-chain. +- **Trending:** live pageview momentum changes stats (designer §5), from a daily refreshed cache. +- **Peer-hosted house rules:** stay data-only, with a versioned schema. Night 1 mode files are rejected cleanly. + +## PvP (engineer §3) +- **Seats and ownership:** + - Seats are tied to eom.dev accounts (Dex) and their linked wallets. + - The host verifies **ownership on the server** (`ownership.ts`, using `ledger.nft()`) and builds each card from the chain. +- **Night 1's gaps to close:** + - the browser-side ownership check + - the 128-block snapshot cap + - starter decks dealt in `host.ts:144` +- **Matchmaking:** private lobbies, invite links, quick match, and an Elo ladder keyed to the account. +- **Transport:** keep polling, with a state version so unchanged polls return 204. Don't use long-polling. + +## Wikimedia (engineer §4 and data §5) +**One process-wide client:** +- 1 request per second, burst 3, 1 request in flight per host +- priority lanes: mint, then interactive, then background +- `maxlag=5` +- honour `Retry-After` +- a circuit breaker after 3 consecutive 429s +- a daily cap +- a sqlite cache on disk with ETags +- a User-Agent with an operator contact (a config key that operators must set; the testnet uses the project URL) + +**The mint path changes transport only:** request parameters stay byte-identical, and the cache is never used for mint data. + +**Fix the mint bug:** a 429 on pageviews currently mints a card with `attention: null` forever (`enrichment.ts:145-164`). Fail and retry instead. + +**Other changes:** +- Card faces in the client no longer trigger uncached upstream calls on every render. +- An article prefetch pool for mining templates (data §8). + +**Tests make zero network calls.** + +## Cut order if late +1. the Elo ladder (keep W/L) +2. quick match (keep invites) +3. Trending's live stats +4. the Kin and Contemporary tiers of Connected +5. recap polish (keep the plain log) + +**Never cut:** +- the duel core +- 40-card owned-deck validation on the server +- PvP over invite links +- the Wikimedia client and mint fix +- mobile mining +- the recap (the story is the point) diff --git a/docs/night2/HANDBOOK.md b/docs/night2/HANDBOOK.md new file mode 100644 index 0000000..1cbdee2 --- /dev/null +++ b/docs/night2/HANDBOOK.md @@ -0,0 +1,88 @@ +# WikiDeck Night 2: team handbook + +Read this whole file, then `docs/night2/BRIEF.md` (the locked design decisions). Then read the review sections your issue names in `docs/night2/reviews/`. + +**Window:** 2026-11-17 21:30 until **02:00 EST, hard stop**. +**Integration branch:** `night/2026-11-17` (from upstream main, which already contains Night 1). +**Lead/integrator:** `night-lead` on tower-plus (it can message every agent with fherdr; inspiron, imac and r350 agents can only reach it through Gitea). The coordinator is Eric's Claude session on tower-plus. +**Milestone:** "Night 2: Magic-style duel, PvP, polite Wikimedia" in claude/wikideck. +**Live log:** the Discourse topic linked in the milestone (only night-lead and the scheduled standup post there). + +## Goal +WikiDeck becomes a full 40-card, Magic-style trading card game played with the cards you actually mined: +- PvP first +- deadpan, Cards Against Humanity-style juxtapositions +- an encyclopedic battle recap after every match +- an Android app that can mine +- servers that are polite to Wikimedia by default + +## Hard rules (no exceptions) +- **Where to push:** only to `git@gitea.eom.dev:claude/wikideck.git`, on branches named `night2//`, through a PR into **`night/2026-11-17`**. + - Never push to `WikiDeck/wikideck`, `main` or the Night 1 branch. + - Only `night-lead` merges, using squash. +- **No stacked PRs:** branch only from `night/2026-11-17`, and only after your dependency has merged. If you need unmerged code, stub the interface. +- **No consensus or protocol changes:** nothing that changes block, transfer or trade formats, validation in `server/chain.ts`, `server/testnet/consensus.ts` or `shared/protocol.ts`, or what a mint fetches and stores. The game runs **off-chain**, and matches never move or burn cards. +- **Live services:** don't touch mainnet, the live node (k8s namespace `wikideck`), Dex or any other production service. The testnet is private, on poweredge-r350 (`deploy/night/README.md`). +- **iOS is paused:** don't touch `ios/` or the macOS VM. +- **Nothing public:** only `night-lead` and the scheduled standup post on Discourse, in the Night 2 topic only. No purchases, sign-ups or secrets in git. +- **The printer and CNC:** inspiron-3670 drives a 3D printer and a CNC router. Never start, resume or send a print or cut. +- **Wikimedia:** tests make **zero** network calls. Don't script loops against Wikipedia or Wikidata. Use `docs/game/card-sample.json` and cached data. Our IP was rate-limited on Night 1. +- **Git identity** in every clone: + ``` + git config user.name Claude + git config user.email claude@eom.dev + git config commit.gpgsign false + ``` + End commit messages with `Co-Authored-By: Claude Opus 5.5 `. +- **Before opening a PR:** run `npm test` and `npm run build` on **Node 24**. On inspiron and r350, use the `node:24-alpine` Docker image if the host's node is older: `node:sqlite` is required, and on Node 20, 12 tests fail falsely. Don't add npm dependencies; ask night-lead. +- **Tests go in** `tests/-*.test.ts` (top level). +- **Generated text:** deterministic templates filled only with real card and match data. No LLM prose, and no invented facts about real people (BRIEF, decision 5). Otherwise, lean in: no softening of tragedies or living people. + +## How we coordinate +**Gitea is the shared brain.** The machines don't share a filesystem. +- **Your issue is your inbox.** + - Prefix every comment with `[]`. + - Check your issue and PRs for new comments **at least every 15 minutes** and whenever you finish a step. +- **Status labels on your issue:** `status/in-progress`, `status/needs-review` (PR up), `status/blocked` (with a comment), `status/done`. +- **Need another team?** Comment on their issue with `[from ]`. +- **Contracts beat conversations.** Interfaces are files on the integration branch, e.g. `shared/duel/types.ts` and `docs/game/DUEL_API.md`. Read them before asking. +- **Direct messages:** a herdr message from night-lead or the coordinator is a peer request within this plan. Act on it. +- **Stuck for more than 10 minutes?** Label `status/blocked`, comment, and move on to something else. + +## Resources (be a good neighbour) +- **inspiron-3670** (6 cores, 60 GB) runs 7 agents and the Android emulator. Wrap heavy commands in `flock /tmp/night-heavy.lock ` (npm ci, builds, gradle, docker build). +- **imac** (about 4 GB free) and **poweredge-r350** (about 4 GB free, 16 threads): one build at a time, and **keep simulation to 4 workers or fewer** (Night 1 ran out of memory on r350). +- **Avoid permission prompts:** nobody answers them. Don't chain `cd && `; use absolute paths or `git -C`. Keep one purpose per shell command. + +## Timeline (EST) + +| Time | Milestone | +|---|---| +| 21:30 | Kickoff. Preflight: Gitea MCP works, Node 24, clone. Comment `starting` on your issue. | +| **22:15** | **Contracts merged:** `shared/duel/types.ts` and `docs/game/DUEL_API.md` (duel-core), plus `docs/game/DUEL_DESIGN.md` v1 (duel-design: keywords, text templates and tone, with BRIEF.md as the base). The `ownership.ts` signature is agreed by 22:00. | +| 23:15 | Engine alpha. The simulation starts. The UI plays against a bot. | +| 00:00 | Wikimedia client merged. Host binds the duel. The PvP UI is wired to the host. | +| 00:45 | Balance v1 (tuning is data-only). Mobile mining runs in the emulator. | +| **01:15** | **Code freeze:** fixes only. Balance re-runs on the frozen head SHA. QA runs PvP end to end on the testnet with alice and bob. | +| 01:45 | Final report comment on every issue. night-lead writes `docs/night2/REPORT.md` and opens the upstream PR (never merges it). | +| **02:00** | **Stop.** Push, comment, exit. | + +## Teams + +| Agent | Machine | Workstream | +|---|---|---| +| night-lead | tower-plus | integration, merges, Discourse, REPORT, upstream PR | +| night-review | inspiron-3670 | code review (`VERDICT: APPROVED` / `CHANGES`), QA, Playwright end to end | +| duel-core | inspiron-3670 | `shared/duel/` engine: turns, combat, `viewFor`/`logFor`, replay | +| host-pvp | inspiron-3670 | `server/game/` multi-engine host, constructed decks, invites, quick match, Elo | +| ownership | inspiron-3670 | `server/game/ownership.ts` and `collection.ts`, server-side 40-card owned-deck validation | +| ui-duel | inspiron-3670 | `src/game/duel/` board and card faces, 360 px first, bot matches | +| mobile-mining | inspiron-3670 | Android mining (sideload build), MOBILE_MINING.md | +| duel-design | imac | DUEL_DESIGN.md, keywords, rules-text and log and recap templates, tone | +| duel-cards | imac | `shared/duel/{classify,derive,effects,text}.ts`: card profiles from data | +| wikimedia | poweredge-r350 | `server/wikimedia/` polite client, mint-path fix, cache, UA, prefetch pool | +| testnet-ops | poweredge-r350 | testnet for Night 2: autodeploy, wallet consolidation, identity pre-bake, test modes | +| sim-balance | poweredge-r350 | duel bots and simulation, `docs/game/DUEL_BALANCE.md` | +| ui-pvp | inspiron-3670 | collection and eligibility screen, lobby, invite, quick match and ladder UI, battle recap page | + +**tower-plus note (night-lead):** tower-plus uses Eric's SSH key, so never `git push` from there. Clone over HTTPS read-only and do every Gitea write (comments, reviews, merges, file commits) through the gitea MCP tools, which are signed in as claude. tower-plus is short on memory: run no builds or tests there; ask night-review on inspiron. diff --git a/docs/night2/MOBILE_MINING.md b/docs/night2/MOBILE_MINING.md new file mode 100644 index 0000000..9c2ac66 --- /dev/null +++ b/docs/night2/MOBILE_MINING.md @@ -0,0 +1,78 @@ +# Mobile mining (Android, sideload build) + +**Status (Night 2, 2026-11-17):** it works. The emulator mined and got testnet block #92 accepted with the in-app native RandomX engine (see "Results tonight"). Issue: claude/wikideck#59. + +BRIEF decision 4: the mobile app must be able to mine, because otherwise mobile players can never earn the 40 owned cards a deck needs. Night 1's `isNativeApp()` hid the mining panel and the app had no miner at all. + +## App stores: why this is a sideloaded APK +**Google Play and the Apple App Store both prohibit on-device cryptocurrency mining**, so the mining build cannot ship through either store. It is distributed as a sideloaded APK only. +- **Google Play**, Developer Program Policy, *Device and Network Abuse*: "We don't allow apps that mine cryptocurrency on devices." Apps that *remotely manage* mining that happens elsewhere are allowed. +- **Apple**, App Review Guidelines **3.1.5(b)(ii) Cryptocurrencies, Mining**: "Apps may not mine for cryptocurrencies unless the processing is performed off device (e.g. cloud-based mining)." Guideline 2.4.2 also bans unrelated background processes such as mining. + +A WikiDeck block is a RandomX proof-of-work that mints an NFT on WikiDeck's own chain. That is cryptocurrency mining under both policies, whatever the reward looks like. Re-check the policy wording before any store submission; these quotes are from memory, not verified tonight (tests and agents make no web calls). + +## How it works +``` +WebView (React) Native (Java, Capacitor plugin "WikiDeckMiner") +src/MobileMiningPanel.tsx consent, intensity, stats +src/mobile-miner.ts same loop as server/testnet/miner.ts + POST /api/mining/template {owner, publicKey} ──► node (picks the article and stats; the phone never calls Wikipedia) + build blob = sha256(headerMessage) || nonceLE8 + WikiDeckMiner.mine(lane, key, blob, target, 32, 16) ──► MinerPlugin.java ──stdin/stdout──► libwikideck_randomx.so + (the pinned native/ engine, LIGHT mode, line protocol) + found → hash, tokenId (mintId), sign(blockClaimMessage) with the web wallet + POST /api/blocks ──► node validates as usual +``` +- **Same engine as desktop.** `native/` (RandomX v1.2.1, pinned SHA `102f8acf…`) is cross-compiled with the Android NDK by `scripts/build-randomx-android.sh` for `arm64-v8a` and `x86_64` (the emulator). It is packaged as `jniLibs//libwikideck_randomx.so`: an executable named like a library, so Android extracts it to `nativeLibraryDir`, the one place an app may `exec` from (`useLegacyPackaging true` in `android/app/build.gradle`). The binaries are build outputs, so they're gitignored, and `android/build-debug.sh` builds them when they're missing. +- **Light mode only** (256 MiB cache per engine process). Fast mode (about 2 GiB) is never started on a phone: the plugin runs the binary with no arguments. +- **Known-vector check on the device.** Before the first start in each session, the app runs `libwikideck_randomx.so --self-test` (upstream Hash test 1a/2a). If the hash doesn't match, mining is disabled. A wrong hash would get every block rejected. +- **Keys never leave the web wallet.** The plugin only receives the public work (key, blob, target). The WebView builds and signs the block with the existing wallet code (`src/wallet.ts` `sign`). The private key and backup password are never passed to native code or to the node. +- **No protocol, consensus or server changes.** `src/mobile-miner.ts` rebuilds `miningBlob` and `mintId` with Web Crypto. `tests/mobile-mining-miner.test.ts` checks that they're byte-identical to `server/testnet/consensus.ts` and that the consensus validator accepts the assembled block. +- **Testnet only tonight.** In a mainnet build (`IS_MAINNET`), the panel only says mainnet mining isn't enabled. The debug build points at the private testnet `http://192.168.1.32:3101`. + +## Safeguards +| Safeguard | How | +|---|---| +| Explicit consent | An unchecked consent box ("uses this phone's CPU and battery and can make it warm"). Start stays disabled until it's ticked. The choice is stored locally (`wikideck.mobileMining.consent.v1`). | +| Intensity | Low (1 thread, rests 400 ms between 16-hash batches), **Normal (1 thread, default)**, High (2 threads, about 512 MiB, offered only on 4+ cores). | +| Foreground only | `MinerPlugin.handleOnPause` kills the engines as soon as the activity pauses, and the WebView also stops on `visibilitychange`. There is no foreground service, no wake lock and no background mining. The web wallet also locks when the app is hidden. | +| Battery saver | `PowerManager.isPowerSaveMode()`, checked before start, every 2 s while mining, and on `ACTION_POWER_SAVE_MODE_CHANGED`. | +| Heat | `PowerManager.getCurrentThermalStatus() >= THERMAL_STATUS_MODERATE` (API 29+, with a listener), or a battery temperature of 40 °C or more (`ACTION_BATTERY_CHANGED`). | +| Low battery | Below 20 % while not charging. | +| Visible activity | Live hashrate, hashes tried, the block height being mined, accepted blocks, battery % and °C, and the self-test result. | +| Wallet change | If the wallet locks or changes, mining stops, so it never keeps mining to an old address. | + +Each automatic stop shows its reason ("Paused: battery saver is on"). Mining never restarts by itself: the player taps Start again. + +**Wallet idle lock:** a found block must be signed by the unlocked wallet, and the wallet locks after 5 minutes without taps. While mining is active (which means foreground and consented), each status update calls `touchWallet()` to keep the session alive. The 4-hour absolute limit and lock-on-hide still apply. night-review accepted this trade-off on PR #78. The session can't stay unlocked in the background: hiding the app locks the wallet, and `handleOnPause` halts mining, so the keep-alive applies only to consented foreground mining. Eric may prefer a stricter rule, such as re-prompting for the password when a block is found. + +## Measured hashrate (emulator) +Measured on inspiron-3670 (6 cores, shared with ~7 agents), using the AVD `wikideck` (Android 15, x86_64 google_apis, KVM, `-cores 4`, 2 GB RAM): + +| Measurement | Result | +|---|---| +| Known vector (`--self-test`), x86_64 | passed, 1.45 s including the 256 MiB cache init | +| Known vector, arm64-v8a (through the emulator's ARM translation) | passed | +| Raw engine, 1 process, 2000 hashes | about 53 s → **~37 H/s per thread** | +| In the app, Max (4 threads) | **~125 H/s** shown in the panel, with 4 engine processes at ~260 MB RSS each | + +Light mode is about 10× slower per thread than desktop fast mode. At tonight's testnet target (`00002514…`, about 452 K expected hashes), 125 H/s means **one block per hour on average**, with high variance. On a real phone, expect roughly 20–60 H/s per big core (not measured tonight: no device). + +## Results tonight +Verified in the emulator with the debug APK (`~/worker/jobs/night/mobile-mining/apk/wikideck-mining-testnet-debug.apk` on inspiron): +- The APK contains `lib/{arm64-v8a,x86_64}/libwikideck_randomx.so`. The app runs the self-test before its first start ("known vector OK"), then mines on the testnet (:3101) with live hashrate and block height. +- **Every safeguard halts the engines** (the engine process count drops to 0, and the panel shows the reason): + - thermal: `cmd thermalservice override-status 3` → "Paused: the device is warm" + - battery saver (unplugged, `settings put global low_power 1`) → "Paused: battery saver is on" + - low battery (`dumpsys battery set level 15`, unplugged) → halted (Android's low-battery dialog paused the activity first) + - background (HOME) → "Paused: the app went to the background"; the web wallet locks too, so restarting needs an unlock + - Max intensity is refused while unplugged +- **Accepted block:** at 22:37 EST the emulator (Max, ~136 H/s, 4 light threads) mined **testnet block #92** ("International FJ"; block `edaf8ac3…a8cb0`, NFT `acf778b1…7ee58`) to the in-app wallet `3b2362c7…5e054`. All three nodes (:3101–:3103) accepted it as their tip. That one was lucky: about 41 K hashes against ~452 K expected. + +![Emulator panel after the accepted block](mobile-mining-accepted.jpg) + +## Options for Eric +1. **Keep it sideload-only** (what exists now). Publish a signed release APK from a WikiDeck download page with clear battery and heat copy. This needs a release keystore (not in git) and an "unknown sources" install guide. F-Droid is a possible channel, but its anti-features policy would flag it, and its build server needs a reproducible NDK build. +2. **Store builds without mining.** Ship the store APK/AAB and the iOS app without the engine (a build flag that drops jniLibs and the panel), with the panel replaced by "Mine on desktop, or with the sideload app", plus a remote-management view of a desktop miner (allowed by Google's policy). +3. **Make mobile mining worthwhile.** Phones in light mode are roughly 10× slower per core than desktop fast mode. Options that need **consensus changes** (out of scope tonight): a lower-difficulty mobile lane, or pooled/shared mining where a phone's partial shares earn a card. +4. **Later engineering:** a JNI wrapper instead of exec (needed if a future Android blocks exec from `nativeLibraryDir`), an arm64 device test on real hardware, and battery-drain measurements. diff --git a/docs/night2/PLAN.md b/docs/night2/PLAN.md new file mode 100644 index 0000000..be26b31 --- /dev/null +++ b/docs/night2/PLAN.md @@ -0,0 +1,120 @@ +# WikiDeck Night 2: proposed game redesign (for review) + +Status: **draft, under review.** Written by the coordinator on 2026-11-17 from Eric's feedback on Night 1's game, Edit War. Night 2 runs unattended on 2026-11-17 from 21:30 to 02:00 EST. + +## Eric's feedback on Edit War (the requirements) +1. **Real cards:** a player's deck is made of the cards they actually mined and own. Loaners existed for the demo; the real game uses real cards. +2. **PvP:** players must be able to play each other, not only the AI. Hosted lobbies exist (`src/game/OnlinePlay.tsx`, `server/game/host.ts`) but are buried. +3. **Story:** Edit War "doesn't really tell much of a story with the actual cards". +4. **Feel:** Magic: The Gathering is the model for how it should feel. +5. **Modes:** keep the different modes (classic, draft, trending); Eric likes them. +6. **Tone:** "The fact that I can use a Tetrated Dodecahedron in a game with Barack Obama is funny. Lean into this. The game should take itself seriously, but the end result is going to be entertaining for this reason." (Eric's original v2 post also mentions using his *Tetrated dodecahedron* card to buff his *Cho Yang-ho* card, and node operators running house rules.) +7. **Wikipedia limits:** our servers must respect Wikimedia rate limits by default instead of getting cut off. Night 1 hit HTTP 429 from our shared IP. +8. **iOS:** paused (Apple licence acceptance). Out of scope. + +## Hard constraints +- **Consensus is fixed:** + - No changes to the chain, block format, mint stats snapshot or consensus files (see `docs/night/BOUNDARIES.md`). + - Everything game-related is derived off-chain from what a card already holds. +- **Where work happens:** in the `claude/wikideck` fork, through reviewed PRs. Eric merges upstream. +- **No live deployment:** don't touch mainnet or the live node at wikideck.eom.dev. +- **Budget:** 4.5 hours, about 10 agents across 4 machines (tower-plus, imac, inspiron-3670, poweredge-r350). Night 1 used 17 agents for 2.75 h and about 10% of the weekly usage budget; 75% remains. + +## Facts the design must face +- **Card data:** what a card holds is shown in `shared/enrichment.ts` (PageEnrichment / MintStatsSnapshot) and `shared/testnet.ts` (BlockHeader). + - **Article:** pageId, title, extract, image, category, revisionId. + - **Mint snapshot:** pageBytes, languageCount, 6 months of pageviews with trendPercent and dailyAverage, and the attention, depth and reach scores. + - **Night 1 also used:** the Wikidata id, P31 "instance of", and live pageviews, all fetched off-chain. + - Real distributions are in `docs/game/CARD_DATA.md`: compressed scores, a skewed category split, and a reach of 0 for 18% of cards. +- **SUPPLY:** + - One card is minted per block, with a consensus target of one block per 15 minutes: at most about 96 new cards a day, network-wide. + - **Mainnet today has 12 cards in total, all owned by one wallet**, all mined on 2026-11-01. + - A "deck of your own mined cards" in the Magic sense (40–60 cards) is impossible for anyone for a long time. + - **This is the biggest viability question; see Open problem 1.** +- **Cards are unique NFTs:** each card is one specific mint, and the same article can be minted more than once (`pageId` repeats). +- **Night 1 code to reuse:** + - the deterministic rules engine and its rules-as-data style (`shared/game/`) + - the bots and the balance simulator (`shared/bots/`, `scripts/sim/`) + - hosted lobbies and modes (`server/game/`) + - Dex accounts (`server/account/`) + - the Android shell (`android/`) + +## Proposed design + +### A. Card identity from the article (MTG-style types) +The card type comes from Wikidata P31, with a fallback to Wikipedia categories: + +| Article is a… | Card type | MTG analogue | +|---|---|---| +| person, character, animal species | **Figure** | creature | +| place, region, celestial body, structure | **Location** | land (resource) and/or permanent | +| event, battle, election, disaster | **Event** | instant/sorcery | +| creative work, organisation, company, team, product | **Institution** | artifact | +| concept, theory, mathematical object, ideology, field | **Doctrine** | enchantment | + +**Factions (colours):** the 6 P31-based factions proposed in CARD_DATA.md, plus a neutral fallback. + +**Stats from data:** +- **Power and toughness** come from percentile attention, depth and reach. For example, attention drives power, and depth drives toughness and staying power. +- **Cost** follows the curve: high-stat cards cost more. + +**Rules text:** +- Generated deterministically from a fixed table of templates keyed on type, faction, category keywords, trend, language count, dates (birth/death, founding, event date), coordinates, and so on. +- It is written in MTG's terse register. +- **Flavour text:** the first sentence of the article's extract. + +### B. Story mechanics +- **Connected:** two cards whose articles link to each other, or share a Wikidata property such as country, field or era, gain a bonus together. Barack Obama with the White House; Tetrated dodecahedron with Polyhedron. +- **Citations:** a resource or counter flavoured as sources. +- **Edit wars and vandalism:** removal and interaction effects. +- **Deadpan tone:** the game is completely straight, like an encyclopedia or an MTG judge. The comedy comes from the matchups, never from jokes in the text. +- **Match log:** written as a dry encyclopedic account. +- **After each match:** a Wikipedia-style article, *"Battle of the Tetrated Dodecahedron (2026)"*. It has: + - an infobox: date, belligerents, commanders (the players), strength (the cards), result + - a short deterministic narrative built from the match log + - a "References" list citing every card's real article +- These recaps are shareable. + +### C. Game structure +- **Duel:** two players, a life total, turns with attack and block, and permanents on a battlefield. +- **Resources:** from Locations and/or a fixed per-turn income, designed to avoid MTG's "land screw" (no resource cards, no game). +- **Deck size and composition:** depends on Open problem 1. + +### D. PvP first +- **Matchmaking:** a queue, invite-by-link and a ranked ladder (Elo or Glicko). +- **Identity:** the eom.dev account, with linked wallets as the card source. +- **Hosting:** the hosting node runs the match, so there's no client trust. +- **AI opponents:** still available for practice and onboarding. + +### E. Modes (kept) +- **Classic:** constructed from owned cards. +- **Draft:** players draft from a shared pool, so they don't need large collections. +- **Trending:** stats boosted by live pageviews. +- **Peer-hosted house rules:** remain data-only. + +### F. Wikimedia politeness by default +- **One client:** a single throttled Wikimedia client used by every server-side caller (`server/wiki.ts`, `server/enrichment.ts`, P31 lookups, link lookups). +- **Throttling:** + - a conservative rate limit by default (for example 1 request/s and 1 concurrent request per node, configurable) + - `maxlag` + - honour `Retry-After` with backoff + - batch up to 50 titles per request + - an on-disk cache with ETags and conditional requests + - a daily refresh for live stats +- **User-Agent:** a default UA that identifies the node and an operator contact, as Wikimedia's policy asks. +- **Volume:** a design budget for requests per match and per mint. + +## Open problems for the review team +1. **Supply versus "real cards only".** What makes a real-cards game playable when a player owns 0–12 cards and the network mints at most about 96 a day? Options to evaluate (add others): + - (a) A small deck size, such as 7–10 cards, with recursion and reuse. + - (b) Your owned cards are your "commanders" or champions, and a shared pool of common public-domain article cards fills the rest. This conflicts with Eric's requirement, so it would have to be argued. + - (c) Draft as the main mode, where the pool is drawn from the whole chain's minted cards and ownership gives cosmetic credit or a guaranteed pick. + - (d) A collection-as-deck where every owned card counts, scaled by size. + - (e) Card copies or "editions" (no consensus change possible, so off-chain only?). + + Recommend one, and say what Eric must decide. +2. Is MTG-style attack/block too complex to build, balance and make readable in one night? What is the smallest rules core that still feels like Magic? +3. Is P31 typing reliable enough? Check against the real sample in `docs/game/card-sample.json` and `docs/game/starter-cards.json`. Plan for unclassified cards, which were 14% of Night 1's sample. +4. Can "Connected" link lookups be done within the Wikimedia budget? Where does the data come from, and when is it fetched and cached? +5. Can the generated rules text be both deterministic and good? Does it need an LLM? LocalAI exists on the cluster, but determinism and the consensus boundary matter. +6. What scope is realistic for 4.5 hours with about 10 agents, and what gets cut first? diff --git a/docs/night2/TESTNET.md b/docs/night2/TESTNET.md new file mode 100644 index 0000000..57cb211 --- /dev/null +++ b/docs/night2/TESTNET.md @@ -0,0 +1,67 @@ +# Night 2 private testnet: how to test (testnet-ops, #63) + +**Testnet only, LAN only, on poweredge-r350.** It is never mainnet and never the live `wikideck` namespace. + +## Nodes +| node | URL | game modes (env from Night 1 #22) | +|---|---|---| +| node-a | http://192.168.1.32:3101 | classic, trending | +| node-b | http://192.168.1.32:3102 | draft | +| node-c | http://192.168.1.32:3103 | classic, draft, trending | + +- **Autodeploy:** the nodes follow `night/2026-11-17`. A loop on r350 (`deploy/night/autodeploy.sh`, in a dedicated detached worktree) polls the branch every 3 min. + - On a new head it rebuilds the image and restarts node-a, then b, then c, each after the previous one passes `/healthz`. + - While any match or lobby is live it defers, for up to 15 min. + - Lobbies are in memory, so a deploy that does go through ends games in progress. After night-lead merges, wait about 5 min, or check that all three nodes report the new head, before you start an end-to-end run. +- Ledgers persist in the Docker volumes across deploys. + +## Test wallets +Four disposable wallets: **alice**, **bob**, **carol** and **dave**. + +| wallet | address | cards (confirmed) | +|---|---|---| +| alice | `ff9273368c225698d8ae34430800cfe30b10a1c3d8c21091d42960493db556df` | see #63 | +| bob | `80f17f10ca782efd16783d10d71ce43b2993aadccda36dbd0364dee1921cbc22` | see #63 | +| carol | `f2d908633c4313bd77e86650c13d11ac3e7e656223ebe881cc34ffba3f3e0524` | leftovers | +| dave | `02bb97f202e1616ab97b45e8938e384dcbf622a0b44a7f4c1589f44236d3ccef` | leftovers | + +- Confirmed at height 91: **alice 41, bob 40**, carol 5, dave 5. Block #92 came from the Android emulator (#59). +- alice and bob were consolidated to 40 cards each with on-chain NFT transfers from carol and dave, so **production `deckSize` 40 works on the testnet** and no lower-deckSize test mode is needed. +- **The encrypted browser backups are in a comment on #63**, not in git. + - Backup password: `wikideck-night-testnet`. It is **public and testnet-only**: never reuse it, and never put a real secret next to it. + - Anyone who can read this repo's issues can open these wallets. Keep them on the LAN-only testnet, and never send them anything of value. +- Re-check counts at any time: `GET http://192.168.1.32:3101/api/decks/
?offset=0&limit=24` (pages of 24, follow `next`). + +### Load a wallet in the browser +**First make the node origins a secure context** (found by night-review on #63). +- `http://192.168.1.32:310x` is plain HTTP on a LAN address, so the browser leaves `crypto.subtle` undefined. Open wallet then fails with "Cannot read properties of undefined (reading 'digest')" or "Wallet storage unavailable". +- **Chrome/Chromium:** open `chrome://flags/#unsafely-treat-insecure-origin-as-secure`, add `http://192.168.1.32:3101,http://192.168.1.32:3102,http://192.168.1.32:3103`, then relaunch. +- **Command line:** `--unsafely-treat-insecure-origin-as-secure=http://192.168.1.32:3101,http://192.168.1.32:3102,http://192.168.1.32:3103 --user-data-dir=`. +- **Playwright:** use the full `chromium` channel. The headless shell ignores this flag. +- **SSH tunnel to `localhost`:** this also works for the wallet, but it breaks the Dex callback URLs, so you can't do the login/link step that way. +- **Firefox** has no per-origin equivalent. + +Use a separate browser profile per player, because a browser holds one wallet per origin. +1. Open a node URL, then **Open wallet**. +2. **Recover from a local backup**: choose the backup JSON file (save it from the #63 comment as `alice.backup.json`), and enter the backup password above. +3. Set a new local encryption password (at least 12 characters, anything testnet-only), then confirm it. +4. The wallet dialog should show the address above and its confirmed card count. + +### eom.dev login (Dex) +- There is no new Dex config tonight. The existing `wikideck` client already allows the 3101–3103 callbacks. +- Log in with **Log in with eom.dev**, then unlock the wallet and press **Link wallet …** to link it to the account. +- PvP seats are keyed to the account, and ownership is checked on the server against the account's linked wallets. So for a two-player run you need **two eom.dev accounts**, one with alice linked and one with bob. Which accounts to use is night-lead's call (see #53/#63). Never use a real person's account without their OK. + +## Mining on the testnet +- Mining isn't needed for tests. Only run a miner if night-lead asks for more blocks, or to confirm transfers. +- `deploy/night/testnet.sh mine N [workers]` runs the native multi-worker miner in a container named `wikideck-night-miner` (at most 4 workers on r350). + - Every template costs Wikipedia requests on the node, so it is paced by `MIN_GAP`. + - **testnet-ops stops any miner by 01:55** (`docker rm -f wikideck-night-miner`). The nodes stay up. +- **Difficulty (for mobile mining, #59):** at block ~90, an accepted block took between about 2 K and 130 K hashes. That is up to ~8 min at the 4-worker r350 rate of ~250 H/s. One light-mode thread on the emulator is far slower, so expect a long wait per block, with high variance. + +## Card identity pre-bake (engineer WS E) +- `server/game/identity.ts` is a persistent per-token store (`node:sqlite`). It freezes each card's off-chain identity at first sight and never rewrites it. The identity covers P31/P279 classes, description, categories, countries, years, coordinates and outlink pageIds. Its fields match duel-cards' `CardProfile` (#70), and `toProfile()` returns that view. +- `scripts/night2/prebake-identity.ts --node [--store ] [--cards ...]` reads the canonical chain from one node and freezes what the cached card files know. The store defaults to `$WIKIDECK_DATA_DIR/card-identity.sqlite` (`identityStoreFile()`), and hosts should open it at the same path. + - It **never calls Wikimedia itself**. + - Live facts arrive only through the wikimedia team's client on its `background` lane (#62), once that client has merged. + - Cards that are still unknown stay unfrozen and are retried on a later run. diff --git a/docs/night2/WIKIMEDIA.md b/docs/night2/WIKIMEDIA.md new file mode 100644 index 0000000..3979092 --- /dev/null +++ b/docs/night2/WIKIMEDIA.md @@ -0,0 +1,72 @@ +# Polite Wikimedia client (Night 2, issue #62) + +Every server-side Wikimedia request goes through one process-wide `WikimediaClient` +(`server/wikimedia/client.ts`). The design comes from engineer review §4 and data review §5. + +## What it does + +| Behaviour | Default | +|---|---| +| Rate per upstream host (`en.wikipedia.org`, `wikimedia.org`, `www.wikidata.org`) | token bucket, 1 req/s, burst 3 | +| Concurrency | 1 request in flight per host | +| Priority lanes | `mint` → `interactive` → `background`; the queue holds 64 waiters, and background work is shed first | +| Longest queue wait | mint 10 s, interactive 5 s, background 120 s | +| `maxlag` | `maxlag=5` on every Action API request; a maxlag reply waits for `Retry-After` and retries up to 2 times | +| 429 / 503 | honour `Retry-After` (seconds or HTTP date), else back off 2ⁿ s with jitter, capped at 10 min, by pausing the whole host | +| Circuit breaker | 3 consecutive 429s stop that host for 10 min. Requests are refused at once without touching Wikimedia | +| Daily cap | 20,000 requests a day per egress IP. Background work stops at 80 %, interactive at 100 %; mint has a 10 % reserve | +| Disk cache | `$WIKIDECK_DATA_DIR/wikimedia-cache.sqlite`: ETag / Last-Modified, `If-None-Match`, stale-while-revalidate on the background lane, stale copy served on refusal | +| User-Agent | `WikiDeck/ (+https://gitea.eom.dev/WikiDeck/wikideck; ) node/` | + +The rate is deliberately 1 req/s for **every** host, including the `wikimedia.org` REST (pageviews) host. +The engineer review suggested 5 req/s there; we are stricter on purpose after the Night 1 rate limiting, because the +budget is per egress IP. Raise it only with a reason and a per-host setting. + +Cache lifetimes: article metadata 24 h, monthly pageviews 7 days (the URL names six closed +months, which do not change). Random articles and all mint reads are never cached. + +## Operator settings + +| Variable | Meaning | +|---|---| +| `WIKIDECK_OPERATOR_CONTACT` | **Set this.** An email address or URL, put in the User-Agent. Without it (and without `PUBLIC_ORIGIN`), the node logs a warning at start-up. Wikimedia policy requires a contact, and contact-less clients are the first to be blocked. | +| `PUBLIC_ORIGIN` | Used as the contact when `WIKIDECK_OPERATOR_CONTACT` is unset. | +| `WIKIDECK_USER_AGENT` | Overrides the whole User-Agent string (sanitized; kept from Night 1). | +| `WIKIDECK_WIKIMEDIA_RPS` | Requests per second per host for the **whole egress IP** (default 1). | +| `WIKIDECK_WIKIMEDIA_BURST` | Token-bucket burst (default 3). | +| `WIKIDECK_WIKIMEDIA_CONCURRENCY` | In-flight requests per host (default 1). | +| `WIKIDECK_WIKIMEDIA_DAILY_CAP` | Requests per UTC day for the whole egress IP (default 20000). | +| `WIKIDECK_WIKIMEDIA_NODES_PER_IP` | How many nodes share this egress IP. The rate and the daily cap are divided by it. **The testnet runs several nodes behind one IP: set it to the node count** (e.g. 3 for `deploy/night/compose.lan.yaml`). | + +The testnet's `WIKIDECK_USER_AGENT` already names the project URL, which satisfies the policy. + +Counters (`lane.*`, `http.429`, `breaker.open`, `cache.hit`, `refused.*`, …), per-host pause state and the +mint pool's state are in the private operations listener's `/status`, under `wikimedia`. + +## Mint path: transport only + +- `random()` (W1) and `getFresh()` (W2 and W3) keep their request parameters byte-identical. The only + addition is `maxlag=5`, which changes only error behaviour. `tests/wikimedia-mint.test.ts` pins the exact URLs. +- Mint reads use the `mint` lane and **never** read or write the disk cache, and never join a display read. +- **Fixed:** a 429, 5xx, timeout, network error or non-JSON reply on the pageviews call used to mint a card with + `attention: null` forever (`enrichment.ts`). Now `getFresh()` rejects, the template returns 503 and the miner + retries. `unavailable` is minted only for a genuine 404 (no data) or missing months. +- No block, transfer, trade or validation code changed. Validation never calls Wikimedia. + +## Mining prefetch pool (`server/wikimedia/pool.ts`) + +Each template used to cost 3+ requests, all in a burst at each new tip, so load scaled with the number of miners. +Now every template on the same tip gets the same fresh article+snapshot pair (miners race for one block anyway), +and a new tip takes the next prefetched pair. Load is about one pair, or 3 requests, per block, whatever the number +of miners. + +- Pairs come from the mint-path reads above, and the snapshot is stamped when the pair is fetched, so `capturedAt` is true. +- Pairs older than 5 minutes are dropped, never served. +- The pool (2 pairs) refills only after use, so an idle node makes no requests. + +## Card faces + +`/api/wikipedia/:id` → `get()`: memory LRU, then the disk cache (fresh, or stale with a background +revalidation), and only then the interactive lane. A grid of cards therefore no longer means a burst +of 2 upstream requests per card per render. `TrendCache` can use `getBackground()` to stay off the +interactive lane. diff --git a/docs/night2/analysis/connected.py b/docs/night2/analysis/connected.py new file mode 100644 index 0000000..fa5f91a --- /dev/null +++ b/docs/night2/analysis/connected.py @@ -0,0 +1,44 @@ +"""How often random card pairs share cheap relations. Usage: python3 -I connected.py """ +import json, sys, re, itertools, collections, importlib.util, os +cards = json.load(open(sys.argv[1]))['cards'] +spec = importlib.util.spec_from_file_location('ty', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'types.py')) +ty = importlib.util.module_from_spec(spec); spec.loader.exec_module(ty) +GENERIC = re.compile(r'stubs|living people|\d+ (births|deaths)$|articles|wikidata|pages', re.I) +COUNTRIES = ['United States','American','England','English','British','France','French','Germany','German','Japan','Japanese','China','Chinese', + 'India','Indian','Brazil','Poland','Polish','Italy','Italian','Spain','Spanish','Austria','Canada','Canadian','Australia','Australian','Russia','Russian', + 'Mexico','Mexican','Iran','Pakistan','Bangladesh','Sweden','Swedish','Norway','Estonia','Ukraine','Croatia','Philippines','Cuba','Israel','Portugal','Scotland','Wales','Ireland','Kazakhstan','Malaysia','Argentin','Belgi','Iceland','Bermuda','Thailand','Singapore','Sri Lanka','Slovenia','Moldova','Cyprus','Macedonia','Mauritania','Congo','Gibraltar','Hong Kong','New Zealand','Korea','Indonesia','Aceh'] +NORM = {'American':'United States','English':'England','British':'United Kingdom','England':'United Kingdom','Scotland':'United Kingdom','Wales':'United Kingdom', + 'French':'France','German':'Germany','Japanese':'Japan','Chinese':'China','Indian':'India','Polish':'Poland','Italian':'Italy','Spanish':'Spain', + 'Canadian':'Canada','Australian':'Australia','Russian':'Russia','Mexican':'Mexico','Swedish':'Sweden'} +Y = re.compile(r'\b(1[0-9]{3}|20[0-2][0-9])') +def feats(c): + txt = (c['description'] or '') + ' | ' + ' | '.join(c['categories']) + ctry = {NORM.get(k, k) for k in COUNTRIES if k in txt} + cents = {int(y) // 100 for y in Y.findall(c['title'] + ' ' + txt)} + cats = {x for x in c['categories'] if not GENERIC.search(x)} + p31 = {i['id'] for i in c['instanceOf']} + return dict(ctry=ctry, cent=cents, cats=cats, allcats=set(c['categories']), p31=p31, type=ty.classify(c)[0]) +F = [feats(c) for c in cards]; pairs = list(itertools.combinations(range(len(cards)), 2)); N = len(pairs) +def rate(f): + k = sum(1 for i, j in pairs if f(F[i], F[j])); return f'{k}/{N} ({100*k/N:.2f}%)' +print('pairs', N) +print('share any category (incl. generic)', rate(lambda a, b: a['allcats'] & b['allcats'])) +print('share specific category', rate(lambda a, b: a['cats'] & b['cats'])) +print('share P31 class', rate(lambda a, b: a['p31'] & b['p31'])) +print('share P31 excl human/taxon', rate(lambda a, b: a['p31'] & b['p31'] - {'Q5', 'Q16521'})) +print('share country (text proxy for P17/P27)', rate(lambda a, b: a['ctry'] & b['ctry'])) +print('share century (text proxy for dates)', rate(lambda a, b: a['cent'] & b['cent'])) +print('share type', rate(lambda a, b: a['type'] == b['type'])) +print('country OR century OR specific cat', rate(lambda a, b: (a['ctry'] & b['ctry']) or (a['cent'] & b['cent']) or (a['cats'] & b['cats']))) +print('cards with >=1 country', sum(1 for f in F if f['ctry']), 'with >=1 century', sum(1 for f in F if f['cent'])) +# deck-level: chance that a random 10-card hand-pair (10 vs 10, own deck) has >=1 connected pair within a deck +import random; random.seed(1) +def deck_hits(pred, size=10, trials=2000): + h = 0 + for _ in range(trials): + s = random.sample(range(len(F)), size) + if any(pred(F[i], F[j]) for i, j in itertools.combinations(s, 2)): h += 1 + return f'{100*h/trials:.0f}%' +pc = lambda a, b: (a['ctry'] & b['ctry']) +print('10-card deck has >=1 same-country pair', deck_hits(pc), '| specific category', deck_hits(lambda a, b: a['cats'] & b['cats']), + '| country-or-century', deck_hits(lambda a, b: (a['ctry'] & b['ctry']) or (a['cent'] & b['cent']))) diff --git a/docs/night2/analysis/fields.py b/docs/night2/analysis/fields.py new file mode 100644 index 0000000..f08b07e --- /dev/null +++ b/docs/night2/analysis/fields.py @@ -0,0 +1,23 @@ +"""Field availability for rules-text generation in card-sample.json. Usage: python3 -I fields.py """ +import json, sys, re, statistics, collections +cards = json.load(open(sys.argv[1]))['cards']; n = len(cards) +Y = re.compile(r'\b(1[0-9]{3}|20[0-2][0-9])\b') +def share(f): k = sum(1 for c in cards if f(c)); return f'{k}/{n} ({100*k/n:.0f}%)' +print('description non-empty', share(lambda c: bool(c['description']))) +print('wikidataId', share(lambda c: bool(c['wikidataId']))) +print('P31 present', share(lambda c: bool(c['instanceOf']))) +print('>=1 non-hidden category', share(lambda c: len(c['categories']) > 0)) +print('categories truncated (cllimit 50)', share(lambda c: c['categoriesTruncated'])) +print('median categories', statistics.median(len(c['categories']) for c in cards)) +print('year in title', share(lambda c: Y.search(c['title']))) +print('year in description', share(lambda c: Y.search(c['description'] or ''))) +print('year in categories', share(lambda c: any(Y.search(x) for x in c['categories']))) +print('year anywhere (title/desc/cats)', share(lambda c: Y.search(c['title'] + ' ' + (c['description'] or '') + ' ' + ' '.join(c['categories'])))) +print('births/deaths category', share(lambda c: any(re.search(r'\d+ (births|deaths)', x) for x in c['categories']))) +print('establishments/completed category', share(lambda c: any(re.search(r'establishments|completed in|disestablish|opened in', x) for x in c['categories']))) +print('living people', share(lambda c: 'Living people' in c['categories'])) +print('stub category', share(lambda c: any('stubs' in x for x in c['categories']))) +print('country/nationality word in desc or cats', share(lambda c: re.search(r'American|British|English|French|German|Japan|China|Chinese|India|Brazil|Poland|Polish|Italy|Italian|Spain|Spanish|Austria|Canada|Australia|Russia|United States', (c['description'] or '') + ' '.join(c['categories'])))) +print('legacy category on-chain', collections.Counter(c['legacyCategory'] for c in cards)) +print('pageviews available', share(lambda c: c['pageviews']['status'] == 'available')) +print('languagesTruncated', share(lambda c: c['languagesTruncated'])) diff --git a/docs/night2/analysis/stats.py b/docs/night2/analysis/stats.py new file mode 100644 index 0000000..4b7d2be --- /dev/null +++ b/docs/night2/analysis/stats.py @@ -0,0 +1,59 @@ +"""Proposed percentile -> cost/power/toughness derivation, evaluated on card-sample.json. +Usage: python3 -I stats.py """ +import json, sys, collections, statistics, itertools +d = json.load(open(sys.argv[1])); cards = d['cards']; P = d['percentiles'] +def pct(s, v): # DESIGN 1.1 counting: cut points strictly below + half of equal + if v is None: return None + cut = P[s]; return int(sum(c < v for c in cut) + sum(c == v for c in cut) / 2) +TH = [26, 39, 51, 63, 78] # v1.1 costThresholds (fame -> cost 1..6) +BUDGET = [None, 3, 4, 6, 8, 10, 12] # P+T per cost, MTG vanilla curve (2/1, 2/2, 3/3, 4/4, 5/5, 6/6) +def derive(c): + a, dp, r = (pct(k, c['stats'][k]) for k in ('attention', 'depth', 'reach')) + vals = [x for x in (a, dp, r) if x is not None] + fame = int(sum(vals) / len(vals) + 0.5) + cost = 1 + sum(t <= fame for t in TH) + b = BUDGET[cost] + kw = 'Multilingual' if r >= 75 else ('Local' if c['stats']['reach'] == 0 else None) + if kw == 'Multilingual': b -= 1 # evasion-like keyword is paid for out of the body + if kw == 'Local': b += 0 # Local = gains +1/+1 next to a same-country Location (conditional, no tax) + share = (a if a is not None else 50) / max(1, (a if a is not None else 50) + dp) # attention vs depth + pw = min(b - 1, max(1, round(b * share))); t = b - pw + return dict(title=c['title'], a=a, d=dp, r=r, fame=fame, cost=cost, P=pw, T=t, kw=kw, + trend=c['pageviews']['trendPercent'], daily=c['pageviews']['dailyAverage']) +rows = [derive(c) for c in cards]; n = len(rows) +def naive(c): # straw man: power = attention tier, toughness = depth tier, cost from their sum + ti = c['tiers']; pw = (ti['attention'] or 1 + 1) // 2 + 0; t = (ti['depth'] + 1) // 2 + return dict(cost=max(1, min(6, round((pw + t) / 2))), P=pw, T=t) +nv = [naive(c) for c in cards] +def dominated_pairs(rs, use_kw=False): + k = 0 + for x, y in itertools.permutations(rs, 2): + if x['cost'] <= y['cost'] and x['P'] >= y['P'] and x['T'] >= y['T'] and \ + (x['cost'] < y['cost'] or x['P'] > y['P'] or x['T'] > y['T']) and (not use_kw or x.get('kw') == y.get('kw')): + k += 1 + return k +print('cost distribution', sorted(collections.Counter(r['cost'] for r in rows).items())) +print('power distribution', sorted(collections.Counter(r['P'] for r in rows).items())) +print('toughness distribution', sorted(collections.Counter(r['T'] for r in rows).items())) +print('keywords', collections.Counter(r['kw'] for r in rows)) +print('P/T by cost:') +for cst in range(1, 7): + g = [r for r in rows if r['cost'] == cst] + if g: print(' ', cst, len(g), collections.Counter(f"{r['P']}/{r['T']}" for r in g).most_common(6)) +pairs = n * (n - 1) +print('strict-dominance pairs proposed', dominated_pairs(rows), 'of', pairs, '; same-keyword only', dominated_pairs(rows, True)) +print('strict-dominance pairs naive ', dominated_pairs(nv), 'of', pairs) +# efficiency by fame quintile +q = sorted(rows, key=lambda r: r['fame']) +print('fame quintile: mean cost, mean (P+T)/cost proposed | naive (P+T)/cost') +idx = sorted(range(n), key=lambda i: rows[i]['fame']) +for k in range(5): + sl = idx[k * n // 5:(k + 1) * n // 5] + print(f" Q{k+1} fame {rows[sl[0]]['fame']}-{rows[sl[-1]]['fame']}: cost {statistics.mean(rows[i]['cost'] for i in sl):.2f} " + f"eff {statistics.mean((rows[i]['P']+rows[i]['T'])/rows[i]['cost'] for i in sl):.2f} | naive eff " + f"{statistics.mean((nv[i]['P']+nv[i]['T'])/nv[i]['cost'] for i in sl):.2f}") +top = sorted(rows, key=lambda r: -r['fame'])[:6] + sorted(rows, key=lambda r: r['fame'])[:3] +print('examples (top fame, bottom fame):') +for r in top: print(f" {r['title'][:34]:34s} a{r['a']} d{r['d']} r{r['r']} fame{r['fame']} cost{r['cost']} {r['P']}/{r['T']} {r['kw'] or ''}") +tr = [r for r in rows if r['trend'] is not None and r['trend'] >= 25 and (r['daily'] or 0) >= 20] +print('trending (+25% and daily>=20):', len(tr), f'{100*len(tr)/n:.1f}%') diff --git a/docs/night2/analysis/types.py b/docs/night2/analysis/types.py new file mode 100644 index 0000000..1d8cd3f --- /dev/null +++ b/docs/night2/analysis/types.py @@ -0,0 +1,79 @@ +"""Classify card-sample.json into Figure/Location/Event/Institution/Doctrine. +Order: P31 label rules (first rule that matches ANY P31 label wins, rule order = priority), +then category keywords, then description keywords, then deterministic fallback. +Usage: python3 -I types.py [--list]""" +import json, re, sys, collections +RULES_P31 = [ # (type, regex on a P31 label). Order matters: specific before generic. + ('Doctrine', r'aspect of|aspect in|disease|clinical sign|list article|chemical entity'), + ('Event', r'election|protest|battle|war\b|storm|nor.easter|cyclone|tornado|earthquake|disaster|event|match|final\b|' + r'season|championship|tournament|\brace\b|grand prix|scandal|annexation|treaty|incident|festival|referendum|' + r'conference|ceremony|time period|delegation'), + ('Institution', r'artificial satellite|space station|space telescope|spacecraft|space probe'), + ('Location', r'planet|natural satellite|\bstar\b|galaxy|nebula|planetary system|astronomical object|rainforest|reef|' + r'civili[sz]ation|empire|historical country|archaeological site|' + r'human settlement|settlement|village|town|city|commune|municipal|parish|county|district|region|province|' + r'township|hamlet|townland|census area|local government|community of|island|river|lake|mountain|plateau|' + r'waterfall|valley|bay|peak|geographical feature|historic district|park|state park|square|road|highway|' + r'building|castle|mosque|church|temple|cathedral|house|home|museum|station|bridge|monument|historic site|' + r'military base|battery|refinery|shopping|stadium|arch|tower|fort|palace|columbari|council'), + ('Figure', r'^human$|fictional character|stock character|person|deity|orisha|loa\b|taxon|species|genus|breed|' + r'^family$|organism'), + ('Institution', r'company|business|organi[sz]ation|association|society|party|agency|studio|band|musical group|team|club|' + r'university|college|school|institute|diocese|ecclesiastical|manufacturer|newspaper|magazine|film|album|' + r'song|single|musical work|composition|television|series|book|novel|video game|painting|award|position|' + r'aircraft|ship|steamship|vehicle|automobile|tram|railway line|route|typeface|software|product|brand'), + ('Doctrine', r'concept|theory|theorem|mathematical|programming language|language|gene|protein|chemical|compound|' + r'disease|clinical sign|ideology|religion|discipline|field|cuisine|food|dish|drink|aspect|list article|' + r'particle|process|genre|form\b|game\b|branch of|class of|type of|tabular'), +] +RULES_CAT = [ # fallback on non-hidden category titles (lowercase) + ('Figure', r'\bbirth|\bdeaths\b|living people|people from|\bspecies\b|described in \d|\bgenera\b|deities|characters'), + ('Event', r'\belections\b|protests|\bbattles\b|disasters|\braces\b|\bseasons\b|\bevents\b|scandals|annexations|competitions'), + ('Location', r'villages|communes|parishes|local government|populated places|geography|rivers|islands|buildings and structures|bridges|' + r'stations|parks|districts|townships|cities and towns|historic places'), + ('Institution', r'companies|organi[sz]ations|\bfilms\b|albums|songs|novels|newspapers|television series|musical groups|' + r'aircraft|ships|typefaces|software|awards|teams|clubs'), + ('Doctrine', r'theory|structures$|algebra|terminology|cuisine|drinks|desserts|ecology|languages|diseases|conditions|' + r'concepts|ranks|etymology|maps|atlases'), +] +RULES_DESC = [ + ('Figure', r'\b(painter|politician|actor|writer|player|born|species|genus)\b'), + ('Event', r'\b(race|election|battle|match|protest|storm|war|competition)\b'), + ('Location', r'\b(village|town|city|river|island|building|church|columbarium|station|park)\b'), + ('Institution', r'\b(company|band|film|album|organi[sz]ation|team|aircraft|ship|newspaper)\b'), + ('Doctrine', r'\b(concept|theory|structure|dessert|drink|dish|technique|class of)\b'), +] +TYPES = ['Figure', 'Location', 'Event', 'Institution', 'Doctrine'] + +def classify(card): + labels = [i['label'].lower() for i in card.get('instanceOf') or []] + for t, rx in RULES_P31: + for l in labels: + if re.search(rx, l): return t, 'p31', l + cats = [c.lower() for c in card.get('categories') or [] if 'stubs' not in c.lower()] + for t, rx in RULES_CAT: + for c in cats: + if re.search(rx, c): return t, 'category', c + desc = (card.get('description') or '').lower() + for t, rx in RULES_DESC: + if re.search(rx, desc): return t, 'description', desc + # deterministic last resort: Doctrine (the residual "idea" class); never hash-random. + return 'Doctrine', 'fallback', '' + +if __name__ == '__main__': + d = json.load(open(sys.argv[1])); cards = d['cards'] + res = [(c, *classify(c)) for c in cards] + n = len(res) + by_t = collections.Counter(r[1] for r in res); by_src = collections.Counter(r[2] for r in res) + print('n', n) + for t in TYPES: print(f'{t:12s} {by_t[t]:4d} {100*by_t[t]/n:5.1f}%') + for s in ['p31', 'category', 'description', 'fallback']: print(f'src {s:12s} {by_src[s]:4d} {100*by_src[s]/n:5.1f}%') + print('labels w/o p31 match but has p31:', sum(1 for c,t,s,w in res if s!='p31' and c['instanceOf'])) + print('cross-tab old faction x new type') + ct = collections.Counter((c['faction'], t) for c,t,s,w in res) + for f in sorted({c['faction'] for c in cards}): + print(f' {f:14s}', {t: ct[(f,t)] for t in TYPES if ct[(f,t)]}) + if '--list' in sys.argv: + for c,t,s,w in res: + if [i['label'] for i in c['instanceOf']] == ['human']: continue + print(f"{t[:5]} {s[:4]} | {c['title'][:42]:42s} | {w[:40]}") diff --git a/docs/night2/mobile-mining-accepted.jpg b/docs/night2/mobile-mining-accepted.jpg new file mode 100644 index 0000000..c05457a Binary files /dev/null and b/docs/night2/mobile-mining-accepted.jpg differ diff --git a/docs/night2/reviews/critic.md b/docs/night2/reviews/critic.md new file mode 100644 index 0000000..cc13d44 --- /dev/null +++ b/docs/night2/reviews/critic.md @@ -0,0 +1,171 @@ +# Night 2 plan: critic / player-advocate review + +Reviewer: critic. Sources: night2/PLAN.md, wd/docs/game/{DESIGN,CARD_DATA}.md, card-sample.json, wd/docs/night/{HANDBOOK,BOUNDARIES}.md, Night 1 report (`~/Desktop/night/night-lead/REPORT.md`; it is not in wd/docs/night). Ranked by severity, most severe first. + +## Facts the plan doesn't state, but which decide everything +- **Mined cards are random articles.** `server/wiki.ts` uses `generator=random`. Nobody chooses Barack Obama. The real pool looks like card-sample.json: 34% stubs, villages, beetles, French communes, local elections. "Tetrated dodecahedron vs Obama" will be rare. The everyday matchup is *Dichromorpha viridis vs 1954 Gold Coast general election*. That's still funny in a deadpan way, but the design and its examples must be built for it, not for celebrity cards. +- **Supply is about zero, not 96 a day.** 12 cards in 16 days, all in one wallet (Eric's), all from day 1. Mining has effectively stopped. +- **Mobile can't mine.** `App.tsx` hides the mining panel when `isNativeApp()`, so an Android player can never get a real card. +- **14% of sampled cards are living people** (33/236 in "Living people"). Events include ongoing protests with deaths (*2024–2026 Cuban protests*, *2025 Tehreek-e-Labbaik Pakistan protests*), a *sex scandal*, an *annexation*, and *Organization of the Luftwaffe (1933–1945)*. The safety rules (§6) are needed tonight, not someday. + +--- + +## S1 (blocker). "Real cards" + PvP is impossible today. This is Eric's decision, not the agents'. +Under a literal reading of point 1, exactly one person on Earth can play, and PvP has no opponent. Each option, measured against the request: +- **(a) Small decks of 7–10:** literal and honest. But only Eric qualifies, and with exactly 12 cards there's no deckbuilding, which is half of what makes MTG feel like MTG. +- **(b) Owned "commanders" plus a public filler pool:** this *is* the loaner system Eric just said was only for the demo, renamed. If agents choose it without asking, it's a quiet betrayal of the request. +- **(c) Draft from the chain's cards:** the cards are real mined cards, but the pool is the same 12 cards every match. It's degenerate until supply grows. On testnet, about 50 cards, it's fine. +- **(e) Off-chain editions:** prints cards with no proof of work and no consensus. It undermines what "mined" means. Reject it. +- **(d) Collection-as-deck:** this is (a) with scaling. Fine as the mechanism, but it doesn't solve the 0–3 card player. + +**Fix:** before 21:30, put these questions to Eric. Per standing preference, agents don't start building until Eric gives an explicit go. +1. "Does Classic and ranked PvP require 100% owned mined cards? (Recommend: yes.)" +2. "Can a player with fewer than N owned cards play casual or practice matches with clearly labelled **proxies**? They're never ranked, never shown as owned, and appear greyed out with the stamp 'Proxy'. (Recommend: yes, for practice, AI and invite-link casual only.)" +3. "Is Draft from the whole chain's minted cards 'real cards'? Ownership would earn the first pick and a credit line in the recap. (Recommend: yes.)" +4. "Can your 12 cards be used as public bot and ghost decks? (They're your wallet.)" +5. "Should we fix the supply side, so mobile users can get real cards, given that mobile can't mine? Options: a desktop-mining CTA, gifting by transfer (an on-chain action by Eric, not by agents), or an unlock condition such as 'mine 1 card to enter ranked'." + +**Default if Eric doesn't answer:** take the most literal reading. Ranked and Classic use owned cards only. Practice and AI use proxies, which look different. Draft uses chain-minted cards only. No editions. Record the decision in DESIGN.md §0 in Eric's own words. + +**Design implication either way:** the format must be fun with a small deck. Recommend **one format with no deck minimum**: a 10-card deck at most, and if you own fewer, you play what you own plus visible proxies, casual only. The engine must handle running out of cards gracefully. Draw from a reshuffled graveyard (DESIGN-style "recursion") instead of losing to an empty library. + +## S2 (blocker). PvP has no population. A ranked ladder tonight is wasted work, and unsafe. +Elo with one eligible player is theatre. Night 1's REPORT (known issues 2–3) also says hosted PvP trusts the host: the host picks the seed, there's no commit–reveal, and the UI log is built from full state and leaks hand contents. A ladder on top of that is cheatable. +**Fix, in order:** +1. **Invite-by-link casual PvP** first, made prominent on the Play screen. Eric can test it with a second account on testnet. +2. **Async "ghost" matches.** You play a bot piloting a real wallet's real deck (with that owner's opt-in), and the result is posted to the owner. This is the PvP that a population of five can actually have. +3. The **queue backfills with a bot after 30 s**, *labelled as a bot*. Never pass a bot off as a human. +4. Defer the ranked ladder until commit–reveal and `viewFor`-only logs land. Cut it tonight. + +## S3 (high). An MTG clone built in one night will be worse than Edit War +Edit War had a real hook: each lane is judged by one Wikipedia stat. The plan replaces it with generic power/toughness/cost. MTG is fun because of hand-designed cards, the stack and instant-speed interaction, and deckbuilding across thousands of cards. Tonight has none of that: procedurally generated text, 12 cards, and no stack. +**Fix: name the smallest core that still feels like Magic**, and only that: +- Two players, 20 life, and a resource that grows by 1 a turn automatically. Locations add +1 when played (no land screw). +- Board of 5 per side. Figures attack. The defender makes one block per attacker, chosen by tapping a blocker and then an attacker. No first strike, trample or multi-block in v1. +- Events are **sorcery-speed only**. No stack, no priority passes, no opponent-turn interaction. Every response window doubles PvP round-trips and the time needed for UI work. +- One keyword per card at most, from a list of about 8 (Night 1 used 6, with property tests). +- **Keep a Wikipedia hook that MTG doesn't have**, or this is "MTG with worse cards". Candidate: home stat as the creature's "evasion" (an attention attacker can only be blocked by a card with attention ≥ its own), or the trend arrow as haste. One hook, kept and tested. +- **Keep Edit War playable as a mode.** The code exists; deleting it removes a working fallback. + +## S4 (high). 360 px readability +An MTG board (two battlefields, hand, life, resources, rules text, combat arrows) doesn't fit 360 px if the cards carry generated paragraphs. +**Fix:** +- The card face on the battlefield shows: title (2-line clamp), type icon, cost, P/T, one keyword chip. The rules text and flavour live **only** in the tap-to-zoom sheet. +- Rules text has a hard limit of 90 characters, enforced by a test over the whole sample. +- Combat uses a "declare attackers → defender blocks → preview outcome → confirm" sheet, not drawn arrows. +- The QA gate is a 360×640 screenshot of a full board (5 + 5) on Android, attached to the UI PR. + +## S5 (high). Night 1 process lessons the plan doesn't apply +What went wrong (REPORT plus handbook): +- The design froze at 23:01, but the balance numbers were measured before the #38 change, so the shipped seat-advantage figure is stale. +- 3 OOMs (tower-plus, and r350 twice). +- imac's Gitea MCP was down all night, so the council had to relay through night-lead. +- Squash merges of stacked PRs caused add/add conflicts. +- Wikimedia 429s came from our own sampler. +- On Node 20, 12 tests failed falsely. + +**Fixes:** +- **Freeze rules on a schedule, and gate them on evidence.** Design frozen by 22:30 (one hour, not 45 minutes: this is a bigger redesign). Engine API by 22:45. The balance re-run happens on the final head, after the last engine PR, and its numbers go in the report with the SHA they were measured on. +- **Fewer, wider agents.** 7–8, not 10: + - designer and critic as one council pair + - an engine agent + - a card-derivation and text-generator agent (it owns the safety rules) + - a UI agent + - a PvP/host agent + - a wiki-client agent + - a lead and a review agent + + Night 1's 17 agents produced conflict and relay overhead. +- **Pre-flight at 21:30:** + - run `get_me` on Gitea MCP on every machine + - `node:24-alpine` is the only test image + - all heavy work runs under `flock` on inspiron + - no stacked PRs: rebase-and-merge, or wait for the parent to merge +- **No network in tests.** Every test and sim reads card-sample.json and starter-cards.json, plus a new red-team fixture (§6). The **only** process allowed to call Wikimedia tonight is the new throttled client's own smoke test, at 1 request/s. +- **Use testnet for real-cards testing.** It has about 50 mined cards across wallets the team controls. Seed 3–4 test wallets with 1, 3, 8 and 20 cards by transfer *on testnet*. Never simulate mainnet supply by copying Eric's wallet. +- **Mainnet is read-only, and only if needed at all.** Read the 12 cards' public data so Eric's own deck can go into a fixture. Nothing is written. + +## S6 (high). Ethics and safety: content rules for the deadpan generator +The joke only works if the game is respectful about the subject and absurd only in the juxtaposition. These rules are **requirements** with tests, owned by the card-text agent: + +1. **No free-form generated prose about real people or events.** Templates only. No LLM, including LocalAI. That also keeps the output deterministic. The only article-derived prose is the extract's first sentence, quoted verbatim and attributed. +2. **Figures are never harmed, killed or humiliated in text.** Log verbs for a Figure leaving play come from an editorial whitelist: "was reverted", "left the battlefield", "was archived", "was withdrawn from the record". Banned for any card: killed, died, destroyed (for Figures), executed, assassinated, murdered, humiliated, crushed, slaughtered, raped, lynched. "Destroy target Institution" is fine. +3. **Mechanics never derive from sensitive attributes.** Category-keyword templates for Figures come from an **allowlist** of neutral occupation and field words (politicians, mathematicians, footballers, painters, alumni). Never derive a mechanic from: crime, conviction, scandal, illness, disability, cause of death, ethnicity, religion, sexuality, gender, nationality as a trait, victimhood. + - Country is allowed **only** as a neutral "Connected" link (shared P27/P17). It must never carry a modifier such as "French: −1". + - Birth and death years may appear in the type line ("Figure — 1949–2019"). Nothing triggers on death. +4. **Solemn subjects get a `solemn` flag.** It's set by P31 class (war, battle with casualties, massacre, genocide, terrorist attack, mass shooting, disaster, epidemic/pandemic, aviation or maritime accident, protest with deaths, war crime, the Holocaust) or by category words (massacres, genocides, terrorist incidents, disasters in, deaths in, murders, sexual abuse, victims, suicides). + - Solemn cards are playable. They get one fixed neutral effect ("Commemoration: gain 1 Citation; draw a card"), no damage or removal text, a plain log line ("entered the record"), and they are **never** used to name a battle or shown in a recap headline. + - Events in general never "deal damage to" a Figure. Removal comes from Doctrines and Institutions ("Revert", "Edit war"). +5. **Glorification guard.** No "leader", "inspire" or "rally" keywords keyed on heads of state, military leaders or dictators. Every Figure's keyword comes from stats, type and faction only. A *Adolf Hitler* card must be a plain statted Figure with no buff-allies text. Test it. +6. **Living people (BLP):** the flavour text is the extract sentence only, and the recap uses only the card title. Any `Living people` card mentioned in a recap is linked to its article and nothing is asserted about the person. Card actions in text are attributed to "the *Barack Obama* card" or the commander, not to the person. +7. **Mint-time vandalism.** The extract is frozen at mint and may be a vandalised revision. Render flavour from the cached **current** extract when possible. Give node operators a data-only `hiddenFlavour: [pageId]` list and a report link on the card zoom sheet. +8. **Recap pages must not impersonate Wikipedia.** + - No Wikipedia wordmark or puzzle-globe logo, and no "From Wikipedia, the free encyclopedia". + - The header reads "WikiDeck match record", with a hatnote: *"This article is about a WikiDeck match. For the polyhedron, see Tetrated dodecahedron."* That's funny, honest, and keeps us clear of the trademark. + - CC BY-SA attribution for extracts and images, in References. +9. **Player privacy.** Shareable recaps are opt-in per match. Commanders show as the account display name or "Anonymous", never a wallet address unless the player chooses. +10. **Red-team fixture plus a sign-off gate.** `tests/fixtures/sensitive-cards.json` holds hand-written PageEnrichment for: Barack Obama, Donald Trump, Adolf Hitler, Jesus, Muhammad, Yemọja, September 11 attacks, The Holocaust, Sandy Hook Elementary School shooting, 2004 Indian Ocean earthquake and tsunami, COVID-19 pandemic, a living child actor, Pullman porter affair, *2024–2026 Cuban protests*, Cho Yang-ho, and Tetrated dodecahedron. + - A test snapshots their full rules text, log lines and a recap, then asserts the banned-verb list and the solemn rules. + - The snapshot file goes into the morning report **for Eric to read before anything is shared publicly**. + +## S7 (medium). Tone: how deadpan fails, with examples +- **Failure modes:** + - *Wacky:* puns, exclamation marks, emoji, winks. + - *Cringe:* the generator "noticing" the joke ("In a surprising twist…"). + - *Dull:* logs that read like a stack trace. + - *Mean:* adjectives about the losing side. +- **Rule:** the text never comments on how odd the matchup is. The comedy is entirely in the nouns. +- **Card rules text.** + - DO: "*Tetrated dodecahedron* — Doctrine — Ideas. Figures you control with Depth 7 or more get +1/+1." + - DO: "*Barack Obama* — Figure — People, 1961– · 3/4 · Connected (+1/+1 while you control a Connected card)." + - DON'T: "Yes He Can! Obama gets +2 power because he's the president!" + - DON'T: "This shape is so complex it hurts your opponent's brain." +- **Match log.** + - DO: "Turn 6. *Cho Yang-ho* (4/5) attacked. *Dichromorpha viridis* (1/2) blocked and was reverted. Commander Eric cited *Tetrated dodecahedron*: *Cho Yang-ho* +1/+1 until end of turn." + - DON'T: "Cho Yang-ho SQUASHED the grasshopper lol." Also don't use "killed", or use any adjective (brutal, humiliating, heroic). +- **Recap.** + - DO: "The **Battle of the Tetrated Dodecahedron** was a WikiDeck engagement fought on 17 November 2026 between the forces of Eric and Bot (Normal). It lasted nine turns and ended in a decisive victory for Eric.[1] Contemporary accounts note the deployment of *Barack Obama* in the fourth turn.[2]" + - The infobox field is "Cards withdrawn", **not** "Casualties". Battles are named after the decisive non-Figure, non-solemn card; fall back to "Match of 17 November 2026". + - DON'T: "Obama was humiliated by a shape," or "the bloodiest battle in WikiDeck history." +- **Dull guard:** vary sentences by deterministic seed across 3–4 synonymous templates per event, and use citation numbers [n] that link to the card's real article. That small Wikipedia texture is most of the charm. + +## S8 (medium). "Connected" will almost never fire on random articles +Two random articles almost never link to each other. Fetching `prop=links` per card is costly, at hundreds of links a page, and it doesn't fit the 1 request/s budget. +**Fix:** +- Connect cards on cheap shared Wikidata claims fetched once per card at first sight and cached for good: country (P17/P27), century (from P569/P571/P585), and same P31 superclass or faction. Leave out the article link graph tonight. +- Measure the fire rate on card-sample.json (random pairs) and on Eric's 12. Target 15–30% of pairs. If it's lower, the mechanic is invisible. + +## S9 (medium). Wikimedia politeness (point 7): good plan, three gaps +1. The plan never says **who decides the production UA**. REPORT next step 8 leaves it to Eric. Ship the default as `WikiDeck/ (node: ; operator contact required)`, refuse to start the enrichment client without a contact configured, and leave production config to Eric. +2. Rate limits must be **per egress IP**, but all of Eric's nodes share one IP. Use one shared limiter per host IP: a single node acts as the Wikimedia proxy for the cluster, or the budget is split statically. +3. Set a request budget per match: **zero Wikimedia calls during a match.** All P31, claims and trend data are fetched at deck validation or lobby time from the cache. Trending's live stats come from the daily refresh. + +## S10 (medium). Modes under the new engine (point 5) +Draft and Trending must be re-specified, not just "kept": +- Draft with a 12-card pool must deal from **all chain-minted cards**, or Eric must decide (S1-3). +- Trending uses the daily cache (S9). +- The house-rules JSON schema changes with the engine. Version it (`rulesetVersion: 2`) so Night 1 mode files on testnet nodes are rejected cleanly instead of misread. + +## S11 (low). Story (point 3) depends on the recap +The plan's "story" is Connected plus the recap. Given S8, the recap and log carry the whole of point 3, so prioritise them over the ladder. The recap is cheap (a deterministic template over the match log) and is the most "Eric" deliverable. + +## Scope: what gets built, and what gets cut first +**Build, in this order:** +1. The throttled Wikimedia client and cache. Nothing else calls Wikipedia. +2. Card derivation (type, faction, P/T, cost, keyword) with safety rules and the red-team test. +3. The smallest MTG core engine plus bots. +4. A 360 px match UI. +5. Invite-link PvP and ghost or bot matches. +6. The match log and battle recap. +7. Draft and Trending ported. + +**Cut first:** the ranked ladder and Elo, the Wikipedia link graph, instant-speed Events, the Citations resource as a second currency (fold it into one keyword), and the "editions" idea. + +## Decisions for Eric (to ask before kickoff, all in one message) +1. Real-cards strictness (S1 questions 1–3). +2. Use of his 12 cards as public bot and ghost decks. +3. A mobile path to owning cards. +4. Keep Edit War as a mode? (Recommend: yes.) +5. Sign-off on the safety rules in S6, especially solemn Events and living persons. +6. Production User-Agent and contact. +7. Are shareable recaps public by default? (Recommend: opt-in.) diff --git a/docs/night2/reviews/data.md b/docs/night2/reviews/data.md new file mode 100644 index 0000000..8b21179 --- /dev/null +++ b/docs/night2/reviews/data.md @@ -0,0 +1,272 @@ +# Night 2 plan review: data analyst + +Inputs: `docs/game/card-sample.json` (236 random illustrated cards), `starter-cards.json`, `shared/enrichment.ts`, `shared/testnet.ts`, `server/{wiki,enrichment,wikimedia-user-agent}.ts`, `server/testnet/{http,miner}.ts`. +Scripts (all `python3 -I`, offline, no API calls): `night2/analysis/types.py`, `stats.py`, `fields.py`, `connected.py`. +**Caveat:** the type rules were tuned on this same sample, so the in-sample accuracy is optimistic. Anything marked *(memory)* comes from my knowledge of the Wikimedia APIs, not from a live check, because we are rate-limited. + +## 1. Typing (P31, then categories, then description, then a residual) + +The classifier in `analysis/types.py` checks the rules in **priority order**. The first rule that matches *any* P31 label wins. If nothing matches, it tries non-stub category titles, then the description. If all three fail, the card becomes **Doctrine**, which is the residual "idea" class and is deterministic, never hash-random. + +| Type | n | share | Mostly | +|---|---|---|---| +| Figure | 86 | 36.4% | human 64, taxon 16, breed, deity, stock character, family | +| Location | 78 | 33.1% | villages, communes, rivers, buildings, parks, roads | +| Institution | 32 | 13.6% | companies, bands, films, parties, aircraft, ships, awards | +| Event | 21 | 8.9% | elections, protests, storms, matches, team seasons | +| Doctrine | 19 | 8.1% | genes, diseases, maths, cuisine, lists, etymology | + +| Decided by | n | share | +|---|---|---| +| P31 | 222 | 94.1% | +| category fallback | 12 | 5.1% | +| description fallback | 2 | 0.8% | +| residual (Doctrine) | 0 | 0% | + +- **Unclassified rate:** 0% in-sample, down from 14% ("Other") under Night 1's faction rules. 13 cards have no P31, and one card's P31 matched no rule. +- **Accuracy:** I judge about 8 of 236 (about 3–4%) to be debatable or wrong. +- **Expected out of sample:** about 5–10% would reach the category or residual steps on regex alone. That is why the P279 step below matters. + +**Hard or misclassified examples:** + +| # | Card | P31 | Result | Problem | +|---|---|---|---|---| +| 1 | Buky, Lunugala, Žižki, Laukhella | human settlement | Location | **Existing bug:** Night 1's `\bhuman\b` faction rule puts these 4 villages in *People*. Use `^human$`. | +| 2 | Lewis and Elizabeth Bolton House | single-family detached home | Location | Night 1 calls it *Works* because the label contains "single". Substring rules bite. | +| 3 | Corruption in Kazakhstan | aspect in a geographic region | Doctrine | "region" pulls it to Location unless an "aspect of/in" rule runs first. | +| 4 | 2023 Seville municipal election | municipal election | Event | "municipal" pulls it to Location unless Event outranks Location. Rule order is load-bearing. | +| 5 | Agda (programming language) | functional PL; free software | Institution | Several P31 labels disagree (Doctrine vs product). Tie-breaking is by type priority, not by label order. | +| 6 | Diocese of Mindelo | Diocese of the Catholic Church | Location | "church" matches. It is really an organisation (Institution). | +| 7 | Region Östergötland | county council of Sweden | Location | A governing body, so Institution. "county" matches first. | +| 8 | Christianity in the 5th century | events in a specific year or time period | Event | A history overview. Doctrine fits better. | +| 9 | NRHP listings in Yates County | Wikimedia list article | Doctrine | A list is not a thing. Consider a neutral "Index" type or rerolling at mint (consensus says no). | +| 10 | Dojikko; Tracheal collapse | stock character; type of animal disease | Figure; Doctrine | A trope as a Figure is fun but debatable. The disease was a Figure until "animal" was removed from the Figure rule. | +| 11 | Figueiredo (Guimarães) | former freguesia of Portugal | Location (via category) | Local admin-unit names defeat English regexes. Only the categories rescued it. | +| 12 | *(memory)* Rosetta Stone (stele), Apollo 11 (crewed spaceflight), ISS (space station) | | residual, residual, Institution | Famous starter cards fall through, or hit "station" and become a Location, unless explicit rules come first. | + +**Proposed rules** (as implemented in `analysis/types.py`): +1. **Doctrine overrides first:** `aspect of|in`, `disease`, `clinical sign`, `list article`, `chemical entity`. +2. **Event:** `election`, `protest`, `battle`, `war`, `storm`, `match`, `final`, `season`, `race`, `grand prix`, `scandal`, `annexation`, `time period`, `delegation`. +3. **Institution overrides:** artificial satellites, space stations and space probes. +4. **Location:** settlement and administrative-unit words, geography, celestial bodies, `civilization`, `empire`, `historical country`, built structures. +5. **Figure:** `^human$`, `taxon`, `species`, `genus`, `breed`, `deity`, `character`, `^family$`. +6. **Institution:** organisations, companies, teams, creative works, vehicles, positions, awards, typefaces. +7. **Doctrine:** concepts, theories, genes, languages, cuisine, genre, form, process, `type of`, `class of`. + +**Production recommendation** (the regex rules above are the fallback): +- Resolve each P31 class through **P279 (subclass of), up to 4 hops**, against a curated table of about 200 anchor classes. For example: Q5 → Figure, Q16521 → Figure, Q486972 (human settlement) → Location, Q1656682 (event) → Event, Q43229 (organisation) → Institution, Q17537576 (creative work) → Institution, Q151885 (concept) → Doctrine. +- **Class cache:** the sample has only **141 distinct P31 classes in 236 cards**. Class lookups saturate quickly, cost under 0.1 requests per card amortised, and are cached forever. +- **Fallback chain:** P279 anchors → label regex → category regex → description regex → **Doctrine**. +- **Freeze the result per card:** store it in the card profile (§3) so that a later Wikidata edit cannot retype a card someone owns. + +**Deck consequence:** Event and Doctrine are scarce. + +| Type | P(none in 10 random cards) | P(none in 7) | +|---|---|---| +| Event | 39% | 52% | +| Doctrine | 43% | 55% | +| Institution | 23% | 36% | +| Location | 1.8% | 6% | +| Figure | 1.1% | 4% | + +- **Instants and enchantments:** a deck built from random mints often has none. The core loop must not need them. +- **Resources:** this argues for a fixed per-turn income (as plan C says). With Locations as the only resource, about 6% of 7-card decks would have no resource at all. + +## 2. Stats: percentiles → cost, power, toughness (`analysis/stats.py`) + +**Facts that drive the design:** +- **No independent signal in the raw fields.** pageBytes, languageCount and monthly views are monotonic in depth, reach and attention, so their percentiles are identical. They add nothing beyond the three scores. +- **attention and depth correlate** (ρ 0.61), and **reach is independent** of both. +- **trendPercent is live, small and noisy.** Only 2.1% of cards pass the Night 1 gate (+25% and ≥20 views a day). +- **A new independent-ish signal** is available from the on-chain `months[]`: the volatility (coefficient of variation) of the 6 monthly views, median 0.22. Its ρ is −0.52 with attention, −0.30 with depth and −0.19 with reach. It could drive a "Volatile" keyword. + +**Proposal:** +1. `pct_s` for attention, depth and reach, using the §1.1 counting against the sample's 99 cut points (unchanged from Night 1). +2. `fame` = the mean of the three percentiles. Cost = 1–6, using the v1.1 `costThresholds` [26, 39, 51, 63, 78] (unchanged). +3. **The body budget depends on cost only:** P+T = [3, 4, 6, 8, 10, 12] for costs 1–6, which is MTG's vanilla curve (2/1, 2/2, 3/3, 4/4, 5/5, 6/6). +4. **The shape comes from the stats:** power = round(budget × pct_a / (pct_a + pct_d)), clamped to [1, budget−1], and toughness is the remainder. Attention reads as "loud", depth as "sturdy". +5. **Reach gives a keyword, paid for from the body.** + - **pct_r ≥ 75 → Multilingual** (evasion-like), costing −1 from the budget. + - **reach = 0 → Local** (a conditional bonus with a same-country Location, no tax). + - Local covers the 18% of cards with reach 0. +6. **Non-Figures use the same budget as effect size:** + - **Event:** deals ⌈budget/2⌉. + - **Location:** P=0 with T=budget, or a per-turn bonus. + - **Doctrine:** ±1 effects, scaled by cost. + - **Institution:** a utility ability. +7. **Trend:** ±1 power, in Trending mode only, using live data frozen at match start. + +**Resulting distribution (236 cards, every card rated as if it had a body):** + +| cost | 1 | 2 | 3 | 4 | 5 | 6 | +|---|---|---|---|---|---|---| +| cards | 30 (13%) | 48 (20%) | 51 (22%) | 48 (20%) | 35 (15%) | 24 (10%) | +| most common P/T | 2/1, 1/2 | 1/3, 3/1, 2/2 | 3/3, 4/2, 2/4, 5/1 | 3/5, 4/4, 5/3 | 5/5, 4/5, 5/4 | 6/5, 6/6, 5/6 | + +| Measure | Value | +|---|---| +| power, 1..7 | 38 / 43 / 53 / 33 / 42 / 26 / 1 | +| toughness, 1..7 | 43 / 43 / 50 / 30 / 53 / 16 / 1 | +| keywords | none 139, Multilingual 55, Local 42 | + +**"Famous isn't strictly better" check:** +- **Strict dominance** means another card with cost ≤, power ≥ and toughness ≥, and strictly better in at least one. + - **Proposal:** 0 of 55,460 ordered pairs among cards with the same keyword. All 945 raw pairs are cases where a keyword costs one point of body, which is intended. + - **Straw man:** with P and T taken directly from the attention and depth tiers and cost derived from their sum, **3,058 pairs**. +- **Efficiency, (P+T)/cost by fame quintile:** Q1 2.64 (the cheap 2/1s), then Q2–Q5 at 1.90, 1.96, 1.95 and 1.89. +- **Famous cards are bigger and pricier, never more efficient.** Pallas's cat (fame 98) is a cost-6 6/5 Multilingual. Dr. John L. Butler House (fame 8) is a cost-1 1/2 Local. +- **Remaining risk:** in a small-deck game with fixed income, a 6-drop can still dominate the late game. Balance that in the simulator (Night 1's `scripts/sim/`), not in derivation. + +## 3. Rules-text inputs (`analysis/fields.py`) + +| Field | Where | Reliability (sample) | Use for abilities | Extra cost | +|---|---|---|---|---| +| title, extract (≤900 chars), image, legacy category, pageId, revisionId | **on-chain** (`Article`) | 100%. Extract ≥40 chars by filter. | Flavour text is the first sentence of the extract. Years and "(born …)" can be parsed from the extract. | 0 | +| pageBytes, languageCount, 6 months of views, dailyAverage, trendPercent, attention/depth/reach | **on-chain** (`MintStatsSnapshot`) | 100% (attention null under 1%) | Cost and body, Multilingual/Local, Volatile, Rising/Fading | 0 | +| description (short) | live: WP `prop=description` | 90% | Keywords such as "Species of", "Village in", "film by" | in the batched meta query | +| non-hidden categories | live: WP `prop=categories` | 100%, median 5 | Year in 55% of cards; births/deaths 25%; establishments 10%; stub 34%; country words 52% | same query | +| wikidataId | live: `pageprops` | 100% | Key for all Wikidata data | same query | +| P31 (instance of) | live: Wikidata | 94% | **Type** | 1 per 50 cards | +| Dates: P569/P570 birth and death, P571 inception, P585/P580 point in time and start | live: Wikidata | *(memory)* Common for humans, organisations and events; rare for taxa and concepts | Era keywords ("Ancient", "19th-c."), "Contemporary" links | same `wbgetentities` | +| Coordinates: P625, or WP `prop=coordinates` | live | *(memory)* Nearly all Locations, few others | "Adjacent" (distance), hemisphere, lat/long flavour | in the batched meta query | +| Country: P17 / P27 | live | *(memory)* Most places, people and organisations | "Compatriot" connection | same `wbgetentities` | +| Outlinks: `prop=links` | live | 100% | Connected (§4) | 1–6 per card, continuation | + +**Request cost per card, first sight, cached forever:** +- **Batched, amortised:** about 1.5 requests per card. + - 1/50 for the WP meta query (description, categories, pageprops, coordinates) + - 1/50 for `wbgetentities&props=claims` + - under 0.1 for class/P279 lookups + - about 1.2 for outlinks +- **Unbatched (a single card at a time):** about 4 requests. +- **Payload warning *(memory)*:** `props=claims` for famous items can be **hundreds of KB to over 1 MB** (Q76, Barack Obama). It cannot filter by property. + - **Option 1:** a WDQS SPARQL `VALUES` query for the ~12 needed properties, covering up to about 100 items per query. + - **Option 2:** accept the size and only ever fetch each item once. + +**Request cost per match**, two decks of 10 cards: +- **Warm caches:** **0–1**. That is the links matrix (§4) if per-card outlinks aren't cached. +- **Trending mode:** add up to **20 per-article pageview requests** for today's figures. These can't be batched, so refresh them in a daily background job, never at match start. +- **Cold worst case:** about 23 requests, which is 23 s at 1 request per second. So prefetch when a card is minted or received, or when a deck is saved, never at queue time. + +**Frozen vs live:** +- **On-chain (frozen by consensus):** only `article` and `statsSnapshot`. +- **Everything else is mutable.** That covers type, dates, country, categories and links. + - **Card profile:** freeze it once into an off-chain record, `{tokenId, pageId, mintRevisionId, fetchedRevisionId, wikidataRev, type, faction, dates, country, coords, outlinks hash}`. Cache it forever, and log it in the match record so replays and recaps are deterministic. + - **Why not the mint revision:** fetching categories or links *as of* the mint revision needs `action=parse&oldid=`, which is costly because of the parser-cache miss *(memory)*. Freeze at first sight instead, and record which revision was used. + - **Agreement between hosts:** different hosts could freeze different profiles. To fix that, a node publishes its signed profile file per tokenId, and hosts adopt the first one seen. + +## 4. Connected: cheap relationship detection (`analysis/connected.py`) + +**Measured on random pairs** (27,730 pairs): + +| Relation | Pairs | In a 10-card deck (≥1 pair) | +|---|---|---| +| any shared category (including generic ones such as "Living people" or "1948 births") | 1.96% | | +| shared **specific** category | **0.04%** | 2% | +| same P31 class | 7.9% (mostly human/taxon) | | +| same P31, excluding human and taxon | 0.22% | | +| same country (text proxy for P17/P27) | 7.4% | 91% | +| same century (text proxy for dates) | 16.6% | | +| country OR century OR specific category | 21.5% | 99% | + +**Direct article links between two random cards will almost never fire.** +- Shared specific categories are already 0.04%, and links are rarer still between random stubs. +- Obama ↔ White House only works because both are famous starter-style titles. +- **Proposed tiers:** + - **Linked (rare, strong):** a direct link in either direction. + - **Compatriot:** same P17 or P27. + - **Contemporary:** same century, from P569, P571 or P585. + - **Kin:** same P31, excluding human and taxon. + +**Methods compared:** + +| Method | Cost | Notes | +|---|---|---| +| Pairwise links matrix: `action=query&titles=A1…An&prop=links&pltitles=A1…An&pllimit=max` | **1 request per match** for up to 50 titles; at most 400 edges for 20 cards, under the 500 limit | Gives both directions for every pair. Uses current revisions. Misses links that go through redirects, unless you add `redirects` and also check the redirect titles. | +| Per-card outlinks (`prop=links`, ns0), cached | 1–6 requests per card, once | Intersection is local and free, so it scales to the whole chain. Network-wide this is at most 96 × about 2 ≈ 200 requests a day. **Recommended.** | +| `prop=linkshere` (backlinks) | Famous pages: thousands to millions, many continuations | **Avoid.** Outlinks from both sides already cover A↔B. | +| Shared Wikidata values (P17, P27, P131, P106, P101, P361, dates) | Included in the card profile fetch | Most useful in practice. Gives readable reasons ("both Polish"). | +| Categories | Included in the meta fetch | Too sparse except for generic categories, which are meaningless. Use only for era and country when Wikidata lacks them. | + +**Caching:** +- **On first use:** compute each card's outlinks and profile once, keyed by `(pageId, fetchedRevisionId)`, and pin them to the `tokenId` forever. +- **During a match:** the host computes the edge list at match start from cached profiles, which needs no requests, and writes it into the match log. +- **Re-fetching:** never re-fetch for an owned card. An optional "re-sync" can be a deliberate, logged action. + +## 5. Wikimedia politeness *(memory: not checked live tonight)* + +**Rules:** +- **User-Agent policy:** + - The policy asks for a descriptive UA with contact details: `Tool/version (https://site; contact@…) lib/ver`. + - Generic or library-default UAs may be throttled or blocked. Browsers must use `Api-User-Agent`. + - **Finding:** our defaults have **no contact at all**. That covers `Wikideck/0.1 (experimental Wikipedia article cards)`, the enrichment UA, and the sampler UA `WikiDeckCardDataSampler/0.1`. Contact is opt-in only, through `WIKIDECK_USER_AGENT`. This is likely part of why the shared IP got 429. +- **Action API etiquette:** + - Make requests **serially**, not in parallel. There is no fixed read limit, but use "reasonable" volume. + - Send `maxlag=5` on non-interactive requests, and on a `maxlag` error wait for `Retry-After`. + - Batch: `titles`/`pageids` take 50 per request (500 with the bot flag), and `pltitles` 50 likewise. + - Use continuation, `Accept-Encoding: gzip`, and `formatversion=2`. +- **REST API (`/api/rest_v1`):** the historical guidance was ≤200 requests per second per client. Since 2025 Wikimedia has tightened limits on unauthenticated automated traffic and enforces them per IP/UA. Treat any published number as a ceiling, not a target. + - **API Portal or token traffic:** I recall anonymous traffic at about 500 requests an hour and a personal token at about 5,000 an hour. **Unverified.** +- **Pageviews (AQS):** + - The documented limit was about 100 requests per second per client. + - It is **per article and has no batching**. + - Daily data lands once a day, a few hours after 00:00 UTC, so refreshing more than once a day is waste. +- **Wikidata:** + - `wbgetentities` takes up to 50 ids per request; use `props=` to slim the response. + - WDQS allows about 60 s of query time per minute and 5 concurrent queries per client, and blocks after repeated errors. +- **Always:** honour `429`/`503` with `Retry-After`, use exponential backoff, and cache. + +**Concrete node defaults:** + +| Setting | Default | +|---|---| +| Client | one shared `WikimediaClient` per **process, and budget per egress IP** (several nodes or agents behind one IP must share it) | +| Rate | token bucket: **1 request/s sustained, burst 3**, **1 in-flight per host** (en.wikipedia.org, wikimedia.org, wikidata.org) | +| Daily cap | 20,000 requests a day per node (configurable). Past it, serve from cache or 503. | +| maxlag | `maxlag=5` on every Action API call from background jobs | +| 429/503 | honour `Retry-After`, else 5 s × 2ⁿ up to 15 min. **Circuit breaker:** after 3 consecutive 429s, stop all Wikimedia calls for 10 min. | +| Batching | 50 pageids/titles, 50 Wikidata ids, links matrix per match | +| UA | `WikiDeck-node/ (+https://; )`. **Start-up warns loudly**, or refuses in prod, unless a contact is set. | +| Cache | on disk. Profiles and outlinks are immutable (keyed by tokenId and revision). Pageviews keyed by (title, day). ETag / `If-None-Match` on REST. | +| Background | one daily job after about 06:00 UTC refreshes live views for cards in active decks only | + +**Mining load: a real issue the plan doesn't list.** +- **What a template costs:** `POST /api/mining/template` calls `wikipediaArticles.random()`, plus `getFresh()` enrichment, on **every template**. That is 3 or more Wikimedia requests (`server/testnet/http.ts:122`). +- **How often:** each miner asks for a new template whenever the tip changes (`server/testnet/miner.ts:89`). +- **Load:** M miners make **about 3M requests per block, all in a burst at each new tip**, or 288·M a day. With 100 miners that is 28,800 a day, which breaks the cap above. +- **Fix:** prefetch a small pool of article+snapshot pairs in the background at 1 request/s, and serve each template from the pool. + - `grnlimit=10` yields about 4.4 usable articles per request. + - This changes no consensus rules. + - Wikimedia load then stays at about 2–3 requests per block, whatever the number of miners. + +## 6. Supply + +- **Production:** at most 96 blocks a day means at most 96 cards a day: 672 a week, about 2,900 a month, 35k a year. +- **Mainnet reality:** 12 cards, all mined on 2026-11-01. That is **0.75 a day averaged over 16 days**; mining has effectively stopped. +- **Model:** with M equal-hashrate miners, each expects 96/M cards a day, so the time to N cards = **N·M/96 days**. This assumes continuous full block production. + +| Active miners M | N=7 | N=10 | N=20 | N=40 | N=60 | +|---|---|---|---|---|---| +| 1 | 1.8 h | 2.5 h | 5 h | 10 h | 15 h | +| 10 | 0.7 d | 1.0 d | 2.1 d | 4.2 d | 6.3 d | +| 50 | 3.6 d | 5.2 d | 10 d | 21 d | 31 d | +| 100 | 7.3 d | 10 d | 21 d | 42 d | 63 d | +| 500 | 36 d | 52 d | 104 d | 208 d | 313 d | + +**Caveats:** +- **Mining is a Poisson lottery.** At M=100, 10 cards take a mean of 10.4 days, but about 15 days at the 90th percentile. +- **Hashrate is skewed.** The *median* miner gets well under 96/M; a phone-class CPU gets about 0. Non-miners only get cards through trades. + +**Implications for deck size:** +- **Rule of thumb:** a deck size D is reachable in T days only if D ≤ 96·T/M. + - For a 1-week ramp with 100 miners, D ≤ 6.7. + - **40–60-card constructed decks** need M ≤ about 12, or months of play. +- **Recommendation: a 7–10-card constructed deck**, plan option (a). + - Every card is unique anyway, so this is effectively Highlander, with recursion and reuse. + - **Collection-as-deck**, option (d), covers players with fewer than 7 cards. +- **Draft, option (c), is supply-friendly**, but only once the chain holds enough cards. + - An 8-player draft of 3×15 needs 360 cards (about 4 days of full production); a 2-player draft needs about 60. + - **Today's 12 cards cannot feed even one draft.** +- **The cold start is the blocker, not the steady state.** Eric must decide one of two things for launch week: + - accept a loaner or shared pool (plan option (b), which conflicts with requirement 1), or + - accept that PvP only works after someone mines continuously for a day or two. diff --git a/docs/night2/reviews/designer.md b/docs/night2/reviews/designer.md new file mode 100644 index 0000000..f6eac46 --- /dev/null +++ b/docs/night2/reviews/designer.md @@ -0,0 +1,278 @@ +# Night 2 review: game designer + +**Verdict: approve the direction with changes.** Do the MTG-style duel, the article-derived types, the Connected bonus and the battle recap. The plan has one gap: it has no answer to supply, and Open problem 1 decides whether any of the rest gets played. My answer is a **15-card deck made of your owned article cards plus Basics**. Basics are non-article "process" cards, the equivalent of MTG basic lands. **Draft** from the chain's whole register is the front door for players who own few cards. Rules core: **no stack, no land cards, fixed income, attack/block with single blocks, 16 Notability.** Everything below is data in the existing rules-as-data style. + +--- + +## 1. Supply (Open problem 1) + +**The facts:** mainnet holds 12 cards, all in one wallet. At most about 96 a day can be mined, and the real rate is far lower. For months nearly every player will own 0–3 cards. No version of "real cards only" fills a 40-card deck. The question is how the rules bend. + +### Recommendation: "Collection + Basics" (options a and d, with the MTG basic-land argument) +- **Deck:** exactly **15 cards**. + - **Article slots:** any number of your owned mints, up to 15. Each mint can appear once, since it is unique. Different mints of the same `pageId` can appear up to 2 times. + - **Basics** fill the rest, at most 3 copies of each. + - Owned and loaner copies no longer mix (v1 §2 is retired). +- **Basics are not articles.** They are a fixed set of 8 Wikipedia process cards that nobody owns and anyone can use in any number. Listed in §2.4. + - **The argument for Eric:** in Magic, about 40% of every deck is basic lands that nobody collects, and the deck is still "your deck". Here, **every article in your deck is one you mined**. The letter of the requirement holds for articles. It bends only in that the deck isn't made *only* of articles. +- **Signature card:** before the match you name one owned article as your Signature. It **starts in your opening hand**, in addition to the 5 cards you draw. + - So a player with 1 card plays that card in every game. + - The recap's infobox lists it under "Commanders". +- **Small deck, high visibility:** a typical game lasts about 8 turns each, so you see 5 + 8 = 13 of your 15 cards. Your owned cards nearly always show up. +- **Running out of cards doesn't lose the game.** When your library is empty, shuffle your Deleted pile (the graveyard) into it. This is option (a)'s "recursion and reuse". +- **Power parity:** an article and a Basic of the same cost are worth about the same, with articles roughly 10% ahead from keywords and Connected (sim target: an all-Basics deck wins 42–48% against a 12-article deck). + - Owning cards buys **variety, story and a modest edge**. It doesn't decide games. Ranked Glicko absorbs the rest. + +### What a new player does +| Owns | Practice / AI | Casual PvP | Ranked | Draft | +|---|---|---|---|---| +| 0 cards | Tutorial: the Basics deck plus 3 Archive cards, the existing loaners in a grey "Not owned" frame | Basics-only deck allowed | no (one article needed) | **yes: main path** | +| 1–5 | any | Collection + Basics; the Signature guarantees their card | yes | yes, plus the owner perk | +| 6–15 | any | mostly articles | yes | yes | + +Casual matchmaking groups players by article count (0–2 / 3–7 / 8+). Ranked has one ladder. + +### Fallbacks, in order +- **Fallback A (if all-Basics games test as dull):** the "Archive ramp". + - Up to `max(0, 8 − owned)` Archive loaner articles may fill slots, and they shrink as you own more. + - Archive cards are grey-framed and listed in the recap as "(Archive, not owned)". + - This is option (b) with a sunset clause. **Eric must accept it explicitly.** +- **Fallback B (strictest "real mints" reading):** "Register as shared library". + - Both players draw from one shared library: every mint on the chain, whoever owns it, plus Basics. + - Your owned cards sit in a Command zone. You can cast them at any time, and they return there with +1 cost tax. + - Every article in play is then a real mint, but your *deck* is no longer yours. It also needs ≥ 30 mints before games stop repeating. + +### What Eric must decide +1. Are Basics acceptable as a deck's "lands"? I recommend yes. +2. Archive loaners below 8 owned cards: allowed, or Basics only? I recommend Basics only at launch, with Fallback A behind a ruleset flag. +3. Can owning cards give a small edge in ranked? I recommend yes, capped by the parity target above. + +--- + +## 2. Rules core (Open problem 2) + +**Is MTG combat too complex for one night?** Not if the rules are cut to the bone: no stack, single blocks and one main phase. It is the only part that gives "feels like Magic", so keep it. The lane engine, `Topic` and `Portal` are retired. `rng.ts`, `ruleset.ts`, `modes.ts`, `validateDeck`, `replay`, `viewFor` and serialisation carry over. + +### 2.1 Setup and turn +- **Notability:** each player starts at **16** Notability (the life total). Reaching 0 loses. + - The log reads: "*X* was nominated for deletion. The result was **delete**." +- **Opening hand:** draw 5, plus your Signature. One free mulligan: shuffle, draw 5, put 1 on the bottom. +- **First player:** skips the first draw. The second player gets **Second Opinion**, a 0-cost token: "Gain 1 Citation this turn". +- **Turn:** (1) **Refresh:** Citation maximum +1 (to at most 7, plus Territory), Citations refill, permanents untap. (2) **Draw** 1. (3) **Main:** play cards in any order. (4) **Combat.** (5) **End:** damage clears, "until end of turn" effects end, hand limit 7. No second main phase. +- **Resources:** fixed income, the Hearthstone model. **No land cards, so no land screw.** + - Locations add ramp (+1 maximum each, at most +2 from Territory in total). Max Citations is 9. +- **Summoning sickness:** a Figure can't attack the turn it enters ("Pending review"). Trending removes this. + +### 2.2 Combat +- **Attack:** the active player taps any untapped Figures to attack. They attack the opponent only, not permanents. +- **Block:** the defender assigns at most one blocker to each attacker. Each blocker blocks one attacker. Locations with Garrison may block. +- **Damage:** simultaneous. Blocked pairs trade damage, and an unblocked attacker deals its power to Notability. +- No trample and no first strike in v1. That is about 150 lines of engine, and it is easy for bots. + +### 2.3 Interaction without a stack +- **There is no priority, and nothing happens at instant speed.** That is the right call for online PvP on phones, because priority passes cost latency and clock time. Events are sorcery-speed. +- **v2, cut tonight:** *Pending changes*, Events set face-down that trigger on a condition (like Hearthstone's Secrets). They add interaction on the opponent's turn without priority passes. + +### 2.4 Basics (the 8 process cards, max 3 copies each) +| Basic | Type | Cost | Text | +|---|---|---|---| +| Anonymous Editor | Figure | 1 | 1/2 | +| Established Editor | Figure | 3 | 3/3 | +| Administrator | Figure | 5 | 4/5. When this enters, destroy target Figure with power 2 or less. | +| Citation | Event | 1 | Put a +1/+1 counter on target Figure. | +| Revert | Event | 2 | Return target Figure or Doctrine with cost 3 or less to its owner's hand. | +| Talk Page | Event | 2 | Draw 2 cards, then discard 1. | +| Speedy Deletion | Event | 4 | Destroy target Figure. | +| Sandbox | Location | 1 | Territory. Garrison 0/1. | + +### 2.5 Length +- **Clock:** 60 s per turn plus a 5-minute bank per player. +- **Turn cap:** at the end of turn 12 (each player's), the player with more Notability wins. A tie goes to the higher total power on the battlefield, then to the second player. +- **Sim target:** median 7–9 turns each, 6–12 minutes, decided before the turn cap in ≥ 85% of games. +- **Tunable:** Notability (14–20) and the maximum Citations are ruleset keys. + +--- + +## 3. Derivation: article to card (Open problems 3 and 5) + +All of it is deterministic: no LLM, fixed tables, and a versioned `deriveVersion`. + +**Inputs:** +- the snapshot (as v1) +- `description`, `categories` and `pageBytes`, already in `PageEnrichment` +- the Wikidata entity's **claims**, fetched in the same `wbgetentities` call (≤ 50 ids per request) that Night 1 already used for P31, so no extra requests + +The host caches the claims per `(wikidataId, lastrevid)` and freezes them into the `CardInput` at deck validation. + +### 3.1 Type: the first rule that matches wins +1. **Exact Q-id table:** + - Q5 human, Q95074 fictional character, Q16521 taxon, Q23038290 fossil taxon, Q8436 family, deities → **Figure** + - Q486972 human settlement → **Location** +2. **P31 label regex,** reusing `factionRules`, grouped by type: + - People and Nature taxa → Figure + - Places and Structures → Location + - Events and Sport matches/seasons/finals → Event + - Works, Organisations, Sport teams and companies → Institution + - Ideas & Tech → Doctrine +3. **P279 "subclass of" labels,** with the same regexes. Concepts such as *Monoid* have no P31 and only P279. This is why 13 sample cards have no P31. +4. **Description regex,** present on 90% of the sample: + - `^Species of|genus of` → Figure + - `(actor|politician|player|singer|writer)\b` → Figure + - `^(Commune|Village|Town|Municipality|River) in` → Location + - `election|storm|battle` → Event +5. **Categories:** `\d+ births|deaths|Living people` → Figure, `Communes of|Villages in|Populated places` → Location, `establishments` → Institution, `elections|disasters|battles` → Event. +6. **Otherwise Doctrine (Neutral).** An abstract thing is the safest default. + +**Bug to fix:** the People regex `\bhuman\b` matches "human settlement". As a result *Buky*, *Lunugala*, *Žižki* and *Laukhella* are People in the sample today (4 of 68). Run the exact Q-id step first. Then score the sample's 236 cards in CI and hand-check the 34 "Other" cards. Target ≥ 95% plausible. + +### 3.2 Portal (the faction or colour), orthogonal to type +Five **Portals**, each with an MTG colour analogue, plus **Neutral**: +- **Arts** (red) +- **Earth** (green) +- **History** (black) +- **Science** (blue) +- **Society** (white) + +**How a card gets one:** +- **Score:** count keyword hits in description + categories + P31/P106 labels, using fixed regex lists in data. For example: + - History: `\d+(st|nd|rd|th)-century|deaths|sultan|empire|castle|medieval` + - Science: `mathemat|algebra|programming|gene|chemi|disease|scientist` +- **Ties** go to the type default: Figure → Society, Location → Earth, Event → History, Institution → Arts, Doctrine → Science. +- **Zero hits:** the card is Neutral. + +**Deck rule: none.** You can't ask for colour discipline from a 3-card collection. Portals matter only through effects, for example "Figures from your Portal get +1/+0". + +### 3.3 Cost and stats +- **Percentiles, `fame` and cost 1–6:** exactly as v1 §1.1–1.2, using the existing `costThresholds`. +- **Figure:** + - budget `B = 2·cost + 1` (3/5/7/9/11/13) + - `s = clamp(pct_att/(pct_att+pct_depth), 0.3, 0.7)` + - `power = max(1, round(B·s))`, `toughness = B − power` + - each keyword costs 1 point from the larger stat (minimum 1) + - at most 2 keywords + - fame sets cost, never efficiency: v1's anti-inflation principle is kept +- **Location:** + - cost `ceil(cost/2)` (1–3) + - Territory + - Garrison 0/T, where `T = 1 + floor(pct_depth/25)` + - can't attack +- **Event, Institution and Doctrine:** magnitude `k = ceil(cost/2)` (1–3) inside the templates in §3.5. + +### 3.4 Keywords, in priority order, max 2 +Rates are measured on the 236-card sample. + +| Keyword | Trigger | Rules text | Sample rate | +|---|---|---|---| +| **Protected** | category `Living people` | Can't be targeted by Events an opponent controls. | 14% | +| **Featured** (flying) | pct_attention ≥ 85 | Can be blocked only by Featured or Translated Figures. | ~15% | +| **Translated** (reach) | languageCount ≥ 20 | Can block Featured Figures. | 12% | +| **Legacy** | P570 present or a `\d+ deaths` category | When this is destroyed, draw a card. | 12% | +| **Stub** | category contains "stubs" or pageBytes < 3000 | At the start of your turn, put a +1/+1 counter on this (at most 2). | 34% | +| **Well-sourced** | pct_depth ≥ 85 | Prevent the first 1 damage dealt to this each turn. | ~15% | +| **Trending** (haste) | Trending mode only: live ▲ | Can attack the turn it enters. | mode | + +### 3.5 Templates by type +Text is set in MTG's terse register. Subtype regexes run over the P31/P279 labels and the description. +- **Event:** + - conflict (`battle|war|siege|annexation|protest|riot`): "Deal k+1 damage to target Figure or Location." + - disaster (`storm|nor.easter|cyclone|earthquake|flood|tornado`): "Deal k−1 (min 1) damage to each Figure and each Location." + - election (`election|referendum|straw poll`): "Create k 1/1 Society Figure tokens named Elected Member." + - sport (`match|final|season|tournament`): "Target Figure you control gets +k/+0 until end of turn, then fights target Figure you don't control." + - period (`events in a specific year|ceremony|festival`): "Draw k cards." + - default: "Target Figure gets +k/+k until end of turn." +- **Institution** (a permanent, like an artifact): + - organisation/company/party/military: "At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member." (for cost ≥ 4; below that, "When this enters, …") + - creative work: "Figures you control that are Connected to this get +1/+1. When this enters, draw a card." + - team/club: "Figures you control with power 2 or less get +1/+0." + - vehicles and ships (v2: Crew): "Figures you control have Featured while attacking." +- **Doctrine** (an Aura, the mechanic in Eric's Tetrated dodecahedron → Cho Yang-ho anecdote): + - **Adopt:** "Attach to target Figure. Adopted Figure gets +k/+k." If the Figure leaves, the Doctrine goes to Deleted. + - Riders by subtype: + - mathematics: "and has Well-sourced" + - language/software: "Whenever it deals combat damage to a player, draw a card" + - ideology/religion: "Other Figures you control from the same Portal get +1/+0" + - **Pathology** (`disease|clinical sign|gene|chemical`) is inverted: "Attach to target Figure. It gets −k/−k." +- **Flavour text:** the first sentence of the extract, or `description` if the extract is missing (the sample has none). + +### 3.6 Example cards from `card-sample.json` +Tiers and stats are taken from the file. The final numbers come from the real percentile function. + +| Card | Derivation | Generated card | +|---|---|---| +| **Tom Ewell** (person) | Q5 → Figure. "actor" → **Arts**. Tiers 10/9/10 → fame ≈ 92 → cost 6. B = 13, s ≈ .53 → 7/6. Featured (att), Translated (30 langs), Legacy (1994 deaths) apply; capped at 2 by priority: Featured, Legacy. | **Tom Ewell**, 6, Figure — Arts. **6/5**. *Featured. Legacy.* "American actor (1909–1994)." *(description; extract not in sample)* | +| **Salahuddin of Aceh** (person) | Q5 → Figure. "16th-century", "Sultans" → **History**. 7/6/7 → fame ≈ 62 → cost 4. B = 9 → 5/4. Legacy (1548 deaths) → 4/4. | **Salahuddin of Aceh**, 4, Figure — History. **4/4**. *Legacy.* "Sultan of Aceh (1530–1537/9)." | +| **Monoid** (maths/concept) | No P31 → P279 "algebraic structure" → Doctrine. "Algebraic structures", "Category theory" → **Science**. 10/10/10 → cost 6, k = 3. Maths rider. | **Monoid**, 6, Doctrine — Science. *Adopt.* Adopted Figure gets +3/+3 and has Well-sourced. "Algebraic structure with an associative operation and an identity element." | +| **Agda (programming language)** | P31 programming language → Doctrine. **Science**. 10/9/9 → cost 6. Language rider. | **Agda**, 6, Doctrine — Science. Adopted Figure gets +3/+3. Whenever it deals combat damage to a player, draw a card. | +| **Dichromorpha viridis** | Q16521 taxon → Figure. "Species of grasshopper" → **Earth**. 7/1/6 → fame ≈ 45 → cost 3. B = 7, s clamped to .7 → 5/2. Stub (1,347 B) → 4/2. | **Dichromorpha viridis**, 3, Figure — Earth. **4/2**. *Stub.* "Species of grasshopper." | +| **April 2021 nor'easter** | P31 nor'easter → Event, disaster. "2021 in Maine" … → **Earth**. 6/10/2 → cost 4, k = 2. | **April 2021 nor'easter**, 4, Event — Earth. Deal 1 damage to each Figure and each Location. *(k−1 = 1: the sim decides whether disasters need k instead)* | +| **1954 Gold Coast general election** | legislative election → Event, election. **Society**. 7/4/5 → cost 4, k = 2. | 4, Event — Society. Create two 1/1 Society Figure tokens named Elected Member. | +| **Pathrail Mosque** | mosque → Location. "15th-century mosques" → **History** (2 hits) vs Society (1). Derived cost 4 → Location cost 2. pct_depth ≈ 55 → Garrison 0/3. | **Pathrail Mosque**, 2, Location — History. Territory. Garrison 0/3. | +| **Tatsunoko Production** | animation studio → Institution, organisation. **Arts**. 10/10/9 → cost 6. | **Tatsunoko Production**, 6, Institution — Arts. At the start of your turn, if you control fewer than 3 tokens, create a 1/1 Figure token named Staff Member. *(the sim may want 2/2 at cost 6)* | +| **Charmont-en-Beauce** | commune of France → Location. **Earth**. 2/2/10 → cost 1. Stub ignored (Locations take no keywords). | **Charmont-en-Beauce**, 1, Location — Earth. Territory. Garrison 0/2. | + +**Readability:** a Figure shows cost, P/T, Portal, the type line and up to 2 keyword words. The full text is behind a tap. This is still one phone-sized face. + +--- + +## 4. Story mechanics (Open problem 4, design side) + +### 4.1 Connected +- **Data:** the frozen claims (§3). Each card gets `qid` and `connectKeys` at derivation. The engine intersects keys without any I/O. + - Keys come from P17/P27/P131/P495 (place), P106/P101/P921/P136 (field), P361 (part of), P171 (parent taxon) and `C` (from P569/P570/P571/P580/P585). + - Century counts only between cards of **different** types, because it is too common otherwise. + - Wikipedia link tables are not used in v1, which gives zero extra requests. +- **Direct connection:** one card's claims cite the other card's `qid`, for example Barack Obama with the White House (residence). +- **Bonuses:** + - A Figure gets **+1/+1** while you control another card Connected to it; **+2/+2** if the connection is Direct. + - A Doctrine adopted by a Figure Connected to it gives its bonus twice. + - A Connected creative-work Institution buffs, as in §3.5. +- **The card shows why:** "Connected — Pathrail Mosque (country: Bangladesh)". +- **Rivalry (log only, v1):** an opposing pair that is Connected is noted in the log and the recap ("The two had previously been associated through …"). +- **Tuning:** sim on random 15-card decks from the sample. Target 0.5–2 Connected pairs per deck. Drop the noisiest keys (P17 = United States, or France) if the rate is above that. + +### 4.2 Match log +Past tense, third person, no adjectives about real people, numbered references. Card names are *italic* links, and the first mention is "the card *X*". Examples: +> Turn 3. *Tom Ewell* (American actor, 1909–1994) was deployed by eric.[1] +> Turn 4. *Monoid* was adopted by *Salahuddin of Aceh*, which became a 7/7.[2][3] +> Turn 5. The *April 2021 nor'easter* dealt 1 damage to each Figure. *Dichromorpha viridis* was destroyed.[4][5] + +There is one template per engine event type (about 25 strings). It is generated from the deterministic event list, so `replay` regenerates it exactly. + +### 4.3 Battle recap ("Battle of X (2026)") +- **Title:** + - "Battle of {Location}": the winner's highest-cost Location at the end, else any Location in play. + - With no Location: "{Signature of the winner} campaign". + - The prefix is "Skirmish at" under 6 turns and "Siege of" over 10. +- **Infobox:** date, Location, result ("Decisive victory" if the margin is ≥ 10, "Pyrrhic victory" if the winner has ≤ 3 Notability, "Victory by decision" at the turn cap), belligerents (players), commanders (Signatures), strength (cards deployed), casualties (cards destroyed). +- **Sections:** Background (Portals, Signatures); Course of the battle (the 3–5 largest swings); Aftermath (final Notability, rating change); See also (Connected pairs); References (every card's real article with `revisionId`, plus the mint id). +- **Branding:** Wikipedia-*style* typography, but **no Wikipedia or Wikimedia logo or name in the masthead.** Footer: "This page records a WikiDeck match. Card names refer to Wikipedia articles; the events described are game events." + +--- + +## 5. Modes in the new structure +- **Classic:** Collection + Basics, 15 cards, Signature. Ranked (Glicko-2) and casual queue, plus invite-by-link. +- **Draft (front door):** + - **Pool:** the host's **Register**, every mint on its chain whoever owns it. That means real mined cards for players with none. + - **Picks:** an open pool of 20 cards, made of min(Register, 16) random mints plus Basics. The two players snake-pick 10 each, at 20 s per pick, and the deck is their 10 picks + 5 Basics of their choice. + - **Owner perk:** if you own a mint in the pool, you may take it as your first pick, once, and the recap credits it "from the collection of X". + - **Small Register:** mainnet's 12 mints still work, padded with Basics. If the Register has fewer than 16 mints, the ruleset may allow Archive padding (Fallback A). +- **Trending:** any deck policy. Live trend frozen at match start, through the throttled client and its daily cache: + - **▲** (trend ≥ +25% and daily ≥ 20): Trending (haste) and +1/+0 + - **▼** (≤ −50%, daily ≥ 20): −1/−0 + - the 20/day floor keeps noise out (CARD_DATA finding 6) +- **House rules:** unchanged, data-only. New keys: `startingNotability`, `deckSize`, `maxCitations`, `turnCap`, `basicsAllowed`, `archiveRamp`, `connectedBonus`. + +## 6. Scope for tonight (designer's cut order) +**Must:** the duel engine (§2); derivation (§3.1–3.5) with the classifier test on the sample; the 8 Basics; Connected with frozen claims; the match log; the recap page; Classic + Draft through PvP lobbies; a greedy combat bot. + +**Cut first:** Rivalry text, Trending's ▼, Pathology inversion, Institution subtypes beyond the default. **Defer:** Pending changes, vehicles/Crew, the Archive ramp (flag only). + +## 7. Risks +1. **The engine rewrite is the night's critical path.** The lane engine, bots and golden tests don't transfer. Mitigation: freeze the §2 rules at 21:45, then one engine owner and one bot/sim owner from the first hour. +2. **Famous cards all cost 6** (Tom Ewell, Monoid, Agda, Tatsunoko). Collections of notable articles are top-heavy. Mitigation: the Signature in hand plus fixed income make 6-drops castable by turn 6. Watch the sim's curve. +3. **Basics games are generic.** For 0–2 card owners, Classic has little story. That is exactly why Draft is the front door, and why Fallback A exists. +4. **The classifier is wrong ~5–10% of the time** (the human-settlement bug, P279-only concepts). Show the type line with a "derived from: P31 = …" tooltip so mistakes read as data, not bugs. Correct it by `deriveVersion` bumps, never by hand. +5. **Claims are live data, not the mint snapshot.** Card text can drift between nodes. Freeze the claims per card at first sight with `claimsRevision`, and log it. The host's copy is authoritative for its matches. +6. **Real people in shareable recaps:** this is a living-persons and tone risk. Use mechanical verbs only ("was destroyed", "attacked"), use "the card X", and add no commentary. +7. **Collector advantage in ranked:** enforce the parity target in the sim before ranked opens. +8. **Connected density** may be near zero in random collections (good for surprise) or everywhere through country keys (noise). Tune the keys from the sim. Don't guess. diff --git a/docs/night2/reviews/engineer.md b/docs/night2/reviews/engineer.md new file mode 100644 index 0000000..f272264 --- /dev/null +++ b/docs/night2/reviews/engineer.md @@ -0,0 +1,246 @@ +# Night 2 plan review: lead engineer (feasibility and scope) + +Reviewed against `wd` @ 4f7a8a7 (upstream main with Night 1). Paths are repo-relative. `docs/night/REPORT.md` does **not exist** in this checkout, so Night 1 lessons come from HANDBOOK/BOUNDARIES and the coordinator's notes. + +**Verdict:** the plan is feasible in 4.5 h **if** the duel engine is a *new sibling package* with no stack and sorcery-speed only, PvP stays on the self host, and the Wikimedia client is handled as transport-only for the mint path. Three facts change the plan: +1. **Owned cards cannot reach PvP today.** The host never accepts a player deck (see §2). +2. **Card data is not trustworthy.** Article and stats are claims made by the miner: consensus only checks internal consistency. +3. **The browser drives most Wikimedia traffic.** Every card face triggers a server enrichment fetch. + +--- + +## 1. Engine: reuse, rewrite, smallest change + +**Reusable as is:** +- `shared/game/rng.ts` (mulberry32, `Rng.fromSeed`, exported via `index.ts:3`) +- the clone-on-apply pattern +- the `(ruleset, decks, seed, actions)` replay contract: `replay` at `engine.ts:433`, `applyAction` at `engine.ts:291` +- zod `parseRuleset` (`ruleset.ts:83`) +- `percentile`/`fame`/`costFor` in `derive.ts:52-79` +- the generated sample percentiles (`card-data.ts`, `scripts/game-card-data.mjs`) + +The host is **engine-agnostic** through `EnginePort` (`server/game/engine-port.ts:9-43`), so a second engine plugs in with a new binding file instead of host surgery. Bots are also engine-agnostic (`shared/bots/types.ts` `EngineAdapter`, with `toAct`, `assume` and `evaluate`), and a sequential duel fits that adapter *better* than Edit War does: `game-adapter.ts:243` fakes `toAct` from `committed`. + +**Must be rewritten:** +- **Everything lane- or Topic-shaped:** + - `MatchState.lanes` / `LaneState` (`types.ts:136-170`) + - the simultaneous queue/commit/reveal turn (`engine.ts:291-363`) + - Topic scoring (`finish`, `engine.ts:366`) + - Portals and keywords (`keywords.ts`, 241 lines, hooks assume lanes and `onReveal`) +- **`GameCard`** (`types.ts:24-43`): a duel card needs `type`, `toughness`, rules-text ids and flavour, and `validateDeck` (`engine.ts:27`) hard-codes cost 0–6, power 0–30, Faction and lane fields. +- **UI boards** (`src/game/MatchBoard.tsx`, `adapter.ts`). +- **`parseModeRuleset`** host checks (`engine-binding.ts:31-43`), which are Edit War-specific: `turns × turnSeconds ≤ 240`, `topicCount`. + +**Recommendation: build `shared/duel/` as a sibling package and leave `shared/game/` untouched.** +- Edit War stays playable: its 6 test files keep passing and its modes keep working. +- Two engine agents don't conflict with anyone. +- Duel exposes the same API names (`createMatch`, `legalActions`, `applyAction`, `viewFor`, `replay`, `validateDeck`, `isOver`, `result`), so `EnginePort` and `EngineAdapter` bindings are thin files. + +**Smallest core that still feels like Magic (one night):** +- **Turn:** start (untap, income, draw) → main → combat → end. No second main phase, no stack, no instants and no priority passing. Events are sorcery-speed only. +- **Triggers** resolve immediately in a fixed order: active player first, then reveal `seq`, as Edit War's `onReveal` already does. +- **Resources:** fixed income ramp, `incomeByTurn` as data (Edit War's `energyByTurn` idea, `types.ts:70`), with no carry. A Location is a permanent that gives +1 income. No land cards means no land screw. +- **Figures** have power, toughness and summoning sickness; damage clears at end of turn. **Institutions and Doctrines** are permanents with `ongoing` statics (port the pure `ongoing` hook contract, `keywords.ts:16`). Life is 20 by default (data). +- **Actions must be atomic** so that `legalActions` stays small. That matters because the host checks each action by deep-equal against the full list (`host.ts:187-189`), and the bots enumerate it: + - `play {cardId, target?}` + - `toggleAttacker {id}`, then `confirmAttack` + - `block {blocker, attacker}`, then `confirmBlocks` + - `endPhase`, `concede`, `timeout` + + Never enumerate whole block assignments, which explode combinatorially. +- **Empty library** behaviour is data: `libraryEmpty: 'lose' | 'reshuffle' | 'fatigue'`. This keeps option (a), small decks with recursion, open with no code change. +- **`legalActions` is `[]` for the seat without priority.** The host sweep already treats "has legal actions" as "is the one waiting" (`host.ts:264`), so timeouts work without host changes. + +**Determinism, rules-as-data, `viewFor` and information hiding all carry over.** +- Hidden information is simpler than in Edit War: there is no simultaneous hidden queue, only the hand and library order. +- **New requirement: `logFor(state, seat)`.** Edit War's `viewFor` returns no log at all (`engine.ts:395-419`). The plan's "dry encyclopedic match log" and the recap both need a per-seat log that masks the opponent's `draw` card ids. +- **Card typing (P31) and "Connected" are not on-chain**, so they must be *frozen into the deck at match start*, exactly as the trend arrow is today (`host.ts:318-334`). Match records already store the derived decks (`host.ts:361-363`), so replay stays exact even if Wikidata changes later. +- **Other host limits:** the host's 2000-action cap (`host.ts:344`) is fine for about 15 turns of atomic actions. `MatchRecord` needs an `engine` field. +- **Multi-engine host** (about 15 lines): + - `ModeHost` holds one `engine` (`host.ts:53`); change to `HostedMode {mode, rules, engine}` and `Lobby.engine`. + - Add an optional `engine: 'editwar' | 'duel'` to `ModeSchema` (`modes.ts:88`, default `editwar`). + - Caveat: the schema is `.strict()`, so un-upgraded peers will count duel modes as `rejected` in discovery. That is acceptable on the testnet. + +## 2. "The cards a player owns": the trace and the gaps + +**Today's path:** +1. The client computes ownership itself. `src/App.tsx:130` filters `snapshot.blocks` (from `GET /api/state`, `http.ts:68` → `legacySnapshot(limits.legacyBlocks)`) by the **browser-local wallet** address. +2. `PlaySection` gets `owned` (`App.tsx:203`) and merges `cardFromBlock` into the deck-builder pool (`PlaySection.tsx:42`). `cardFromBlock` derives in the browser, marks the card `unchecked` with its cost capped, and computes rarity from `powHash` client-side (`cards.ts:39-46`). +3. Owned cards are used **only in browser-local bot matches** (`MatchScreen`). + +**Gaps:** +- **G1. No player decks in PvP.** `ModeHost.join` deals `engine.starterDeck` to both seats for every non-draft policy (`host.ts:144`). The `constructed` policy (`modes.ts:64`, which is also the default, `modes.ts:99`) is **unimplemented**: no create/join route takes a deck (`router.ts:123-131`). Ownership is therefore never verified server-side, because it is never used. +- **G2. Accounts are not wired to the game.** + - Linked wallets live in `accounts.sqlite` (`server/account/store.ts:126-130`), but nothing in `server/game/` reads them. + - `gameRouter` receives only `{dataDir, enrichment}` (`http.ts:154`), with no ledger and no account store. + - The `AccountStore` is created privately inside `createAccountRouter` (`router.ts:19`), so it must be injectable to be shared. + - The `auth` middleware is local to that router (`router.ts:25-33`); export it, or call `verifyIdToken` directly. +- **G3. Host identity is not the account.** The player id is `sha256(localStorage secret HMAC hostOrigin)` (`online.ts:161`, `host.ts:380`), so a ladder keyed on it can be farmed trivially by sybils. Also, `Authorization: Bearer` is already taken by seat tokens with a 16–64 character regex (`router.ts:98-101`). Pass the Dex ID token in the **body** at create/join instead. +- **G4. Collection truncation.** `/api/state` returns at most 128 blocks (`server/resources.ts:20`), so older owned cards silently disappear from Play. Use `ledger.deck(address)`, paged by 24 (`ledger.ts:293`), or a new authed `GET /api/game/collection`. +- **G5. Chain card data is a miner claim.** + - The ledger accepts any peer-valid block. `template()` (`ledger.ts:255`) is advisory, and nothing binds a block to a node-issued template. + - `articleSchema` (`consensus.ts:43-56`) does not cross-check `pageId` against `title`. + - `statsSnapshotSchema` (`consensus.ts:59-93`) only checks internal consistency (`deriveStats` of the declared bytes, languages and views). + - So a custom miner can mint "Barack Obama" with any stats. DESIGN §1.10 plausibility exists only as types: `verifyStats` and `check: 'verified'` are never read (no hits outside `types.ts`, `ruleset.ts`, `engine.ts:22` and `derive.ts`). +- **G6. Per-node account stores.** Peer hosts have their own `accounts.sqlite`, so a wallet linked on node A is unknown on node B. Sending a Dex ID token to a peer also lets that peer replay it on other nodes until it expires, since every node shares the `wikideck` audience. + +**Recommended (MVP, self host only):** +- Create and join take `{idToken, deck: tokenId[]}`. The host: + 1. verifies the token (`verifyIdToken`); + 2. loads `wallets(sub)` from the account store; + 3. for each token, checks `ledger.nft(token)` (`canonical-index.ts:163`): owner ∈ wallets and `confirmations ≥ rules.minConfirmations` (1 casual, 3 rated); + 4. builds `CardInput` **from the block**, never from client card JSON, then derives and freezes. +- Put this in a new `server/game/ownership.ts` exposing a pure `resolveDeck(deps, sub, tokenIds)`. `host.ts` calls it from `startMatch`. +- Plausibility (G5), stretch: + - Check `pageId → title` and `revisionId → size` with **one batched request per 50 cards** (`prop=revisions&revids=…&rvprop=size|ids`). Revisions are immutable, so the result can be cached forever and verifies `pageBytes` exactly. + - Past monthly pageviews are also immutable, so they can be checked exactly at one request per card. + - On a mismatch, the card is marked `unverified` and its cost is capped. +- Peers (stretch): replace the ID token with a wallet-signed deck claim `["wikideck:deck-claim:v1", NETWORK, hostOrigin, nonce, tokenIds]`. The client builds the message itself, like `shared/account-link.ts`. This needs no account on the peer and cannot be replayed on another host. + +## 3. PvP: what exists, what's needed, transport + +**What exists:** +- **`server/game/host.ts`:** in-memory lobbies, snake draft, the turn timer and AFK handling via `timeoutAction` (`host.ts:263-270`), legal-action enforcement, live-lobby persistence across restarts (`index.ts:205-226`), JSONL match records with replayable audit (`store.ts`) and a W/L leaderboard (`store.ts:64-68`). +- **`router.ts`:** rate-limited (`router.ts:90-94`). +- **UI:** `OnlinePlay.tsx` is a lobby list (polled every 4 s), create/join, draft and a match board. It is reachable only from inside the Play section. + +**What's needed:** + +| Feature | Minimal design | Files | Size | +|---|---|---|---| +| Invite link | `createLobby({private:true})` is excluded from `openLobbies` (`host.ts:108-112`); the UI route `/play/join/` works because the SPA catch-all serves `index.html` (`http.ts:157`), and `join` already takes an id | host, router, OnlinePlay | S | +| Quick match | `POST /modes/:id/quick` joins the oldest open lobby within the rating window, else creates one; no separate queue structure | host, router | S | +| Rated ladder | Elo (K=24, start 1200) per mode, keyed by account id, recomputed by replaying `matches.jsonl` in order at startup (deterministic, no new store); rated only when both seats are account-verified and `rated:true` in mode limits; Glicko-2 is not worth the night | store.ts, host.ts | M | +| Account seat identity | `idToken` in the create/join body → player id `sha256('acct:'+iss+sub)`; guests keep the secret but are unrated | host.ts, online.ts | S | +| Duel binding | `server/game/duel-binding.ts` plus multi-engine `HostedMode` | new file, host.ts | S | + +**Transport is polling:** the client polls every 1 s (`OnlinePlay.tsx:11, 45-50`), with no WebSocket or SSE anywhere. It is adequate for a sequential duel: about 0.5 s average hand-off latency. + +Three caveats: +1. **Cost.** Each poll runs `viewFor` and `legalActions` and returns the full view. Add a monotonic `version` to the lobby and `GET …?v=N` → `204` when unchanged. Poll every 500 ms while waiting on the opponent and every 3 s otherwise. +2. **Do not long-poll under `/api`.** `RpcBudget` caps the whole node at 32 active `/api` requests (`resources.ts:17`, applied at `http.ts:54`), so 16 matches holding long-polls would starve the node. Real push would need SSE mounted *outside* `/api` (a `server/testnet/http.ts` shared-hook change): a stretch only. +3. **Rate limits.** Two humans behind one NAT, or QA agents on one machine, see 1 req/s × 2 against `plays` 240/min and the global 300/min per IP (`http.ts:56`). That is OK, but QA should not run more than 2 matches per IP. + +## 4. Wikimedia politeness + +**Every call site** (grep over `server`, `src`, `scripts`, `shared` and `android`; the browser never calls Wikimedia APIs directly, because CSP `connect-src 'self'` at `http.ts:50` forbids it): + +| # | Where | Upstream | Trigger | Limits today | +|---|---|---|---|---| +| W1 | `server/wiki.ts:73-78` `random()` | en Action API, `generator=random` ×10 | **mint template** `http.ts:122` | ≤4 concurrent, 3 attempts, 3.5 s timeout, no 429/Retry-After, no maxlag | +| W2 | `server/enrichment.ts:134-138` `load()` metadata | en Action API, `pageids=1` | `getFresh` at **mint** `http.ts:123`; `get` from `/api/wikipedia/:id` `http.ts:93-98`; TrendCache | ≤4 active, 8 pending, then **reject**; in-memory LRU of 128 entries, 6 h TTL; errors cached 30 s | +| W3 | `server/enrichment.ts:148` pageviews | `wikimedia.org` REST, monthly | same as W2 | same | +| W4 | `server/game/trends.ts:37-56` via `index.ts:174-186` | W2+W3 | background, one page per 20 s | about 8.6k requests/day steady if the queue stays warm | +| W5 | **browser:** `src/Card.tsx:24` → `src/useEnrichment.ts:10` → `/api/wikipedia/:id` | W2+W3 | **every card face rendered** (collection, explorer, hero) | per-tab cache 5 min; server limit is 60/min **per client IP** only, with no node-wide upstream budget | +| W6 | `scripts/night/card_sample.py:13-38` | en API, Wikidata `wbgetentities`, REST daily views | offline research | 1 req/s, honours Retry-After, disk cache (its docstring says "~4 req/s"; the code does 1) | +| W7 | browser `` from `upload.wikimedia.org` (`Card.tsx:28`, CSP `http.ts:49`) | CDN | each render | hotlinking; acceptable, but the plan should cache thumbnails or use `pithumbsize` | + +**Likely cause of the Night 1 429:** W5 fan-out (each grid page means N cards × 2 upstream requests, with a 128-entry LRU thrashing across users) plus W4, multiplied by several testnet nodes sharing one egress IP. Each node also uses the default UA, `Wikideck/0.1 (experimental …)` (`wikimedia-user-agent.ts:4-5`), which has **no contact**. That breaks the Wikimedia UA policy and is the kind of client that gets blocked first. + +**Design: `server/wikimedia/client.ts`, one process-wide `WikimediaClient`.** +- **Rate:** a token bucket per upstream host. Defaults (env-configurable): + - `en.wikipedia.org`: **1 req/s, burst 2** + - `www.wikidata.org`: 1 req/s + - `wikimedia.org` REST: 5 req/s +- **Concurrency:** **1 in flight per host** by default (`WIKIDECK_WIKIMEDIA_CONCURRENCY`). The Action API etiquette is serial requests. +- **Co-located nodes:** document `WIKIDECK_WIKIMEDIA_RPS=0.3` for nodes behind a shared IP (testnet compose). +- **Priority lanes**, with a bounded queue (64): + - `mint`: always first; the timeout starts at dispatch; the queue wait is capped at 15 s, and the miner tolerates it (30 s timeout, `miner.ts:57`) + - `interactive`: on overflow, serve stale cache or 503 + - `background`: trends, P31, links, plausibility; dropped when the queue is full +- **maxlag:** add `maxlag=5` to every Action API request (en and Wikidata). Detect `error.code==='maxlag'` (HTTP 200 with a JSON error), wait for `Retry-After` (default 5 s) and retry at most 3 times. REST has no maxlag. +- **429 and 503:** parse `Retry-After` (seconds or HTTP-date), then **pause the whole host bucket** (circuit-open) for max(Retry-After, exponential backoff 2^n s with jitter, cap 10 min). Log once per pause and expose a counter in `/healthz`-adjacent ops output. +- **Batching:** + - `pageids=`/`titles=`/`revids=` up to 50 for cheap props: `info`, `pageprops` (`wikibase_item`), `description`, `revisions|size`. + - P31 via `wbgetentities&ids=Q1|…(50)&props=claims` is heavy (Obama's claims alone are megabytes). Use `wbgetclaims&property=P31` per entity (small, cached for 30 days), or one WDQS `VALUES` query per ≤50 QIDs. + - **"Connected"** costs one request per deck pair: `prop=links&titles=<≤50 deck titles>&pltitles=&pllimit=max` returns exactly the intra-set links. Cache it by the sorted pageId set. + - **Never batch** `langlinks` or `categories`: their limits are shared across the batch, which forces continuation and changes `languagesTruncated` semantics. +- **Persistent cache:** `node:sqlite` (already used by accounts; Node 24) at `$WIKIDECK_DATA_DIR/wikimedia-cache.sqlite`. Key = canonical URL with sorted params and without `maxlag`. Store the body, ETag and Last-Modified; send `If-None-Match` (REST returns ETags; the Action API mostly doesn't); serve stale-while-revalidate for `interactive`. TTLs: + + | Data | TTL | + |---|---| + | metadata | 24 h | + | monthly pageviews | until month rollover (already the rule, `enrichment.ts:70`); closed months are immutable | + | P31 | 30 d | + | links | 7 d | + | revision size | forever | + | random | never | + + Raise the 128-entry cap (`enrichment.ts:51`) once the cache is on disk. +- **UA:** `WikiDeck/ (+https://gitea.eom.dev/WikiDeck/wikideck; ) node/`. + - Keep `WIKIDECK_USER_AGENT` as an override, still sanitized as at `wikimedia-user-agent.ts:8-12`. + - Warn at startup if there is no operator contact. + - Update `tests/testnet-user-agent.test.ts`, which pins today's fallback strings. +- **Volume budget:** + - mint: 3 requests (≤5 with random retries) + - match: **0 synchronous** (cache-only at match start; unknown data means "no bonus" or a fallback type, as `trends.ts` already does) + - per new card first seen: ≤1 batched metadata/plausibility share + 1 P31 + - per deck save: 1 links request + - card-face render: 0 when cached + +**Consensus boundary (checked carefully):** +- **Validation never touches Wikimedia.** `consensus.ts:43-93` is pure, and the only callers of `wikipediaArticles` and `wikipediaEnrichment` are `http.ts:96, 122-123, 154`. Throttling, caching and retry therefore **cannot affect block validation or fork choice**. +- **The mint template's *content* becomes immutable chain data.** The client must be *transport-only* on the mint path: + 1. Keep W1/W2/W3 request params byte-identical: `grnlimit`, `exchars=900`, `pithumbsize`, `cllimit=20` (no hidden filter, which feeds `category()` at `wiki.ts:17`), `clshow=!hidden`, `cllimit=50`, `lllimit=500`. They determine `article.category`, `languageCount` and `languagesTruncated`, and the percentile calibration. `tests/enrichment.test.ts:42-52` already pins part of this; add a golden URL test for W1. Adding `maxlag` is safe because it changes only error behaviour. + 2. `getFresh` must bypass the persistent cache. `snapshotStats` stamps `capturedAt = new Date()` (`shared/enrichment.ts:41`), so cached data would be misdated. + 3. **Existing bug that throttling would amplify.** A 429/5xx on the pageviews call is swallowed into `status:'unavailable'` (`enrichment.ts:145-164`). On the mint path that **permanently mints a card with `attention: null`**. With the new client, mint must fail the template (503, the miner retries) on 429/5xx/timeout, and record "unavailable" only on a genuine 404 or no-data. Both outcomes are valid blocks, so this is template policy, not a consensus change; it needs one owner and a test. + +## 5. Scope: 4.5 h, about 10 agents, one integration branch + +**Rules learned from Night 1:** +- **No stacked PRs.** Squash-merge makes every child PR conflict. Branch only from `night/2026-11-17` after the dependency has merged. +- **Contracts first:** `shared/duel/types.ts` and `docs/game/DUEL_API.md` merge by 22:15. +- **Node 24 everywhere** (`node:sqlite`; the Dockerfile uses `node:24-alpine`). Check `node -v` before `npm ci`. +- **No new npm dependencies.** The lead alone owns lockfile regeneration. +- **Test files:** top-level `tests/-*.test.ts` only (`scripts/run-tests.mjs:7`). + +**Workstreams** (9 workers plus the lead; ✱ = touches a shared file, one line or a small edit): + +| WS | Owner paths | Delivers | Depends on | +|---|---|---|---| +| A duel-core | `shared/duel/{types,engine,ruleset,index}.ts`, `tests/duel-core*.test.ts`, `docs/game/DUEL_API.md` | turn and combat engine, `viewFor`/`logFor`, `replay`; **types PR by 22:15**, alpha by 23:15 | — | +| B duel-cards | `shared/duel/{derive,classify,effects,text}.ts`, `tests/duel-cards*.test.ts` | P31 → type table (from `card-sample.json` `instanceOf`, 236 cards), category fallback, P/T and cost curve, ≤8 effect templates, deterministic MTG-register rules text, flavour from `article.extract` | A types | +| C sim-balance | `shared/bots/duel-adapter.ts`, `scripts/sim/*duel*`, `docs/game/DUEL_BALANCE.md` | greedy and MC bots on duel; win rate by type and faction; ruleset number tuning (data-only PRs) | A alpha (23:15) | +| D wikimedia | `server/wikimedia/*`, `server/wiki.ts`, `server/enrichment.ts`, `server/wikimedia-user-agent.ts`, `tests/wikimedia-*.test.ts` | §4 client, mint-path fix, sqlite cache, UA; `trends.ts` unchanged (it goes through enrichment) | — (starts 21:30) | +| E identity | `server/game/identity.ts`, `scripts/night2/prebake-identity.ts` | background P31, links and plausibility via D's `background` lane; persistent per-token identity; pre-bakes testnet and mainnet cards | D interface (stub until merged), B input type | +| F ownership | `server/game/ownership.ts`, `server/game/collection.ts`, ✱`server/account/router.ts` (inject store, export auth), ✱`http.ts` (pass `{ledger, accounts}` into `gameRouter`) | `resolveDeck`, `GET /api/game/collection`, chain-pool draft source (option c) | — | +| G host-pvp | `server/game/{host,router,store,index,duel-binding}.ts`, `shared/game/modes.ts` (`engine` field), `deploy/night2/modes/*.json` | multi-engine host, constructed decks via F, account seats, private lobbies, invite, quick match, Elo, `?v=` polling | F function signature (agree by 22:00), A types | +| H ui-duel | `src/game/duel/*` (board, card face with type line, P/T, text, flavour; adapter; local bot practice) | playable vs bot in the browser | A types → A alpha | +| I ui-pvp+story | `src/game/OnlinePlay.tsx`, `online.ts`, `PlaySection.tsx`, `Leaderboards.tsx`, `src/game/recap/*`, `shared/duel/recap.ts` | collection deck picker, invite and quick-match UI, ladder, "Battle of X (2026)" recap rendered client-side by `replay` of `GET /matches/:id` (`router.ts:137`) | G API (stub), A log format | +| Lead | integration branch, `docs/night/*`, QA, REPORT | merges, lockfile, end-to-end on testnet with 2 Dex accounts | — | + +Overlap is limited to the ✱ lines. `host.ts` is G's alone: F ships pure functions that G calls. + +**Timeline (EST):** + +| Time | Milestone | +|---|---| +| 21:30 | A, D and F start | +| 22:15 | types contract merged; B, G, H and I build against it | +| 23:15 | engine alpha; C starts sims; H plays vs bot | +| 00:00 | D merged; E live; G binds duel; I wired to G | +| 00:45 | balance v1 (data-only tuning) | +| 01:15 | **freeze** | +| 01:15–01:45 | QA PvP plus recap | +| 01:50 | REPORT | +| 02:00 | stop | + +**Cut first, in order:** +1. WDQS/shared-property "Connected": keep article-link Connected only, or none. +2. Plausibility verification (G5): trust chain stats and document the gap. +3. Quick match: invite link and open lobbies suffice. +4. Elo ladder: keep W/L keyed by account. +5. Peer-hosted duel and wallet-signed deck claims. +6. Recap infobox polish: keep the plain encyclopedic log. + +**Never cut:** +- the Wikimedia client (requirement 7: low risk, independent, and protects every later night) +- server-side ownership verification +- the duel core +- self-hosted PvP with owned or draft decks +- bot practice + +**Biggest risks:** +1. Duel engine plus balance in about 2 h of real build time. Mitigation: no stack, atomic actions, effects as ≤8 templates. +2. UI combat readability. H must start on mock views at 22:15, not wait for the alpha. +3. Supply: 12 mainnet cards make a constructed duel unplayable without option (c) or (a). Make deck size and `libraryEmpty` ruleset data so Eric's decision is a mode file, not code. diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..f470299 --- /dev/null +++ b/ios/.gitignore @@ -0,0 +1,13 @@ +App/build +App/Pods +App/output +App/App/public +DerivedData +xcuserdata + +# Cordova plugins for Capacitor +capacitor-cordova-ios-plugins + +# Generated Config files +App/App/capacitor.config.json +App/App/config.xml diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj new file mode 100644 index 0000000..bac2205 --- /dev/null +++ b/ios/App/App.xcodeproj/project.pbxproj @@ -0,0 +1,376 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 60; + objects = { + +/* Begin PBXBuildFile section */ + 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; }; + 4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */ = {isa = PBXBuildFile; productRef = 4D22ABE82AF431CB00220026 /* CapApp-SPM */; }; + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; }; + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; }; + 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; }; + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; }; + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; }; + 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = ""; }; + 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = ""; }; + 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; }; + 958DCC722DB07C7200EA8C5F /* debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = debug.xcconfig; path = ../debug.xcconfig; sourceTree = SOURCE_ROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 504EC3011FED79650016851F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 504EC2FB1FED79650016851F = { + isa = PBXGroup; + children = ( + 958DCC722DB07C7200EA8C5F /* debug.xcconfig */, + 504EC3061FED79650016851F /* App */, + 504EC3051FED79650016851F /* Products */, + ); + sourceTree = ""; + }; + 504EC3051FED79650016851F /* Products */ = { + isa = PBXGroup; + children = ( + 504EC3041FED79650016851F /* App.app */, + ); + name = Products; + sourceTree = ""; + }; + 504EC3061FED79650016851F /* App */ = { + isa = PBXGroup; + children = ( + 50379B222058CBB4000EE86E /* capacitor.config.json */, + 504EC3071FED79650016851F /* AppDelegate.swift */, + 504EC30B1FED79650016851F /* Main.storyboard */, + 504EC30E1FED79650016851F /* Assets.xcassets */, + 504EC3101FED79650016851F /* LaunchScreen.storyboard */, + 504EC3131FED79650016851F /* Info.plist */, + 2FAD9762203C412B000D30F8 /* config.xml */, + 50B271D01FEDC1A000F3C39B /* public */, + ); + path = App; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 504EC3031FED79650016851F /* App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */; + buildPhases = ( + 504EC3001FED79650016851F /* Sources */, + 504EC3011FED79650016851F /* Frameworks */, + 504EC3021FED79650016851F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = App; + packageProductDependencies = ( + 4D22ABE82AF431CB00220026 /* CapApp-SPM */, + ); + productName = App; + productReference = 504EC3041FED79650016851F /* App.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 504EC2FC1FED79650016851F /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0920; + TargetAttributes = { + 504EC3031FED79650016851F = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 504EC2FB1FED79650016851F; + packageReferences = ( + D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */, + ); + productRefGroup = 504EC3051FED79650016851F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 504EC3031FED79650016851F /* App */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 504EC3021FED79650016851F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */, + 50B271D11FEDC1A000F3C39B /* public in Resources */, + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */, + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */, + 504EC30D1FED79650016851F /* Main.storyboard in Resources */, + 2FAD9763203C412B000D30F8 /* config.xml in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 504EC3001FED79650016851F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 504EC30B1FED79650016851F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC30C1FED79650016851F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC3111FED79650016851F /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 504EC3141FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 504EC3151FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 504EC3171FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; + PRODUCT_BUNDLE_IDENTIFIER = dev.eom.wikideck; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 504EC3181FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = dev.eom.wikideck; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3141FED79650016851F /* Debug */, + 504EC3151FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3171FED79650016851F /* Debug */, + 504EC3181FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCLocalSwiftPackageReference section */ + D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = "CapApp-SPM"; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 4D22ABE82AF431CB00220026 /* CapApp-SPM */ = { + isa = XCSwiftPackageProductDependency; + package = D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */; + productName = "CapApp-SPM"; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 504EC2FC1FED79650016851F /* Project object */; +} diff --git a/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/App/App/AppDelegate.swift b/ios/App/App/AppDelegate.swift new file mode 100644 index 0000000..c3cd83b --- /dev/null +++ b/ios/App/App/AppDelegate.swift @@ -0,0 +1,49 @@ +import UIKit +import Capacitor + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool { + // Called when the app was launched with a url. Feel free to add additional processing here, + // but if you want the App API to support tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(app, open: url, options: options) + } + + func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { + // Called when the app was launched with an activity, including Universal Links. + // Feel free to add additional processing here, but if you want the App API to support + // tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler) + } + +} diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png new file mode 100644 index 0000000..adf6ba0 Binary files /dev/null and b/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png differ diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9b7d382 --- /dev/null +++ b/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images" : [ + { + "filename" : "AppIcon-512@2x.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/App/App/Assets.xcassets/Contents.json b/ios/App/App/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/ios/App/App/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json new file mode 100644 index 0000000..d7d96a6 --- /dev/null +++ b/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "splash-2732x2732-2.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732-1.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png b/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png new file mode 100644 index 0000000..33ea6c9 Binary files /dev/null and b/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png differ diff --git a/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png b/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png new file mode 100644 index 0000000..33ea6c9 Binary files /dev/null and b/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png differ diff --git a/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png b/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png new file mode 100644 index 0000000..33ea6c9 Binary files /dev/null and b/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png differ diff --git a/ios/App/App/Base.lproj/LaunchScreen.storyboard b/ios/App/App/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..e7ae5d7 --- /dev/null +++ b/ios/App/App/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/App/App/Base.lproj/Main.storyboard b/ios/App/App/Base.lproj/Main.storyboard new file mode 100644 index 0000000..b44df7b --- /dev/null +++ b/ios/App/App/Base.lproj/Main.storyboard @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist new file mode 100644 index 0000000..39f617f --- /dev/null +++ b/ios/App/App/Info.plist @@ -0,0 +1,67 @@ + + + + + CAPACITOR_DEBUG + $(CAPACITOR_DEBUG) + CFBundleDevelopmentRegion + en + CFBundleDisplayName + WikiDeck + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + CFBundleURLTypes + + + CFBundleURLName + dev.eom.wikideck + CFBundleURLSchemes + + dev.eom.wikideck + + + + NSAppTransportSecurity + + NSAllowsLocalNetworking + + + + diff --git a/ios/App/CapApp-SPM/.gitignore b/ios/App/CapApp-SPM/.gitignore new file mode 100644 index 0000000..3b29812 --- /dev/null +++ b/ios/App/CapApp-SPM/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/ios/App/CapApp-SPM/Package.swift b/ios/App/CapApp-SPM/Package.swift new file mode 100644 index 0000000..c50e888 --- /dev/null +++ b/ios/App/CapApp-SPM/Package.swift @@ -0,0 +1,29 @@ +// swift-tools-version: 5.9 +import PackageDescription + +// DO NOT MODIFY THIS FILE - managed by Capacitor CLI commands +let package = Package( + name: "CapApp-SPM", + platforms: [.iOS(.v14)], + products: [ + .library( + name: "CapApp-SPM", + targets: ["CapApp-SPM"]) + ], + dependencies: [ + .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "7.6.10"), + .package(name: "CapacitorApp", path: "../../../node_modules/@capacitor/app"), + .package(name: "CapacitorBrowser", path: "../../../node_modules/@capacitor/browser") + ], + targets: [ + .target( + name: "CapApp-SPM", + dependencies: [ + .product(name: "Capacitor", package: "capacitor-swift-pm"), + .product(name: "Cordova", package: "capacitor-swift-pm"), + .product(name: "CapacitorApp", package: "CapacitorApp"), + .product(name: "CapacitorBrowser", package: "CapacitorBrowser") + ] + ) + ] +) diff --git a/ios/App/CapApp-SPM/README.md b/ios/App/CapApp-SPM/README.md new file mode 100644 index 0000000..5e22a2f --- /dev/null +++ b/ios/App/CapApp-SPM/README.md @@ -0,0 +1,5 @@ +# CapApp-SPM + +This SPM is used to host SPM dependencies for you Capacitor project + +Do not modify the contents of it or there may be unintended consequences. diff --git a/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift b/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift new file mode 100644 index 0000000..945afec --- /dev/null +++ b/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift @@ -0,0 +1 @@ +public let isCapacitorApp = true diff --git a/ios/debug.xcconfig b/ios/debug.xcconfig new file mode 100644 index 0000000..53ce18d --- /dev/null +++ b/ios/debug.xcconfig @@ -0,0 +1 @@ +CAPACITOR_DEBUG = true diff --git a/package-lock.json b/package-lock.json index b5eca26..302991e 100755 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,11 @@ "name": "wikideck", "version": "0.1.0", "dependencies": { + "@capacitor/android": "^7.6.10", + "@capacitor/app": "^7.1.2", + "@capacitor/browser": "^7.0.5", + "@capacitor/core": "^7.6.10", + "@capacitor/ios": "^7.6.10", "express": "^5.1.0", "express-rate-limit": "^8.1.0", "hash-wasm": "^4.12.0", @@ -18,6 +23,7 @@ "zod": "^4.1.0" }, "devDependencies": { + "@capacitor/cli": "^7.6.10", "@types/express": "^5.0.3", "@types/node": "^24.0.0", "@types/react": "^19.1.0", @@ -311,6 +317,97 @@ "node": ">=6.9.0" } }, + "node_modules/@capacitor/android": { + "version": "7.6.10", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-7.6.10.tgz", + "integrity": "sha512-94DBImYZyDA9RnO5ks3MI/j6rRFs1uK5DR2ft/rBIsvsltDT4w1CSuM8U7vKmKEGRmAfP6vH/woJkBF69fZa4A==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^7.6.0" + } + }, + "node_modules/@capacitor/app": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@capacitor/app/-/app-7.1.2.tgz", + "integrity": "sha512-d4I/oF/PRu4megL7/IGKYfe5j7yzSON1FRFgq6kH+m5kH6g7V+wyjHRLauCzGNjdRx4S+nWOumINds0qcRBtKg==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": ">=7.0.0" + } + }, + "node_modules/@capacitor/browser": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/@capacitor/browser/-/browser-7.0.5.tgz", + "integrity": "sha512-YF/kC1m1e6c81X/agtAnYItVlqiQ/nXLG+Q3QXNDuiMoRynqa3Guu8ZaV9kWvqQcHoE2w18xz7WGpPOuh+R1fA==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": ">=7.0.0" + } + }, + "node_modules/@capacitor/cli": { + "version": "7.6.10", + "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-7.6.10.tgz", + "integrity": "sha512-8S0h44+339hCJyDw0EWqKz4ivR08tzSY35WzSs49pQ4gNOrGiyKpBUaZc08zlJgvN8yfzMY1pi8QfKDsSn1eHg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ionic/cli-framework-output": "^2.2.8", + "@ionic/utils-subprocess": "^3.0.1", + "@ionic/utils-terminal": "^2.3.5", + "commander": "^12.1.0", + "debug": "^4.4.0", + "env-paths": "^2.2.0", + "fs-extra": "^11.2.0", + "kleur": "^4.1.5", + "native-run": "^2.0.3", + "open": "^8.4.0", + "plist": "^3.1.0", + "prompts": "^2.4.2", + "rimraf": "^6.0.1", + "semver": "^7.6.3", + "tar": "^7.5.3", + "tslib": "^2.8.1", + "xml2js": "^0.6.2" + }, + "bin": { + "cap": "bin/capacitor", + "capacitor": "bin/capacitor" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@capacitor/cli/node_modules/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@capacitor/core": { + "version": "7.6.10", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-7.6.10.tgz", + "integrity": "sha512-foYHd//t6E3RTELVG8wdkp5jVnmLcHKUurAa9BA8EUSNd2eY0SijCHpfO0bFwYBP5DrCeXwgSFYi3NJw413gtQ==", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@capacitor/ios": { + "version": "7.6.10", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-7.6.10.tgz", + "integrity": "sha512-iDXt6n6+tQq6fLMgdVNwT7dtgyqGSpGmPx1AGrUJq3YxOqpzqqtY4v4phqhys9PxPSrVyxnWGAL+SEsAHtZLkQ==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^7.6.0" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.28.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", @@ -753,6 +850,174 @@ "node": ">=18" } }, + "node_modules/@ionic/cli-framework-output": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.8.tgz", + "integrity": "sha512-TshtaFQsovB4NWRBydbNFawql6yul7d5bMiW1WYYf17hd99V6xdDdk3vtF51bw6sLkxON3bDQpWsnUc9/hVo3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ionic/utils-terminal": "2.3.5", + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-array": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-array/-/utils-array-2.1.6.tgz", + "integrity": "sha512-0JZ1Zkp3wURnv8oq6Qt7fMPo5MpjbLoUoa9Bu2Q4PJuSDWM8H8gwF3dQO7VTeUj3/0o1IB1wGkFWZZYgUXZMUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-fs": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.7.tgz", + "integrity": "sha512-2EknRvMVfhnyhL1VhFkSLa5gOcycK91VnjfrTB0kbqkTFCOXyXgVLI5whzq7SLrgD9t1aqos3lMMQyVzaQ5gVA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/fs-extra": "^8.0.0", + "debug": "^4.0.0", + "fs-extra": "^9.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-fs/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@ionic/utils-object": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-object/-/utils-object-2.1.6.tgz", + "integrity": "sha512-vCl7sl6JjBHFw99CuAqHljYJpcE88YaH2ZW4ELiC/Zwxl5tiwn4kbdP/gxi2OT3MQb1vOtgAmSNRtusvgxI8ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-process": { + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@ionic/utils-process/-/utils-process-2.1.12.tgz", + "integrity": "sha512-Jqkgyq7zBs/v/J3YvKtQQiIcxfJyplPgECMWgdO0E1fKrrH8EF0QGHNJ9mJCn6PYe2UtHNS8JJf5G21e09DfYg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ionic/utils-object": "2.1.6", + "@ionic/utils-terminal": "2.3.5", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "tree-kill": "^1.2.2", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@ionic/utils-stream/-/utils-stream-3.1.7.tgz", + "integrity": "sha512-eSELBE7NWNFIHTbTC2jiMvh1ABKGIpGdUIvARsNPMNQhxJB3wpwdiVnoBoTYp+5a6UUIww4Kpg7v6S7iTctH1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-subprocess": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@ionic/utils-subprocess/-/utils-subprocess-3.0.1.tgz", + "integrity": "sha512-cT4te3AQQPeIM9WCwIg8ohroJ8TjsYaMb2G4ZEgv9YzeDqHZ4JpeIKqG2SoaA3GmVQ3sOfhPM6Ox9sxphV/d1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ionic/utils-array": "2.1.6", + "@ionic/utils-fs": "3.1.7", + "@ionic/utils-process": "2.1.12", + "@ionic/utils-stream": "3.1.7", + "@ionic/utils-terminal": "2.3.5", + "cross-spawn": "^7.0.3", + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-terminal": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.5.tgz", + "integrity": "sha512-3cKScz9Jx2/Pr9ijj1OzGlBDfcmx7OMVBt4+P1uRR0SSW4cm1/y3Mo4OY3lfkuaYifMNBW8Wz6lQHbs1bihr7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/slice-ansi": "^4.0.0", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "slice-ansi": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "tslib": "^2.0.1", + "untildify": "^4.0.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -1317,6 +1582,16 @@ "@types/send": "*" } }, + "node_modules/@types/fs-extra": { + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.5.tgz", + "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/http-errors": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", @@ -1389,6 +1664,13 @@ "@types/node": "*" } }, + "node_modules/@types/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@vitejs/plugin-react": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz", @@ -1410,6 +1692,16 @@ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/@xmldom/xmldom": { + "version": "0.9.12", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz", + "integrity": "sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.6" + } + }, "node_modules/accepts": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", @@ -1449,6 +1741,57 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, "node_modules/baseline-browser-mapping": { "version": "2.11.34", "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.34.tgz", @@ -1462,6 +1805,16 @@ "node": ">=6.0.0" } }, + "node_modules/big-integer": { + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", + "dev": true, + "license": "Unlicense", + "engines": { + "node": ">=0.6" + } + }, "node_modules/body-parser": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", @@ -1486,6 +1839,32 @@ "url": "https://opencollective.com/express" } }, + "node_modules/bplist-parser": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz", + "integrity": "sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "big-integer": "1.6.x" + }, + "engines": { + "node": ">= 5.10.0" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz", + "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/browserslist": { "version": "4.29.5", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz", @@ -1520,6 +1899,16 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -1609,6 +1998,16 @@ "node": ">=8" } }, + "node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -1644,6 +2043,16 @@ "dev": true, "license": "MIT" }, + "node_modules/commander": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", + "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, "node_modules/concurrently": { "version": "9.2.5", "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.5.tgz", @@ -1720,6 +2129,21 @@ "node": ">=6.6.0" } }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", @@ -1744,6 +2168,16 @@ } } }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -1780,6 +2214,19 @@ "dev": true, "license": "ISC" }, + "node_modules/elementtree": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/elementtree/-/elementtree-0.1.7.tgz", + "integrity": "sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "sax": "1.1.4" + }, + "engines": { + "node": ">= 0.4.0" + } + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -1796,6 +2243,16 @@ "node": ">= 0.8" } }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/es-define-property": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", @@ -1955,6 +2412,16 @@ "express": ">= 4.11" } }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -2012,6 +2479,21 @@ "node": ">= 0.8" } }, + "node_modules/fs-extra": { + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -2093,6 +2575,24 @@ "node": ">= 0.4" } }, + "node_modules/glob": { + "version": "14.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-14.0.6.tgz", + "integrity": "sha512-OwXjVP2svY5EyLY75Vek96C8qK43gqrt4xsZ+qSILdnaEiJPXkd62mcfUSNx/TQErQRdu5uM5kF67sfONragKw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^11.0.5", + "minipass": "^7.1.3", + "path-scurry": "^3.0.0" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -2105,6 +2605,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/graceful-fs": { + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.12.tgz", + "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -2199,6 +2706,16 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "license": "ISC" }, + "node_modules/ini": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz", + "integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, "node_modules/ip-address": { "version": "10.7.5", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.5.tgz", @@ -2217,6 +2734,22 @@ "node": ">= 0.10" } }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -2233,6 +2766,26 @@ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", "license": "MIT" }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -2266,6 +2819,29 @@ "node": ">=6" } }, + "node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -2344,6 +2920,46 @@ "url": "https://opencollective.com/express" } }, + "node_modules/minimatch": { + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -2369,6 +2985,32 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/native-run": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/native-run/-/native-run-2.1.0.tgz", + "integrity": "sha512-JhEph/fyMwBHmMLiZ1OZX8X92+N1gt5+/ecLtgeRbyDHIyIW7EDt0A3kBZu594y1P4yKDr1CIHe+DDYQ7ZlKjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ionic/utils-fs": "^3.1.7", + "@ionic/utils-terminal": "^2.3.4", + "bplist-parser": "^0.3.2", + "debug": "^4.3.4", + "elementtree": "^0.1.7", + "ini": "^4.1.1", + "plist": "^3.1.0", + "split2": "^4.2.0", + "through2": "^4.0.2", + "tslib": "^2.6.2", + "yauzl": "^2.10.0" + }, + "bin": { + "native-run": "bin/native-run" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/negotiator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", @@ -2432,6 +3074,31 @@ "wrappy": "1" } }, + "node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -2441,6 +3108,43 @@ "node": ">= 0.8" } }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.0.tgz", + "integrity": "sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, "node_modules/path-to-regexp": { "version": "8.4.2", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", @@ -2451,6 +3155,13 @@ "url": "https://opencollective.com/express" } }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true, + "license": "MIT" + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -2471,6 +3182,21 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/plist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz", + "integrity": "sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@xmldom/xmldom": "^0.9.10", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, "node_modules/postcss": { "version": "8.5.32", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz", @@ -2500,6 +3226,30 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prompts/node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/proxy-addr": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", @@ -2592,6 +3342,21 @@ "node": ">=0.10.0" } }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -2602,6 +3367,26 @@ "node": ">=0.10.0" } }, + "node_modules/rimraf": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.4.tgz", + "integrity": "sha512-Fk3reQDVPZUMbEm7Zwxz03BWQMW3V5buSk9aU8OckTrO8A1nQtbqvYsAantGNermwsIsXcuOBqcoJ3HuMELctw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "glob": "^14.0.3", + "package-json-from-dist": "^1.0.1" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/rollup": { "version": "4.66.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.66.0.tgz", @@ -2674,12 +3459,40 @@ "tslib": "^2.1.0" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "license": "MIT" }, + "node_modules/sax": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz", + "integrity": "sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==", + "dev": true, + "license": "ISC" + }, "node_modules/scheduler": { "version": "0.28.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", @@ -2747,6 +3560,29 @@ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", "license": "ISC" }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/shell-quote": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.12.0.tgz", @@ -2832,6 +3668,38 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, "node_modules/source-map-js": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", @@ -2842,6 +3710,16 @@ "node": ">=0.10.0" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/statuses": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", @@ -2851,6 +3729,16 @@ "node": ">= 0.8" } }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -2895,6 +3783,43 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/tar": { + "version": "7.5.23", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.23.tgz", + "integrity": "sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/tar/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "readable-stream": "3" + } + }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", @@ -2935,7 +3860,6 @@ "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true, "license": "0BSD" }, "node_modules/tsx": { @@ -2996,6 +3920,16 @@ "dev": true, "license": "MIT" }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -3005,6 +3939,16 @@ "node": ">= 0.8" } }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/update-browserslist-db": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", @@ -3036,6 +3980,13 @@ "browserslist": ">= 4.21.0" } }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -3120,6 +4071,22 @@ } } }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -3144,6 +4111,40 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "license": "ISC" }, + "node_modules/xml2js": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", + "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", + "dev": true, + "license": "MIT", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xml2js/node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -3190,6 +4191,17 @@ "node": ">=12" } }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "node_modules/zod": { "version": "4.6.7", "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", diff --git a/package.json b/package.json index ef62ab5..9824283 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,11 @@ "test": "node scripts/run-tests.mjs" }, "dependencies": { + "@capacitor/android": "^7.6.10", + "@capacitor/app": "^7.1.2", + "@capacitor/browser": "^7.0.5", + "@capacitor/core": "^7.6.10", + "@capacitor/ios": "^7.6.10", "express": "^5.1.0", "express-rate-limit": "^8.1.0", "hash-wasm": "^4.12.0", @@ -32,6 +37,7 @@ "zod": "^4.1.0" }, "devDependencies": { + "@capacitor/cli": "^7.6.10", "@types/express": "^5.0.3", "@types/node": "^24.0.0", "@types/react": "^19.1.0", diff --git a/scripts/build-randomx-android.sh b/scripts/build-randomx-android.sh new file mode 100755 index 0000000..37cd70b --- /dev/null +++ b/scripts/build-randomx-android.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# Cross-compile the pinned native RandomX engine (native/, RandomX v1.2.1) for the Android app. +# Output: android/app/src/main/jniLibs//libwikideck_randomx.so, an executable named like a +# library so Android extracts it to nativeLibraryDir, where an app may exec it (docs/night2/MOBILE_MINING.md). +# +# Needs ANDROID_HOME with an NDK (ndk;) and CMake 3.24+ (cmake;, or cmake on PATH). +# ABIS="x86_64 arm64-v8a" JOBS=2 sh scripts/build-randomx-android.sh +set -eu +cd "$(dirname "$0")/.." +: "${ANDROID_HOME:?set ANDROID_HOME}" +ABIS="${ABIS:-arm64-v8a x86_64}" +JOBS="${JOBS:-2}" +API="${ANDROID_API:-24}" +NDK="${ANDROID_NDK_HOME:-$(ls -d "$ANDROID_HOME"/ndk/* 2>/dev/null | sort -V | tail -n1)}" +[ -f "$NDK/build/cmake/android.toolchain.cmake" ] || { echo "No NDK under $ANDROID_HOME/ndk" >&2; exit 1; } +CMAKE_DIR="$(ls -d "$ANDROID_HOME"/cmake/* 2>/dev/null | sort -V | tail -n1 || true)" +[ -n "$CMAKE_DIR" ] && PATH="$CMAKE_DIR/bin:$PATH" +command -v cmake >/dev/null || { echo "cmake not found" >&2; exit 1; } +GEN="" +command -v ninja >/dev/null && GEN="-G Ninja" + +for abi in $ABIS; do + build="native/build-android-$abi" + # shellcheck disable=SC2086 + cmake -S native -B "$build" $GEN \ + -DCMAKE_TOOLCHAIN_FILE="$NDK/build/cmake/android.toolchain.cmake" \ + -DANDROID_ABI="$abi" -DANDROID_PLATFORM="android-$API" \ + -DCMAKE_BUILD_TYPE=Release -DWIKIDECK_RANDOMX_TESTS=OFF + cmake --build "$build" --config Release --target wikideck-randomx --parallel "$JOBS" + out="android/app/src/main/jniLibs/$abi" + mkdir -p "$out" + cp "$build/wikideck-randomx" "$out/libwikideck_randomx.so" + "$NDK"/toolchains/llvm/prebuilt/*/bin/llvm-strip "$out/libwikideck_randomx.so" + ls -l "$out/libwikideck_randomx.so" +done diff --git a/scripts/duel-card-sample.ts b/scripts/duel-card-sample.ts new file mode 100644 index 0000000..31bc49c --- /dev/null +++ b/scripts/duel-card-sample.ts @@ -0,0 +1,32 @@ +/** + * Writes docs/game/duel-card-sample.json (card-sample.json → DuelCard[]) and prints the + * type / Portal / cost / keyword distributions. Offline. Usage: + * node --experimental-strip-types scripts/duel-card-sample.ts [--check] + * --check exits non-zero if the committed fixture is out of date. + */ +import { readFileSync, writeFileSync } from 'node:fs'; +import { deriveSample, type SampleCard } from '../shared/duel/sample.ts'; +import { DERIVE_VERSION } from '../shared/duel/derive.ts'; + +const root = new URL('../', import.meta.url); +const sample = JSON.parse(readFileSync(new URL('docs/game/card-sample.json', root), 'utf8')) as { cards: SampleCard[] }; +const cards = deriveSample(sample.cards); +const out = JSON.stringify({ source: 'docs/game/card-sample.json', deriveVersion: DERIVE_VERSION, count: cards.length, cards }, null, 1) + '\n'; +const path = new URL('docs/game/duel-card-sample.json', root); + +const tally = (f: (c: typeof cards[number]) => string | number) => { + const m = new Map(); + for (const c of cards) m.set(f(c), (m.get(f(c)) ?? 0) + 1); + return [...m].sort((a, b) => String(a[0]).localeCompare(String(b[0]), 'en', { numeric: true })) + .map(([k, v]) => `${k} ${v} (${(100 * v / cards.length).toFixed(1)}%)`).join(', '); +}; +console.log('type:', tally(c => c.type)); +console.log('typedBy:', tally(c => c.typedBy)); +console.log('portal:', tally(c => c.portal)); +console.log('cost:', tally(c => c.cost)); +console.log('subtype:', tally(c => `${c.type}/${c.subtype ?? '-'}`)); +console.log('keywords:', tally(c => c.keywords.join('+') || 'none')); + +if (process.argv.includes('--check')) { + if (readFileSync(path, 'utf8') !== out) { console.error('duel-card-sample.json is stale'); process.exit(1); } +} else writeFileSync(path, out); diff --git a/scripts/game-card-data.mjs b/scripts/game-card-data.mjs new file mode 100644 index 0000000..1c742b3 --- /dev/null +++ b/scripts/game-card-data.mjs @@ -0,0 +1,51 @@ +#!/usr/bin/env node +// Generates shared/game/card-data.ts from council-data's frozen files (docs/game/*.json). +// The engine does no I/O, so the data is embedded as constants. Rerun after the JSON changes: +// node scripts/game-card-data.mjs +import { readFileSync, writeFileSync } from 'node:fs'; + +const root = new URL('../', import.meta.url); +const sample = JSON.parse(readFileSync(new URL('docs/game/card-sample.json', root), 'utf8')); +const starter = JSON.parse(readFileSync(new URL('docs/game/starter-cards.json', root), 'utf8')); + +// DESIGN §1.1: 99 ascending cut points per stat. Cut k (1..99) is the value at rank floor(k·n/100) +// of the sample's sorted scores; null attention is excluded from its table. +function cuts(values) { + const sorted = values.filter(v => typeof v === 'number').sort((a, b) => a - b); + if (sorted.length < 2) throw new Error('sample too small'); + return Array.from({ length: 99 }, (_, i) => sorted[Math.min(sorted.length - 1, Math.floor((i + 1) * sorted.length / 100))]); +} +// Prefer council-data's published table (card-sample.json `percentiles`); fall back to computing it. +const official = sample.percentiles && ['attention', 'depth', 'reach'].every(stat => sample.percentiles[stat]?.length === 99); +const table = official ? { attention: sample.percentiles.attention, depth: sample.percentiles.depth, reach: sample.percentiles.reach } + : Object.fromEntries(['attention', 'depth', 'reach'].map(stat => [stat, cuts(sample.cards.map(c => c.stats?.[stat]))])); +const method = official ? sample.percentilesMethod : 'computed here: value at rank floor(k*n/100)'; + +const daysIn = month => { const [y, m] = month.split('-').map(Number); return new Date(Date.UTC(y, m, 0)).getUTCDate(); }; +const pool = starter.cards.map(c => ({ + pageId: c.pageId, title: c.title, category: c.category, + stats: { attention: c.stats.attention ?? null, depth: c.stats.depth, reach: c.stats.reach }, + trendPercent: c.trendPercent ?? null, + dailyAverage: typeof c.monthlyViews === 'number' && c.latestMonth ? Math.round(c.monthlyViews / daysIn(c.latestMonth) * 100) / 100 : null, +})); + +const out = `// GENERATED by scripts/game-card-data.mjs from docs/game/card-sample.json (${sample.cards.length} cards, +// generated ${sample.generatedAt}) and docs/game/starter-cards.json (frozen ${starter.frozenAt}). Do not edit by hand. +// Percentiles: ${method} +import type { PercentileTable } from './derive.ts'; +import type { Faction } from './types.ts'; + +/** DESIGN §1.1 reference table "card-sample-2026-11-16": 99 cut points per stat. */ +export const CARD_SAMPLE_PERCENTILES: PercentileTable = ${JSON.stringify(table)}; + +export interface LoanerSnapshot { + pageId: number; title: string; category: Faction; + stats: { attention: number | null; depth: number; reach: number }; + trendPercent: number | null; dailyAverage: number | null; +} + +/** Frozen loaner pool (§2): real snapshots of random articles, for filling deck slots and draft modes. */ +export const LOANER_SNAPSHOTS: readonly LoanerSnapshot[] = ${JSON.stringify(pool, null, 1).replace(/\n\s*/g, ' ')}; +`; +writeFileSync(new URL('shared/game/card-data.ts', root), out); +console.log(`card-data.ts: ${pool.length} loaners, percentile tables from ${sample.cards.length} sample cards`); diff --git a/scripts/ios/build-sim.sh b/scripts/ios/build-sim.sh new file mode 100755 index 0000000..6150dab --- /dev/null +++ b/scripts/ios/build-sim.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# Build WikiDeck for the iOS simulator and launch it. Run INSIDE the macOS VM after Xcode is installed. +# Usage: scripts/ios/build-sim.sh [simulator name, default "iPhone 16"] +set -euo pipefail +cd "$(dirname "$0")/../.." +export PATH="$HOME/node/bin:$PATH" +SIM="${1:-iPhone 16}" +APP_ID=dev.eom.wikideck + +xcode-select -p | grep -q Xcode.app || sudo xcode-select -s /Applications/Xcode.app/Contents/Developer +xcodebuild -version +sudo xcodebuild -license accept 2>/dev/null || true +xcodebuild -runFirstLaunch >/dev/null 2>&1 || true + +npm ci +# Same testnet build settings as android/build-debug.sh (otherwise the app shows MAINNET). +export VITE_WIKIDECK_NETWORK="${VITE_WIKIDECK_NETWORK:-testnet}" +export VITE_WIKIDECK_GENESIS_TIME="${VITE_WIKIDECK_GENESIS_TIME:-1792411200}" +export VITE_NODE_URL="${VITE_NODE_URL:-http://192.168.1.32:3101}" +npm run build +npx cap sync ios + +# Pick the simulator (fall back to the first available iPhone). +UDID=$(xcrun simctl list devices available -j | python3 -c ' +import json,sys; want=sys.argv[1]; d=json.load(sys.stdin)["devices"] +devs=[x for r,l in d.items() if "iOS" in r for x in l] +m=[x for x in devs if x["name"]==want] or [x for x in devs if x["name"].startswith("iPhone")] +print(m[-1]["udid"] if m else "")' "$SIM") +[ -n "$UDID" ] || { echo "No iOS simulator runtime installed. Xcode > Settings > Components > iOS."; exit 1; } + +xcodebuild -project ios/App/App.xcodeproj -scheme App -configuration Debug \ + -sdk iphonesimulator -destination "id=$UDID" -derivedDataPath ios/build \ + CODE_SIGNING_ALLOWED=NO build + +APP=$(find ios/build/Build/Products/Debug-iphonesimulator -maxdepth 1 -name '*.app' | head -1) +xcrun simctl boot "$UDID" 2>/dev/null || true +open -a Simulator +xcrun simctl install "$UDID" "$APP" +xcrun simctl launch "$UDID" "$APP_ID" +sleep 8 +xcrun simctl io "$UDID" screenshot "$HOME/wikideck-ios-sim.png" +echo "Launched $APP_ID on $SIM ($UDID); screenshot: ~/wikideck-ios-sim.png" diff --git a/scripts/night/card_analyze.py b/scripts/night/card_analyze.py new file mode 100644 index 0000000..c18adb5 --- /dev/null +++ b/scripts/night/card_analyze.py @@ -0,0 +1,156 @@ +#!/usr/bin/env python3 +"""Summarise card-sample.json into markdown stats. Usage: python3 -I card_analyze.py sample.json > out.md""" +import json, sys, math, statistics as st, collections, re +d = json.load(open(sys.argv[1])); C = d['cards'] +def q(v): + v = sorted(v); n = len(v) + def p(x): + k = (n - 1) * x; f = math.floor(k); c = min(f + 1, n - 1); return v[f] + (v[c] - v[f]) * (k - f) + return [v[0], p(.1), p(.25), p(.5), p(.75), p(.9), v[-1]] +def skew(v): + m, s = st.mean(v), st.pstdev(v); return sum((x - m) ** 3 for x in v) / len(v) / s ** 3 if s else 0 +def rank(v): + o = sorted(range(len(v)), key=lambda i: v[i]); r = [0] * len(v); i = 0 + while i < len(o): + j = i + while j + 1 < len(o) and v[o[j + 1]] == v[o[i]]: j += 1 + for k in range(i, j + 1): r[o[k]] = (i + j) / 2 + i = j + 1 + return r +def pearson(a, b): + ma, mb = st.mean(a), st.mean(b); sa = math.sqrt(sum((x - ma) ** 2 for x in a)); sb = math.sqrt(sum((y - mb) ** 2 for y in b)) + return sum((x - ma) * (y - mb) for x, y in zip(a, b)) / (sa * sb) if sa and sb else float('nan') +pv = [c for c in C if c['pageviews']['status'] == 'available'] +F = {'attention': lambda c: c['stats']['attention'], 'depth': lambda c: c['stats']['depth'], 'reach': lambda c: c['stats']['reach'], + 'pageBytes': lambda c: c['pageBytes'], 'languageCount': lambda c: c['languageCount'], + 'monthlyViews': lambda c: c['pageviews']['months'][5]['views'] if c['pageviews']['status'] == 'available' else None, + 'dailyAverage': lambda c: c['pageviews']['dailyAverage'], 'trendPercent': lambda c: c['pageviews']['trendPercent'], + 'drift30Percent': lambda c: c['drift30']['pct']} +out = [] +P = out.append +rate = f"{len(C)/d['rawPagesSeen']*100:.0f}%" if d['rawPagesSeen'] else '~44% (149/340 logged during sampling)' +P(f"Sample: **{len(C)} cards**; {rate} of random pages pass the illustrated filter. Pageviews available for {len(pv)}.\n") +P('| stat | n | min | p10 | p25 | median | p75 | p90 | max | mean | skew |'); P('|---|---|---|---|---|---|---|---|---|---|---|') +for k, f in F.items(): + v = [f(c) for c in C if f(c) is not None] + qs = q(v); fmt = (lambda x: f'{x:.0f}') if k not in ('trendPercent', 'drift30Percent', 'dailyAverage') else (lambda x: f'{x:.1f}') + P(f"| {k} | {len(v)} | " + ' | '.join(fmt(x) for x in qs) + f" | {fmt(st.mean(v))} | {skew(v):.2f} |") +P('\n**Spearman rank correlations** (cards with pageviews):\n') +keys = ['attention', 'depth', 'reach', 'trendPercent', 'drift30Percent'] +rows = [c for c in pv if c['pageviews']['trendPercent'] is not None and c['drift30']['pct'] is not None] +R = {k: rank([F[k](c) for c in rows]) for k in keys} +P('| | ' + ' | '.join(keys) + ' |'); P('|---' * (len(keys) + 1) + '|') +for a in keys: P(f'| {a} | ' + ' | '.join(f'{pearson(R[a], R[b]):.2f}' for b in keys) + ' |') +P(f'\n(n={len(rows)}; attention~monthlyViews, depth~pageBytes, reach~languageCount are monotonic so their rank correlations are identical.)\n') +tp = [c['pageviews']['trendPercent'] for c in pv if c['pageviews']['trendPercent'] is not None] +P(f"**trendPercent sign:** positive {sum(t>0 for t in tp)} ({sum(t>0 for t in tp)/len(tp)*100:.0f}%), negative {sum(t<0 for t in tp)} ({sum(t<0 for t in tp)/len(tp)*100:.0f}%), zero {sum(t==0 for t in tp)}; null (prior month 0 or no views) {len(C)-len(tp)}. " + f"|trend| > 50%: {sum(abs(t)>50 for t in tp)}; > 100%: {sum(abs(t)>100 for t in tp)}.\n") +dr = [c['drift30']['pct'] for c in C if c['drift30']['pct'] is not None] +P(f"**30-day drift** (views 10-17..11-15 vs 09-17..10-16): median |drift| {st.median([abs(x) for x in dr]):.0f}%, " + f"p90 |drift| {q([abs(x) for x in dr])[5]:.0f}%. Attention score change implied: " + f"median {st.median([abs(100*math.log10((c['drift30']['last30']+1)/(c['drift30']['prev30']+1))/6) for c in C]):.1f} points, " + f"p90 {q([abs(100*math.log10((c['drift30']['last30']+1)/(c['drift30']['prev30']+1))/6) for c in C])[5]:.1f} points.\n") +for name, f in [('attention', F['attention']), ('depth', F['depth']), ('reach', F['reach'])]: + v = [f(c) for c in C if f(c) is not None]; h = collections.Counter(min(x // 10, 9) for x in v) + P(f"**{name} histogram (deciles 0-9,10-19..90-100):** " + ' '.join(str(h.get(i, 0)) for i in range(10))) +P(f"\nReach = 0 (no other languages): {sum(c['languageCount']==0 for c in C)}; reach 100 (>=999 langs) impossible in practice, max langs {max(c['languageCount'] for c in C)}. " + f"Attention null: {sum(c['stats']['attention'] is None for c in C)}; attention 0: {sum(c['stats']['attention']==0 for c in C)}.\n") +s3 = [sum(F[k](c) or 0 for k in ('attention', 'depth', 'reach')) for c in C] +P(f"**Sum of three stats:** " + ', '.join(f'{n} {x:.0f}' for n, x in zip(['min', 'p10', 'p25', 'median', 'p75', 'p90', 'max'], q(s3))) + '\n') +P('**Legacy `category()` (server/wiki.ts):** ' + ', '.join(f'{k} {v}' for k, v in collections.Counter(c['legacyCategory'] for c in C).most_common()) + '\n') +io = collections.Counter(x['label'] for c in C for x in c['instanceOf']) +P('**Top Wikidata P31 classes:** ' + ', '.join(f'{k} {v}' for k, v in io.most_common(40)) + '\n') +P(f"No Wikidata item: {sum(not c['wikidataId'] for c in C)}; no P31: {sum(not c['instanceOf'] for c in C)}\n") +words = collections.Counter() +for c in C: + for cat in set(w for t in c['categories'] for w in re.findall(r'[a-z]+', t.lower()) if len(w) > 3): words[cat] += 1 +P('**Most frequent category words (cards containing):** ' + ', '.join(f'{k} {v}' for k, v in words.most_common(60)) + '\n') +print('\n'.join(out)) + +# ---- rank normalisation table (critic request): score -> 1..10 tier by sample decile +def tiers(name): + v = sorted(F[name](c) for c in C if F[name](c) is not None) + return [v[min(len(v) - 1, int(len(v) * k / 10))] for k in range(1, 10)] +T = {k: tiers(k) for k in ('attention', 'depth', 'reach')} +print('\n## Rank-normalised tiers (1–10)\n') +print('Tier = 1 + number of breakpoints the score is **>=**. Breakpoints are the sample deciles p10..p90 of the 0–100 score. ' + 'Ties make some tiers thin (scores are integers).\n') +print('| stat | p10 | p20 | p30 | p40 | p50 | p60 | p70 | p80 | p90 |'); print('|---' * 10 + '|') +for k, b in T.items(): print(f'| {k} | ' + ' | '.join(str(x) for x in b) + ' |') +def tier(k, s): return None if s is None else 1 + sum(s >= x for x in T[k]) +for c in C: c['tiers'] = {k: tier(k, c['stats'][k]) for k in T} +tc = collections.Counter(c['tiers']['attention'] for c in C) +print('\nResulting tier counts — attention: ' + ' '.join(f'{t}:{tc.get(t,0)}' for t in [None] + list(range(1, 11)))) +for k in ('depth', 'reach'): + tc = collections.Counter(c['tiers'][k] for c in C); print(f'; {k}: ' + ' '.join(f'{t}:{tc.get(t,0)}' for t in range(1, 11))) +json.dump({'breakpoints': T, 'rule': 'tier = 1 + count(breakpoints <= score); attention null -> no tier'}, + open(sys.argv[2] if len(sys.argv) > 2 else '/dev/null', 'w'), indent=1) + +# ---- starter loaner candidates: 4 per legacy category, spread over combined tier +if len(sys.argv) > 3: + pick = [] + for cat in ['Space', 'Nature', 'People', 'Science', 'History', 'Culture']: + pool = sorted((c for c in C if c['legacyCategory'] == cat and c['stats']['attention'] is not None), + key=lambda c: sum(c['tiers'].values())) + if not pool: continue + n = min(4, len(pool)); idx = sorted({round(i * (len(pool) - 1) / max(1, n - 1)) for i in range(n)}) + for i in idx: + c = pool[i] + pick.append({'pageId': c['pageId'], 'title': c['title'], 'category': cat, 'wikidataId': c['wikidataId'], + 'revisionId': c['revisionId'], 'pageBytes': c['pageBytes'], 'languageCount': c['languageCount'], + 'monthlyViews': c['pageviews']['months'][5]['views'], 'latestMonth': c['pageviews']['latestMonth'], + 'trendPercent': None if c['pageviews']['trendPercent'] is None else round(c['pageviews']['trendPercent'], 1), + 'stats': c['stats'], 'tiers': c['tiers']}) + json.dump({'frozenAt': d['generatedAt'][:10], 'note': 'Frozen loaner/starter stats from the council-data random sample. Do not fetch live.', + 'cards': pick}, open(sys.argv[3], 'w'), indent=1, ensure_ascii=False) + print(f'\nStarter candidates: {len(pick)} written to {sys.argv[3]}: ' + collections.Counter(p['category'] for p in pick).__repr__()) + +# ---- candidate factions from Wikidata P31 (+ categories fallback) +FAC = [ + ('People', r'\bhuman\b|fictional character|person'), + ('Sport', r'season|sports team|football|match|tournament|championship|final\b|club|league|olympic|race\b'), + ('Nature', r'taxon|species|genus|plant|fungus|disease|epiphyte|mineral|bird|fish|insect'), + ('Places', r'village|town|city|commune|municipality|river|lake|mountain|county|district|parish|region|plateau|island|settlement|neighbo|locality|census|hamlet|valley|bay|area|province|state of|capital|suburb|stream|peak|unincorporated|human settlement|local government'), + ('Structures', r'building|castle|mosque|church|cathedral|temple|bridge|station|railway line|road|highway|museum|structure|stadium|dam|tower|house|school|hospital|airport|monument|fort|palace|lighthouse|park'), + ('Works', r'film|album|single|song|musical|television|book|novel|video game|painting|literary|composition|series|episode|magazine|newspaper|poem|opera|play\b|artwork|sculpture'), + ('Organisations', r'company|group|band|organi[sz]ation|university|college|party|business|enterprise|agency|institute|association|brand|union|ministry|military unit'), + ('Events', r'election|protest|battle|war\b|storm|nor.easter|cyclone|event|disaster|treaty|conflict|earthquake|incident|festival|referendum|conference|ceremony'), + ('Ideas & Tech', r'programming|software|language|chemical|compound|gene|protein|theorem|concept|technology|vehicle|aircraft|ship|weapon|class|model|device|algorithm|religion|discipline|theory|food|dish'), +] +def faction(c): + text = ' | '.join(x['label'].lower() for x in c['instanceOf']) + for name, rx in FAC: + if text and re.search(rx, text): return name + cats = ' | '.join(c['categories']).lower() + if re.search(r'births|deaths|people', cats): return 'People' + if re.search(r'populated|villages|towns|geography|rivers', cats): return 'Places' + if re.search(r'films|albums|songs|novels|television|video games', cats): return 'Works' + return 'Other' +for c in C: c['faction'] = faction(c) +print('\n## Candidate factions (Wikidata P31 rules)\n') +print('| faction | n | share | median attention | median depth | median reach | example |'); print('|---|---|---|---|---|---|---|') +by = collections.defaultdict(list) +for c in C: by[c['faction']].append(c) +for name, cs in sorted(by.items(), key=lambda kv: -len(kv[1])): + med = lambda k: st.median([x['stats'][k] for x in cs if x['stats'][k] is not None] or [0]) + print(f"| {name} | {len(cs)} | {len(cs)/len(C)*100:.0f}% | {med('attention'):.0f} | {med('depth'):.0f} | {med('reach'):.0f} | {cs[0]['title']} |") +other = collections.Counter(x['label'] for c in by.get('Other', []) for x in c['instanceOf']) +print('\nUnclassified P31 labels: ' + ', '.join(f'{k} {v}' for k, v in other.most_common(25))) +if len(sys.argv) > 4: json.dump({c['pageId']: c['faction'] for c in C}, open(sys.argv[4], 'w')) +if len(sys.argv) > 3: + s = json.load(open(sys.argv[3])); fmap = {c['pageId']: c['faction'] for c in C} + for p in s['cards']: p['faction'] = fmap[p['pageId']] + json.dump(s, open(sys.argv[3], 'w'), indent=1, ensure_ascii=False) +if len(sys.argv) > 5: + d['factionRules'] = [[n, rx] for n, rx in FAC]; d['tierBreakpoints'] = T + def cuts(k): + v = sorted(c['stats'][k] for c in C if c['stats'][k] is not None); n = len(v) + return [v[max(0, math.ceil(i * n / 100) - 1)] for i in range(1, 100)] + d['percentiles'] = {k: cuts(k) for k in ('attention', 'depth', 'reach')} + d['percentilesMethod'] = 'cut point i (1..99) = nearest-rank i-th percentile of the sample snapshot score (sorted ascending, index ceil(i*n/100)-1). Use with DESIGN.md §1.1 counting.' + if not d['rawPagesSeen']: + d['randomBatches'], d['rawPagesSeen'] = 17, 340 + d['randomBatchesNote'] = 'Sampling was resumed from a saved state, so full batch counts were lost. These are the counts logged at batch 17 (149 illustrated of 340 raw pages, 44% pass rate). The 330 picked cards came from about 38 batches; this sample holds the first N of those that finished enrichment before sampling stopped (Wikimedia 429s).' + d['note'] = 'docs/game/starter-cards.json is the loaner POOL (real frozen snapshots of random articles), used by the sim and the deck builder to fill slots. The default starter decks are defined in DESIGN.md §2.1; their real pageIds are in starter-cards.json under starterDeckPageIds.' + for c in d['cards']: c['category'] = c['legacyCategory'] + json.dump(d, open(sys.argv[5], 'w'), indent=1, ensure_ascii=False) diff --git a/scripts/night/card_sample.py b/scripts/night/card_sample.py new file mode 100644 index 0000000..6e87102 --- /dev/null +++ b/scripts/night/card_sample.py @@ -0,0 +1,158 @@ +#!/usr/bin/env python3 +"""Sample random illustrated en.wikipedia articles the way server/wiki.ts selects them and +enrich them the way server/enrichment.ts does. Polite: ~4 req/s, sequential, disk cache. +Usage: python3 -I card_sample.py [target=320]""" +import hashlib, json, os, re, sys, time, urllib.parse, urllib.request, calendar, datetime as dt + +UA = 'WikiDeckCardDataSampler/0.1 (experimental card-game stat research; python-urllib)' +CACHE, OUT = sys.argv[1], sys.argv[2] +TARGET = int(sys.argv[3]) if len(sys.argv) > 3 else 320 +os.makedirs(CACHE, exist_ok=True) +_last = [0.0] + +def get(url, cache=True): + key = os.path.join(CACHE, hashlib.sha1(url.encode()).hexdigest() + '.json') + if cache and os.path.exists(key): + return json.load(open(key)) + if os.environ.get('CACHE_ONLY') and 'wikidata.org' not in url: + return {'__missing': True} + for attempt in range(6): + wait = 1.0 - (time.time() - _last[0]) + if wait > 0: time.sleep(wait) + _last[0] = time.time() + req = urllib.request.Request(url, headers={'User-Agent': UA, 'Accept': 'application/json'}) + try: + with urllib.request.urlopen(req, timeout=20) as r: + data = json.loads(r.read().decode()) + break + except urllib.error.HTTPError as e: + if e.code == 404: data = {'__404': True}; break + if e.code == 429 or e.code >= 500: + ra = e.headers.get('retry-after'); w = int(ra) + 1 if ra and ra.isdigit() else 5 * (attempt + 1) + print('http', e.code, 'sleep', w, file=sys.stderr); time.sleep(min(w, 60)); continue + raise + except Exception as e: + print('retry', attempt, type(e).__name__, e, file=sys.stderr); time.sleep(2 * (attempt + 1)) + else: + raise RuntimeError('failed ' + url) + if cache: json.dump(data, open(key, 'w')) + return data + +def api(params, cache=True): + return get('https://en.wikipedia.org/w/api.php?' + urllib.parse.urlencode({'format': 'json', 'formatversion': '2', **params}), cache) + +def legacy_category(title, cats): + t = (title + ' ' + ' '.join(cats)).lower() + if re.search(r'astronom|planet|space|galax|moon|star\b', t): return 'Space' + if re.search(r'animal|plant|species|ocean|biolog|mollusc', t): return 'Nature' + if re.search(r'births|deaths|people|scientist', t): return 'People' + if re.search(r'physic|chem|math|science|technolog', t): return 'Science' + if re.search(r'histor|ancient|archaeolog|empire', t): return 'History' + return 'Culture' + +def score(v, scale): + import math + return min(100, round(math.log10(v + 1) / scale * 100)) + +# 1. random illustrated articles (same filter as wiki.ts: thumbnail + extract >= 40 chars) +picked, seen, batches, raw_pages = [], set(), 0, 0 +state_file = os.path.join(CACHE, '_random_state.json') +if os.path.exists(state_file): + picked = json.load(open(state_file)); seen = {p['pageId'] for p in picked} +while len(picked) < TARGET: + try: d = api({'action': 'query', 'generator': 'random', 'grnnamespace': '0', 'grnlimit': '20', + 'prop': 'extracts|pageimages|info|categories', 'exintro': '1', 'explaintext': '1', 'exchars': '900', + 'exlimit': '20', 'piprop': 'thumbnail', 'pithumbsize': '800', 'cllimit': '500'}, cache=False) + except RuntimeError as e: print(e, file=sys.stderr); time.sleep(5); continue + batches += 1 + for p in d.get('query', {}).get('pages', []): + raw_pages += 1 + thumb = (p.get('thumbnail') or {}).get('source', '') + ext = (p.get('extract') or '').strip() + if not re.match(r'https://(upload|thumb)\.wikimedia\.org/', thumb) or len(ext) < 40 or p['pageid'] in seen: continue + seen.add(p['pageid']) + picked.append({'pageId': p['pageid'], 'title': p['title'], + 'legacyCategory': legacy_category(p['title'], [c['title'] for c in p.get('categories', [])])}) + json.dump(picked, open(state_file, 'w')) + print(f'random batch {batches}: {len(picked)} illustrated / {raw_pages} raw', file=sys.stderr) +picked = picked[:TARGET] + +# 2. enrichment per article (same params as enrichment.ts) + daily views for drift +now = dt.datetime(2026, 11, 16, tzinfo=dt.timezone.utc) +months = [] +for i in range(6): + m = now.month - 6 + i; y = now.year + (m - 1) // 12; m = (m - 1) % 12 + 1 + months.append(f'{y:04d}-{m:02d}') +# batched metadata (same props as enrichment.ts; per-page cllimit 50 is emulated by truncating) +meta = {} +ids = [p['pageId'] for p in picked] +for i in range(0, len(ids), 50): + chunk = ids[i:i + 50]; cont = {}; pages = {} + while True: + md = api({'action': 'query', 'pageids': '|'.join(map(str, chunk)), 'prop': 'info|categories|pageprops|description|langlinks', + 'clshow': '!hidden', 'cllimit': '500', 'lllimit': '500', 'ppprop': 'wikibase_item', **cont}) + for pg in md['query']['pages']: + cur = pages.setdefault(pg['pageid'], {**pg, 'categories': [], 'langlinks': []}) + cur['categories'] += pg.get('categories', []); cur['langlinks'] += pg.get('langlinks', []) + if 'continue' not in md: break + cont = md['continue'] + meta.update(pages) + print(f'metadata {len(meta)}/{len(ids)}', file=sys.stderr) +cards = [] +for n, pk in enumerate(picked): + page = meta[pk['pageId']] + cont = {'clcontinue': 1} if len(page['categories']) > 50 else {} + page['categories'] = page['categories'][:50] + langs = len(page.get('langlinks', [])) + t = urllib.parse.quote(page['title'].replace(' ', '_'), safe='') + daily = get(f'https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia.org/all-access/user/{t}/daily/{months[0].replace("-", "")}01/20261115') + if daily.get('__missing'): continue + dmap = {it['timestamp'][:8]: it['views'] for it in daily.get('items', [])} + pv = {'status': 'unavailable', 'months': [], 'latestMonth': months[5], 'total': None, 'dailyAverage': None, 'trendPercent': None} + if dmap: + ordered = [] + for m in months: + y, mo = map(int, m.split('-')); nd = calendar.monthrange(y, mo)[1] + ordered.append({'month': m, 'views': sum(dmap.get(f'{y:04d}{mo:02d}{d:02d}', 0) for d in range(1, nd + 1))}) + latest, prior = ordered[5]['views'], ordered[4]['views'] + nd = calendar.monthrange(*map(int, months[5].split('-')))[1] + pv = {'status': 'available', 'months': ordered, 'latestMonth': months[5], 'total': sum(o['views'] for o in ordered), + 'dailyAverage': latest / nd, 'trendPercent': (latest - prior) / prior * 100 if prior > 0 else None} + # 30-day drift: views 2026-10-17..11-15 vs 2026-09-17..10-16 + def window(start, days): + s = dt.date.fromisoformat(start) + return sum(dmap.get((s + dt.timedelta(d)).strftime('%Y%m%d'), 0) for d in range(days)) + last30, prev30 = window('2026-10-17', 30), window('2026-09-17', 30) + pb = page['length'] + cards.append({'pageId': page['pageid'], 'title': page['title'], 'description': page.get('description'), + 'wikidataId': (page.get('pageprops') or {}).get('wikibase_item'), 'revisionId': page['lastrevid'], 'pageBytes': pb, + 'languageCount': langs, 'languagesTruncated': 'llcontinue' in cont, + 'categories': [c['title'].removeprefix('Category:') for c in page.get('categories', [])], + 'categoriesTruncated': 'clcontinue' in cont, 'fetchedAt': now.isoformat(), 'pageviews': pv, + 'stats': {'attention': score(pv['months'][5]['views'], 6) if pv['status'] == 'available' else None, + 'depth': score(pb, 6), 'reach': score(langs, 3)}, + 'legacyCategory': pk['legacyCategory'], + 'drift30': {'last30': last30, 'prev30': prev30, 'pct': (last30 - prev30) / prev30 * 100 if prev30 else None}}) + if n % 25 == 0: print(f'enriched {n + 1}/{len(picked)}', file=sys.stderr) + +# 3. Wikidata P31 (instance of) + labels +qids = [c['wikidataId'] for c in cards if c['wikidataId']] +p31 = {} +for i in range(0, len(qids), 50): + d = get('https://www.wikidata.org/w/api.php?' + urllib.parse.urlencode({'action': 'wbgetentities', 'format': 'json', + 'ids': '|'.join(qids[i:i + 50]), 'props': 'claims'})) + for q, ent in d.get('entities', {}).items(): + p31[q] = [c['mainsnak']['datavalue']['value']['id'] for c in ent.get('claims', {}).get('P31', []) + if c['mainsnak'].get('datavalue')] +classes = sorted({c for v in p31.values() for c in v}) +labels = {} +for i in range(0, len(classes), 50): + d = get('https://www.wikidata.org/w/api.php?' + urllib.parse.urlencode({'action': 'wbgetentities', 'format': 'json', + 'ids': '|'.join(classes[i:i + 50]), 'props': 'labels', 'languages': 'en'})) + for q, ent in d.get('entities', {}).items(): + labels[q] = ent.get('labels', {}).get('en', {}).get('value', q) +for c in cards: + c['instanceOf'] = [{'id': q, 'label': labels.get(q, q)} for q in p31.get(c['wikidataId'], [])] +json.dump({'generatedAt': dt.datetime.now(dt.timezone.utc).isoformat(), 'method': 'random ns0 batches of 20, filter as server/wiki.ts (thumbnail + extract>=40); enrichment as server/enrichment.ts; monthly views summed from daily REST pageviews; P31 from Wikidata', + 'randomBatches': batches, 'rawPagesSeen': raw_pages, 'cards': cards}, open(OUT, 'w'), indent=1, ensure_ascii=False) +print('done', len(cards), file=sys.stderr) diff --git a/scripts/night2/prebake-identity.ts b/scripts/night2/prebake-identity.ts new file mode 100644 index 0000000..31c88f0 --- /dev/null +++ b/scripts/night2/prebake-identity.ts @@ -0,0 +1,56 @@ +// testnet-ops (engineer WS E): pre-bake frozen card identities for every card on a chain. +// +// node --experimental-strip-types scripts/night2/prebake-identity.ts --node http://192.168.1.32:3101 \ +// --store $WIKIDECK_DATA_DIR/card-identity.sqlite [--cards docs/game/card-sample.json] [--batch 50] +// +// - Reads the canonical chain from ONE node (GET /api/summary, then /api/canonical pages), so every +// card is built from its mint block, never from client JSON. +// - Facts come ONLY from cached card files (`--cards`, repeatable). This script never calls +// Wikipedia or Wikidata itself. Live facts must go through the wikimedia team's process-wide client +// on its `background` lane (server/wikimedia, #62); that IdentitySource plugs into `prebake()` in +// server/game/identity.ts once it has merged. Until then, unknown cards are left unfrozen and are +// picked up by a later run. +// - Idempotent and freeze-at-first-sight: already frozen tokens are skipped and never rewritten. +import { readFileSync } from 'node:fs'; +import { parseArgs } from 'node:util'; +import { IdentityStore, cachedSource, identityStoreFile, prebake, type ChainArticle } from '../../server/game/identity.ts'; + +const { values } = parseArgs({ options: { + node: { type: 'string', default: 'http://192.168.1.32:3101' }, + store: { type: 'string', default: identityStoreFile() }, + cards: { type: 'string', multiple: true, default: ['docs/game/card-sample.json'] }, + batch: { type: 'string', default: '50' }, +} }); +const nodeUrl = new URL(values.node!); +if (!['http:', 'https:'].includes(nodeUrl.protocol)) throw new Error('--node must be an http(s) WikiDeck node URL'); +if (/wikipedia\.org|wikidata\.org|wikimedia\.org/i.test(nodeUrl.hostname)) throw new Error('--node must be a WikiDeck node, not Wikimedia'); + +async function get(path: string): Promise { + const r = await fetch(new URL(path, nodeUrl), { signal: AbortSignal.timeout(30000), redirect: 'error' }); + if (!r.ok) throw new Error(`${path}: HTTP ${r.status}`); + return await r.json() as T; +} + +type Block = { tokenId: string; article: { pageId: number; title: string; revisionId?: number } }; +async function chainArticles(): Promise { + const { tip } = await get<{ tip: string }>('/api/summary'); + const out: ChainArticle[] = []; + for (let offset: number | null = 0; offset !== null;) { + const page: { blocks: Block[]; next: number | null } = await get(`/api/canonical?tip=${tip}&offset=${offset}&limit=16`); + for (const b of page.blocks) if (b.article && b.tokenId) + out.push({ tokenId: b.tokenId, pageId: b.article.pageId, title: b.article.title, revisionId: b.article.revisionId ?? null }); + offset = page.next; + } + return out; +} + +const cards = values.cards!.flatMap(f => { + const d = JSON.parse(readFileSync(f, 'utf8')); + return Array.isArray(d) ? d : d.cards ?? []; +}); +const articles = await chainArticles(); +const store = new IdentityStore(values.store!); +try { + const report = await prebake(store, cachedSource(cards), articles, { batchSize: Number(values.batch) }); + console.log(JSON.stringify({ node: nodeUrl.origin, chainCards: articles.length, cachedCards: cards.length, ...report, stored: store.count() })); +} finally { store.close(); } diff --git a/scripts/sim/card-pool.ts b/scripts/sim/card-pool.ts new file mode 100644 index 0000000..6d8d538 --- /dev/null +++ b/scripts/sim/card-pool.ts @@ -0,0 +1,85 @@ +// Sim card pool from council-data's docs/game/card-sample.json (or starter-cards.json), +// derived per DESIGN §1 (percentile -> fame -> cost, home stat) and §10.1 (faction keyword). +// Percentile cut points come from the file itself. Power is (re)set from the ruleset by the adapter. +import { readFileSync } from 'node:fs'; +import { KEYWORD_IDS, type GameCard, type Stat } from '../../shared/game/index.ts'; +import { mulberry32 } from '../../shared/bots/index.ts'; +import type { DeckSpec } from '../../shared/bots/types.ts'; + +const STATS: Stat[] = ['attention', 'depth', 'reach']; +const HOME_TIE: Stat[] = ['depth', 'reach', 'attention']; +/** DESIGN v1 §10.2 (PR #17): one keyword per faction. */ +export const FACTION_KEYWORD: Record = { + Culture: 'viral', Nature: 'rising', People: 'local', Science: 'encyclopedic', History: 'nostalgic', Space: 'translated', +}; + +interface RawCard { pageId: number; title: string; category?: string; legacyCategory?: string; stats: Record; trendPercent?: number; pageviews?: { trendPercent?: number | null; dailyAverage?: number | null } } + +function cuts(values: number[]): number[] { + const s = [...values].sort((a, b) => a - b); + return Array.from({ length: 99 }, (_, i) => s[Math.min(s.length - 1, Math.floor(((i + 1) / 100) * s.length))]); +} +function percentile(score: number, c: number[]): number { + let below = 0, equal = 0; + for (const x of c) { if (x < score) below++; else if (x === score) equal++; } + return Math.floor(below + equal / 2); +} + +export interface PoolOptions { costThresholds?: number[]; keywords?: 'faction' | 'none'; table?: string; /** v1.1 proposal: Culture takes its home-stat keyword. */ cultureKeyword?: 'faction' | 'home' } +const CULTURE_HOME: Record = { attention: 'viral', depth: 'encyclopedic', reach: 'translated' }; + +export function loadPool(file: string, opts: PoolOptions = {}): GameCard[] { + const raw = JSON.parse(readFileSync(file, 'utf8')).cards as RawCard[]; + const tableRaw = opts.table ? (JSON.parse(readFileSync(opts.table, 'utf8')).cards as RawCard[]) : raw; + const table = Object.fromEntries(STATS.map(s => [s, cuts(tableRaw.map(c => c.stats[s]).filter((v): v is number => v !== null))])) as Record; + const thresholds = opts.costThresholds ?? [15, 35, 55, 75, 90]; + return raw.map(c => { + const pct = Object.fromEntries(STATS.map(s => [s, c.stats[s] === null ? null : percentile(c.stats[s]!, table[s])])) as Record; + const vals = STATS.map(s => pct[s]).filter((v): v is number => v !== null); + const fame = Math.floor(vals.reduce((a, b) => a + b, 0) / vals.length + 0.5); + const cost = 1 + thresholds.filter(t => t <= fame).length; + let home: Stat = HOME_TIE[0]; + for (const s of HOME_TIE) { const v = pct[s], cur = pct[home]; if (v !== null && (cur === null || v > cur)) home = s; } + const faction = (c.category ?? c.legacyCategory ?? 'Culture') as GameCard['faction']; + const kw = faction === 'Culture' && opts.cultureKeyword === 'home' ? CULTURE_HOME[home] : FACTION_KEYWORD[faction]; + const keyword = cost === 1 || opts.keywords === 'none' || !kw || !(KEYWORD_IDS as readonly string[]).includes(kw) ? null : kw; + return { + cardId: `loaner:${c.pageId}`, pageId: c.pageId, title: c.title, faction, rarity: 'Common', cost, power: 0, + home, trend: 0, keyword, source: 'loaner', + } satisfies GameCard; + }); +} + +const kebab = (t: string) => t.toLowerCase().normalize('NFKD').replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, ''); + +/** The DESIGN §2.1 starter decks: "**A. Name: ...**" headings followed by | Cost | Card | Faction | Home | tables. */ +export function loadStarterDecks(designMd: string): DeckSpec[] { + const text = readFileSync(designMd, 'utf8'); + const sec = text.slice(text.indexOf('### 2.1'), text.indexOf('## 3.')); + const decks: DeckSpec[] = []; + let cur: { id: string; cards: GameCard[] } | null = null; + for (const line of sec.split('\n')) { + const h = line.match(/^\*\*([A-Z])\. ([^:*]+)/); + if (h) { cur = { id: `starter-${h[1]}-${kebab(h[2])}`, cards: [] }; decks.push({ id: cur.id, tags: ['arch:starter-v1'], payload: cur.cards }); continue; } + const r = line.match(/^\| (\d) \| ([^|]+) \| (\w+) \| (\w+) \|$/); + if (r && cur) { + const [, cost, title, faction, home] = r; + const c = Number(cost), kw = FACTION_KEYWORD[faction]; + cur.cards.push({ + cardId: `loaner:${kebab(title.trim())}`, pageId: null, title: title.trim(), faction: faction as GameCard['faction'], rarity: 'Common', + cost: c, power: 0, home: home as Stat, trend: 0, keyword: c === 1 || !(KEYWORD_IDS as readonly string[]).includes(kw) ? null : kw, source: 'loaner', + }); + } + } + return decks.filter(d => (d.payload as GameCard[]).length === 12); +} + +/** "Realistic owned" decks (DESIGN §2.1 v1.1 note): `n` seeded draws of 12 distinct cards from the pool, real category mix. */ +export function ownedDecks(pool: GameCard[], n: number, size = 12, seed = 7): DeckSpec[] { + const rng = mulberry32(seed); + return Array.from({ length: n }, (_, i) => { + const p = [...pool]; + for (let k = p.length - 1; k > 0; k--) { const j = Math.floor(rng() * (k + 1)); [p[k], p[j]] = [p[j], p[k]]; } + return { id: `owned-${i}`, tags: ['arch:owned-random'], payload: p.slice(0, size).map(c => ({ ...c, cardId: `${c.cardId}:0` })) }; + }); +} diff --git a/scripts/sim/duel-core-sim.ts b/scripts/sim/duel-core-sim.ts new file mode 100644 index 0000000..ab65718 --- /dev/null +++ b/scripts/sim/duel-core-sim.ts @@ -0,0 +1,68 @@ +// DuelSim binding for duel-core's shared/duel engine, with the 236 sample cards derived by duel-cards. +import { readFileSync, existsSync } from 'node:fs'; +import { fileURLToPath } from 'node:url'; +import type { DuelCard, DuelEngineApi, DuelRuleset } from '../../shared/duel/index.ts'; +import { connectedTierOf, duelMetrics, makeDuelAdapter } from '../../shared/bots/duel-adapter.ts'; +import type { DuelSim } from './duel-sim-types.ts'; +import type { PoolCard } from './duel-decks.ts'; + +export interface DuelPoolCard extends PoolCard { title: string; card: DuelCard } + +const FIXTURE = fileURLToPath(new URL('../../docs/game/duel-card-sample.json', import.meta.url)); + +/** The duel engine's functions, whether engine.ts exports them one by one or as an object. */ +async function loadApi(): Promise { + const mod = '../../shared/duel/engine.ts'; + const m = await import(mod) as Record; + const obj = Object.values(m).find(v => v && typeof v === 'object' && typeof v.createDuel === 'function' && typeof v.statsOf === 'function'); + return (obj ?? m) as DuelEngineApi; +} + +async function loadCards(sampleFile: string): Promise { + try { + const mod = '../../shared/duel/sample.ts'; + const { deriveSample } = await import(mod) as { deriveSample: (c: unknown[], r?: unknown) => DuelCard[] }; + const raw = JSON.parse(readFileSync(sampleFile, 'utf8')).cards; + // SIM_DERIVE: JSON patch over duel-cards' DERIVE_RULES (data-only derivation tuning). + if (!process.env.SIM_DERIVE) return deriveSample(raw); + const d = await import('../../shared/duel/derive.ts' as string) as { DERIVE_RULES: Record }; + return deriveSample(raw, { ...d.DERIVE_RULES, ...JSON.parse(process.env.SIM_DERIVE) }); + } catch (e) { + if (process.env.SIM_DERIVE || !existsSync(FIXTURE)) throw e; + return JSON.parse(readFileSync(FIXTURE, 'utf8')).cards as DuelCard[]; + } +} + +export async function makeDuelSim(sampleFile: string, overrides: Record = {}): Promise> { + const api = await loadApi(); + const rs = await import('../../shared/duel/ruleset.ts') as { mergeDuelRuleset: (o: unknown) => DuelRuleset }; + const rules = rs.mergeDuelRuleset(overrides); + let cards = await loadCards(sampleFile); + // SIM_LOCATION_DRAW=n: experiment for duel-design's T2 rider ("When this enters, draw n cards") on every Location. + const locDraw = Number(process.env.SIM_LOCATION_DRAW ?? 0); + if (locDraw > 0) cards = cards.map(c => (c.type === 'Location' ? { ...c, effects: [...c.effects, { trigger: 'onEnter', op: 'draw', amount: locDraw, target: 'controller' } as DuelCard['effects'][number]] } : c)); + const pool: DuelPoolCard[] = cards.map(c => ({ + id: c.cardId, title: c.title, type: c.type, portal: c.portal, cost: c.cost, keywords: [...c.keywords], + fame: (c as any).basis?.fame, card: c, + })); + const engine = makeDuelAdapter(api, { rules, pool: cards }); + // SIM_SECOND_EXTRA=n: experiment for a proposed ruleset key. The second seat starts with n extra cards + // (moved from its library top before mulligans). Sim-only; the engine has no such key yet. + const extra = Number(process.env.SIM_SECOND_EXTRA ?? 0); + if (extra > 0) { + const create = engine.createMatch; + engine.createMatch = (r, d, seed) => { + const s = create(r, d, seed); + const second = (1 - s.firstSeat) as 0 | 1; + const p = s.players[second]; + p.hand.push(...p.library.splice(0, extra)); + return s; + }; + } + return { + name: 'duel', engine, lens: engine.lens, pool, + deckPayload: cs => cs.map(c => c.card), + metrics: duelMetrics, + connected: (a, b) => connectedTierOf(a.card, b.card, rules.connectedTiers), + }; +} diff --git a/scripts/sim/duel-decks.ts b/scripts/sim/duel-decks.ts new file mode 100644 index 0000000..388bd49 --- /dev/null +++ b/scripts/sim/duel-decks.ts @@ -0,0 +1,49 @@ +// 40-card sim decks drawn from a card pool (the 236 real sample cards). Every card is unique (one NFT each), +// so decks sample without replacement. Archetypes skew the type or cost mix. Pure, seeded. +import { mulberry32 } from '../../shared/bots/index.ts'; + +export interface PoolCard { id: string; type: string; portal: string; cost: number; keywords: string[]; fame?: number } +export interface SimDeck { id: string; tags: string[]; cards: C[] } + +export const ARCHETYPES = ['random', 'figure-heavy', 'doctrine-heavy', 'event-heavy', 'location-heavy', 'institution-heavy', 'low-curve', 'high-curve'] as const; +export type Archetype = typeof ARCHETYPES[number]; + +function weight(c: PoolCard, arch: Archetype): number { + switch (arch) { + case 'figure-heavy': return c.type === 'Figure' ? 8 : 1; + case 'doctrine-heavy': return c.type === 'Doctrine' ? 8 : 1; + case 'event-heavy': return c.type === 'Event' ? 12 : 1; + case 'location-heavy': return c.type === 'Location' ? 8 : 1; + case 'institution-heavy': return c.type === 'Institution' ? 10 : 1; + case 'low-curve': return c.cost <= 2 ? 8 : c.cost === 3 ? 3 : 0.3; + case 'high-curve': return c.cost >= 5 ? 8 : c.cost === 4 ? 3 : 0.5; + default: return 1; + } +} + +/** Weighted sampling without replacement (Efraimidis–Spirakis keys). */ +export function buildDeck(pool: C[], arch: Archetype, seed: number, size = 40): SimDeck { + const rng = mulberry32(seed); + const keyed = pool.map(c => ({ c, k: Math.pow(rng(), 1 / Math.max(1e-6, weight(c, arch))) })); + keyed.sort((a, b) => b.k - a.k); + const cards = keyed.slice(0, Math.min(size, pool.length)).map(x => x.c); + return { id: `${arch}#${seed}`, tags: deckTags(cards, arch), cards }; +} + +export function deckTags(cards: PoolCard[], arch: string): string[] { + const count = (f: (c: PoolCard) => string) => { const m: Record = {}; for (const c of cards) m[f(c)] = (m[f(c)] ?? 0) + 1; return m; }; + const top = (m: Record) => Object.entries(m).sort((a, b) => b[1] - a[1])[0]?.[0] ?? '?'; + const avg = cards.reduce((t, c) => t + c.cost, 0) / (cards.length || 1); + const curve = avg < 2.6 ? 'low' : avg < 3.4 ? 'mid' : 'high'; + return [`arch:${arch}`, `portal:${top(count(c => c.portal))}`, `curve:${curve}`, `mainType:${top(count(c => c.type))}`]; +} + +/** n decks: half random, the rest cycling through the skewed archetypes. */ +export function deckSet(pool: C[], n: number, seed: number, size = 40): SimDeck[] { + const out: SimDeck[] = []; + for (let i = 0; i < n; i++) { + const arch: Archetype = i % 2 === 0 ? 'random' : ARCHETYPES[1 + ((i >> 1) % (ARCHETYPES.length - 1))]; + out.push(buildDeck(pool, arch, (seed * 7919 + i * 104729) >>> 0, size)); + } + return out; +} diff --git a/scripts/sim/duel-run.ts b/scripts/sim/duel-run.ts new file mode 100644 index 0000000..5fc9e00 --- /dev/null +++ b/scripts/sim/duel-run.ts @@ -0,0 +1,138 @@ +// Duel balance simulation. +// npx tsx scripts/sim/duel-run.ts --engine duel --matches 2000 --workers 4 --out sim-out/duel [--rules '{"startingLife":18}'] +// Writes /