← Back to Pull requests

Rename the Zylg Global flag from GL to G #1282

Merged
arichardson merged 8 files (34 lines) on Oct 13, 2026 15:22 UTC
View on GitHub
arichardson arichardson commented on Oct 09, 2026 00:08 UTC
Author

The GL naming was taken from CHERIoT, which uses two-letter names for all
permissions (GL, LG, SL, LM, LD, SD, EX, etc.), whereas CHERI ISAv9 called the
bit GLOBAL. This specification uses single-letter names for single-word
flags and permissions (R, W, X, C, P). Using G avoids confusion with the
"Local/Global" order in the Zylg extension name and also matches the G (Global)
bit naming in RISC-V PTEs. Also use "local or global" order in Zylg prose to
match the extension name.

Addresses the following ARC review comment on v0.9.10:

  • "Why is it Zylg (local/global) but the flag is GL (global/local)?

  • Inconsistent - pick one order."

    Signed-off-by: Alex Richardson <alexrichardson@google.com>

    Diff: 34 lines (+17 / -17) across 8 files Reviewer: tariqkurd-repo Review duration: 6673m
    All Vouch review confidence checks passed
    Residual risk 0.07 = Change Risk (0.35) × (1 − Review Confidence (0.79)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 34 lines diff across 8 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.70 · 5 substantive comment(s)
    0.70
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    79%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.213
    Real PR Conversation Timeline
    10 items
    arichardson arichardson commented on Oct 09, 2026 00:08 UTC
    Author

    <!-- nspr:stack -->

    Stack

  • main

  • #1278

  • #1281

  • ➡️ #1282
  • <sub>Managed by nspr. Each pull request shows only its own changes.</sub>
    <!-- /nspr:stack -->

    tariqkurd-repo tariqkurd-repo commented on Oct 09, 2026 14:01 UTC
    Reviewer

    It's a bit os a shame that it doesn't match CHERIoT but the other fields are just the first letter of each word so G for Global seems consistent.

    tariqkurd-repo tariqkurd-repo approved these changes on Oct 09, 2026 14:01 UTC
    Approved Reviewer

    Approved these changes.

    arichardson arichardson commented on Oct 09, 2026 14:16 UTC
    Author

    It's a bit os a shame that it doesn't match CHERIoT but the other fields are just the first letter of each word so G for Global seems consistent.

    I guess we could also keep the current spelling and rename the extension to Zygl and then GL can interpreted as Global-Local? Not sure what is better

    nwf nwf commented on Oct 09, 2026 14:17 UTC
    Contributor

    FWIW, CHERIoT's GL wasn't meant as "G(lobal)/L(ocal)" but rather "GL(obal)". Also in practice we have, I think, ended up using either the full names (especially in C and C++) or the single-letter abbreviations our debug pretty-printer uses (which uses G for "G(lobal)"). The two-letter abbreviations in the ISA document feel a bit archaic at this point.

    arichardson arichardson commented on Oct 09, 2026 14:18 UTC
    Author

    Would be good to get some input here from the cheriot side (@nwf @davidchisnall)

    tariqkurd-repo tariqkurd-repo commented on Oct 09, 2026 14:20 UTC
    Contributor

    I'm happy with 'G' as we don't have any other cases where we use more than one letter of a single word in an abbreviations AFAIK.

    nwf nwf commented on Oct 09, 2026 14:33 UTC
    Contributor

    I'm happy with 'G' as we don't have any other cases where we use more than one letter of a single word in an abbreviations AFAIK.

    The Zyseal chapter, while not up for ratification in this round, presently uses SE and US. I suppose S and U a la CHERIoT-RTOS's debug pretty-printer would be OK?

    tariqkurd-repo tariqkurd-repo commented on Oct 09, 2026 15:35 UTC
    Contributor

    > I'm happy with 'G' as we don't have any other cases where we use more than one letter of a single word in an abbreviations AFAIK.

    > The Zyseal chapter, while not up for ratification in this round, presently uses SE and US. I suppose S and U a la CHERIoT-RTOS's debug pretty-printer would be OK?

    it could be worth renaming them now while we remember.

    Assignees
    arichardson arichardson
    Labels
    risk: low confidence: 79.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 34.5% (LOW) · Higher = larger blast radius
    34.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 79.1% · Lower = rushed or shallow review
    79.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.2% · Safe to merge
    7.2%