chore: tooling, docs and a guard for the name (fork, Phase 6)

- rootProject.name is Giza. Res is pinned, so no import moves.
- Regtest: GIZA_REGTEST, GIZA_SPLICE_DELAYS and the gizaRegtest task input;
  node aliases giza-lsp and giza-payer.
- README describes Giza and says what it shares with Bennu: one network, one
  derivation, and a recovery phrase that must not run in both apps at once.
  The clone URL is the planned giza-kmp repository, which does not exist yet.
- docs/README.md is titled Giza docs and says how to read the documents
  written while the app was Bennu.
- CLAUDE.md gains the rule: name the app Giza, never name Bennu outside a
  comment, and never rename a mantra/ or bennu/ derivation tag.
- docs/scripts/brand-audit.sh --check, run by check (brandAudit) and by the CI
  budgets job, fails on Bennu anywhere in composeApp, iosApp, testing or the
  gradle scripts except in a comment or a "bennu/ tag. It catches the strings
  a merge from Bennu brings in, which giza-rename.sh cannot word.
- The plan gains the twelve bennu/ tags, missed when it was written.

jvmTest: 1643 run, 0 failed, 2 skipped. compileDebugKotlinAndroid, m3Audit and
brandAudit pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-18 10:53:17 +02:00
1 parent 4f3f0da3ca
commit 5b92b83869
16 files changed
+164 -24

No files matched your search

+37 -2
View File
@@ -326,11 +326,46 @@ val m3Audit = tasks.register("m3Audit") {
tasks.named("check") { dependsOn(m3Audit) }
// The group Lightning wallet's regtest run (testing/regtest/README.md) runs only when BENNU_REGTEST=1.
/**
* Bennu named only in comments and in the `bennu/` derivation tags, which Giza shares with
* it as protocol (docs/giza-rebrand.md, Phase 6). Anything else is a leftover of the fork,
* or a Bennu string that came in with a merge from Bennu, and fails `check` before it ships.
*
* Reads tracked files with git grep, so it has no inputs gradle could track; it is cheap
* enough to run every time.
*/
val brandAudit = tasks.register("brandAudit") {
group = "verification"
description = "Checks that the pre-fork name appears only in comments and derivation tags."
val script = rootProject.layout.projectDirectory.file("docs/scripts/brand-audit.sh").asFile
val projectDirectory = rootProject.layout.projectDirectory.asFile
doLast {
val bash = listOf("/bin/bash", "/usr/bin/bash").firstOrNull { File(it).canExecute() }
if (bash == null) {
logger.warn("brandAudit: no bash found, skipping. Run docs/scripts/brand-audit.sh --check by hand.")
return@doLast
}
val result = providers.exec {
commandLine(bash, script.absolutePath, "--check")
workingDir = projectDirectory
isIgnoreExitValue = true
}
logger.lifecycle(result.standardOutput.asText.get())
if (result.result.get().exitValue != 0) {
throw GradleException("The pre-fork name appears outside a comment or a derivation tag. See the report above.")
}
}
}
tasks.named("check") { dependsOn(brandAudit) }
// The group Lightning wallet's regtest run (testing/regtest/README.md) runs only when GIZA_REGTEST=1.
// An environment variable is not a task input, so without this a skipped run would leave jvmTest up to
// date, and asking for the run afterwards would replay the skip.
tasks.withType<Test>().configureEach {
inputs.property("bennuRegtest", providers.environmentVariable("BENNU_REGTEST").orElse(""))
inputs.property("gizaRegtest", providers.environmentVariable("GIZA_REGTEST").orElse(""))
}
compose.desktop {
@@ -76,10 +76,10 @@ import kotlin.time.Duration.Companion.seconds
* Every message between the devices goes through the same managers the inbound path uses, pumped in the
* background; the node's signatures are the group's, made by Iceberg co-signing in the room.
*
* Skipped unless `BENNU_REGTEST=1`, because it needs the docker network.
* Skipped unless `GIZA_REGTEST=1`, because it needs the docker network.
*/
class GroupLightningRegtestJvmTest {
private val enabled = System.getenv("BENNU_REGTEST") == "1"
private val enabled = System.getenv("GIZA_REGTEST") == "1"
private val fixture = GroupLightningFixture(chain = Chain.Regtest)
private val scope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
private val loggerFactory = LoggerFactory(StaticConfig(Severity.Info, listOf(platformLogWriter())))
@@ -220,7 +220,7 @@ class GroupLightningRegtestJvmTest {
@Test
fun `four devices open, receive, pay, close and sweep on regtest`() = runBlocking<Unit> {
assumeTrue("set BENNU_REGTEST=1 with testing/regtest up", enabled)
assumeTrue("set GIZA_REGTEST=1 with testing/regtest up", enabled)
requireNetwork()
val lspId = lsp("getinfo").jsonObject["nodeId"]!!.jsonPrimitive.content
@@ -82,15 +82,15 @@ import kotlin.time.TimeSource
* 2. how long eclair waits for our signatures inside a splice, by delaying each one (step 3);
* 3. how long two commitments stay live, from the purchase's answer to the splice locking (step 4).
*
* Skipped unless `BENNU_REGTEST=1`. `BENNU_SPLICE_DELAYS` takes the delays to try, in seconds,
* Skipped unless `GIZA_REGTEST=1`. `GIZA_SPLICE_DELAYS` takes the delays to try, in seconds,
* comma-separated; by default 0, 10 and 25. A purchase needs two signatures, the first commitment on the
* new output and the shared input, and eclair allows a splice `channel.quiescence-timeout`, one minute by
* default, from quiescence: at 30 seconds a signature it disconnects as the second arrives (the run of
* 2026-11-01, recorded in the plan's Phase 0).
*/
class LiquidityPurchaseRegtestJvmTest {
private val enabled = System.getenv("BENNU_REGTEST") == "1"
private val delays = (System.getenv("BENNU_SPLICE_DELAYS") ?: "0,10,25").split(",").map { it.trim().toInt().seconds }
private val enabled = System.getenv("GIZA_REGTEST") == "1"
private val delays = (System.getenv("GIZA_SPLICE_DELAYS") ?: "0,10,25").split(",").map { it.trim().toInt().seconds }
private val scope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
private val loggerFactory = LoggerFactory(StaticConfig(Severity.Warn, listOf(platformLogWriter())))
private val http = HttpClient.newHttpClient()
@@ -178,7 +178,7 @@ class LiquidityPurchaseRegtestJvmTest {
@Test
fun `a node that keeps its funding key buys liquidity from eclair, and how long eclair waits`() = runBlocking<Unit> {
assumeTrue("set BENNU_REGTEST=1 with testing/regtest up", enabled)
assumeTrue("set GIZA_REGTEST=1 with testing/regtest up", enabled)
val lspId = PublicKey.fromHex(lsp("getinfo").jsonObject["nodeId"]!!.jsonPrimitive.content)
var signingDelay = Duration.ZERO