Repository navigation
fix(cli-api): report tier skew, bound review counts and continuations - #5785
Merged
Merged
Conversation
…ion cache Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
Sinity
force-pushed
the
fix/codex-debt-w12-cli-api
branch
from
September 29, 2026 05:15
a166b4d to
3561647
Compare
Sinity
marked this pull request as ready for review
September 29, 2026 05:16
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sinity
enabled auto-merge (squash)
September 29, 2026 05:16
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sinity
added a commit
that referenced
this pull request
Sep 29, 2026
…#5811) ## Summary Resumed transcript windows now read the selection and page size the continuation was minted for, on both the typed session-owner route and the generic `session.read` operation. Two stale `prose_with_refs` compiler tests are realigned with the contracts that changed under them. Tracking: beads polylogue-zeolc and polylogue-6bhuy (the compiler and transcript-window items). ## Problem At origin/master 1beb2e5 (agentctl job 2441), four tests failed: - `test_session_owner_operations.py::test_search_read_timeline_and_mcp_use_owner`: MCP `query(projection="sessions")` sent the default page size with a continuation, and the owner refused that as widening the window. #5779 has since landed the same fix on master. This PR adds narrowing and widening assertions for that route. - `test_transcript_window_route.py::test_continuation_can_narrow_final_window_without_losing_snapshot_binding` ("dialect mismatch"): the test hand-built a token whose result identity did not match its request, and `frame_request` reported that as a dialect mismatch. Reading the code turned up a real bug underneath. On narrowing, `frame_request` returned the new request, whose default offset and filters replaced the token's. #5778 fixed the same bug in `session_reads._transaction` but not here. - `test_compiler.py`, both `prose_with_refs` tests: #5722 changed the contracts these tests assert (details under Solution). Checking the other surfaces that resume a continuation found three more places where the resumed request's defaults win over the token: - `message_transcript_window` filtered with the caller's request. A token-only `sessions.read` resume of a `message_role=("user",)` window served unfiltered rows at the filtered offset. - The generic `session.read` (transcript and messages kinds) dropped an explicit `limit` beside a continuation. The CLI's narrowed resume from #5785 (remaining bound, `result_too_large` halving) therefore read the token's full page in production. #5785's tests mock the dispatch, so they could not catch this. - The messages kind checked for filters on its own payload, not on the framed token, so it would resume a filtered owner token and serve unfiltered rows. ## Solution - `frame_request`: separate the dialect check from the result-identity check. On narrowing, keep the token's request and change only `limit`. - `message_transcript_window`: frame the request once to get the effective selection, then pass the submitted request to the bound route so epoch validation is unchanged. - `daemon_reads._session_window_request`: one builder for both kinds. With a continuation, a stated `limit` narrows the page (`frame_request` refuses a larger one) and a stated nonzero `offset` is conflict-checked. The messages kind checks filters on the framed selection. - `SessionReadRequest.limit` is now `int | None = None`. The operation transport forwards every declared field, so the old `limit=200` default would have read as a request to widen every token-only resume. That was the cause of the four failures in the first focused run (job 2563). Handlers still use the declared 200-row window for a fresh read. - Compiler tests: #5722 added an action `ObjectRef` assertion that contradicts `ObjectRef.parse`, which has read an action's trailing block index as a qualifier since #4329. The test is fixed; production is right. #5722 also made the budget a hard cap, so `max_tokens=80` now omits every row. The recap test now uses a budget where recapping, not omission, makes the page fit, and asserts the estimate stays within the prose budget. - `docs/session-operations.md` states the resume page-size and filter rules. None of the changed production files is in the derived-identity closure (`devtools schema closure`: all `out`). ## Verification - `agentctl job start polylogue pytest_focused --workspace … -- tests/unit/mcp/test_session_owner_operations.py tests/unit/operations/test_transcript_window_route.py tests/unit/context/test_compiler.py tests/unit/archive/query/test_continuation_surface_parity.py tests/unit/cli/test_session_window_continuation_bounds.py tests/integration/test_transcript_window_differential.py tests/unit/operations/test_transcript_window_resume_selection.py tests/unit/operations/test_daemon_reads.py tests/unit/operations/test_session_read_parity.py tests/unit/operations/test_session_owner_route_equivalence.py tests/unit/operations/test_http_session_reads.py tests/unit/cli/test_read_view_execution_routes.py tests/unit/operations/test_daemon_protocol.py`, job 2608: `passed 143, failed 0` (2 flaky on first attempt, below). - `agentctl job start polylogue verify_quick`, job 2609: succeeded. New regression tests in `tests/unit/operations/test_transcript_window_resume_selection.py`: - A token-only owner resume reads under the token's filters. - The generic messages kind refuses a filtered owner token. - Narrowing works identically on the owner route and both generic kinds; a token-only resume keeps the token's page size through the transport's declared request; widening is refused. ## Self-review - **Sibling sites.** Every `QueryContinuation.decode` and `frame_request` caller was checked. The evidence windows (`frame_evidence_window`) ignore `limit` on a continuation, and their only CLI caller sends none, so no wrong rows are served (residual below). `window_request`, used by the API, MCP `read` and HTTP messages routes, drops `limit` beside a continuation. The window is then fully decided by the token. No wrong rows, but an explicit narrowing is ignored there (residual). - **Contract change.** `SessionReadRequest.limit` is read only through `_non_negative_int(..., default=_SESSION_READ_WINDOW)`, which maps `None` to the 200-row default. No checked-in schema snapshot names it. - **Double framing.** `frame_request` is pure; calling it twice cannot diverge, and the bound route still validates the epoch. - **Compatibility and fail-open.** No shim; a larger limit is refused, not clamped. - **Tests on the production route.** The generic reads go through `SessionReadRequest` validation exactly as the transport does, which is what exposed the default-limit problem. ## Residuals - Evidence windows and the `window_request` routes silently ignore an explicit `limit` beside a continuation. They serve correct rows, but do not narrow. - The two first-attempt flakes in job 2608 were daemon start-up timeouts (`TimeoutError`, `DaemonWriterOwnerLoopStopped`) under host load. They are unrelated to window framing, and both passed on rerun. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR salvages ChatGPT fleet worker 12's Codex-debt batch (beads
polylogue-1tyq5.55,.56,.60,.62; 72 findings) and turns it into verified changes. Five fixes land with regression tests that fail on master. The worker's sixth fix (a negative completion cache) was dropped, and its health-check fix was replaced with a stricter version.Problem
health_check()raisesSchemaSkewwhen a tier is on another version. The tier probe opened the file with schema admission but caught onlysqlite3.Error, so the probe crashed instead of reporting an error check.list_assertion_candidate_reviews(limit=10)computedtotalwith a second, unbounded review read. That read ran the per-candidate judgment lookup (N+1) across the whole candidate history.--stream --limit Nfollowed continuations with no limit. The final page could therefore fetch rows past N, and the resultingresult_too_largerefusal was re-raised for continuations instead of narrowing the page.raw-authority-frontierprinted the all-stateplan_countasobligations=, including terminalsupersededplans.analyze postmortem|portfolio|cost-outlookcomputed the inherited root format but rendered from the localNoneformat, so they printed text when JSON was requested.Solution
_archive_tier_readiness_checkkeeps admission, passestier=, and reports anySchemaRefusalErroras an ERROR check. The worker'svalidate_schema=Falseversion was replaced because it compared onlyuser_version, so a derived tier with a stale identity at the right version was reported OK.test_health_check_reports_derived_identity_skewfails on the worker's version._archive_list_assertion_candidate_reviewsreturns(page, count)from one read transaction. The count comes fromcount_assertion_claims, which now acceptstarget_refandstatuses=None. The count includes expired claims, matching the review read model._read_session_windowssends the remaining bound with every continuation. An oversized resumed page halves in place, and later pages keep the narrowed bound, becausesession.readrefuses a continuation that widens its window.plans=(the neutral label the finding offered).analyze_verbrenders every branch from the effective format: the local format if given, otherwise the root format, normalized withnormalize_output_dialect. An explicit local--formatstill wins.test_archive_query.pyexpected_emit_statsto exit 0 over a converging archive. fix: decide read outcomes from returned rows; resolve codex debt #5700 made that outcome degraded with a nonzero exit, so the tests now expect that. They failed on master before this PR.Verification
agentctl job start polylogue verify_quick --workspace /realm/worktrees/salvage-w12 --wait→ job 2374:verify: PASSED exit=0(head 331a204ddd, pre-rebase; the rebase onto 4501f13 touched none of these files). Earlier job 2368 failed on format and mypy in the worker's commit; commit 3561647 fixes both.agentctl job start polylogue pytest_focused --workspace /realm/worktrees/salvage-w12 --wait -- tests/unit/api/test_archive_health_tier_skew.py tests/unit/api/test_assertion_candidate_review_count.py tests/unit/cli/test_analyze_named_projection_format.py tests/unit/cli/test_raw_authority_frontier_output.py tests/unit/cli/test_session_window_continuation_bounds.py tests/unit/cli/test_analyze_projections.py tests/unit/cli/test_archive_query.py tests/unit/cli/test_completion_daemon_boundary.py tests/unit/api/test_assertion_candidate_queue_health.py→ job 2405 at head 3561647:devtools test: PASSED exit=0 diagnosis=pytest_passed, 168 passed.test_named_analysis_local_format_overrides_inherited_json, a precedence guard that should pass on both. Job 2355 ran the health tests against the worker'svalidate_schema=Falsevariant, and the derived-identity case failed (status OK instead of ERROR).tests/unit/api/test_facade_contracts.py::test_archive_facet_buckets_count_unique_sessions_for_duplicate_hitsand::test_no_undiscovered_async_methodsfail identically on master 4501f13 (job 2401).Self-review
judge.pyconsumes the facade'stotal. The daemon health endpoint has its own tier checks and is out of scope. The othervalidate_schema=Falseopens are reset, paths and export tools, not health reporting.count_assertion_claimsgained optional parameters, and its existingannotations/join.pycallers are unchanged.test_codex_debt_w12.pyfiles were renamed by behaviour.Polylogue.health_checkandlist_assertion_candidate_reviewson bootstrapped archives. The CLI tests go throughclior the real command with a mocked transport (dispatch_read) and the reallower_session_read.Derived-identity closure
polylogue/storage/sqlite/archive_tiers/user_write.pyis a member ofdocs/plans/schema-closure-baseline.json, so this PR moves the candidate derived identity. Closure membership does not grow (theschema-closuregate passed). No other changed production file is a member.Per-finding dispositions
Counts: 5 fixed, 60 fixed-already, 2 stale, 1 refuted, 4 not reached. The not-reached findings (55.18, 55.22, 60.12, 62.08) stay open on their beads.
polylogue/api/__init__.py:51polylogue/api/parity.py:472–491: The explicit context-pack exclusion includes topic_pack; composed builders do not own a separate operation identity under this contract.polylogue/api/archive.py:410polylogue/api/archive.py::_read_session_transcript_page: The normalized offset is used for both the read and returned page coordinates.polylogue/api/archive.py:818polylogue/api/archive.py::_archive_list_summaries_with_post_filters: Effective specification pagination is restored after content filtering.polylogue/api/archive.py:871polylogue/api/archive.py::_archive_aggregate_facet_families / keyed: Repeated facet bucket counts are added across chunks rather than overwritten.polylogue/api/archive.py:1114_archive_tier_readiness_checkkeeps admission and reportsSchemaRefusalErroras ERRORapi/test_archive_health_tier_skew.pypolylogue/api/archive.py:1152polylogue/api/archive.py::_archive_list_assertion_claims: Uses _readable_user_tier rather than an index-backed query runner.polylogue/api/archive.py:1546polylogue/storage/sqlite/connection_profile.py::_install_progress_handler: Read frames install an expiry/cancellation-aware SQLite progress handler, including work using the bound connection.polylogue/api/archive.py:1691polylogue/api/archive.py::_archive_list_assertion_candidates: Calls the canonical actionable queue reader rather than the expiry-retaining review reader.polylogue/api/archive.py:3066polylogue/api/archive.py::pathology_report: replace(spec, limit=None, offset=0) removes query pagination from the scope denominator.polylogue/api/archive.py:3448count_assertion_claimsreplaces the second unbounded review readapi/test_assertion_candidate_review_count.pypolylogue/api/archive.py:3453polylogue/api/archive.py::_readable_user_tier: Missing/non-file and unreadable durable-tier failures retain typed unavailability rather than returning an empty list.polylogue/api/archive.py:3503polylogue/cli/commands/judge.py::judge_command: Preserves authoritative review totals; additional client-side time filtering reads the complete selection before recounting.polylogue/api/archive.py:4021polylogue/operations/facade_writers.py::record_manual_continuation_product: Invokes _resolve_session_graph before committing the manual link, refreshing topology projections.polylogue/api/archive.py:4021polylogue/operations/facade_writers.py::record_manual_continuation_product: Invokes the canonical cycle/quarantine pass instead of leaving the direct insert unchecked.polylogue/api/archive.py:5081polylogue/api/archive.py::search_session_hits: Passes unresolved spec.to_plan() to failure-classifying search_hits_for_plan.polylogue/api/archive.py:5512polylogue/api/archive.py::filter: Constructs SessionFilter without vector-provider initialization.polylogue/api/archive.py:5557polylogue/api/archive.py::query_sessions: Includes title_is_synthesized from display_label_source.polylogue/api/archive.py:5561polylogue/api/archive.py::read_transcript_window: Anchor lookup and transcript-window reading still have separate read lifetimes. Single-snapshot implementation remains necessary; no fix written.polylogue/api/archive.py:5563polylogue/api/archive.py::read_transcript_window: Explicitly rejects around combined with transcript filters.polylogue/api/archive.py:6330polylogue/api/archive.py::get_effective_context: Canonical ID resolution plus read_summary replaces full transcript hydration for the existence check.polylogue/api/insights.py:753polylogue/api/insights.py::cost_outlook: Restricts the cost query to the selected cycle's since/until rather than the whole archive.polylogue/api/insights.py:916polylogue/api/insights.py::get_ancestors/get_descendants/get_siblings/get_thread/get_logical_session: Exhaustive relationship helpers still consume the default topology page without exhaustion. No implementation written.polylogue/api/insights.py:927polylogue/api/insights.py::_resolve_for_topology: Uses canonical archive resolve_session_id, preserving native-ID resolution.polylogue/api/insights.py:1030polylogue/api/insights.py::compact_lineage: Both public page defaults use DEFAULT_LINEAGE_PAGE_LIMIT.polylogue/api/search_envelope_builder.py:138polylogue/api/search_envelope_builder.py::build_search_envelope_for_spec; polylogue/operations/authority.py::authority_for_config: The envelope delegates authority resolution to the owner that resolves the active archive root.polylogue/api/search_envelope_builder.py:148polylogue/api/search_envelope_builder.py::build_search_envelope_for_spec: Reports matched=total and analyzed=len(hits).polylogue/cli/archive_query.py:360cli/test_session_window_continuation_bounds.pypolylogue/cli/archive_query.py:390polylogue/surfaces/cursor_identity.py::search_cursor_request_identity: Presentation-only parameters are excluded from cursor identity.polylogue/cli/archive_query.py:1913polylogue/cli/render/rows.py::project_payload: Outcome is preserved independently of selected result fields.polylogue/cli/click_app.py:479polylogue/cli/query_contracts.py::QueryOutputSpec.from_params: Explicit file destination and path retain typed FILE identity even for reserved-looking filenames.polylogue/cli/click_app.py:554polylogue/cli/query_group.py::_asks_for_query_workflow_help: The advertised find help route is handled while respecting option arity.polylogue/cli/click_app.py:628polylogue/cli/click_app.py::main: Runtime checks run inside guarded_entry passed to run_machine_entry.polylogue/cli/click_command_registration.py:192polylogue/cli/commands/insights_alias.py: The existing root group exposes only Fable, not the entire operational group. No alias is introduced by this batch.polylogue/cli/click_command_registration.py:192polylogue/cli/commands/insights_alias.py: The existing narrow route preserves the promised Fable-packet command. No alias is introduced by this batch.polylogue/cli/click_command_registration.py:192polylogue/cli/commands/insights_alias.py::_register_fable_packet: Registers only the intended Fable command rather than the entire operational group.polylogue/cli/commands/check.py:41polylogue/scenarios/operational_surfaces.py: Authored doctor scenarios use current routes without the retired repair flags.polylogue/cli/commands/diagnostics.py:992polylogue/cli/commands/diagnostics.py::latency_command: The empty-bucket branch still renders incomplete-drop accounting.polylogue/cli/commands/import_command.py:117polylogue/cli/commands/import_command.py::_wait_for_demo_ingest: Owner completion accounting improved, but a degraded receipt still causes immediate failure instead of waiting through the remaining convergence budget. No implementation written.polylogue/cli/commands/insights.py:147polylogue/scenarios/insight_surfaces.py; tests/unit/cli/test_stdout_stderr_split.py: Inventories use current rather than retired commands.polylogue/cli/commands/insights.py:224polylogue/cli/commands/insights.py::_render_status_plain: Plain output includes degraded counts and fallback reasons.polylogue/cli/commands/insights.py:450polylogue/cli/commands/insights.py::_packet_json_document: Dataclass tuples are lowered to JSON-native arrays.polylogue/cli/commands/judge.py:417polylogue/cli/commands/judge.py::judge_command: Interactive approval forwards the evidence digest and checks failed counts before printing success.polylogue/cli/commands/maintenance/_blob_gc.py:81polylogue/cli/commands/maintenance/_blob_gc.py::blob_gc_command: Blocked previews set ok=false and exit nonzero in both formats.polylogue/cli/commands/maintenance/_blob_gc.py:211polylogue/cli/commands/maintenance/_blob_gc.py: gc_recover_command is gone; the remaining command is preview-only.polylogue/cli/commands/maintenance/_blob_integrity.py:52polylogue/cli/commands/maintenance/_blob_integrity.py: _submit_replace_from_source and its cited relative-output forwarding route are gone.polylogue/cli/commands/maintenance/_raw_identity.py:47plans=cli/test_raw_authority_frontier_output.pypolylogue/cli/commands/maintenance/_raw_identity.py:59polylogue/cli/commands/maintenance/_raw_identity.py::raw_authority_blockers_command: Paginated public blocker inspection exposes expected/observed evidence.polylogue/cli/commands/maintenance/_raw_identity.py:247polylogue/cli/commands/maintenance/_raw_identity.py::raw_authority_blocker_resolve_command: Checks the affected count rather than presenting no-op resolution as an applied mutation.polylogue/cli/commands/maintenance/_verify_archive.py:85polylogue/cli/commands/maintenance/_verify_archive.py::verify_archive_command: Source-frontier construction is conditional on selected source-conservation work.polylogue/cli/commands/paths.py:75polylogue/cli/commands/paths.py::_raw_materialization_readiness: Propagates the selected index path through archive_debt_list(index_db_path=...).polylogue/cli/commands/status.py:342polylogue/operations/daemon_status.py::produce_operation_status: Merges runtime collection metadata into pinned readiness components.polylogue/cli/query_verbs.py:2434analyze_verbrenders from the effective (normalized, inherited) formatcli/test_analyze_named_projection_format.pypolylogue/cli/read_views/lineage.py:78polylogue/cli/read_views/lineage.py: The replacement operation-backed route uses the resolved target; the old _run path is gone.polylogue/cli/read_views/messages.py:226polylogue/cli/read_views/messages.py::_write_messages_file: Resolves symlink output before choosing the staging sibling.polylogue/cli/read_views/messages.py:227polylogue/cli/read_views/messages.py::_write_messages_file: Flushes and fsyncs the staged descriptor before replacement and synchronizes the directory.polylogue/cli/read_views/query_set.py:196polylogue/cli/read_views/correlation.py::run_read_correlation: Renders a string and delivers it through deliver_content instead of an uncaptured console-only renderer.polylogue/cli/read_views/session_evidence.py:180polylogue/cli/read_views/session_evidence.py::_read_evidence_window: Projection body coordinates take precedence before operation lowering.polylogue/cli/read_views/standard.py:99polylogue/cli/query_output.py::deliver_query_output: File delivery retains secret-candidate scanning.polylogue/cli/read_views/standard.py:99polylogue/cli/read_views/standard.py::run_read_summary_or_transcript; polylogue/cli/archive_query.py::_read_session_windows: The standard file path still accumulates the transcript and buffers its rendered document. End-to-end operation-backed streaming is not implemented.polylogue/cli/read_views/standard.py:99polylogue/cli/read_views/standard.py::run_read_summary_or_transcript: Forwards a typed FILE QueryDeliveryTarget, preserving reserved-looking filenames.polylogue/cli/read_views/standard.py:99polylogue/operations/daemon_reads.py::_session_identity_projection; polylogue/cli/archive_query.py::_session_message_text: The operation preserves tool_input; rendering includes structured tool input and omits reasoning blocks.polylogue/cli/read_views/standard.py:99polylogue/cli/archive_query.py::_read_session_windows: Initial oversized pages already halve their bound at the inspected base. This batch additionally fixes resumed-page narrowing under 60.01.polylogue/cli/session_rows.py:141polylogue/cli/session_rows.py::_query_page_with_authority: Synthetic missing-session selections explicitly include next_offset=None.polylogue/cli/shared/machine_errors.py:233polylogue/cli/shared/machine_errors.py::error_archive_writer_ownership: Undecidable ownership has a separate remedy that does not assert an observed resident daemon.polylogue/cli/shared/machine_errors.py:285polylogue/cli/shared/machine_errors.py::extract_command: Recognizes --output-format as a value-bearing option.polylogue/cli/shell_completion_values.py:117polylogue/cli/shell_completion_values.py::_cached_value_matches: Session IDs match native-ID and title substrings.polylogue/cli/shell_completion_values.py:135polylogue/cli/shell_completion_values.py:145polylogue/cli/shell_completion_values.py::_remember_completion_values: A per-archive map retains more than the most recent archive.polylogue/cli/shell_completion_values.py:157polylogue/cli/shell_completion_values.py::_remember_completion_values: Removes an existing value before reinsertion at the retention tail.polylogue/cli/shell_completion_values.py:178polylogue/cli/shell_completion_values.py::_remember_completion_values: Global serialized-byte eviction precedes publication. This batch includes new empty observations in that accounting.polylogue/cli/shell_completion_values.py:181polylogue/cli/shell_completion_values.py::_remember_completion_values: flock serializes the full cache read-modify-write sequence.polylogue/cli/write_authority.py:104polylogue/storage/sqlite/write_lease.py::arm_write_lease_enforcement: Locked process-wide user/suppressor counts make arming overlap-safe.Residuals
user_write.pymoves the derived identity, so this PR has to land before a rebuild starts.test_facade_contracts.pyfailures are inherited from master.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg