Skip to content

Fix relay file directory decoding and preserve exact RCB options#36

Merged
masarray merged 8 commits into
mainfrom
fix/file-directory-rcb-option-fidelity
Jul 20, 2026
Merged

Fix relay file directory decoding and preserve exact RCB options#36
masarray merged 8 commits into
mainfrom
fix/file-directory-rcb-option-fidelity

Conversation

@masarray

Copy link
Copy Markdown
Owner

Field defects fixed

  • A real relay FileDirectory response wraps its DirectoryEntry items in a SEQUENCE. The previous decoder treated that wrapper as one entry, collapsed FRA00019.cfg and FRA00019.dat, lost the nested file attributes, and produced the observed single CFG / Missing DAT / size unknown row.
  • FileDirectory file specifications are now emitted as one case-preserving slash-separated GraphicString.
  • Live RCB TrgOps and OptFlds values are often returned as MMS bit strings such as bits(08, unused=2). The exporter previously searched those strings for words, forced GI=true, and omitted bufOvfl, so exported CID options did not match the IED.

Changes

  • decode both standard [0] -> SEQUENCE OF DirectoryEntry and direct-entry layouts without collapsing companion files
  • preserve returned full paths and avoid duplicating the requested directory
  • decode engineer-readable and rendered MMS RCB bit strings
  • carry TriggerOptions, OptionalFields, BufTm and IntgPd through read-only availability snapshots
  • merge exact selected-RCB evidence into the cloned live model
  • post-process authoritative live SCL output with exact dchg/qchg/dupd/period/gi and OptFields including buffer overflow

Regression coverage

  • nested FileDirectory response containing COMTRADE/FRA00019.cfg and .dat returns two files with their sizes
  • direct-entry layout remains supported
  • GI-only bits(08, unused=2) is exported as GI only
  • buffer-overflow-only bits(0200, unused=6) is exported with only bufOvfl=true

No runtime RCB write or reservation is added; the new export evidence remains read-only.

@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, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@masarray
masarray merged commit 3b9dec6 into main Jul 20, 2026
1 check passed
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.

1 participant