Skip to content

Add trusted grave helpers, navigation, reminders and item-rule inspection - #84

Open
BenCodez wants to merge 85 commits into
mainfrom
codex/trusted-graves-and-navigation
Open

BenCodez wants to merge 85 commits into
mainfrom
codex/trusted-graves-and-navigation

Conversation

@BenCodez

@BenCodez BenCodez commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Add per-grave trusted helpers, navigation and compass tracking, opt-in reminders, and held-item rule inspection. Compass selection survives a pending cancellable expiration, so tracking can resume when removal is cancelled. Confirmed removal, revoked access and paid recovery clear the selection.

The lifecycle work retains durable replay protection. Legacy void APIs initiate asynchronous work, XP follows durable reservation, and uncertain payouts are held for recovery. Untagged SQL graves cannot have their markers protected before discovery. SQL death creation reserves entry, encoded-byte, worker and native-ownership capacity before clearing death drops or XP. Accepted creation retains its actual display identity and recoverable storage obligation; a cooperative installation lease prevents successor initialization while ownership is unsettled. Persistent storage failure or unknown backend ownership can hold synchronous unload indefinitely.

Hosted Maven validated exact head 5459b0b5 with 725 tests passed and zero failures, errors or skips. Build log Independent source review approved the exact commit. CodeRabbit was skipped. Native Bukkit/Paper/Folia acceptance, including native Windows verification, remains outstanding.

Incremental SQL writes no longer serialize unrelated graves, and death-creation admission rejection now precedes reward suppression and old-grave side effects. Forced termination before recoverable publication can still lose accepted RAM-only creation work; the manual-removal pre-durable crash window remains outside this correction. The equipment-slot serializer correction is separate in #94 and is not included here. Ordinary-slot acceptance fixtures do not cover it.
This overlaps the focused restoration work in #93; its simpler state transitions must not replace the acknowledgment, ledger and region-ownership gates here. Individual PR CI does not validate a combined merge. Reconcile the source and test setup in the chosen merge order, retain #94 serialization coverage, and obtain integration validation before treating the combined result as ready.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T01:39:24.550481Z 5459b0b New commits
🔒 Security Review ✅ Completed 2026-10-09T23:34:19.384924Z 44633bb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f1637be1-fdfd-49a3-bb25-8773da232d6d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 44633bb276

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58e1cd07a6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57b687109a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 748e8d4073

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da47b39e5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a499aae8a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd2710a653

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e8c13f51a6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce9c0b3d5d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c065528deb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 948c0e9f43

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

codex added 26 commits November 18, 2026 00:39

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2b4b268359

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +443 to +445
private void submitLegacySql(SqlRecoveryJournal.Kind kind, GravesConfig grave, boolean broken) {
var admitted = reserveSqlTransition(kind, grave, broken);
if (admitted == null) throw new java.util.concurrent.RejectedExecutionException("SQL transition capacity unavailable; caller retains original state");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reserve SQL creation capacity before consuming death drops

When the SQL journal reaches its entry/byte limit or FeatureIO admission is exhausted, this throws without retaining the new record. The death path reaches it through GraveCreationTask → addGrave() after PlayerDeathListener has already cleared the drops and XP. The task's finally then releases its creation reservation, leaving only an in-memory grave; SQL shutdown does not save the active lists, so restarting loses its contents. Unlike the earlier backend-write failure, this rejection occurs before any recoverable journal entry exists. Reserve SQL creation capacity before accepting the death handoff, or retain a retryable creation obligation when admission fails.

AGENTS.md reference: AGENTS.md:L31-L32

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published correction: 5459b0b5c8b38e596ea7fbe9e442ec0ed93f2333 prepares one immutable SQL creation obligation and entry/encoded-byte/worker/native capacity before the death listener clears rewards or accepts old-grave effects. The actual display UUID is finalized through the original admission; accepted HELD work retains charged ownership and excludes successor initialization until storage and native-frame ownership settle. Real death-entry regressions cover entry/byte/worker rejection with no native reward loss, reentrant unload, publication repair/restart, ordered removal and display identity. Exact-head Maven CI passed 725 tests with no failures/errors/skips. This is source/fault-injection evidence, not native acceptance. Forced pre-durable RAM-loss and manual-removal crash limitations remain documented; this reply does not resolve the thread.

Comment on lines +484 to +485
private static void forcePath(Path path) throws IOException {
try (FileChannel channel = FileChannel.open(path, StandardOpenOption.READ)) { channel.force(true); }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Handle unsupported Windows directory channels in the SQL journal

On native Windows installations using MySQL, opening a directory with FileChannel.open(..., READ) throws AccessDeniedException, as the provider-specific handling in DurableFeatureState already accounts for. Here, load() unconditionally calls this method for the journal directory and every ancestor, so journal initialization fails even with healthy storage. loadMySQLForRestoration() consequently never admits the existing graves, and SQL transitions remain blocked. Apply the same narrowly scoped unsupported-directory-handle handling to journal initialization and publication rather than making an otherwise compatible JAR upgrade disable MySQL grave access on Windows.

AGENTS.md reference: AGENTS.md:L48-L48

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The narrow directory-handle correction was published in aef93ef22f780f8185438b9a704aec4238a71db1 and is retained in 5459b0b5c8b38e596ea7fbe9e442ec0ed93f2333. It handles only the checked existing-directory READ-open AccessDeniedException case on the native Windows provider; file forcing, force-after-open, move, checksum, path/provider and symlink failures remain guarded. Focused provider/fault controls and the exact-head Maven build pass. A native Windows run has not been performed, so no native compatibility acceptance or thread resolution is claimed.

Reserve immutable creation and limit-transition capacity before death capture.
Keep accepted storage obligations and native frame ownership behind a canonical
installation lease until durable recovery and generation retirement settle.
Preserve actual display identity, pending marker protection and ordered removal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants