Skip to content

det/CICS: WEB READ FORMFIELD / QUERYPARM and the WEB browse forms (Closes #4940) - #4971

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4940-web-forms
Oct 12, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4940-web-forms

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4940.

What

The server reads the form / query parameters / headers of the request it serves, on the same stated http_request as X37/X38 (no new fact), every command per IBM's pages, every gap ASSUMED or REFUSED by name in register X38 (extended, with sources).

Class table (the issue's, all handled here, one mechanism: a per-kind pair list over the stated request, browse state on the root task):

Member Status
WEB READ FORMFIELD / QUERYPARM modelled (spec web.py, CicsTask.webReadParam, stub GGCWRDP, both translators)
WEB STARTBROWSE / READNEXT / ENDBROWSE HTTPHEADER modelled (webStartBrowse / webReadNext / webEndBrowse, GGCWSBR / GGCWRNX / GGCWEBR)
WEB STARTBROWSE / READNEXT / ENDBROWSE FORMFIELD modelled
WEB STARTBROWSE / READNEXT / ENDBROWSE QUERYPARM modelled
  • IBM rules modelled: name not case sensitive (READ), value unescaped, cut value with LENGERR 5 and the real length, INVREQ 13 / 43 / 4, NOTFND 1, LENGERR 1 / 4 / 5, ILLOGIC 5 / 10, ENDFILE, a cut READNEXT returns the same pair again.
  • ASSUMED: body form = application/x-www-form-urlencoded, name=value joined by &, split at the first =, %XX only; browse returns duplicates in order; a failed start starts no browse; ENDFILE RESP2 0.
  • REFUSED by name: duplicate names on READ / named start, a start name matching only without case, + / ; / bad or non-ASCII escapes / escaped names / malformed pairs, other media types (multipart, charset), HTTPHEADER cut on READNEXT, READNEXT after ENDFILE, name+value both cut, SET, code-page options, client form (SESSTOKEN), two conditions at once.

Tests

_X4940_CASES (tests/cics_crucible/test_cics_runtimes.py): one step table run by the C stub and CicsTask over 21 request fixtures, line for line, refusals included; translator tests for det and the stub translator refuse every unmodelled option by name; spec count updated.

Gates

pr_gates --fast 5/5; pr_gates --ratchets 7/7 (none skipped). det_port.py check: 90/104 ports CHANGED, all in generated/.../CicsTask.java only (additive methods); re-proved zecs-zecsplt, genapp-lgicvs01, carddemo-signon PROVED; the rest left to the CI det sweep. Burned estates use none of the new forms (census: only WEB READ HTTPHEADER), so no survey / golden movement. cics_spec_status.md not committed (bot-rendered).

Cross-repo

None: no cics-crucible case (its SPEC has no event for these reads), no pin bump.

🤖 Generated with Claude Code

…r the stated request (Part of #4940)

Co-Authored-By: Claude Opus 5.5 <[email protected]>


_LONGFIELD = "abcdefghijklmnopqrstuvwxy"
_FORM_ROWS = [("user", "joe"), ("Pass", "p@ss!"), ("empty", ""), ("long", _LONGFIELD)]
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 12, 2026 09:37
@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 09:38
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #4971 @ d5cd28a: 4 failed check(s)

== db2 2/4 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38230241784/job/114750283017
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2ab2f6866df62ed48dc837fe289ccc718b2b9e6a8285fc8a3eeeb2dab4c35f4c
Finalizing artifact upload
Artifact det-sweep-db2-logs-1 successfully finalized. Artifact ID 11738422342
Artifact det-sweep-db2-logs-1 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11738422342
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38230241784/artifacts/11738422342
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/0f564330-53e4-47a6-a066-e349c6ba6127' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== db2 3/4 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38230241784/job/114750282963
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7d4c604982319afde1198cbdc3f2b508ea3ff82bea51c535085014c55b51c387
Finalizing artifact upload
Artifact det-sweep-db2-logs-2 successfully finalized. Artifact ID 11738104406
Artifact det-sweep-db2-logs-2 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11738104406
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38230241784/artifacts/11738104406
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/0f14abb2-83a3-4354-8acb-762a2720e18d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== db2 4/4 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38230241784/job/114750282977
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 3a92300f7e1a2ce197df9b5c84157e81a524403bfdf5a170400d3aaec273ad44
Finalizing artifact upload
Artifact det-sweep-db2-logs-3 successfully finalized. Artifact ID 11738328984
Artifact det-sweep-db2-logs-3 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11738328984
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38230241784/artifacts/11738328984
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/1d4ffd13-20e6-4a50-a987-f9d8d4018bb9' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38230241601/job/114749628400
repro: python -m pytest -q tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_passes_its_ratchet tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_runs_part_3
failing tests: tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_passes_its_ratchet tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_runs_part_3
errors:
fail-on-cache-miss: false
tests/cultural_gauntlet/test_cultural_gauntlet.py:35: AssertionError
tests/cultural_gauntlet/test_cultural_gauntlet.py:446: AssertionError
FAILED tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_passes_its_ratchet - assert 1 == 0
FAILED tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_runs_part_3 - assert ['cics/CicsTa..., 16) : -1;'] == [] ##[error]Process completed with exit code 1. log tail: SKIPPED [1] tests/extraction/languages/test_dart.py:405: got empty parameter set for (payload) SKIPPED [1] tests/extraction/languages/test_dart.py:441: got empty parameter set for (payload) SKIPPED [1] tests/estate_crucible/test_estate_crucible_scorer.py:193: no estate-crucible checkout at /home/runner/work/gitgalaxy/estate-crucible (set ESTATE_CRUCIBLE_PATH) SKIPPED [2] tests/cobol_mainframe/test_trunc_opt.py:195: needs Docker and a JDK 17 (JAVA_HOME / JDK_17) XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[// import 'package:test/test.dart';] - String/comment lookalikes lack AST block shielding XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[/* \n import 'package:foo/foo.dart'; \n */] - String/comment lookalikes lack AST block shielding XFAIL tests/extraction/languages/test_dart.py::test_dart_class_start_xfail_invalid[var query = '''\nclass FakeClass {\n''';] - String/comment lookalikes lack AST block shielding XFAIL tests/extraction/languages/test_dart.py::test_dart_func_start_xfail_invalid[/* \n void main() { \n */] - String/comment lookalikes lack AST block shielding XFAIL tests/core_engine/test_aperture.py::test_aperture_embedded_hex_shield - Engine currently allows hex arrays if has_intent=True. Pending engine patch. FAILED tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_passes_its_ratchet - assert 1 == 0 FAILED tests/cultural_gauntlet/test_cultural_gauntlet.py::test_the_sampled_plan_runs_part_3 - assert ['cics/CicsTa..., 16) : -1;'] == []
Left contains 2 more items, first extra item: "cics/CicsTask.java:1185: Character.isDigit / digit / getNumericValue (any script's digits, #3831): int hi = i + 2 < s.length() ? Character.digit(s.charAt(i + 1), 16) : -1;"
Full diff:
- []
+ [
+ 'cics/CicsTask.java:1185: Character.isDigit / digit / getNumericValue (any '
+ "script's digits, #3831): int hi = i + 2 < s.length() ? " + 'Character.digit(s.charAt(i + 1), 16) : -1;',
+ 'cics/CicsTask.java:1186: Character.isDigit / digit / getNumericValue (any '
+ "script's digits, #3831): int lo = i + 2 < s.length() ? " + 'Character.digit(s.charAt(i + 2), 16) : -1;',
+ ]
2 failed, 7660 passed, 69 skipped, 5 xfailed, 16 warnings in 359.14s (0:05:59)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a674bb95-b401-442d-919c-f0612fb4a70e' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 12, 2026
squid-protocol and others added 3 commits October 12, 2026 07:53
…gauntlet, Part of #4940)

Character.digit accepted other scripts' digits after '%'. webPlain now checks webHexAny and
decodes with an ASCII-only webHexValue; a test proves fullwidth / Arabic-Indic digits are refused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…CHANNEL)

Both sides' spec entries and tests kept; spec counts recomputed (77 modelled / 176 name-only); generated
CicsSpec.java / ggcics_spec.h regenerated from the merged table (unchanged).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (6f89ced) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (6f89ced) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 12:11
@squid-protocol squid-protocol removed the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 0dac36d into main Oct 12, 2026
66 checks passed
@squid-protocol
squid-protocol deleted the churn/4940-web-forms branch October 12, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det/CICS: WEB READ FORMFIELD / QUERYPARM and the WEB browse forms (HTTPHEADER, FORMFIELD, QUERYPARM)

2 participants